namine
Version:
Modification parser for OpenCart. Just write code in dev files with certain comments and get modification file.
49 lines (45 loc) • 1.03 kB
text/xml
xml version="1.0"
<modification>
<name>test</name>
<version>0.1</version>
<author>test author</author>
<link>test link</link>
<code>test_code</code>
<file path="test/catalog/test.tpl">
<operation>
<search>
<![CDATA[ echo "test php string"; ]]>
</search>
<add position="before">
<![CDATA[
test public tpl content
]]>
</add>
</operation>
</file>
<file path="test/catalog/test.twig">
<operation>
<search>
<![CDATA[ echo "test php string"; ]]>
</search>
<add position="before">
<![CDATA[
test public twig content
]]>
</add>
</operation>
</file>
<file path="test/admin/test.php">
<operation>
<search>
<![CDATA[ echo "test php string"; ]]>
</search>
<add position="before">
<![CDATA[
test admin content
]]>
</add>
</operation>
</file>
</modification>