From 2b8ea75b1d7adfbabe0f0a7303f7d0b272da3cd3 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sun, 16 Jun 2013 17:15:24 +0000 Subject: feature:2785 Improve template method to sort actions buttons + add default rank = 50 git-svn-id: http://piwigo.org/svn/trunk@23263 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/index.tpl | 1 + themes/default/template/picture.tpl | 1 + 2 files changed, 2 insertions(+) (limited to 'themes/default/template') diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index 3ed52498c..71e8d8ba4 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -111,6 +111,7 @@ jQuery("#derivativeSwitchBox").on("mouseleave", function() {  {'Calendar'|@translate} {/strip} {/if} +{foreach from=$PLUGIN_INDEX_BUTTONS item=button}
  • {$button}
  • {/foreach} {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index eacb81beb..d86434c88 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -76,6 +76,7 @@ jQuery("#derivativeSwitchBox").on("mouseleave click", function() { {'Download'|@translate} {/if}{/strip} +{foreach from=$PLUGIN_PICTURE_BUTTONS item=button}{$button}{/foreach} {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} {strip}{if isset($favorite)} -- cgit v1.2.3