Авторизуйтесь по паролю
zurabmw10 05.11.2018 DLE 12, dle 12.0 Все вопросы » Общие вопросы 1534
Flash - 2016-09-226 ноября 2018 11:05 - #69777
$row['title'] = stripslashes( $row['title'] );
if ( preg_match( "#\\{full-story limit=['\"](.+?)['\"]\\}#i", $tpl->copy_template, $matches ) ) { $count= intval($matches[1]); $temp_str = preg_replace( "#<!--TBegin(.+?)<!--TEnd-->#is", "", $row['full_story'] ); $temp_str = preg_replace( "#<!--MBegin(.+?)<!--MEnd-->#is", "", $temp_str ); $temp_str = preg_replace( "'\[attachment=(.*?)\]'si", "", $temp_str ); $temp_str = preg_replace ( "#\[hide(.*?)\](.+?)\[/hide\]#is", "", $temp_str ); $temp_str = str_replace( "</p><p>", " ", $temp_str ); $temp_str = strip_tags( $temp_str, "<br>" ); $temp_str = trim(str_replace( "<br>", " ", str_replace( "<br />", " ", str_replace( "\n", " ", str_replace( "\r", "", $temp_str ) ) ) )); if( $count AND dle_strlen( $temp_str, $config['charset'] ) > $count ) { $temp_str = dle_substr( $temp_str, 0, $count, $config['charset'] ); if( ($temp_dmax = dle_strrpos( $temp_str, ' ', $config['charset'] )) ) $temp_str = dle_substr( $temp_str, 0, $temp_dmax, $config['charset'] ); } $tpl->set( $matches[0], $temp_str ); }
{full-story limit="250"}
zurabmw10 - 2016-09-226 ноября 2018 13:45 - #69782
Flash - 2016-09-226 ноября 2018 16:11 - #69785
if ( preg_match( "#\\{short-story limit=['\"](.+?)['\"]\\}#i", $tpl->copy_template, $matches ) ) {
if(!$row['short_story']) $row['short_story'] = $row['full_story'];
LazyDev - 2016-09-226 ноября 2018 16:54 - #69786
CHAR_LENGTH(p.full_story) as full_story
full_story
zurabmw10 - 2016-09-226 ноября 2018 17:16 - #69787
LazyDev - 2016-09-226 ноября 2018 17:23 - #69788
zurabmw10 - 2016-09-226 ноября 2018 17:28 - #69790
zurabmw10 - 2016-09-226 ноября 2018 17:30 - #69791
zurabmw10 - 2016-09-226 ноября 2018 17:41 - #69793
zurabmw10 - 2016-09-226 ноября 2018 17:44 - #69794
Flash - 2016-09-226 ноября 2018 22:33 - #69799
zurabmw10 - 2016-09-226 ноября 2018 18:05 - #69795
Automatic - 2016-09-226 ноября 2018 12:42 - #69779
zurabmw10 - 2016-09-226 ноября 2018 13:38 - #69781
iframe { width: 100%; height: 400px; /* Высота по умолчанию */ } /* Мобильные устройства */ @media (max-width: 768px) { iframe { height: 300px; } } /* Очень маленькие экраны */ @media (max-width: 480px) { iframe { height: 250px; } }