aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/picture_nav_buttons.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-01-18 21:12:42 +0000
committerrvelices <rv-github@modusoptimus.com>2011-01-18 21:12:42 +0000
commit2eab6069700787e0e7746bde544352bc21f1cf4a (patch)
treeed52a9206edcb930b4333d574f7c4dbb20637ab8 /themes/default/template/picture_nav_buttons.tpl
parent90911d747fd2cc706bfd6ec44a1c5aa4c0455eae (diff)
- picture page compacts the output html using smarty strip
- decrease the default number of tags showable in the menubar git-svn-id: http://piwigo.org/svn/trunk@8757 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/template/picture_nav_buttons.tpl')
-rw-r--r--themes/default/template/picture_nav_buttons.tpl51
1 files changed, 24 insertions, 27 deletions
diff --git a/themes/default/template/picture_nav_buttons.tpl b/themes/default/template/picture_nav_buttons.tpl
index 1a0e2c315..a3b9547aa 100644
--- a/themes/default/template/picture_nav_buttons.tpl
+++ b/themes/default/template/picture_nav_buttons.tpl
@@ -30,7 +30,7 @@
<span class="pwg-icon pwg-icon-repeat-stop">&nbsp;</span><span class="pwg-button-text">{'Not repeat the slideshow'|@translate}</span>
</a>
{/if}
-{if isset($first)}
+{strip}{if isset($first)}
<a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button">
<span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
</a>
@@ -38,8 +38,8 @@
<span class="pwg-state-disabled pwg-button">
<span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
</span>
-{/if}
-{if isset($previous)}
+{/if}{/strip}
+{strip}{if isset($previous)}
<a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button">
<span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
</a>
@@ -47,7 +47,7 @@
<span class="pwg-state-disabled pwg-button">
<span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
</span>
-{/if}
+{/if}{/strip}
{if isset($slideshow.U_START_PLAY)}
<a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button">
<span class="pwg-icon pwg-icon-play">&nbsp;</span><span class="pwg-button-text">{'Play of slideshow'|@translate}</span>
@@ -58,12 +58,12 @@
<span class="pwg-icon pwg-icon-pause">&nbsp;</span><span class="pwg-button-text">{'Pause of slideshow'|@translate}</span>
</a>
{/if}
-{if isset($U_UP) and !isset($slideshow)}
+{strip}{if isset($U_UP) and !isset($slideshow)}
<a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button">
<span class="pwg-icon pwg-icon-arrow-n">&nbsp;</span><span class="pwg-button-text">{'Thumbnails'|@translate}</span>
</a>
-{/if}
-{if isset($next)}
+{/if}{/strip}
+{strip}{if isset($next)}
<a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
<span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
</a>
@@ -71,8 +71,8 @@
<span class="pwg-state-disabled pwg-button pwg-button-icon-right">
<span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
</span>
-{/if}
-{if isset($last)}
+{/if}{/strip}
+{strip}{if isset($last)}
<a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
<span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span>
</a>
@@ -80,45 +80,42 @@
<span class="pwg-state-disabled pwg-button pwg-button-icon-right">
<span class="pwg-icon pwg-icon-arrowstop-e">&nbsp;</span><span class="pwg-button-text">{'Last'|@translate}</span>
</span>
-{/if}
+{/if}{/strip}
{/if}
</div>
-
-{footer_script}{literal}
-document.onkeydown = function(e)
-{
+{strip}
+{footer_script}
+document.onkeydown = function(e){ldelim}
e=e||window.event;
if (e.altKey) return true;
- var target = e.target||e.srcElement;
- if (target && target.type) return true; //an input editable element
- var keyCode = e.keyCode||e.which;
- var docElem = document.documentElement;
- var url;
- switch(keyCode) {
-{/literal}
+ var target=e.target||e.srcElement;
+ if (target && target.type) return true;{* an input editable element *}
+ var keyCode=e.keyCode||e.which, docElem=document.documentElement, url;
+ switch(keyCode){ldelim}
{if isset($next)}
- case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break;
+ case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break;
{/if}
{if isset($previous)}
case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break;
{/if}
{if isset($first)}
- /*Home*/case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
+ {* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
{/if}
{if isset($last)}
- /*End*/case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
+ {* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
{/if}
{if isset($U_UP) and !isset($slideshow)}
- /*Up*/case 38: if (e.ctrlKey)url="{$U_UP}"; break;
+ {* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break;
{/if}
{if isset($slideshow.U_START_PLAY)}
- /*Pause*/case 32: url="{$slideshow.U_START_PLAY}"; break;
+ {* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break;
{/if}
{if isset($slideshow.U_STOP_PLAY)}
- /*Play*/case 32: url="{$slideshow.U_STOP_PLAY}"; break;
+ {* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break;
{/if}
}
if (url) {ldelim}window.location=url.replace("&amp;","&"); return false;}
return true;
}
{/footer_script}
+{/strip} \ No newline at end of file