Changeset 2270

Show
Ignore:
Timestamp:
03/09/08 08:53:02 (5 years ago)
Author:
rub
Message:

Resolved issue 0000807: New slideshow features

change icon actions

Location:
trunk
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • trunk/language/en_UK/common.lang.php

    r2268 r2270  
    364364$lang['start_repeat'] = 'Repeat the slideshow'; 
    365365$lang['stop_repeat'] = 'Not repeat the slideshow'; 
    366 $lang['inc_period'] = 'Increase waiting between pictures'; 
    367 $lang['dec_period'] = 'Decrease waiting between pictures'; 
     366$lang['inc_period'] = 'Reduce diaporama speed'; 
     367$lang['dec_period'] = 'Accelerate diaporama speed'; 
    368368$lang['Submit'] = 'Submit'; 
    369369$lang['Yes'] = 'Yes'; 
  • trunk/language/es_ES/common.lang.php

    r2268 r2270  
    364364/* TODO */ $lang['start_repeat'] = 'Repeat the slideshow'; 
    365365/* TODO */ $lang['stop_repeat'] = 'Not repeat the slideshow'; 
    366 /* TODO */ $lang['inc_period'] = 'Increase waiting between pictures'; 
    367 /* TODO */ $lang['dec_period'] = 'Decrease waiting between pictures'; 
     366/* TODO */ $lang['inc_period'] = 'Reduce diaporama speed'; 
     367/* TODO */ $lang['dec_period'] = 'Accelerate diaporama speed'; 
    368368$lang['Submit'] = 'Validar'; 
    369369$lang['Yes'] = 'Si'; 
  • trunk/language/fr_FR/common.lang.php

    r2268 r2270  
    364364$lang['start_repeat'] = 'Répeter le diaporama'; 
    365365$lang['stop_repeat'] = 'Ne pas répeter le diaporama'; 
    366 $lang['inc_period'] = 'Augmenter l\'attente entre les images'; 
    367 $lang['dec_period'] = 'Diminuer l\'attente entre les images'; 
     366$lang['inc_period'] = 'Ralentir la vitesse du diaporama'; 
     367$lang['dec_period'] = 'Accélerer la vitesse du diaporama'; 
    368368$lang['Submit'] = 'Valider'; 
    369369$lang['Yes'] = 'Oui'; 
  • trunk/language/nl_NL/common.lang.php

    r2268 r2270  
    364364/* TODO */ $lang['start_repeat'] = 'Repeat the slideshow'; 
    365365/* TODO */ $lang['stop_repeat'] = 'Not repeat the slideshow'; 
    366 /* TODO */ $lang['inc_period'] = 'Increase waiting between pictures'; 
    367 /* TODO */ $lang['dec_period'] = 'Decrease waiting between pictures'; 
     366/* TODO */ $lang['inc_period'] = 'Reduce diaporama speed'; 
     367/* TODO */ $lang['dec_period'] = 'Accelerate diaporama speed'; 
    368368$lang['Submit'] = 'Bevestig'; 
    369369$lang['Yes'] = 'Ja'; 
  • trunk/template/yoga/picture_nav_buttons.tpl

    r2227 r2270  
    33   
    44{if isset($last)} 
    5         <a class="navButton prev" href="{$last.U_IMG}" title="{'last_page'|@translate} : {$last.TITLE}" rel="last"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last.png" class="button" alt="{'last_page'|@translate}"></a> 
     5  <a class="navButton prev" href="{$last.U_IMG}" title="{'last_page'|@translate} : {$last.TITLE}" rel="last"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last.png" class="button" alt="{'last_page'|@translate}"></a> 
    66{else} 
    7         <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last_unactive.png" class="button" alt=""></a> 
     7  <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last_unactive.png" class="button" alt=""></a> 
    88{/if} 
    99   
    1010{if isset($next)} 
    11         <a class="navButton next" href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'next_page'|@translate}"></a> 
     11  <a class="navButton next" href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'next_page'|@translate}"></a> 
    1212{else} 
    13         <a class="navButton next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right_unactive.png" class="button" alt=""></a> 
     13  <a class="navButton next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right_unactive.png" class="button" alt=""></a> 
    1414{/if} 
    1515 
    1616{if isset($slideshow.U_START_PLAY)} 
    17         <a class="navButton play" href="{$slideshow.U_START_PLAY}" title="{'start_play'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/play.png" class="button" alt="{'start_play'|@translate}"></a> 
     17  <a class="navButton play" href="{$slideshow.U_START_PLAY}" title="{'start_play'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/play.png" class="button" alt="{'start_play'|@translate}"></a> 
    1818{/if} 
    1919 
    2020{if isset($slideshow.U_STOP_PLAY)} 
    21         <a class="navButton play" href="{$slideshow.U_STOP_PLAY}" title="{'stop_play'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/pause.png" class="button" alt="{'stop_play'|@translate}"></a> 
     21  <a class="navButton play" href="{$slideshow.U_STOP_PLAY}" title="{'stop_play'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/pause.png" class="button" alt="{'stop_play'|@translate}"></a> 
    2222{/if} 
    2323 
    2424{if isset($U_UP) and !isset($slideshow)} 
    25         <a class="navButton up" href="{$U_UP}" title="{'thumbnails'|@translate}" rel="up"><img src="{$ROOT_URL}{$themeconf.icon_dir}/up.png" class="button" alt="{'thumbnails'|@translate}"></a> 
     25  <a class="navButton up" href="{$U_UP}" title="{'thumbnails'|@translate}" rel="up"><img src="{$ROOT_URL}{$themeconf.icon_dir}/up.png" class="button" alt="{'thumbnails'|@translate}"></a> 
    2626{/if} 
    2727   
    2828{if isset($previous)} 
    29         <a class="navButton prev" href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'previous_page'|@translate}"></a> 
     29  <a class="navButton prev" href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'previous_page'|@translate}"></a> 
    3030{else} 
    31         <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left_unactive.png" class="button" alt=""></a> 
     31  <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left_unactive.png" class="button" alt=""></a> 
    3232{/if} 
    3333   
    3434{if isset($first)} 
    35         <a class="navButton prev" href="{$first.U_IMG}" title="{'first_page'|@translate} : {$first.TITLE}" rel="first"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first.png" class="button" alt="{'first_page'|@translate}"></a> 
     35  <a class="navButton prev" href="{$first.U_IMG}" title="{'first_page'|@translate} : {$first.TITLE}" rel="first"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first.png" class="button" alt="{'first_page'|@translate}"></a> 
    3636{else} 
    37         <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first_unactive.png" class="button" alt=""></a> 
     37  <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first_unactive.png" class="button" alt=""></a> 
    3838{/if} 
    3939 
    4040 
    4141{if isset($slideshow.U_START_REPEAT)} 
    42         <a class="navButton repeat" href="{$slideshow.U_START_REPEAT}" title="{'start_repeat'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_repeat.png" class="button" alt="{'start_repeat'|@translate}"></a> 
     42  <a class="navButton repeat" href="{$slideshow.U_START_REPEAT}" title="{'start_repeat'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_repeat.png" class="button" alt="{'start_repeat'|@translate}"></a> 
    4343{/if} 
    4444 
    4545{if isset($slideshow.U_STOP_REPEAT)} 
    46         <a class="navButton repeat" href="{$slideshow.U_STOP_REPEAT}" title="{'stop_repeat'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_repeat.png" class="button" alt="{'stop_repeat'|@translate}"></a> 
     46  <a class="navButton repeat" href="{$slideshow.U_STOP_REPEAT}" title="{'stop_repeat'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_repeat.png" class="button" alt="{'stop_repeat'|@translate}"></a> 
    4747{/if} 
    4848 
    4949{if isset($slideshow)} 
    50 {if isset($slideshow.U_INC_PERIOD)} 
    51         <a class="navButton inc_period" href="{$slideshow.U_INC_PERIOD}" title="{'inc_period'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period.png" class="button" alt="{'inc_period'|@translate}"></a> 
    52 {else} 
    53         <a class="navButton inc_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period_unactive.png" class="button" alt=""></a> 
    54 {/if} 
     50  {if isset($slideshow.U_DEC_PERIOD)} 
     51    <a class="navButton dec_period" href="{$slideshow.U_DEC_PERIOD}" title="{'dec_period'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period.png" class="button" alt="{'dec_period'|@translate}"></a> 
     52  {else} 
     53    <a class="navButton dec_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period_unactive.png" class="button" alt=""></a> 
     54  {/if} 
    5555 
    56 {if isset($slideshow.U_DEC_PERIOD)} 
    57         <a class="navButton dec_period" href="{$slideshow.U_DEC_PERIOD}" title="{'dec_period'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period.png" class="button" alt="{'dec_period'|@translate}"></a> 
    58 {else} 
    59         <a class="navButton dec_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period_unactive.png" class="button" alt=""></a> 
    60 {/if} 
     56  {if isset($slideshow.U_INC_PERIOD)} 
     57    <a class="navButton inc_period" href="{$slideshow.U_INC_PERIOD}" title="{'inc_period'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period.png" class="button" alt="{'inc_period'|@translate}"></a> 
     58  {else} 
     59    <a class="navButton inc_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period_unactive.png" class="button" alt=""></a> 
     60  {/if} 
    6161{/if} 
    6262 
     
    6767function keyboardNavigation(e) 
    6868{ 
    69         if(!e) var e=window.event; 
    70         if (e.altKey) return true; 
    71         var target = e.target || e.srcElement; 
    72         if (target && target.type) return true; //an input editable element 
    73         var keyCode=e.keyCode || e.which; 
    74         var docElem = document.documentElement; 
    75         switch(keyCode) { 
     69  if(!e) var e=window.event; 
     70  if (e.altKey) return true; 
     71  var target = e.target || e.srcElement; 
     72  if (target && target.type) return true; //an input editable element 
     73  var keyCode=e.keyCode || e.which; 
     74  var docElem = document.documentElement; 
     75  switch(keyCode) { 
    7676{/literal} 
    7777{if isset($next)} 
    78         case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&amp;", "&" ); return false; } break; 
     78  case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&amp;", "&" ); return false; } break; 
    7979{/if} 
    8080{if isset($previous)} 
    81         case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
     81  case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
    8282{/if} 
    8383{if isset($first)} 
    84         /*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
     84  /*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
    8585{/if} 
    8686{if isset($last)} 
    87         /*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
     87  /*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
    8888{/if} 
    8989{if isset($U_UP) and !isset($slideshow)} 
    90     /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
     90  /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
    9191{/if} 
    9292 
    9393{if isset($slideshow.U_START_PLAY)} 
    94     /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
     94  /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
    9595{/if} 
    9696{if isset($slideshow.U_STOP_PLAY)} 
    97     /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
     97  /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&amp;","&"); return false; } break; 
    9898{/if} 
    9999  }