Fatal error: Class 'DLEPlugins' not found in /var/www/xxxx/data/www/xxx.ru/engine/inc/include/init.php on line 25
require_once (DLEPlugins::Check(ENGINE_DIR . '/inc/include/functions.inc.php'));
.h-menu span {display:none;}
[if] [if[b]2[/b]] text [elseif] text [else] text [/if[b]2[/b]] [else] text [/if]
[if xfvalue_kp_rating>8 || xfvalue_imdb_rating>8] Хороший фильм ->Одна строчка [elseif xfvalue_kp_rating>6 || xfvalue_imdb_rating>6] Так себе, но посмотреть можно ->Одна строчка [elseif xfvalue_kp_rating || xfvalue_imdb_rating] плохой фильм ->Одна строчка [else] рейтинг еще не известен [/if]
[if xfvalue_kp_rating>8 || xfvalue_imdb_rating>8] ->Одна строчка Хороший фильм [elseif xfvalue_kp_rating>6 || xfvalue_imdb_rating>6] ->Три строчки Так себе, но посмотреть можно text text [elseif xfvalue_kp_rating || xfvalue_imdb_rating] ->Две строчки плохой фильм text [else] ->Две строчки рейтинг еще не известен text [/if]
[if field] <div> <span>text</span> <ul> <li>1</li> <li>2</li> </ul> </div> [else] <a href="#">text</a> [/if]
$user_short_tpl = array( 'default' => 'shortstory.tpl', //дефолтный шаблон 'list' => 'shortstory_list.tpl', // шаблон списком 'icons' => 'shortstory_icons.tpl' // шаблон картинки );
$change_template = false; $allt = array(); $user_tpl_tmp = isset($_COOKIE['short_template']) ? totranslit($_COOKIE['short_template']) : 'default'; if( isset($config['change_template']) AND $config['change_template'] != '' ) { $user_short_tpl_tmp = explode(',', $config['change_template']); if( count($user_short_tpl_tmp) > 1 ) $change_template = true; foreach($user_short_tpl_tmp as $val) { $val = explode('|',$val); $allt[] = $val[0]; } } if( !in_array( $user_tpl_tmp, $allt ) ) $user_tpl_tmp = 'default'; $user_tpl = ($user_tpl_tmp == 'default' OR !$change_template) ? 'shortstory.tpl' : 'shortstory_'.$user_tpl_tmp.'.tpl'; if( $view_template != "rss" ) { if( $category_id and $cat_info[$category_id]['short_tpl'] != '' ) $tpl->load_template( $cat_info[$category_id]['short_tpl'] . '.tpl' ); else $tpl->load_template( $user_tpl ); }
$change_template = $change_template ? $change_template : false; if( isset($config['change_template']) AND $config['change_template'] != '' ) { $user_short_tpl = array(); $user_short_tpl_tmp = explode(',', $config['change_template']); if( $change_template ) { foreach( $user_short_tpl_tmp as $val ) { $val = explode('|', $val); $user_short_tpl[] = array('template' => $val[0], 'name' => htmlspecialchars_decode($val[1])); } } } else { $user_short_tpl = array( array('template' => 'default', 'name' => 'Стандарт'), array('template' => 'list', 'name' => 'Список'), array('template' => 'icons', 'name' => 'Иконки') ); } if( $change_template ) { $sortn_arr = array(); foreach( $user_short_tpl as $val ) { if( is_array($val) ) { $active_template = ' '; if( $user_tpl_tmp == $val['template'] ) $active_template = ' class="current" '; $sortn_arr[] = '<a href="#"'.$active_template.'data-template="'.$val['template'].'">'.$val['name'].'</a>'; } } $sortn_arr = implode(' | ', $sortn_arr); $sortn = <<<HTML <div class="sortn dpad"> <div class="sortn"> <div class="templater">Режим просмотра: {$sortn_arr}</div> </div> </div> HTML; $tpl->set ( '{sortn}', $sortn); } else $tpl->set ( '{sortn}', '');
if(preg_match("#min=['\"](\d+)['\"]#i",$tpl_list[1],$mint)) $min = $mint[1];
while($row = $db->get_row()){ $tags[$row['tag']] = $row['count']; $counts[] = $row['count']; }
while($row = $db->get_row()){ if( $row['count'] >= $min ) { $tags[$row['tag']] = $row['count']; $counts[] = $row['count']; } }
trim($_COOKIE['short_template'])