Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/accelera.../pagebuil.../componen...
File: modulesHtmlTemplate.php
<?php // Exit if accessed directly.
[0] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) exit; ?>
[1] Fix | Delete
<script type="text/x-template" id="module-data-template">
[2] Fix | Delete
<?php $i=0;
[3] Fix | Delete
foreach ($moduleTemplate as $key => $module) {
[4] Fix | Delete
unset($module['front_template']);
[5] Fix | Delete
unset($module['front_css']);
[6] Fix | Delete
if(isset($module['front_loop_content'])){
[7] Fix | Delete
unset($module['front_loop_content']);
[8] Fix | Delete
}
[9] Fix | Delete
if(isset($module['front_common_css'])){
[10] Fix | Delete
unset($module['front_common_css']);
[11] Fix | Delete
}
[12] Fix | Delete
if(isset($module['repeater'])){
[13] Fix | Delete
unset($module['repeater']['front_template']);
[14] Fix | Delete
}
[15] Fix | Delete
$conditioner = 'v-else-if';
[16] Fix | Delete
if($i==0){
[17] Fix | Delete
$conditioner = 'v-if';
[18] Fix | Delete
}
[19] Fix | Delete
$i++;
[20] Fix | Delete
$moduleJson = array('type'=> 'module','moduleDraggable'=>false ,'modulename'=>strtolower($module['name']),'moduleJson'=>$module);
[21] Fix | Delete
echo '
[22] Fix | Delete
<div
[23] Fix | Delete
'.$conditioner.'="cell.type==\''.strtolower($module['name']).'\'
[24] Fix | Delete
&&
[25] Fix | Delete
cellcontainer==cell.cell_container"
[26] Fix | Delete
class="amp_mod amppb-module amppb-module-'.strtolower($module['name']).'"
[27] Fix | Delete
:data-module_id="cell.cell_id"
[28] Fix | Delete
>
[29] Fix | Delete
[30] Fix | Delete
<span class="module_label">'.esc_html($module['label']).'
[31] Fix | Delete
<em v-if="cell.cell_identity_name"> {{cell.cell_identity_name}} </em>
[32] Fix | Delete
</span>
[33] Fix | Delete
<span class="amppb-setting-right">
[34] Fix | Delete
<label @click="duplicateModule($event)" class="link amppb-module-copy" title="'.esc_attr($module['label']).'"
[35] Fix | Delete
:data-module_id="cell.cell_id"
[36] Fix | Delete
:data-container_id="cell.container_id"
[37] Fix | Delete
>
[38] Fix | Delete
<span class=" dashicons dashicons-admin-page"></span>
[39] Fix | Delete
</label>
[40] Fix | Delete
<label @click="showModulePopUp($event)" class="link" title="'.esc_attr($module['label']).'" data-popupContent=\''.wp_json_encode($module).'\'
[41] Fix | Delete
:data-module_id="cell.cell_id"
[42] Fix | Delete
:data-container_id="cell.container_id"
[43] Fix | Delete
:data-cell_identity_name = cell.cell_identity_name
[44] Fix | Delete
>
[45] Fix | Delete
<span class="dashicons dashicons-admin-generic"></span>
[46] Fix | Delete
</label>
[47] Fix | Delete
</span>
[48] Fix | Delete
</div>
[49] Fix | Delete
';
[50] Fix | Delete
}
[51] Fix | Delete
?>
[52] Fix | Delete
</script>
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function