Code: Select all
function render_cnt_template($text='', $tag='', $value='') {
// render content part by replacing placeholder tags by value
if(strval($value)) {
$text = preg_replace('/\['.$tag.'\](.*?)\[\/'.$tag.'\]/is', '$1', $text);
$text = str_replace('{'.$tag.'}', $value, $text);
} else {
2153: $text = preg_replace('/\['.$tag.'\](.*?)\[\/'.$tag.'\]/is', '', $text);
}
return $text;
}
after 2153 line add:
Code: Select all
$text = str_replace('{'.$tag.'}', '', $text);