Add Directory Breadcrumbs
This commit is contained in:
parent
7824793afe
commit
4da80cbc22
2 changed files with 4 additions and 4 deletions
|
@ -117,9 +117,9 @@ if (!empty($curfiles)| !empty($dirs)) {
|
||||||
$data['images'][] = $tmp;
|
$data['images'][] = $tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($dirs)) {
|
if (!empty($d)) {
|
||||||
$tmppath = '';
|
$tmppath = '';
|
||||||
foreach($dirs as $tmpdir) {
|
foreach($d as $tmpdir) {
|
||||||
$tmppath=$tmppath.DIRECTORY_SEPARATOR.$tmpdir;
|
$tmppath=$tmppath.DIRECTORY_SEPARATOR.$tmpdir;
|
||||||
$data['crumbs'][$tmpdir] = $tmppath;
|
$data['crumbs'][$tmpdir] = $tmppath;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<a href="{{ $startpage }}">{{ $galleryname }}</a>
|
<a href="{{ $startpage }}">{{ $galleryname }}</a>
|
||||||
{% if (!empty($crumbs)): %}
|
{% if (!empty($crumbs)): %}
|
||||||
{% foreach ($crumbs as $name => $path): %}
|
{% foreach($crumbs as $name => $path): %}
|
||||||
<p> / </p><a href="index.php?d={{ $path }}&s={{ $slice }}&p=1">{{ $name }}</a>
|
<p> / </p><a href="index.php?d={{ $path }}&s={{ $slice }}&p=1">{{ $name }}</a>
|
||||||
{% endforeach %}
|
{% endforeach %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<form action="index.php" method="get">
|
<form action="index.php" method="get">
|
||||||
<input type="text"placeholder="Suche.." name="f" />
|
<input type="text" placeholder="Suche.." name="f" />
|
||||||
<button type="submit"><i class="fa fa-search"></i></button>
|
<button type="submit"><i class="fa fa-search"></i></button>
|
||||||
<input type="hidden" name="d" value="{{ $dir }}">
|
<input type="hidden" name="d" value="{{ $dir }}">
|
||||||
<input type="hidden" name="s" value="{{ $slice }}">
|
<input type="hidden" name="s" value="{{ $slice }}">
|
||||||
|
|
Loading…
Reference in a new issue