2024-08-24 18:23:27 +00:00
|
|
|
{{*
|
|
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*}}
|
2023-01-04 08:18:24 +00:00
|
|
|
{{* Template for single photo view *}}
|
2017-08-28 12:29:11 +00:00
|
|
|
|
|
|
|
{{* "live-photos" is needed for js autoupdate *}}
|
|
|
|
<div id="live-photos"></div>
|
|
|
|
|
2018-08-14 23:58:51 +00:00
|
|
|
<div id="photo-view-{{$id}}" class="generic-page-wrapper">
|
2018-08-18 21:47:04 +00:00
|
|
|
<div class="pull-left" id="photo-edit-link-wrap">
|
2018-12-14 03:28:12 +00:00
|
|
|
<a class="page-action faded-icon" id="photo-album-link" href="{{$album.0}}" title="{{$album.1}}" data-toggle="tooltip">
|
2018-08-18 21:47:04 +00:00
|
|
|
<i class="fa fa-folder-open"></i> {{$album.1}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right" id="photo-edit-link-wrap">
|
2019-05-01 23:36:14 +00: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 21:47:04 +00:00
|
|
|
<span class="icon-padding"> </span>
|
2018-12-14 03:28:12 +00:00
|
|
|
<a id="photo-edit-link" href="{{$tools.edit.0}}" title="{{$tools.edit.1}}" data-toggle="tooltip">
|
2018-08-18 21:47:04 +00:00
|
|
|
<i class="page-action faded-icon fa fa-pencil"></i>
|
|
|
|
</a>
|
2019-05-01 23:36:14 +00: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 21:47:04 +00:00
|
|
|
<span class="icon-padding"> </span>
|
2018-12-14 03:28:12 +00:00
|
|
|
<a id="photo-toprofile-link" href="{{$tools.profile.0}}" title="{{$tools.profile.1}}" data-toggle="tooltip">
|
2018-08-18 21:47:04 +00:00
|
|
|
<i class="page-action faded-icon fa fa-user"></i>
|
|
|
|
</a>
|
2019-05-01 23:36:14 +00:00
|
|
|
{{/if}}
|
|
|
|
{{if $tools.lock}}
|
2018-08-18 21:47:04 +00:00
|
|
|
<span class="icon-padding"> </span>
|
2020-07-26 22:35:02 +00:00
|
|
|
<a id="photo-lock-link" onclick="lockview(event, 'photo', {{$id}});" title="{{$tools.lock}}" data-toggle="tooltip">
|
2018-08-18 21:47:04 +00:00
|
|
|
<i class="page-action faded-icon fa fa-lock"></i>
|
|
|
|
</a>
|
2019-05-01 23:36:14 +00:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2017-08-28 12:29:11 +00:00
|
|
|
</div>
|
2018-08-18 21:47:04 +00:00
|
|
|
<div class="clear"></div>
|
2017-08-28 12:29:11 +00:00
|
|
|
|
|
|
|
<div id="photo-view-wrapper">
|
|
|
|
<div id="photo-photo">
|
|
|
|
{{* The photo *}}
|
|
|
|
<div class="photo-container">
|
2018-12-14 03:28:12 +00:00
|
|
|
<a href="{{$photo.href}}" title="{{$photo.title}}"><img src="{{$photo.src}}" alt="{{$photo.filename}}"/></a>
|
2017-08-28 12:29:11 +00: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 *}}
|
2021-11-06 20:25:21 +00:00
|
|
|
<div id="photo-caption">{{$desc}}</div>
|
2017-08-28 12:29:11 +00:00
|
|
|
|
|
|
|
{{* Tags and mentions *}}
|
|
|
|
{{if $tags}}
|
2018-10-23 09:40:20 +00:00
|
|
|
<div id="photo-tags">{{$tags.title}}
|
2018-10-23 11:32:32 +00:00
|
|
|
{{foreach $tags.tags as $t}}
|
|
|
|
<span class="category label btn-success sm">
|
2019-07-21 10:43:05 +00:00
|
|
|
<span class="p-category">{{$t.name nofilter}}</span>
|
2018-10-23 17:29:59 +00:00
|
|
|
{{if $t.removeurl}} <a href="{{$t.removeurl}}">(X)</a> {{/if}}
|
2018-10-23 11:32:32 +00:00
|
|
|
</span>
|
|
|
|
{{/foreach}}
|
2018-10-23 09:40:20 +00:00
|
|
|
</div>
|
2017-08-28 12:29:11 +00:00
|
|
|
{{/if}}
|
|
|
|
|
2018-10-23 09:40:20 +00:00
|
|
|
{{if $tags.removeanyurl}}
|
2017-08-28 12:29:11 +00:00
|
|
|
<div id="tag-remove">
|
2018-10-23 09:40:20 +00:00
|
|
|
<a href="{{$tags.removeanyurl}}">{{$tags.removetitle}}</a>
|
2017-08-28 12:29:11 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{* The part for editing the photo - only available for the edit subpage *}}
|
2018-12-23 15:51:18 +00:00
|
|
|
{{if $edit}}{{$edit nofilter}}{{/if}}
|
2017-08-28 12:29:11 +00:00
|
|
|
|
|
|
|
{{if $likebuttons}}
|
|
|
|
<div id="photo-like-div">
|
2018-12-23 15:51:18 +00:00
|
|
|
{{$likebuttons nofilter}}
|
|
|
|
{{$like nofilter}}
|
|
|
|
{{$dislike nofilter}}
|
2017-08-28 12:29:11 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
|
2019-05-01 23:36:14 +00:00
|
|
|
{{if !$edit}}
|
2017-08-28 12:29:11 +00:00
|
|
|
{{* Insert the comments *}}
|
|
|
|
<div id="photo-comment-wrapper-{{$id}}" class="photo-comment-wrapper">
|
2018-12-23 15:51:18 +00:00
|
|
|
{{$comments nofilter}}
|
2017-08-28 12:29:11 +00:00
|
|
|
</div>
|
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$paginate nofilter}}
|
2019-05-01 23:36:14 +00:00
|
|
|
{{/if}}
|
2017-08-28 12:29:11 +00:00
|
|
|
</div>
|