<?xml version="1.0" encoding="utf-8"?>
<modification>
    <name>So Countdown Popup</name>
    <code>So-countdown-popup</code>
    <version>1.1.0</version>
    <author>OpenCartWorks</author>
    <link>http://www.opencartworks.com/</link>
    
    <file path="catalog/controller/common/footer.php">
        <operation error="log">
            <search ><![CDATA[$data['scripts'] = $this->document->getScripts('footer');]]></search>
            <add position="before"><![CDATA[
                $data['so_countdown'] = $this->load->controller('extension/module/so_countdown');
            ]]></add>
        </operation>
    </file>
    
    <file path="catalog/view/theme/*/template/common/footer.twig">
        <operation error="log">
            <search ><![CDATA[</footer>]]></search>
            <add position="after"><![CDATA[
                {{ so_countdown }}
            ]]></add>
        </operation>
    </file>
</modification>