No Table for Breadcrumb No Table for Breadcrumb
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

No Table for Breadcrumb

Started by SolidSnake2003, June 16, 2014, 08:38:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SolidSnake2003

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

SolidSnake2003

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);
}

SolidSnake2003

Nevermind, copied code from the themes.inc.php file, and removed the table from the breadcrumb