vsgallery/tpl/gallery.html

59 lines
2.1 KiB
HTML
Raw Normal View History

2022-01-08 16:22:16 +00:00
{% extends tpl/layout.html %}
{% block title %}Gallery{% endblock %}
{% block content %}
2022-01-10 20:27:57 +00:00
<div class="container">
<div class="page-header">
2022-01-11 19:06:10 +00:00
<div class="title">
<a href="{{ $startpage }}">{{ $galleryname }}</a>
{% if (!empty($crumbs)): %}
{% foreach ($crumbs as $name => $path): %}
<p> / </p><a href="index.php?d={{ $path }}&s={{ $slice }}&p=1">{{ $name }}</a>
{% endforeach %}
{% endif %}
</div>
2022-01-10 20:27:57 +00:00
<div class="search">
<form action="index.php" method="get">
<input type="text"placeholder="Suche.." name="f" />
<button type="submit"><i class="fa fa-search"></i></button>
<input type="hidden" name="d" value="{{ $dir }}">
<input type="hidden" name="s" value="{{ $slice }}">
</form>
</div>
2022-01-08 16:22:16 +00:00
</div>
2022-01-10 20:27:57 +00:00
<div class="content">
2022-01-11 17:08:26 +00:00
{% if(!empty($dirs)): %}
2022-01-11 15:25:49 +00:00
{% foreach($dirs as $d): %}
<div class="multi-image">
2022-01-11 15:46:00 +00:00
<a href="index.php?d={{ $dir }}/{{ $d }}&s={{ $slice }}&p=1">
2022-01-11 15:25:49 +00:00
<img src="./img/folder.png" alt="{{ $d }}"/>
</a>
2022-01-11 15:38:51 +00:00
<p class="dirname">{{ $d }}</p>
2022-01-11 15:25:49 +00:00
</div>
{% endforeach %}
2022-01-11 17:08:26 +00:00
{% endif %}
{% if(!empty($images)): %}
2022-01-10 20:27:57 +00:00
{% foreach($images as $image): %}
<div class="multi-image">
<a href="index.php?d={{ $dir }}&s=1&gs={{ $slice }}&p={{ $image['i'] }}{{ $filter }}">
<img src="{{ $image['t'] }}" alt="{{ $image['n'] }}"/>
</a>
</div>
{% endforeach %}
2022-01-11 17:08:26 +00:00
{% endif %}
2022-01-10 20:27:57 +00:00
</div>
<div class="page-footer">
2022-01-11 18:38:10 +00:00
{% if ($page > 1): %}
2022-01-08 16:22:16 +00:00
<a id="link-first" href="/index.php?d={{ $dir }}&p=1&s={{ $slice }}{{ $filter }}">1</a>
2022-01-10 17:18:33 +00:00
<a id="link-prev" href="/index.php?d={{ $dir }}&p={{ $prev_page }}&s={{ $slice }}{{ $filter }}"><i class="fa fa-caret-left"></i></a>
2022-01-11 18:38:10 +00:00
{% endif %}
2022-01-08 16:22:16 +00:00
<span class="info">{{ $page }}</span>
2022-01-11 18:38:10 +00:00
{% if ($page < $last_page): %}
2022-01-10 17:18:33 +00:00
<a id="link-next" href="/index.php?d={{ $dir }}&p={{ $next_page }}&s={{ $slice }}{{ $filter }}"><i class="fa fa-caret-right"></i></a>
2022-01-08 16:22:16 +00:00
<a id="link-last" href="/index.php?d={{ $dir }}&p={{ $last_page }}&s={{ $slice }}{{ $filter }}">{{ $last_page }}</a>
2022-01-11 18:38:10 +00:00
{% endif %}
2022-01-10 20:27:57 +00:00
</div>
2022-01-08 16:22:16 +00:00
</div>
{% endblock %}