aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-07-17 12:54:10 +0200
committerMario Vavti <mario@mariovavti.com>2016-07-17 12:54:10 +0200
commit2b674d4cd983d637ddc863f9b87b9d863542e250 (patch)
treeaa005189ce14eaae9d3e470775d155e1da0ef22f
parent5d0ddb3123f27fb1a2afef9fba62743ad8851736 (diff)
downloadvolse-hubzilla-2b674d4cd983d637ddc863f9b87b9d863542e250.tar.gz
volse-hubzilla-2b674d4cd983d637ddc863f9b87b9d863542e250.tar.bz2
volse-hubzilla-2b674d4cd983d637ddc863f9b87b9d863542e250.zip
hide fullscreen button in embedphotos modal album view
-rw-r--r--Zotlabs/Module/Embedphotos.php2
-rwxr-xr-xview/tpl/photo_album.tpl2
2 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Embedphotos.php b/Zotlabs/Module/Embedphotos.php
index 2cd420664..0dac873c5 100644
--- a/Zotlabs/Module/Embedphotos.php
+++ b/Zotlabs/Module/Embedphotos.php
@@ -159,7 +159,7 @@ function embedphotos_widget_album($args) {
'$upload' => array(t('Upload'), z_root() . '/photos/' . \App::$profile['channel_address'] . '/upload/' . bin2hex($album)),
'$order' => false,
'$upload_form' => $upload_form,
- '$usage' => $usage_message
+ '$no_fullscreen_btn' => true
));
return $o;
diff --git a/view/tpl/photo_album.tpl b/view/tpl/photo_album.tpl
index b391a00a1..f097646e4 100755
--- a/view/tpl/photo_album.tpl
+++ b/view/tpl/photo_album.tpl
@@ -12,8 +12,10 @@
<button class="btn btn-xs btn-success btn-xs" title="{{$usage}}" onclick="openClose('photo-upload-form'); closeMenu('photo-album-edit-wrapper');"><i class="fa fa-arrow-circle-o-up"></i>&nbsp;{{$upload.0}}</button>
{{/if}}
</div>
+ {{if !$no_fullscreen_btn}}
<button id="fullscreen-btn" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen();"><i class="fa fa-expand"></i></button>
<button id="inline-btn" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen(false);"><i class="fa fa-compress"></i></button>
+ {{/if}}
</div>
<h2>{{$album}}</h2>
<div class="clear"></div>