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

Title: No Table for Breadcrumb
Post 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
Title: Re: No Table for Breadcrumb
Post by: SolidSnake2003 on June 16, 2014, 03:04:50 pm
here is some code Im using

function pageheader
Code: [Select]
    // 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
Code: [Select]
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);
}
Title: Re: No Table for Breadcrumb
Post by: SolidSnake2003 on June 17, 2014, 06:56:26 am
Nevermind, copied code from the themes.inc.php file, and removed the table from the breadcrumb