2008-02-27 20:25:18 +00:00
<div class="navButtons">
2010-03-23 21:19:55 +00:00
2010-03-24 00:54:39 +00:00
{ if $DISPLAY_NAV_BUTTONS or isset ( $slideshow ) }
2008-02-29 01:25:13 +00:00
{ if isset ( $last ) }
2010-03-02 14:54:22 +00:00
<a class="navButton" href=" { $last.U_IMG } " title=" { 'Last' | @ translate } : { $last.TITLE } " rel="last"><img src=" { $ROOT_URL } { $themeconf.icon_dir } /last.png" class="button" alt=" { 'Last' | @ translate } "></a>
2008-02-29 01:25:13 +00:00
{ else }
2008-08-19 23:58:35 +00:00
<a class="navButton"><img src=" { $ROOT_URL } { $themeconf.icon_dir } /last_unactive.png" class="button" alt=""></a>
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $next ) }
2010-03-02 14:54:22 +00:00
<a class="navButton" href=" { $next.U_IMG } " title=" { 'Next' | @ translate } : { $next.TITLE } " rel="next"><img src=" { $ROOT_URL } { $themeconf.icon_dir } /right.png" class="button" alt=" { 'Next' | @ translate } "></a>
2008-02-29 01:25:13 +00:00
{ else }
2008-08-19 23:58:35 +00:00
<a class="navButton"><img src=" { $ROOT_URL } { $themeconf.icon_dir } /right_unactive.png" class="button" alt=""></a>
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $slideshow.U_START_PLAY ) }
2010-03-02 14:54:22 +00:00
<a class="navButton" href=" { $slideshow.U_START_PLAY } " title=" { 'Play of slideshow' | @ translate } "><img src=" { $ROOT_URL } { $themeconf.icon_dir } /play.png" class="button" alt=" { 'Play of slideshow' | @ translate } "></a>
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $slideshow.U_STOP_PLAY ) }
2010-03-02 14:54:22 +00:00
<a class="navButton" href=" { $slideshow.U_STOP_PLAY } " title=" { 'Pause of slideshow' | @ translate } "><img src=" { $ROOT_URL } { $themeconf.icon_dir } /pause.png" class="button" alt=" { 'Pause of slideshow' | @ translate } "></a>
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $U_UP ) and ! isset ( $slideshow ) }
2010-03-02 14:54:22 +00:00
<a class="navButton" href=" { $U_UP } " title=" { 'Thumbnails' | @ translate } " rel="up"><img src=" { $ROOT_URL } { $themeconf.icon_dir } /up.png" class="button" alt=" { 'Thumbnails' | @ translate } "></a>
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $previous ) }
2010-03-02 14:54:22 +00:00
<a class="navButton" href=" { $previous.U_IMG } " title=" { 'Previous' | @ translate } : { $previous.TITLE } " rel="prev"><img src=" { $ROOT_URL } { $themeconf.icon_dir } /left.png" class="button" alt=" { 'Previous' | @ translate } "></a>
2008-02-29 01:25:13 +00:00
{ else }
2008-08-19 23:58:35 +00:00
<a class="navButton"><img src=" { $ROOT_URL } { $themeconf.icon_dir } /left_unactive.png" class="button" alt=""></a>
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $first ) }
2010-03-02 14:54:22 +00:00
<a class="navButton" href=" { $first.U_IMG } " title=" { 'First' | @ translate } : { $first.TITLE } " rel="first"><img src=" { $ROOT_URL } { $themeconf.icon_dir } /first.png" class="button" alt=" { 'First' | @ translate } "></a>
2008-02-29 01:25:13 +00:00
{ else }
2008-08-19 23:58:35 +00:00
<a class="navButton"><img src=" { $ROOT_URL } { $themeconf.icon_dir } /first_unactive.png" class="button" alt=""></a>
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $slideshow.U_START_REPEAT ) }
2010-03-12 00:26:58 +00:00
<a class="navButton" href=" { $slideshow.U_START_REPEAT } " title=" { 'Repeat the slideshow' | @ translate } "><img src=" { $ROOT_URL } { $themeconf.icon_dir } /start_repeat.png" class="button" alt=" { 'Repeat the slideshow' | @ translate } "></a>
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $slideshow.U_STOP_REPEAT ) }
2010-03-12 00:26:58 +00:00
<a class="navButton" href=" { $slideshow.U_STOP_REPEAT } " title=" { 'Not repeat the slideshow' | @ translate } "><img src=" { $ROOT_URL } { $themeconf.icon_dir } /stop_repeat.png" class="button" alt=" { 'Not repeat the slideshow' | @ translate } "></a>
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $slideshow ) }
2008-03-09 07:53:02 +00:00
{ if isset ( $slideshow.U_DEC_PERIOD ) }
2010-03-12 00:26:58 +00:00
<a class="navButton" href=" { $slideshow.U_DEC_PERIOD } " title=" { 'Accelerate diaporama speed' | @ translate } "><img src=" { $ROOT_URL } { $themeconf.icon_dir } /dec_period.png" class="button" alt=" { 'Accelerate diaporama speed' | @ translate } "></a>
2008-03-09 07:53:02 +00:00
{ else }
2008-08-19 23:58:35 +00:00
<a class="navButton"> <img src=" { $ROOT_URL } { $themeconf.icon_dir } /dec_period_unactive.png" class="button" alt=""></a>
2008-03-09 07:53:02 +00:00
{ /if }
2008-02-29 01:25:13 +00:00
2008-03-09 07:53:02 +00:00
{ if isset ( $slideshow.U_INC_PERIOD ) }
2010-03-12 00:26:58 +00:00
<a class="navButton" href=" { $slideshow.U_INC_PERIOD } " title=" { 'Reduce diaporama speed' | @ translate } "><img src=" { $ROOT_URL } { $themeconf.icon_dir } /inc_period.png" class="button" alt=" { 'Reduce diaporama speed' | @ translate } "></a>
2008-03-09 07:53:02 +00:00
{ else }
2008-08-19 23:58:35 +00:00
<a class="navButton"> <img src=" { $ROOT_URL } { $themeconf.icon_dir } /inc_period_unactive.png" class="button" alt=""></a>
2008-03-09 07:53:02 +00:00
{ /if }
2010-03-23 21:19:55 +00:00
{ /if }
2008-02-29 01:25:13 +00:00
{ /if }
2008-02-27 20:25:18 +00:00
</div>
2008-10-10 13:11:31 +00:00
<script type="text/javascript">// <![CDATA[
2008-02-29 01:25:13 +00:00
{ literal }
2008-02-27 20:25:18 +00:00
function keyboardNavigation(e)
{
2008-10-10 13:11:31 +00:00
if(!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;
switch(keyCode) {
2008-02-29 01:25:13 +00:00
{ /literal }
{ if isset ( $next ) }
2008-10-10 13:11:31 +00:00
case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ) { ldelim } window.location=" { $next.U_IMG } ".replace( "&", "&" ); return false; } break;
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $previous ) }
2008-10-10 13:11:31 +00:00
case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0) { ldelim } window.location=" { $previous.U_IMG | @ escape : jasvascript } ".replace("&","&"); return false; } break;
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $first ) }
2008-10-10 13:11:31 +00:00
/*Home*/case 36: if (e.ctrlKey) { ldelim } window.location=" { $first.U_IMG | @ escape : jasvascript } ".replace("&","&"); return false; } break;
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $last ) }
2008-10-10 13:11:31 +00:00
/*End*/case 35: if (e.ctrlKey) { ldelim } window.location=" { $last.U_IMG | @ escape : jasvascript } ".replace("&","&"); return false; } break;
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $U_UP ) and ! isset ( $slideshow ) }
2008-10-10 13:11:31 +00:00
/*Up*/case 38: if (e.ctrlKey) { ldelim } window.location=" { $U_UP | @ escape : jasvascript } ".replace("&","&"); return false; } break;
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $slideshow.U_START_PLAY ) }
2008-10-10 13:11:31 +00:00
/*Pause*/case 32: { ldelim } window.location=" { $slideshow.U_START_PLAY | @ escape : jasvascript } ".replace("&","&"); return false; } break;
2008-02-29 01:25:13 +00:00
{ /if }
{ if isset ( $slideshow.U_STOP_PLAY ) }
2008-10-10 13:11:31 +00:00
/*Play*/case 32: { ldelim } window.location=" { $slideshow.U_STOP_PLAY | @ escape : jasvascript } ".replace("&","&"); return false; } break;
2008-02-29 01:25:13 +00:00
{ /if }
2008-10-10 13:11:31 +00:00
}
return true;
2008-02-27 20:25:18 +00:00
}
document.onkeydown=keyboardNavigation;
2008-10-10 13:11:31 +00:00
// ]]></script>