forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: Maxgallery on January 17, 2012, 09:53:14 pm

Title: Add a "Home" menu or button at the bottom of each page
Post by: Maxgallery on January 17, 2012, 09:53:14 pm
At the top of each page their is a text menu that you can click on to navigate something like

Home > your album > Christmas pictures

So you go to the page "Christmas pictures"  look at the pictures get to the bottom of the page and their is a "Jump to page" thing so you go to the next page while your at the bottom of the page, when you get to the last page their is no link to get you back to "your album" or to "Home" you have to scroll all the way back up to the top of the page to find this link. Home > your album > Christmas pictures

So how can the links like found at the top of each page also be shown at the bottom of each page so users dont have to waste their time scrolling back up to the top just to navigate?

Follow me I am not sure if I am using the right wording or terminology to describe what I mean.

I think the link at the bottom would make things more fluid.

This would be a simple 'add some code' thing or does something like this open a big can of worms and create problems?

Thanks in advance.
Title: Re: Add a "Home" menu or button at the bottom of each page
Post by: Αndré on January 18, 2012, 01:36:59 pm
Open index.php, find
Code: [Select]
                case 'breadcrumb':
                    // Added breadcrumb as a separate listable block from config
                    if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) {
                        theme_display_breadcrumb($breadcrumb, $cat_data);
                    }
                    break;
and replace with
Code: [Select]
                case 'breadcrumb':
                    // Added breadcrumb as a separate listable block from config
                    if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) {
                        if (!$theme_display_breadcrumb) {
                            ob_start();
                            theme_display_breadcrumb($breadcrumb, $cat_data);
                            $theme_display_breadcrumb = ob_get_clean();
                        }
                        echo $theme_display_breadcrumb;
                    }
                    break;


Then, open the Coppermine config, find "The content of the main page" and add
Code: [Select]
/breadcrumbright after
Code: [Select]
alblist