вопрос
Ребят подскажите, если находится внутри коллекции, то получается ссылка сайта с двойным слешем, site.ru//collections/.....
Надо убрать этот косяк, вот код
Надо убрать этот косяк, вот код
$coll_e = " <span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"/collections/\" itemprop=\"url\"><span itemprop=\"title\">Подборки</span></a></span>";
$coll_e .= " {$config['speedbar_separator']} " . strip_tags(stripslashes($row['title']));
/*
=====================================================
Формирование speedbar
=====================================================
*/
if ($config['speedbar'] AND !$view_template ) {
$s_navigation = "<span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"{$config['http_home_url']}\" itemprop=\"url\"><span itemprop=\"title\">" . $config['short_title'] . "</span></a></span>";
if( $config['start_site'] == 3 AND $_SERVER['QUERY_STRING'] == "" AND !$_POST['do']) $titl_e = "";
if (intval($category_id)) $s_navigation .= " {$config['speedbar_separator']} " . get_breadcrumbcategories ( intval($category_id), $config['speedbar_separator'] );
elseif ($do == 'tags') {
if ($config['allow_alt_url']) $s_navigation .= " {$config['speedbar_separator']} <span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"" . $config['http_home_url'] . "tags/\" itemprop=\"url\"><span itemprop=\"title\">" . $lang['tag_cloud'] . "</span></a></span> {$config['speedbar_separator']} " . $tag;
else $s_navigation .= " {$config['speedbar_separator']} <span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"?do=tags\" itemprop=\"url\"><span itemprop=\"title\">" . $lang['tag_cloud'] . "</span></a></span> {$config['speedbar_separator']} " . $tag;
} elseif ($nam_e) $s_navigation .= " {$config['speedbar_separator']} " . $nam_e;
if ($spiski_e) $s_navigation .= " {$config['speedbar_separator']} " . $spiski_e;
if ($coll_e) $s_navigation .= $coll_e;
if ($titl_e) $s_navigation .= " {$config['speedbar_separator']} " . $titl_e;
if ($_GET['xn']) $s_navigation .= " {$config['speedbar_separator']} {$xfsearchvalue}";
else {
if ( isset($_GET['cstart']) AND intval($_GET['cstart']) > 1 ){
$page_extra = " {$config['speedbar_separator']} ".$lang['news_site']." ".intval($_GET['cstart']);
} else $page_extra = '';
$s_navigation .= $page_extra;
}
$cstart = intval($_GET['cstart']);
$tpl->load_template ( 'speedbar.tpl' );
$tpl->set ( '{speedbar}', '<span id="dle-speedbar">' . stripslashes ( $s_navigation ) . '</span>' );
$tpl->compile ( 'speedbar' );
$tpl->clear ();
}