friendica-github/view/templates/photo_albums.tpl

31 lines
924 B
Smarty
Raw Normal View History

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
*}}
2015-12-01 20:07:05 +00:00
<div id="sidebar-photos-albums" class="widget">
<h3>{{$title}}</h3>
2017-10-20 13:21:42 +00:00
<ul role="menubar" class="sidebar-photos-albums-ul">
2015-12-01 20:07:05 +00:00
<li role="menuitem" class="sidebar-photos-albums-li">
<a href="profile/{{$nick}}/photos" class="sidebar-photos-albums-element" title="{{$title}}">{{$recent}}</a>
2015-12-01 20:07:05 +00:00
</li>
{{if $albums}}
{{foreach $albums as $al}}
{{if $al.text}}
2015-12-01 20:07:05 +00:00
<li role="menuitem" class="sidebar-photos-albums-li">
<a href="photos/{{$nick}}/album/{{$al.bin2hex}}" class="sidebar-photos-albums-element">
2015-12-01 20:07:05 +00:00
<span class="badge pull-right">{{$al.total}}</span>{{$al.text}}
</a>
</li>
{{/if}}
{{/foreach}}
{{/if}}
</ul>
2015-12-01 20:07:05 +00:00
{{if $can_post}}
<div class="photos-upload-link"><a href="{{$upload.1}}">{{$upload.0}}</a></div>
2015-12-01 20:07:05 +00:00
{{/if}}
</div>