Beispiel:
Es bleibt immer der tag sichbar und er hat keinen Effekt...Aus Little Paws [BR]wird MYKKET MORTON
Was muss ich tun?
Es bleibt immer der tag sichbar und er hat keinen Effekt...Aus Little Paws [BR]wird MYKKET MORTON
Code: Select all
if(strpos($content["all"],'{ARTICLE_TITLE}')!==false) {
$content["all"] = render_cnt_template($content["all"], 'ARTICLE_TITLE', $content['article_title'],'');
}
if( (strpos($content["all"],'{ARTICLE_SUBTITLE}')!==false)) {
$content["all"] = render_cnt_template($content["all"], 'ARTICLE_SUBTITLE', $content['articles'][$content['article_id']]['article_subtitle'],'');
}
Code: Select all
<!-- Page Title -->[ARTICLE_TITLE]<h1>{ARTICLE_TITLE} </h1>[/ARTICLE_TITLE]<!-- /Page Title -->
<!-- Page Title else -->[ARTICLE_TITLE_ELSE]<h1>Artikellisting</h1>[/ARTICLE_TITLE_ELSE]<!-- /Page Title else -->
<!-- Page sub Title -->[ARTICLE_SUBTITLE]<h2>{ARTICLE_SUBTITLE} </h2>[/ARTICLE_SUBTITLE]<!-- /Page sub Title -->
<!-- Page sub Title else -->[ARTICLE_SUBTITLE_ELSE]<h2></h2>[/ARTICLE_SUBTITLE_ELSE]<!-- /Page sub Title else -->
Code: Select all
<?php
$content["article_title"] = clean_slweg( html_parser( $content['article_title'] ) );
$content["article_subtitle"] = clean_slweg( html_parser( $content['article_subtitle'] ) );
?>
Code: Select all
<?php
$content["article_title"] = str_replace(array('[br]', '[BR]'), '<br />', $content['article_title']);
?>
Code: Select all
<?php
//replacement
$content["article_title"] = str_replace(array('[br]', '[BR]'), '<br />', $content['article_title']);
//Cleaning
$content["pagetitle"] = clean_slweg( html_parser( $content['pagetitle'] ) );
?>
Code: Select all
$content["pagetitle"] = strip_tags(str_replace(array('[br]', '[BR]'), ' ', $content["pagetitle"]));
Code: Select all
$content["all"] = str_replace(array('[br]', '[BR]'), ' ', $content["all"]);
Code: Select all
<?php
$content["all"] = str_replace(array('[br]', '[BR]'), ' <br />', $content["all"]);
$content["pagetitle"] = strip_tags(str_replace(array('[br]', '[BR]'), ' ', $content["pagetitle"]));
?>