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_noimages = "No images"; // Empty folder text
$label_loading = "Loading..."; // Thumbnail loading text
$breadcrumb_separator = ">"; // Breadcrumb parts separator
//RSS SETTINGS
$description = "MiniGal Nano";

View File

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