Changeset 2218 for trunk/template


Ignore:
Timestamp:
Feb 27, 2008, 9:25:18 PM (16 years ago)
Author:
rub
Message:

Resolved issue 0000807: New slideshow features

Location:
trunk/template/yoga
Files:
10 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/index.tpl

    r2135 r2218  
    2727      <li><a href="{search_rules.URL}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{lang:Search rules}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/search_rules.png" class="button" alt="(?)"></a></li>
    2828      <!-- END search_rules -->
     29
     30      <!-- BEGIN slideshow -->
     31      <li><a href="{slideshow.URL}" title="{lang:slideshow}"><img src="{pwg_root}{themeconf:icon_dir}/slideshow.png" class="button" alt="{lang:slideshow}"/></a></li>
     32      <!-- END slideshow -->
    2933
    3034      <!-- BEGIN mode_normal -->
  • trunk/template/yoga/picture.tpl

    r2211 r2218  
    3131
    3232<div id="imageToolBar">
    33 
    34 <div class="randomButtons">
    35   <a href="{U_SLIDESHOW}" title="{lang:slideshow}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/slideshow.png" class="button" alt="{lang:slideshow}"></a>
    36   <a href="{U_METADATA}" title="{lang:picture_show_metadata}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/metadata.png" class="button" alt="{lang:picture_show_metadata}"></a>
    37 <!-- BEGIN download -->
    38   <a href="{download.U_DOWNLOAD}" title="{lang:download_hint}"><img src="{pwg_root}{themeconf:icon_dir}/save.png" class="button" alt="{lang:download}"></a>
    39 <!-- END download -->
    40   {PLUGIN_PICTURE_ACTIONS}
    41 <!-- BEGIN favorite -->
    42   <a href="{favorite.U_FAVORITE}" title="{favorite.FAVORITE_HINT}"><img src="{favorite.FAVORITE_IMG}" class="button" alt="{favorite.FAVORITE_ALT}"></a>
    43 <!-- END favorite -->
    44 <!-- BEGIN representative -->
    45   <a href="{representative.URL}" title="{lang:set as category representative}"><img src="{pwg_root}{themeconf:icon_dir}/representative.png" class="button" alt="{lang:representative}"></a>
    46 <!-- END representative -->
    47 <!-- BEGIN admin -->
    48   <a href="{U_ADMIN}" title="{lang:link_info_image}"><img src="{pwg_root}{themeconf:icon_dir}/preferences.png" class="button" alt="{lang:link_info_image}"></a>
    49 <!-- END admin -->
    50 <!-- BEGIN caddie -->
    51   <a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{pwg_root}{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"></a>
    52 <!-- END caddie -->
    53 </div>
    54 
    55 <div class="navButtons">
    56 <!-- BEGIN last -->
    57   <a class="navButton prev" href="{last.U_IMG}" title="{lang:last_page} : {last.TITLE_IMG}" rel="last"><img src="{pwg_root}{themeconf:icon_dir}/last.png" class="button" alt="{lang:last_page}"></a>
    58 <!-- END last -->
    59 <!-- BEGIN last_unactive -->
    60   <a class="navButton prev"><img src="{pwg_root}{themeconf:icon_dir}/last_unactive.png" class="button" alt=""></a>
    61 <!-- END last_unactive -->
    62 <!-- BEGIN next -->
    63   <a class="navButton next" href="{next.U_IMG}" title="{lang:next_page} : {next.TITLE_IMG}" rel="next"><img src="{pwg_root}{themeconf:icon_dir}/right.png" class="button" alt="{lang:next_page}"></a>
    64 <!-- END next -->
    65 <!-- BEGIN next_unactive -->
    66   <a class="navButton next"><img src="{pwg_root}{themeconf:icon_dir}/right_unactive.png" class="button" alt=""></a>
    67 <!-- END next_unactive -->
    68   <a class="navButton up" href="{U_UP}" title="{lang:thumbnails}" rel="up"><img src="{pwg_root}{themeconf:icon_dir}/up.png" class="button" alt="{lang:thumbnails}"></a>
    69 <!-- BEGIN previous -->
    70   <a class="navButton prev" href="{previous.U_IMG}" title="{lang:previous_page} : {previous.TITLE_IMG}" rel="prev"><img src="{pwg_root}{themeconf:icon_dir}/left.png" class="button" alt="{lang:previous_page}"></a>
    71 <!-- END previous -->
    72 <!-- BEGIN previous_unactive -->
    73   <a class="navButton prev"><img src="{pwg_root}{themeconf:icon_dir}/left_unactive.png" class="button" alt=""></a>
    74 <!-- END previous_unactive -->
    75 <!-- BEGIN first -->
    76   <a class="navButton prev" href="{first.U_IMG}" title="{lang:first_page} : {first.TITLE_IMG}" rel="first"><img src="{pwg_root}{themeconf:icon_dir}/first.png" class="button" alt="{lang:first_page}"></a>
    77 <!-- END first -->
    78 <!-- BEGIN first_unactive -->
    79   <a class="navButton prev"><img src="{pwg_root}{themeconf:icon_dir}/first_unactive.png" class="button" alt=""></a>
    80 <!-- END first_unactive -->
    81 </div>
     33  <div class="randomButtons">
     34    <!-- BEGIN start_slideshow -->
     35      <a href="{start_slideshow.U_SLIDESHOW}" title="{lang:slideshow}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/slideshow.png" class="button" alt="{lang:slideshow}"></a>
     36    <!-- END start_slideshow -->
     37    <!-- BEGIN stop_slideshow -->
     38      <a href="{stop_slideshow.U_SLIDESHOW}" title="{lang:slideshow_stop}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/stop_slideshow.png" class="button" alt="{lang:slideshow_stop}"></a>
     39    <!-- END stop_slideshow -->
     40      <a href="{U_METADATA}" title="{lang:picture_show_metadata}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/metadata.png" class="button" alt="{lang:picture_show_metadata}"></a>
     41    <!-- BEGIN download -->
     42      <a href="{download.U_DOWNLOAD}" title="{lang:download_hint}"><img src="{pwg_root}{themeconf:icon_dir}/save.png" class="button" alt="{lang:download}"></a>
     43    <!-- END download -->
     44      {PLUGIN_PICTURE_ACTIONS}
     45    <!-- BEGIN favorite -->
     46      <a href="{favorite.U_FAVORITE}" title="{favorite.FAVORITE_HINT}"><img src="{favorite.FAVORITE_IMG}" class="button" alt="{favorite.FAVORITE_ALT}"></a>
     47    <!-- END favorite -->
     48    <!-- BEGIN representative -->
     49      <a href="{representative.URL}" title="{lang:set as category representative}"><img src="{pwg_root}{themeconf:icon_dir}/representative.png" class="button" alt="{lang:representative}"></a>
     50    <!-- END representative -->
     51    <!-- BEGIN admin -->
     52      <a href="{U_ADMIN}" title="{lang:link_info_image}"><img src="{pwg_root}{themeconf:icon_dir}/preferences.png" class="button" alt="{lang:link_info_image}"></a>
     53    <!-- END admin -->
     54    <!-- BEGIN caddie -->
     55      <a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{pwg_root}{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"></a>
     56    <!-- END caddie -->
     57  </div>
     58  {NAV_BUTTONS}
     59  </div>
    8260
    8361</div> <!-- imageToolBar -->
     
    229207<!-- END comments -->
    230208
    231 <script type="text/javascript">
    232 function keyboardNavigation(e)
    233 {
    234         if(!e) var e=window.event;
    235         if (e.altKey) return true;
    236         var target = e.target || e.srcElement;
    237         if (target && target.type) return true; //an input editable element
    238         var keyCode=e.keyCode || e.which;
    239         var docElem = document.documentElement;
    240         switch(keyCode) {
    241 <!-- BEGIN next -->
    242                 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){window.location="{next.U_IMG}".replace( "&amp;", "&" ); return false; } break;
    243 <!-- END next -->
    244 <!-- BEGIN previous -->
    245                 case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ window.location="{previous.U_IMG}".replace("&amp;","&"); return false; } break;
    246 <!-- END previous -->
    247 <!-- BEGIN first -->
    248                 /*Home*/case 36: if (e.ctrlKey){window.location="{first.U_IMG}".replace("&amp;","&"); return false; } break;
    249 <!-- END first -->
    250 <!-- BEGIN last -->
    251                 /*End*/case 35: if (e.ctrlKey){window.location="{last.U_IMG}".replace("&amp;","&"); return false; } break;
    252 <!-- END last -->
    253                 /*Up*/case 38: if (e.ctrlKey){window.location="{U_UP}".replace("&amp;","&"); return false; } break;
    254         }
    255         return true;
    256 }
    257 document.onkeydown=keyboardNavigation;
    258 </script>
  • trunk/template/yoga/slideshow.tpl

    r1912 r2218  
    1111  <!-- END title -->
    1212</div>
     13
     14<div id="imageToolBar">
     15  {NAV_BUTTONS}
     16</div>
     17
    1318<div id="theImage">
    1419  {ELEMENT_CONTENT}
    15 <!-- BEGIN legend -->
    16 <p class="showlegend">{legend.COMMENT_IMG}</p>
    17 <!-- END legend -->
     20  <!-- BEGIN legend -->
     21  <p class="showlegend">{legend.COMMENT_IMG}</p>
     22  <!-- END legend -->
    1823</div>
Note: See TracChangeset for help on using the changeset viewer.