I am creating a module for opencart and in ocmod I want to add multi-line search and replace. How can I perfrom multi-line search and replace in ocmod.xml?
<file path="catalog/view/theme/fastor/template/common/footer.tpl">
<operation>
<search ><![CDATA[
<?php
$store_id = $config->get('config_store_id');
if ($store_id == '1') {
?>
<div id="craftysyntax_1" style="float: right;"><script type="text/javascript" src="https://livehelp.clipboards.com/livehelp_js.php?eo=0&department=1&serversession=1&pingtimes=10&dynamic=Y&creditline=W"></script></div>
<?php } elseif($store_id == '0') { ?>
<div id="craftysyntax_2" style="float: right;"><script type="text/javascript" src="https://livehelp.clipboards.com/livehelp_js.php?eo=0&department=2&serversession=1&pingtimes=10&dynamic=Y&creditline=W"></script></div>
<?php } ?>
]]></search>
<add position="replace"><![CDATA[
<?php
if( $moduleData['Enabled']=='yes'){
$var = htmlspecialchars_decode($moduleData['WidgetTitle'][$language_id]);
echo $var;
}
?>
]]></add>
</operation>
</file>