Merge pull request #60 from bifek/fix10
make breadcrumb separator easily configurable
This commit is contained in:
commit
51bb66b4c9
2 changed files with 3 additions and 2 deletions
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue