Авторизуйтесь по паролю
jeka6774 03.02.2017 Общие вопросы, Шаблоны (TPL) 1549
vitnet - 2016-10-073 февраля 2017 09:20 - #61508
[custom id="1" template="shortstory"]
if( stripos($tpl->result['content'], "[custom") !== false ) { $tpl->result['content'] = preg_replace_callback ( "#\\[custom(.+?)\\]#i", "custom_print", $tpl->result['content'] ); }
jeka6774 - 2016-10-073 февраля 2017 16:11 - #61520
jeka6774 - 2016-10-073 февраля 2017 23:55 - #61530
nowheremany - 2016-10-073 февраля 2017 11:31 - #61512
.ui-dialog {
z-index: 9999;
$tpl->set( '{short-story}', $row['short_story'] );
$tpl->set( '{short-story}', $row['short_story'] ); $tpl->set_block("'\\[short_story\\](.*?)\\[/short_story\\]'si", $row['short_story'] ? '\\1' : '');
[short-story]Показать этот текст, если есть краткая новость[/short-story]
[not-short-story]Показать этот текст, если краткой новости нет[/not-short-story]