From bc38cfd2799949f2454e408c909449027feb8828 Mon Sep 17 00:00:00 2001 From: Piotr KUCHARSKI Date: Sun, 23 Nov 2014 11:58:01 +0100 Subject: [PATCH] make breadcrumb separator easily configurable --- config.php | 1 + index.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index 4909b04..73197f1 100755 --- a/config.php +++ b/config.php @@ -35,6 +35,7 @@ $label_page = "Page"; // Text used for page navigation $label_all = "All"; // Text used for link to display all images in one page $label_noimages = "No images"; // Empty folder text $label_loading = "Loading..."; // Thumbnail loading text +$breadcrumb_separator = ">"; // Breadcrumb parts separator //RSS SETTINGS $description = "MiniGal Nano"; diff --git a/index.php b/index.php index f333e5a..25e0ec8 100644 --- a/index.php +++ b/index.php @@ -403,7 +403,7 @@ if (!$lazyload && sizeof($dirs) + sizeof($files) > $thumbs_pr_page) //----------------------- if ($requestedDir != "") { - $breadcrumb_navigation .= "" . $label_home . " > "; + $breadcrumb_navigation .= "" . $label_home . " $breadcrumb_separator "; $navitems = explode("/", $_REQUEST['dir']); for($i = 0; $i < sizeof($navitems); $i++) { @@ -416,7 +416,7 @@ if ($requestedDir != "") $breadcrumb_navigation .= $navitems[$x]; if ($x < $i) $breadcrumb_navigation .= "/"; } - $breadcrumb_navigation .= "'>" . $navitems[$i] . " > "; + $breadcrumb_navigation .= "'>" . $navitems[$i] . " $breadcrumb_separator "; } } } else $breadcrumb_navigation .= $label_home;