2017-08-28 08:29:11 -04:00
|
|
|
{{* Template for singele photo view *}}
|
|
|
|
|
|
|
|
{{* "live-photos" is needed for js autoupdate *}}
|
|
|
|
<div id="live-photos"></div>
|
|
|
|
|
2018-08-14 19:58:51 -04:00
|
|
|
<div id="photo-view-{{$id}}" class="generic-page-wrapper">
|
2018-08-18 17:47:04 -04:00
|
|
|
<div class="pull-left" id="photo-edit-link-wrap">
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="page-action faded-icon" id="photo-album-link" href="{{$album.0}}" title="{{$album.1}}" data-toggle="tooltip">
|
2018-08-18 17:47:04 -04:00
|
|
|
<i class="fa fa-folder-open"></i> {{$album.1}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right" id="photo-edit-link-wrap">
|
2019-05-01 19:36:14 -04:00
|
|
|
{{if $tools}}
|
|
|
|
{{if $tools.view}}
|
|
|
|
<span class="icon-padding"> </span>
|
|
|
|
<a id="photo-edit-link" href="{{$tools.view.0}}" title="{{$tools.view.1}}" data-toggle="tooltip">
|
|
|
|
<i class="page-action faded-icon fa fa-image"></i>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
{{if $tools.edit}}
|
2018-08-18 17:47:04 -04:00
|
|
|
<span class="icon-padding"> </span>
|
2018-12-13 22:28:12 -05:00
|
|
|
<a id="photo-edit-link" href="{{$tools.edit.0}}" title="{{$tools.edit.1}}" data-toggle="tooltip">
|
2018-08-18 17:47:04 -04:00
|
|
|
<i class="page-action faded-icon fa fa-pencil"></i>
|
|
|
|
</a>
|
2019-05-01 19:36:14 -04:00
|
|
|
{{/if}}
|
|
|
|
{{if $tools.delete}}
|
|
|
|
<span class="icon-padding"> </span>
|
|
|
|
<a id="photo-edit-link" href="{{$tools.delete.0}}" title="{{$tools.delete.1}}" data-toggle="tooltip">
|
|
|
|
<i class="page-action faded-icon fa fa-trash"></i>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
{{if $tools.profile}}
|
2018-08-18 17:47:04 -04:00
|
|
|
<span class="icon-padding"> </span>
|
2018-12-13 22:28:12 -05:00
|
|
|
<a id="photo-toprofile-link" href="{{$tools.profile.0}}" title="{{$tools.profile.1}}" data-toggle="tooltip">
|
2018-08-18 17:47:04 -04:00
|
|
|
<i class="page-action faded-icon fa fa-user"></i>
|
|
|
|
</a>
|
2019-05-01 19:36:14 -04:00
|
|
|
{{/if}}
|
|
|
|
{{if $tools.lock}}
|
2018-08-18 17:47:04 -04:00
|
|
|
<span class="icon-padding"> </span>
|
2019-05-01 19:36:14 -04:00
|
|
|
<a id="photo-lock-link" onclick="lockview(event,'photo/{{$id}}');" title="{{$tools.lock}}" data-toggle="tooltip">
|
2018-08-18 17:47:04 -04:00
|
|
|
<i class="page-action faded-icon fa fa-lock"></i>
|
|
|
|
</a>
|
2019-05-01 19:36:14 -04:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2017-08-28 08:29:11 -04:00
|
|
|
</div>
|
2018-08-18 17:47:04 -04:00
|
|
|
<div class="clear"></div>
|
2017-08-28 08:29:11 -04:00
|
|
|
|
|
|
|
<div id="photo-view-wrapper">
|
|
|
|
<div id="photo-photo">
|
|
|
|
{{* The photo *}}
|
|
|
|
<div class="photo-container">
|
2018-12-13 22:28:12 -05:00
|
|
|
<a href="{{$photo.href}}" title="{{$photo.title}}"><img src="{{$photo.src}}" alt="{{$photo.filename}}"/></a>
|
2017-08-28 08:29:11 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* Overlay buttons for previous and next photo *}}
|
|
|
|
{{if $prevlink}}
|
|
|
|
<a class="photo-prev-link" href="{{$prevlink.0}}"><i class="fa fa-angle-left" aria-hidden="true"></i></a>
|
|
|
|
{{/if}}
|
|
|
|
{{if $nextlink}}
|
|
|
|
<a class="photo-next-link" href="{{$nextlink.0}}"><i class="fa fa-angle-right" aria-hidden="true"></i></a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="photo-photo-end"></div>
|
|
|
|
{{* The photo description *}}
|
2018-12-13 22:35:51 -05:00
|
|
|
<div id="photo-caption">{{$desc nofilter}}</div>
|
2017-08-28 08:29:11 -04:00
|
|
|
|
|
|
|
{{* Tags and mentions *}}
|
|
|
|
{{if $tags}}
|
2018-10-23 05:40:20 -04:00
|
|
|
<div id="photo-tags">{{$tags.title}}
|
2018-10-23 07:32:32 -04:00
|
|
|
{{foreach $tags.tags as $t}}
|
|
|
|
<span class="category label btn-success sm">
|
2019-07-21 06:43:05 -04:00
|
|
|
<span class="p-category">{{$t.name nofilter}}</span>
|
2018-10-23 13:29:59 -04:00
|
|
|
{{if $t.removeurl}} <a href="{{$t.removeurl}}">(X)</a> {{/if}}
|
2018-10-23 07:32:32 -04:00
|
|
|
</span>
|
|
|
|
{{/foreach}}
|
2018-10-23 05:40:20 -04:00
|
|
|
</div>
|
2017-08-28 08:29:11 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2018-10-23 05:40:20 -04:00
|
|
|
{{if $tags.removeanyurl}}
|
2017-08-28 08:29:11 -04:00
|
|
|
<div id="tag-remove">
|
2018-10-23 05:40:20 -04:00
|
|
|
<a href="{{$tags.removeanyurl}}">{{$tags.removetitle}}</a>
|
2017-08-28 08:29:11 -04:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{* The part for editing the photo - only available for the edit subpage *}}
|
2018-12-23 10:51:18 -05:00
|
|
|
{{if $edit}}{{$edit nofilter}}{{/if}}
|
2017-08-28 08:29:11 -04:00
|
|
|
|
|
|
|
{{if $likebuttons}}
|
|
|
|
<div id="photo-like-div">
|
2018-12-23 10:51:18 -05:00
|
|
|
{{$likebuttons nofilter}}
|
|
|
|
{{$like nofilter}}
|
|
|
|
{{$dislike nofilter}}
|
2017-08-28 08:29:11 -04:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
|
2019-05-01 19:36:14 -04:00
|
|
|
{{if !$edit}}
|
2017-08-28 08:29:11 -04:00
|
|
|
{{* Insert the comments *}}
|
|
|
|
<div id="photo-comment-wrapper-{{$id}}" class="photo-comment-wrapper">
|
2018-12-23 10:51:18 -05:00
|
|
|
{{$comments nofilter}}
|
2017-08-28 08:29:11 -04:00
|
|
|
</div>
|
|
|
|
|
2018-12-13 22:35:51 -05:00
|
|
|
{{$paginate nofilter}}
|
2019-05-01 19:36:14 -04:00
|
|
|
{{/if}}
|
2017-08-28 08:29:11 -04:00
|
|
|
</div>
|