]> git.mxchange.org Git - friendica.git/commitdiff
photos - include paginate into the templates - provide a photo_album.tpl for frio
authorrabuzarus <>
Thu, 4 Aug 2016 19:53:22 +0000 (21:53 +0200)
committerrabuzarus <>
Thu, 4 Aug 2016 19:53:22 +0000 (21:53 +0200)
mod/photos.php
view/templates/photo_album.tpl
view/templates/photos_recent.tpl
view/theme/frio/css/style.css
view/theme/frio/templates/photo_album.tpl [new file with mode: 0644]
view/theme/frio/templates/photos_recent.tpl

index ec71cc09d83845a38b53e7904e0602b6fc8665d3..a191dcf0712562cd5222233024f8b20d9d2be7dc 100644 (file)
@@ -1307,11 +1307,10 @@ function photos_content(&$a) {
                                '$can_post' => $can_post,
                                '$upload' => array(t('Upload New Photos'), 'photos/' . $a->data['user']['nickname'] . '/upload/' . bin2hex($album)),
                                '$order' => $order,
-                               '$edit' => $edit
+                               '$edit' => $edit,
+                               '$paginate' => paginate($a),
                        ));
 
-               $o .= paginate($a);
-
                return $o;
 
        }
@@ -1888,10 +1887,9 @@ function photos_content(&$a) {
                '$can_post' => $can_post,
                '$upload' => array(t('Upload New Photos'), 'photos/'.$a->data['user']['nickname'].'/upload'),
                '$photos' => $photos,
+               '$paginate' => paginate($a),
        ));
 
-
-       $o .= paginate($a);
        return $o;
 }
 
index 770eaf14cf79b325a55a70585ada4186faaf6768..5416066cf084040de2c83e2e8d84f9d310449d67 100644 (file)
@@ -17,3 +17,5 @@
 </div>
 <div class="photo-album-image-wrapper-end"></div>
 {{/foreach}}
+
+{{$paginate}}
index 614e76e24543266783bf1081a5c176f0dfa7de0c..19456187bc8704acc40472f7949542a4c75b1d1f 100644 (file)
@@ -10,3 +10,5 @@
 {{/foreach}}
 </div>
 <div class="photos-end"></div>
+
+{{$paginate}}
index 773a2f305c255a86af6f870cfd0202969173445f..fbe002b17b2aadbeef23f4e81770950e83425383 100644 (file)
@@ -2020,6 +2020,13 @@ ul li:hover .contact-wrapper a.contact-action-link:hover {
 #prvmail-end {
     clear:both;
 }
+/* photos */
+.photo-album-actions {
+    margin-bottom: 10px;
+}
+.photo-album-actions .photos-order-link {
+    float: right;
+}
 /* poke */
 #poke-desc {
     margin: 5px 0 30px;
diff --git a/view/theme/frio/templates/photo_album.tpl b/view/theme/frio/templates/photo_album.tpl
new file mode 100644 (file)
index 0000000..1afe4c8
--- /dev/null
@@ -0,0 +1,28 @@
+
+<div class="generic-page-wrapper">
+
+       <h3 id="photo-album-title">{{$album}}</h3>
+
+       <div class="photo-album-actions">
+       {{if $can_post}}
+               <a class="photos-upload-link" href="{{$upload.1}}">{{$upload.0}}</a>
+               {{/if}}
+               {{if $can_post && $edit}}<span role="presentation" class="separator">&nbsp;•&nbsp;</span>{{/if}}
+               {{if $edit}}
+               <a id="album-edit-link" href="{{$edit.1}}" title="{{$edit.0}}">{{$edit.0}}</a>
+               {{/if}}
+               <a class="photos-order-link" href="{{$order.1}}" title="{{$order.0}}">{{$order.0}}</a>
+       </div>
+       <div class="clear"></div>
+
+       <div class="photo-album-wrapper" id="photo-album-contents">
+       {{foreach $photos as $photo}}
+               {{include file="photo_top.tpl"}}
+       {{/foreach}}
+
+       <div class="photo-album-end"></div>
+
+       {{$paginate}}
+</div>
+
+<script>$(document).ready(function() { loadingPage = false; justifyPhotos('photo-album-contents-{{$album_id}}'); });</script>
index c8769c9ef50660b3739f380795cce8efb786a48f..683ef544a3b73a410996a007002984fa359d6487 100644 (file)
@@ -1,14 +1,20 @@
 
-<h3>{{$title}}</h3>
-{{if $can_post}}
-<a id="photo-top-upload-link" href="{{$upload.1}}">{{$upload.0}}</a>
-{{/if}}
-
-<div id="photo-album-contents" class="photos">
-{{foreach $photos as $photo}}
-       {{include file="photo_top.tpl"}}
-{{/foreach}}
+<div class="generic-page-wrapper">
+
+       <h3>{{$title}}</h3>
+
+       {{if $can_post}}
+       <a id="photo-top-upload-link" href="{{$upload.1}}">{{$upload.0}}</a>
+       {{/if}}
+
+       <div id="photo-album-contents" class="photos">
+       {{foreach $photos as $photo}}
+               {{include file="photo_top.tpl"}}
+       {{/foreach}}
+       </div>
+       <div class="photos-end"></div>
+
+       {{$paginate}}
 </div>
-<div class="photos-end"></div>
 
 <script>$(document).ready(function() { loadingPage = false; justifyPhotos(); });</script>