forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: SolidSnake2003 on June 16, 2014, 08:38:51 am
-
Is it possible to disable the starttable and end table functions for the breadcrumb? I have the style for the gallery set, but just don't want to the tablle around the breadcrumb.
link: http://www.haley-osment.net/gallery
-
here is some code Im using
function pageheader
// Breadcrumb hack - START
$CONFIG['main_page_layout'] = str_replace(array('/breadcrumb', 'breadcrumb/', 'breadcrumb'), '', $CONFIG['main_page_layout']);
global $breadcrumb;
ob_start();
theme_display_breadcrumb($breadcrumb);
$template_vars['{HEADER_BREADCRUMB}'] = ob_get_clean();
// Breadcrumb hack - END
function theme_breadcrumb
function theme_breadcrumb($breadcrumb_links, $BREADCRUMB_TEXTS, &$breadcrumb, &$BREADCRUMB_TEXT)
{
$breadcrumb = '';
$BREADCRUMB_TEXT = '';
global $CONFIG;
$breadcrumb_links[0] = '<a href="http://www.haley-osment.net/" target="_blank">The Haley Osment Network</a> > <a href="http://www.haley-osment.net/gallery/index.php">Photo Gallery</a>';
for ($i = 0; $i < count($breadcrumb_links)-1; $i++) {
$breadcrumb .= ' > ' . $breadcrumb_links[$i];
}
$breadcrumb .= ' > ' . $breadcrumb_links[$i];
foreach ($BREADCRUMB_TEXTS as $BREADCRUMB_TEXT_elt) {
$BREADCRUMB_TEXT .= ' > ' . $BREADCRUMB_TEXT_elt;
}
// We remove the first ' > '
$breadcrumb = substr_replace($breadcrumb,'', 0, 3);
$BREADCRUMB_TEXT = substr_replace($BREADCRUMB_TEXT,'', 0, 3);
}
-
Nevermind, copied code from the themes.inc.php file, and removed the table from the breadcrumb