make breadcrumb separator easily configurable

This commit is contained in:
Piotr KUCHARSKI 2014-11-23 11:58:01 +01:00
parent 652eaac128
commit bc38cfd279
2 changed files with 3 additions and 2 deletions

View file

@ -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_all = "All"; // Text used for link to display all images in one page
$label_noimages = "No images"; // Empty folder text $label_noimages = "No images"; // Empty folder text
$label_loading = "Loading..."; // Thumbnail loading text $label_loading = "Loading..."; // Thumbnail loading text
$breadcrumb_separator = ">"; // Breadcrumb parts separator
//RSS SETTINGS //RSS SETTINGS
$description = "MiniGal Nano"; $description = "MiniGal Nano";

View file

@ -403,7 +403,7 @@ if (!$lazyload && sizeof($dirs) + sizeof($files) > $thumbs_pr_page)
//----------------------- //-----------------------
if ($requestedDir != "") if ($requestedDir != "")
{ {
$breadcrumb_navigation .= "<a href='?dir='>" . $label_home . "</a> > "; $breadcrumb_navigation .= "<a href='?dir='>" . $label_home . "</a> $breadcrumb_separator ";
$navitems = explode("/", $_REQUEST['dir']); $navitems = explode("/", $_REQUEST['dir']);
for($i = 0; $i < sizeof($navitems); $i++) for($i = 0; $i < sizeof($navitems); $i++)
{ {
@ -416,7 +416,7 @@ if ($requestedDir != "")
$breadcrumb_navigation .= $navitems[$x]; $breadcrumb_navigation .= $navitems[$x];
if ($x < $i) $breadcrumb_navigation .= "/"; if ($x < $i) $breadcrumb_navigation .= "/";
} }
$breadcrumb_navigation .= "'>" . $navitems[$i] . "</a> > "; $breadcrumb_navigation .= "'>" . $navitems[$i] . "</a> $breadcrumb_separator ";
} }
} }
} else $breadcrumb_navigation .= $label_home; } else $breadcrumb_navigation .= $label_home;