# HG changeset patch # User Matti Hamalainen # Date 1431662010 -10800 # Node ID c85f630a4198102b452988924b5d7fe08d6c3989 # Parent 24b45acc59e41b1300479d6a5ea3b214797d7b12 Improve bread crumb navigation by making the current album a link as well. diff -r 24b45acc59e4 -r c85f630a4198 basic.css --- a/basic.css Wed May 13 07:34:43 2015 +0300 +++ b/basic.css Fri May 15 06:53:30 2015 +0300 @@ -179,11 +179,14 @@ margin: 0.5em; } -span.naviBreadCrumbItem { +.naviBreadCrumbItem { +} + +.naviBreadCrumbCurr { color: red; } -span.naviBreadCrumbSep:before { +.naviBreadCrumbSep:before { content: " → "; color: #0f0; font-weight: bold; diff -r 24b45acc59e4 -r c85f630a4198 mgallery.php --- a/mgallery.php Wed May 13 07:34:43 2015 +0300 +++ b/mgallery.php Fri May 15 06:53:30 2015 +0300 @@ -204,19 +204,18 @@ { $res = array(); if ($galData["caption"]) - $res[] = chentities($galData["caption"]); + $res[] = "".chentities($galData["caption"]).""; $tmp = $galData; while (isset($tmp["parent"])) { $pdata = $tmp["parent"]; - $res[] = "".chentities($pdata["caption"]).""; + $res[] = "".chentities($pdata["caption"]).""; $tmp = $tmp["parent"]; } if (count($res) > 1) { - $res = array_map(function ($a) { return "".$a.""; }, $res); echo "
". implode("", array_reverse($res)).