//////////////////////////////////////////////////////////////////////////////////////////////// $simple_meta = array('title','description','keywords'); foreach ($simple_meta as $key) { if (preg_match("#\[({$key})\](.*?)\[/\\1\]\s*#is", $tpl->result['content'], $meta_found)) { if ($key == 'title' && $metatags['header_title']) { } else { if ($key !== 'keywords') $social_tags[$key] = trim(strip_tags($meta_found[2])); $key = str_replace('title', 'header_title', $key); $meta_found[2] = preg_replace("#\s{2,}#s", " ", $meta_found[2]); $metatags[$key] = trim(strip_tags($meta_found[2])); } $tpl->result['content'] = str_replace($meta_found[0], "", $tpl->result['content']); } } ////////////////////////////////////////////////////////////////////////////////////////////////
$row['date1'] = langdate("d.m.Y",$row['date']); $row['date2'] = langdate("H:i",$row['date']); и {$row['date1']}<br>{$row['date2']}
if(date("Ymd",$_TIME)==date("Ymd",$row['date'])) $row['date'] = date("H:i",$row['date']); else $row['date'] = langdate("j M Y H:i",$row['date']);
.lc_chat_list .lc_chat_li .lc_group_4:after { content: "пользователь"; }
@header( "Content-type: text/html; charset=" . $config['charset'] );
$user_group = get_vars( "usergroup" ); if (!$user_group) { $user_group = array (); $db->query( "SELECT * FROM " . USERPREFIX . "_usergroups ORDER BY id ASC" ); while ( $row = $db->get_row() ) { $user_group[$row['id']] = array_map('stripslashes', $row); } set_vars( "usergroup", $user_group ); $db->free(); }
preg_match_all("#<h(\d+)>(.*?)</h\\1>#is", $story, $hmenu);
preg_match_all("#<h2>(.*?)</h2>#is", $story, $hmenu);
preg_match_all("#<h(2)>(.*?)</h\\1>#is", $story, $hmenu);
<div id="dle-speedbar"><p><ul itemscope itemtype="http://schema.org/BreadcrumbList" class="speedbar"><li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a itemscope itemtype="http://schema.org/Thing" itemprop="item" href="http://мойсайт.com/" title=""><span itemprop="name">мойсайт.com</span></a><meta itemprop="position" content="1" /></li><li class="speedbar_sep">»</li><li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a itemscope itemtype="http://schema.org/Thing" itemprop="item" href="http://мойсайт/ссылка на категорию/" title=""><span itemprop="name">Название категории</span></a><meta itemprop="position" content="2" /></li><li class="speedbar_sep">»</li><li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">Название статьи</span><meta itemprop="position" content="3" /></li></ul></p></div>
global $_IP,$db,$member_id,$allow_edit,$config,$_TIME,$PHP_SELF,$is_logged;
global $_IP,$db,$member_id,$allow_edit,$config,$_TIME,$PHP_SELF,$is_logged,$user_group;
<li data-id="{$row['id']}" class="lc_chat_li{$foto_class}{$guest_class}"> {$foto} <a {$go_page} {$user_link} class="lc_chat_li_autor lc_group_{$row['user_group']}" title="Ответить">{$row['name']}</a> {$page_id_text} <div class="lc_chat_li_date">{$row['date']}</div> <div class="lc_chat_li_text" id="lc_text_{$row['id']}">{$row['text']}</div> <ul class="lc_chat_li_act">{$data_act}</ul> </li>
{$user_group[$row['user_group']]['group_name']}
if ($key == 'title' && $metatags['header_title']) {
if ($key == 'none') {
if ($titl_e) {
if ($titl_e && $dle_module != 'showfull') {
$last_item = array_pop($speedbar); $speedbar[] = is_array($last_item) ? $last_item[1] : $last_item;
if ($dle_module != 'showfull') { $last_item = array_pop($speedbar); $speedbar[] = is_array($last_item) ? $last_item[1] : $last_item; }
.speedbar li a{ color: #0288d1; }