<td data-label="Количество"><div class="td-cart-number">x{count} {units}</div></td>
function get_breadcrumbcategories($id) { global $cat_info, $config, $PHP_SELF; if( ! $id ) return; $parent_id = $cat_info[$id]['parentid']; if( $config['allow_alt_url'] ) $list = "<span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"" . $config['http_home_url'] . get_url( $id ) . "/\" itemprop=\"url\"><span itemprop=\"title\">{$cat_info[$id]['name']}</span></a></span>"; else $list = "<span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"$PHP_SELF?do=cat&category={$cat_info[$id]['alt_name']}\" itemprop=\"url\"><span itemprop=\"title\">{$cat_info[$id]['name']}</span></a></span>"; while ( $parent_id ) { if( $config['allow_alt_url'] ) $list = "<span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"" . $config['http_home_url'] . get_url( $parent_id ) . "/\" itemprop=\"url\"><span itemprop=\"title\">{$cat_info[$parent_id]['name']}</span></a></span>" . " » " . $list; else $list = "<span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"$PHP_SELF?do=cat&category={$cat_info[$parent_id]['alt_name']}\" itemprop=\"url\"><span itemprop=\"title\">{$cat_info[$parent_id]['name']}</span></a></span>" . " » " . $list; $parent_id = $cat_info[$parent_id]['parentid']; if( $cat_info[$parent_id]['parentid'] == $cat_info[$parent_id]['id'] ) break; } return $list; }
elseif( $do == 'tags' ){
if ($config['speedbar'] AND !$view_template ) { function get_breadcrumblistcategories($id,$sec = false){ global $speedbar,$cat_info,$config,$cstart,$dle_module; if(!$id) return; $parent_id = $cat_info[$id]['parentid']; if($parent_id) get_breadcrumblistcategories( $parent_id, true ); if($sec OR $cstart>1 OR $dle_module!='cat') $speedbar[] = array( $config['http_home_url'] . get_url( $id ), $cat_info[$id]['name'], $cat_info[$id]['metatitle'] ); else $speedbar[] = $cat_info[$id]['name']; } $config['speedbar_separator'] = $config['speedbar_separator'] ? trim($config['speedbar_separator']) : "»"; $speedbar = array( array( $config['http_home_url'], $config['short_title'], $config['home_title'] ) ); if (intval($category_id)) get_breadcrumblistcategories( intval($category_id) ); elseif( $do == 'tags' ){ $speedbar[] = array( "/tags/", $lang['tag_cloud'] ); $speedbar[] = $tag; }elseif($nam_e) $speedbar[] = $nam_e; if($titl_e) $speedbar[] = $titl_e; elseif( isset($_GET['cstart']) AND intval($_GET['cstart']) > 1 ) $speedbar[] = $lang['news_site']." ".intval($_GET['cstart']); foreach($speedbar as $k=>$v){ $speedbar[$k] = '<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">'; $title_s = "<span itemprop=\"name\">".(is_array($v) ? $v[1] : $v)."</span>"; $speedbar[$k] .= is_array($v) ? "<a itemprop=\"item\" href=\"{$v[0]}\" title=\"".($v[2] ?: $v[1])."\">{$title_s}</a>" : $title_s; $speedbar[$k] .= "<meta itemprop=\"position\" content=\"".( $k+1 )."\" /></li>"; } $tpl->load_template ( 'speedbar.tpl' ); $tpl->set ( "{speedbar}", "<ul itemscope itemtype=\"http://schema.org/BreadcrumbList\" class=\"speedbar\">".implode("<li class=\"speedbar_sep\">{$config['speedbar_separator']}</li>",$speedbar)."</ul>" ); $tpl->compile ( 'speedbar' ); $tpl->clear(); $tpl->result['speedbar'] = '<span id="dle-speedbar">'.$tpl->result['speedbar'].'</span>'; } ?
elseif( $do == 'cart' ){ if( $subaction ){ $speedbar[] = array( "/cart/", $cart_config['metatitle'] ); $speedbar[] = $cart_lang["cpage_".$subaction]; }else $speedbar[] = $cart_config['metatitle']; }
if($titl_e) $speedbar[] = $titl_e;
if($titl_e AND !$news_found) $speedbar[] = $titl_e;