Created
October 11, 2014 13:21
-
-
Save dlenettr/fb4a6b2fba2154e997dc to your computer and use it in GitHub Desktop.
Reklam Kodu 10.1 için (398)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( $config['allow_banner'] ) include_once ENGINE_DIR . '/modules/banners.php'; | |
if( $config['allow_banner'] AND count( $banners ) ) { | |
foreach ( $banners as $name => $value ) { | |
$tpl->result['content'] = str_replace( "{banner_" . $name . "}", $value, $tpl->result['content'] ); | |
if ( $value ) { | |
$tpl->result['content'] = str_replace ( "[banner_" . $name . "]", "", $tpl->result['content'] ); | |
$tpl->result['content'] = str_replace ( "[/banner_" . $name . "]", "", $tpl->result['content'] ); | |
} | |
} | |
} | |
$tpl->result['content'] = preg_replace( "'{banner_(.*?)}'si", "", $tpl->result['content'] ); | |
$tpl->result['content'] = preg_replace( "'\\[banner_(.*?)\\](.*?)\\[/banner_(.*?)\\]'si", "", $tpl->result['content'] ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment