вопрос
Требуется в speedbar`e обернуть все разделители в span. Внёс правки в engine/engine.php, но второй разделитель почему то выводится без span`a. Где ошибочка?:)
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 .= " <span class='spdrbr'>{$config['speedbar_separator']}</span> " . get_breadcrumbcategories ( intval($category_id), $config['speedbar_separator'] );
elseif ($do == 'tags') {
if ($config['allow_alt_url']) $s_navigation .= " <span class='spdrbr'>{$config['speedbar_separator']}</span> <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> <span class='spdrbr'>{$config['speedbar_separator']}</span> " . $tag;
else $s_navigation .= " <span class='spdrbr'>{$config['speedbar_separator']}</span> <span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"?do=tags\" itemprop=\"url\"><span itemprop=\"title\">" . $lang['tag_cloud'] . "</span></a></span> <span class='spdrbr'>{$config['speedbar_separator']}</span> " . $tag;
} elseif ($nam_e) $s_navigation .= " <span class='spdrbr'>{$config['speedbar_separator']}</span> " . $nam_e;
if ($titl_e) $s_navigation .= " <span class='spdrbr'>{$config['speedbar_separator']}</span> " . $titl_e;
else {
if ( isset($_GET['cstart']) AND intval($_GET['cstart']) > 1 ){
$page_extra = " <span class='spdrbr'>{$config['speedbar_separator']}</span> ".$lang['news_site']." ".intval($_GET['cstart']);
} else $page_extra = '';
$s_navigation .= $page_extra;
}
$tpl->load_template ( 'speedbar.tpl' );
$tpl->set ( '{speedbar}', '<span id="dle-speedbar">' . stripslashes ( $s_navigation ) . '</span>' );
$tpl->compile ( 'speedbar' );
$tpl->clear ();
}