Changeset 9675


Ignore:
Timestamp:
Mar 14, 2011, 5:12:07 PM (10 years ago)
Author:
flop25
Message:

updating tpl files
delete of picture.css
Theme URI updated

Location:
extensions/floOS
Files:
4 added
4 deleted
16 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOS/OS_default/template/index.tpl

    r9237 r9675  
    88      <td id="section_up">
    99                  <div class="titrePage">
    10                 <ul class="categoryActions">
    11                   {if !empty($image_orders) }
    12                   <li>
    13                   {'Sort order'|@translate}:
    14                   <select onchange="document.location = this.options[this.selectedIndex].value;">
    15                         {foreach from=$image_orders item=image_order }
    16                         <option value="{$image_order.URL}"{if $image_order.SELECTED} selected="selected"{/if}>{$image_order.DISPLAY}</option>
    17                         {/foreach}
    18                   </select>
    19                   </li>
    20                   {/if}
    21        
    22                   {if isset($U_CADDIE) }
    23                   <li><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"/></a></li>
    24                   {/if}
    25        
    26                   {if isset($U_EDIT) }
    27                   <li><a href="{$U_EDIT}" title="{'edit category informations'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"/></a></li>
    28                   {/if}
    29        
    30                   {if isset($U_SEARCH_RULES) }
    31                   <li><a href="{$U_SEARCH_RULES}" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/search_rules.png" class="button" alt="(?)" /></a></li>
    32                   {/if}
    33        
    34                   {if isset($U_SLIDESHOW) }
    35                   <li><a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_slideshow.png" class="button" alt="{'slideshow'|@translate}"/></a></li>
    36                   {/if}
    37        
    38                   {if isset($U_MODE_FLAT) }
    39                   <li><a href="{$U_MODE_FLAT}" title="{'display all elements in all sub-categories'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/flat.png" class="button" alt="{'display all elements in all sub-categories'|@translate}" /></a></li>
    40                   {/if}
    41        
    42                   {if isset($U_MODE_NORMAL) }
    43                   <li><a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/normal_mode.png" class="button" alt="{'return to normal view mode'|@translate}" /></a></li>
    44                   {/if}
    45        
    46                   {if isset($U_MODE_POSTED) }
    47                   <li><a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar.png" class="button" alt="{'display a calendar by posted date'|@translate}" /></a></li>
    48                   {/if}
    49                  
    50                   {if isset($U_MODE_CREATED) }
    51                   <li><a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar_created.png" class="button" alt="{'display a calendar by creation date'|@translate}" /></a></li>
    52                   {/if}
    53                  
    54                   {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
    55                 </ul>
    56        
    57           <h2>{$TITLE}</h2>
    58        
    59           {if isset($chronology_views) }
    60           <div class="calendarViews">{'calendar_view'|@translate}:
    61                 <select onchange="document.location = this.options[this.selectedIndex].value;">
    62                   {foreach from=$chronology_views item=view}
    63                   <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option>
    64                   {/foreach}
    65                 </select>
    66           </div>
    67           {/if}
    68        
    69           {if isset($chronology.TITLE) }
    70           <h2>{$chronology.TITLE}</h2>
    71           {/if}
    72        
    73           </div> <!-- titrePage -->
    74 
     10          <ul class="categoryActions">
     11            {if !empty($image_orders)}
     12                <li>{'Sort order'|@translate}: {strip}
     13                <select onchange="document.location = this.options[this.selectedIndex].value;">
     14                  {foreach from=$image_orders item=image_order}
     15                  <option value="{$image_order.URL}"{if $image_order.SELECTED} selected="selected"{/if}>{$image_order.DISPLAY}</option>
     16                  {/foreach}
     17                </select>
     18            {/strip}</li>
     19            {/if}
     20            {if isset($favorite)}
     21                <li><a href="{$favorite.U_FAVORITE}" title="{'delete all photos from your favorites'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     22                  <span class="pwg-icon pwg-icon-favorite-del"> </span><span class="pwg-button-text">{'delete all photos from your favorites'|@translate}</span>
     23                </a></li>
     24            {/if}
     25            {if isset($U_CADDIE)}
     26                <li><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button">
     27                  <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span>
     28                </a></li>
     29            {/if}
     30            {if isset($U_EDIT)}
     31                <li><a href="{$U_EDIT}" title="{'edit'|@translate}" class="pwg-state-default pwg-button">
     32                  <span class="pwg-icon pwg-icon-category-edit"> </span><span class="pwg-button-text">{'edit'|@translate}</span>
     33                </a></li>
     34            {/if}
     35            {if isset($U_SEARCH_RULES)}
     36                {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
     37                <li><a href="{$U_SEARCH_RULES}" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     38                  <span class="pwg-icon pwg-icon-help"> </span><span class="pwg-button-text">(?)</span>
     39                </a></li>
     40            {/if}
     41            {if isset($U_SLIDESHOW)}
     42                <li>{strip}<a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     43                  <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span>
     44                </a>{/strip}</li>
     45            {/if}
     46            {if isset($U_MODE_FLAT)}
     47                <li>{strip}<a href="{$U_MODE_FLAT}" title="{'display all photos in all sub-albums'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     48                  <span class="pwg-icon pwg-icon-category-view-flat"> </span><span class="pwg-button-text">{'display all photos in all sub-albums'|@translate}</span>
     49                </a>{/strip}</li>
     50            {/if}
     51            {if isset($U_MODE_NORMAL)}
     52                <li>{strip}<a href="{$U_MODE_NORMAL}" title="{'return to normal view mode'|@translate}" class="pwg-state-default pwg-button">
     53                  <span class="pwg-icon pwg-icon-category-view-normal"> </span><span class="pwg-button-text">{'return to normal view mode'|@translate}</span>
     54                </a>{/strip}</li>
     55            {/if}
     56            {if isset($U_MODE_POSTED)}
     57                <li>{strip}<a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     58                  <span class="pwg-icon pwg-icon-calendar"> </span><span class="pwg-button-text">{'Calendar'|@translate}</span>
     59                </a>{/strip}</li>
     60            {/if}
     61            {if isset($U_MODE_CREATED)}
     62                <li>{strip}<a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     63                  <span class="pwg-icon pwg-icon-camera-calendar"> </span><span class="pwg-button-text">{'Calendar'|@translate}</span>
     64                </a>{/strip}</li>
     65            {/if}
     66            {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
     67          </ul>
     68       
     69        <h2>{$TITLE}</h2>
     70       
     71        {if isset($chronology_views)}
     72        <div class="calendarViews">{'View'|@translate}:
     73          <select onchange="document.location = this.options[this.selectedIndex].value;">
     74            {foreach from=$chronology_views item=view}
     75            <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option>
     76            {/foreach}
     77          </select>
     78        </div>
     79        {/if}
     80       
     81        {if isset($chronology.TITLE)}
     82        <h2>{$chronology.TITLE}</h2>
     83        {/if}
     84           
     85                        </div>{* <!-- titrePage --> *} 
    7586          </td>
    7687      <td id="section_up_right">&nbsp;</td>
     
    7990      <td id="section_left">&nbsp;</td>
    8091      <td id="section_in">
    81                 {if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
    82                
    83                 {if !empty($category_search_results) }
    84                 <div style="font-size:16px;text-align:left;margin:10px">{'Category results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
    85                   <em><strong>
    86                   {foreach from=$category_search_results item=res name=res_loop}
    87                   {if !$smarty.foreach.res_loop.first} &mdash; {/if}
    88                   {$res}
    89                   {/foreach}
    90                   </strong></em>
    91                 </div>
    92                 {/if}
    93                
    94                 {if !empty($tag_search_results) }
    95                 <div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
    96                   <em><strong>
    97                   {foreach from=$tag_search_results item=res name=res_loop}
    98                   {if !$smarty.foreach.res_loop.first} &mdash; {/if}
    99                   {$res}
    100                   {/foreach}
    101                   </strong></em>
    102                 </div>
    103                 {/if}
    104                
    105                 {if isset($FILE_CHRONOLOGY_VIEW) }
    106                 {include file=$FILE_CHRONOLOGY_VIEW}
    107                 {/if}
    108                
    109                 {if !empty($CATEGORIES) }{$CATEGORIES}{/if}
    110                 {if !empty($THUMBNAILS) }{$THUMBNAILS}{/if}
    111                
    112                
    113                 {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
    114                
    115                 {if !empty($CONTENT_DESCRIPTION) }
    116                 <div class="additional_info">
    117                   {$CONTENT_DESCRIPTION}
    118                 </div>
    119                 {/if}
    120                
    121                 {if !empty($PLUGIN_INDEX_CONTENT_END) }{$PLUGIN_INDEX_CONTENT_END}{/if}
     92
     93        {if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
     94       
     95        {if !empty($category_search_results)}
     96        <div style="font-size:16px;margin:10px 16px">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
     97          <em><strong>
     98          {foreach from=$category_search_results item=res name=res_loop}
     99          {if !$smarty.foreach.res_loop.first} &mdash; {/if}
     100          {$res}
     101          {/foreach}
     102          </strong></em>
     103        </div>
     104        {/if}
     105       
     106        {if !empty($tag_search_results)}
     107        <div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
     108          <em><strong>
     109          {foreach from=$tag_search_results item=res name=res_loop}
     110          {if !$smarty.foreach.res_loop.first} &mdash; {/if}
     111          {$res}
     112          {/foreach}
     113          </strong></em>
     114        </div>
     115        {/if}
     116       
     117        {if isset($FILE_CHRONOLOGY_VIEW)}
     118        {include file=$FILE_CHRONOLOGY_VIEW}
     119        {/if}
     120       
     121        {if !empty($CONTENT_DESCRIPTION)}
     122        <div class="additional_info">
     123          {$CONTENT_DESCRIPTION}
     124        </div>
     125        {/if}
     126       
     127        {if !empty($CATEGORIES)}{$CATEGORIES}{/if}
     128        {if !empty($THUMBNAILS)}
     129        <ul class="thumbnails" id="thumbnails">
     130        {$THUMBNAILS}
     131        </ul>
     132        {/if}
     133       
     134        {if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
     135       
     136        {if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if}
    122137      </td>
    123138          <td id="section_right">&nbsp;</td>
  • extensions/floOS/OS_default/template/menubar_categories.tpl

    r9120 r9675  
    1 {if isset($U_START_FILTER)}
    2         <a href="{$U_START_FILTER}" title="{'display only recently posted images'|@translate}" rel="nofollow">
    3         <img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a>
    4 {/if}
    5 {if isset($U_STOP_FILTER)}
    6         <a href="{$U_STOP_FILTER}" title="{'return to the display of all images'|@translate}"> 
    7         <img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a>
    8 {/if}
    91{if isset($tab_system) && $tab_system && in_array($id, $tab_closed)}
    102<dt class="titre_acordeon">
     
    124<dt class="titre_acordeon_0">
    135{/if}
    14         <a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Categories'|@translate}</a>
     6  {if isset($U_START_FILTER)}
     7  <a href="{$U_START_FILTER}" title="{'display only recently posted photos'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a>
     8  {/if}
     9  {if isset($U_STOP_FILTER)}
     10  <a href="{$U_STOP_FILTER}" title="{'return to the display of all photos'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a>
     11  {/if}
     12        <a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Albums'|@translate}</a>
    1513</dt>
    1614<dd>
     
    3432{/foreach}
    3533{'</li></ul>'|@str_repeat:$ref_level}
    36         {if isset($block->data.U_UPLOAD)}
    37                 <ul>
    38                         <li> <a href="{$block->data.U_UPLOAD}">{'Upload_picture'|@translate}</a> </li>
    39                 </ul>
    40         {/if}
    41         <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p>
     34
     35        <p class="totalImages">{$pwg->l10n_dec('%d photo', '%d photos', $block->data.NB_PICTURE)}</p>
    4236</dd>
  • extensions/floOS/OS_default/template/menubar_identification.tpl

    r9120 r9675  
    77<a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Identification'|@translate}</a></dt>
    88<dd>
     9{strip}
    910        {if isset($USERNAME)}
    10         <p>{'Hello'|@translate}&nbsp;{$USERNAME}&nbsp;!</p>
     11        <p>{'Hello'|@translate} {$USERNAME} !</p>
    1112        {/if}
    12 
    1313        <ul>
    1414        {if isset($U_REGISTER)}
    1515        <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li>
    1616        {/if}
    17 
    1817        {if isset($U_LOGIN)}
    1918        <li><a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a></li>
    2019        {/if}
    21 
    2220        {if isset($U_LOGOUT)}
    2321        <li><a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li>
    2422        {/if}
    25 
    2623        {if isset($U_PROFILE)}
    27         <li><a href="{$U_PROFILE}" title="{'hint_customize'|@translate}">{'Customize'|@translate}</a></li>
     24        <li><a href="{$U_PROFILE}" title="{'customize the appareance of the gallery'|@translate}">{'Customize'|@translate}</a></li>
    2825        {/if}
    29 
    3026        {if isset($U_ADMIN)}
    31         <li><a href="{$U_ADMIN}" title="{'hint_admin'|@translate}">{'Administration'|@translate}</a></li>
     27        <li><a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">{'Administration'|@translate}</a></li>
    3228        {/if}
    3329        </ul>
    34 
     30{/strip}
    3531        {if isset($U_LOGIN)}
     32{strip}
    3633        <form method="post" action="{$U_LOGIN}" id="quickconnect">
    3734        <fieldset>
    3835        <legend>{'Quick connect'|@translate}</legend>
    3936        <div>
    40         <label for="username">{'Username'|@translate}</label><br/>
     37        <label for="username">{'Username'|@translate}</label><br>
    4138        <input type="text" name="username" id="username" value="" style="width:99%">
    4239        </div>
    4340
    44         <div><label for="password">{'Password'|@translate}</label>
    45         <br/>
     41        <div><label for="password">{'Password'|@translate}</label><br>
    4642        <input type="password" name="password" id="password" style="width:99%">
    4743        </div>
    4844
    49 {if $AUTHORIZE_REMEMBERING}
     45        {if $AUTHORIZE_REMEMBERING}
    5046        <div><label for="remember_me">
    51         {'Auto login'|@translate}
    52         <input type="checkbox" name="remember_me" id="remember_me" value="1">
     47        {'Auto login'|@translate} <input type="checkbox" name="remember_me" id="remember_me" value="1">
    5348        </label></div>
    5449        {/if}
    5550
    5651        <div>
    57   <input type="hidden" name="redirect" value="{$smarty.server.REQUEST_URI|@urlencode}">
    58         <input class="submit" type="submit" name="login" value="{'Submit'|@translate}">
    59         <ul class="actions">
    60                 <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"></a></li>
    61                 {if isset($U_REGISTER)}
    62                 <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/register.png" class="button" alt="{'Register'|@translate}"/></a></li>
    63                 {/if}
    64         </ul>
     52        <input type="hidden" name="redirect" value="{$smarty.server.REQUEST_URI|@urlencode}">
     53        <input type="submit" name="login" value="{'Submit'|@translate}">
     54        <span class="categoryActions">
     55{if isset($U_REGISTER)}
     56                <a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" class="pwg-state-default pwg-button">
     57                        <span class="pwg-icon pwg-icon-register"> </span>
     58                </a>
     59{/if}
     60                <a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" class="pwg-state-default pwg-button">
     61                        <span class="pwg-icon pwg-icon-lost-password"> </span>
     62                </a>
     63        </span>
    6564        </div>
    6665
    6766        </fieldset>
    6867        </form>
     68{/strip}
    6969        {/if}
    7070</dd>
  • extensions/floOS/OS_default/template/menubar_links.tpl

    r9120 r9675  
    66<a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Links'|@translate}</a></dt>
    77<dd>
    8         <ul>
     8        <ul>{strip}
    99                {foreach from=$block->data item=link}
    1010                        <li>
    11                                 <a href="{$link.URL}" class="external"
    12                                         {if isset($link.new_window) } onclick="window.open(this.href, '{$link.new_window.NAME}','{$link.new_window.FEATURES}'); return false;"{/if}
    13                                 >
     11                                <a href="{$link.URL}" class="external"{if isset($link.new_window)} onclick="window.open(this.href, '{$link.new_window.NAME}','{$link.new_window.FEATURES}'); return false;"{/if}>
    1412                                {$link.LABEL}
    1513                                </a>
    1614                        </li>
    1715                {/foreach}
    18         </ul>
     16        {/strip}</ul>
    1917</dd>
  • extensions/floOS/OS_default/template/menubar_menu.tpl

    r9120 r9675  
    77    {/foreach}
    88      <li id="form_search_menu" >
    9         {if isset($block->data.qsearch) and  $block->data.qsearch==true}
    10     <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch" onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;">
    11       <p style="margin:0;padding:0"{*this <p> is for html validation only - does not affect positioning*}>
    12         <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" style="width:90%">
    13       </p>
    14     </form>
    15     <script type="text/javascript">var qsearch_prompt="{'Quick search'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script>
    16   {/if}
     9    {if isset($block->data.qsearch) and  $block->data.qsearch==true}
     10      <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch" onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;">
     11        <p style="margin:0;padding:0"{*this <p> is for html validation only - does not affect positioning*}>
     12          <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" style="width:90%">
     13        </p>
     14      </form>
     15      <script type="text/javascript">var qsearch_prompt="{'Quick search'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script>
     16    {/if}
    1717        </li>
    1818      <li id="home_icon" ><a href="{$myblock->data.U_CATEGORIES}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
  • extensions/floOS/OS_default/template/menubar_specials.tpl

    r9120 r9675  
    77<a href="javascript:void(0);"><img src="{$ROOT_URL}{$themeconf.icon_dir}/menu/small_resizable.png" class="button_res" alt="[_]">{'Specials'|@translate}</a></dt>
    88<dd>
    9   <ul>
    10     {foreach from=$block->data item=link}
    11     <li><a href="{$link.URL}" title="{$link.TITLE}" {if isset($link.REL)}{$link.REL}{/if}>{$link.NAME}</a></li>
    12     {/foreach}
    13   </ul>
     9        <ul>{strip}
     10                {foreach from=$block->data item=link}
     11                <li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a></li>
     12                {/foreach}
     13        {/strip}</ul>
    1414</dd>
  • extensions/floOS/OS_default/template/menubar_tags.tpl

    r9120 r9675  
    77        <div id="menuTagCloud">
    88                {foreach from=$block->data item=tag}
    9                 <span>
    10                         <a class="tagLevel{$tag.level}"
     9                <span>{strip}
     10                        <a class="tagLevel{$tag.level}" href=
    1111                        {if isset($tag.U_ADD)}
    12                                 href="{$tag.U_ADD}"
    13                                 title="{$pwg->l10n_dec('%d image is also linked to current tags', '%d images are also linked to current tags', $tag.counter)}"
    14                                 rel="nofollow">+
     12                                "{$tag.U_ADD}" title="{$pwg->l10n_dec('%d photo is also linked to current tags', '%d photos are also linked to current tags', $tag.counter)}" rel="nofollow">+
    1513                        {else}
    16                                 href="{$tag.URL}"
    17                                 title="{'See images linked to this tag only'|@translate}">
     14                                "{$tag.URL}" title="{'display photos linked to this tag'|@translate}">
    1815                        {/if}
    19                                 {$tag.name}</a></span>
     16                                {$tag.name}</a></span>{/strip}
    2017{* ABOVE there should be no space between text, </a> and </span> elements to avoid IE8 bug https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=366567 *}
    2118                {/foreach}
  • extensions/floOS/OS_glass/template/picture.tpl

    r9109 r9675  
    3737<div id="imageToolBar">
    3838  <div class="randomButtons">
    39     {if isset($U_SLIDESHOW_START) }
    40       <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_slideshow.png" class="button" alt="{'slideshow'|@translate}"></a>
    41     {/if}
    42     {if isset($U_METADATA) }
    43       <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/metadata.png" class="button" alt="metadata"></a>
    44     {/if}
    45     {if isset($current.U_DOWNLOAD) }
    46       <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"></a>
    47     {/if}
    48     {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
    49     {if isset($favorite) }
    50       <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/{if $favorite.IS_FAVORITE}del_favorite{else}favorite{/if}.png" class="button" alt="favorite" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"></a>
    51     {/if}
    52     {if !empty($U_SET_AS_REPRESENTATIVE) }
    53       <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/representative.png" class="button" alt="{'representative'|@translate}"></a>
    54     {/if}
    55     {if isset($U_ADMIN) }
    56       <a href="{$U_ADMIN}" title="{'Modify information'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/preferences.png" class="button" alt="{'edit'|@translate}"></a>
    57     {/if}
    58     {if isset($U_CADDIE) }{*caddie management BEGIN*}
    59 <script type="text/javascript">
     39{strip}{if isset($U_SLIDESHOW_START)}
     40        <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     41                <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span>
     42        </a>
     43{/if}{/strip}
     44{strip}{if isset($U_METADATA)}
     45        <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     46                <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span>
     47        </a>
     48{/if}{/strip}
     49{strip}{if isset($current.U_DOWNLOAD)}
     50        <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     51                <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'download'|@translate}</span>
     52        </a>
     53{/if}{/strip}
     54{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
     55{strip}{if isset($favorite)}
     56        <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="nofollow">
     57                <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span>
     58        </a>
     59{/if}{/strip}
     60{strip}{if isset($U_SET_AS_REPRESENTATIVE)}
     61        <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     62                <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span>
     63        </a>
     64{/if}{/strip}
     65{strip}{if isset($U_ADMIN)}
     66        <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     67                <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'edit'|@translate}</span>
     68        </a>
     69{/if}{/strip}
     70{strip}{if isset($U_CADDIE)}{*caddie management BEGIN*}
     71{footer_script}
    6072{literal}function addToCadie(aElement, rootUrl, id)
    6173{
    6274if (aElement.disabled) return;
    63 aElement.disabled=true; 
     75aElement.disabled=true;
    6476var y = new PwgWS(rootUrl);
    65 
    6677y.callService(
    67   "pwg.caddie.add", {image_id: id} ,
    68   {
    69     onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
    70     onSuccess: function(result) { aElement.disabled = false; }
    71   }
    72   );
     78        "pwg.caddie.add", {image_id: id} ,
     79        {
     80                onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
     81                onSuccess: function(result) { aElement.disabled = false; }
     82        }
     83        );
    7384}{/literal}
    74 </script>
    75       <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"></a>
    76     {/if}{*caddie management END*}
     85{/footer_script}
     86        <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     87                <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span>
     88        </a>
     89{/if}{/strip}{*caddie management END*}
    7790  </div>
    7891  {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
    79 </div> <!-- imageToolBar -->
     92</div>{*<!-- imageToolBar -->*}
    8093
    8194<div id="theImage">
     
    142155</div>
    143156
    144 <table id="standard" class="infoTable" summary="{'Some info about this picture'|@translate}">
    145   {if $display_info.author}
     157<table id="standard" class="infoTable">
     158{strip}
     159 {if $display_info.author}
    146160  <tr id="Author">
    147161    <td class="label">{'Author'|@translate}</td>
     
    228242        <tr id="rating">
    229243                <td class="label">
    230                         <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this picture'|@translate}{/if}</span>
     244                        <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span>
    231245                </td>
    232246                <td class="value">
    233247                        <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;">
    234                         <div>&nbsp;
     248                        <div>
    235249                        {foreach from=$rating.marks item=mark name=rate_loop}
    236                         {if !$smarty.foreach.rate_loop.first} | {/if}
    237250                        {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE}
    238                           <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}">
     251                                <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}">
    239252                        {else}
    240                           <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}">
     253                                <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}">
    241254                        {/if}
    242255                        {/foreach}
    243                         <script type="text/javascript" src="{$ROOT_URL}themes/default/js/rating.js"></script>
    244                         <script type="text/javascript">
    245                         makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id},
    246                         updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"),
    247                         ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
    248                         </script>
     256                        {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
     257                        {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'}
     258                        {footer_script}
     259                                var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[];
     260                                _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id},
     261                                        updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"),
     262                                        ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} );
     263                        {/footer_script}
     264                        {/strip}
    249265                        </div>
    250266                        </form>
     
    253269{/if}
    254270
    255 {if $display_info.privacy_level and isset($available_permission_levels) }
     271{if $display_info.privacy_level and isset($available_permission_levels)}
    256272        <tr id="Privacy">
    257273                <td class="label">{'Who can see this photo?'|@translate}</td>
    258                 <td class="value">
    259 <script type="text/javascript">
     274                <td class="value">
     275{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
     276{footer_script}
    260277{literal}function setPrivacyLevel(selectElement, rootUrl, id, level)
    261278{
     
    271288        );
    272289}{/literal}
    273 </script>
    274         <select onchange="setPrivacyLevel(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}, this.options[selectedIndex].value)">
     290{/footer_script}
     291        <select onchange="setPrivacyLevel(this, '{$ROOT_URL}', {$current.id}, this.options[selectedIndex].value)">
    275292                {foreach from=$available_permission_levels item=label key=level}
    276293                <option label="{$label}" value="{$level}"{if $level == $current.level} selected="selected"{/if}>{$label}</option>
     
    279296        </td></tr>
    280297{/if}
    281 
     298{/strip}
    282299</table>
    283300
  • extensions/floOS/OS_glass/template/picture_nav_buttons.tpl

    r9119 r9675  
    11  <div class="navButtons">
    22 
    3 {if isset($last)}
    4   <a class="navButton prev" 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>
     3{strip}{if isset($last)}
     4        <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
     5                <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span>
     6        </a>
    57{else}
    6   <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last_unactive.png" class="button" alt=""></a>
    7 {/if}
    8  
    9 {if isset($next)}
    10   <a class="navButton next" 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>
     8        <span class="pwg-state-disabled pwg-button pwg-button-icon-right">
     9                <span class="pwg-icon pwg-icon-arrowstop-e">&nbsp;</span><span class="pwg-button-text">{'Last'|@translate}</span>
     10        </span>
     11{/if}{/strip}
     12{strip}{if isset($next)}
     13        <a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
     14                <span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
     15        </a>
    1116{else}
    12   <a class="navButton next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right_unactive.png" class="button" alt=""></a>
    13 {/if}
     17        <span class="pwg-state-disabled pwg-button pwg-button-icon-right">
     18                <span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
     19        </span>
     20{/if}{/strip}
    1421{if isset($next) }
    1522<a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next">
     
    1724</a>
    1825{/if}
    19     <img src="{$current.THUMB_SRC}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}">
     26        <img src="{$current.THUMB_SRC}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}">
    2027{if isset($previous) }
    2128<a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev">
     
    2532
    2633{if isset($slideshow.U_START_PLAY)}
    27   <a class="navButton play" href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/play.png" class="button" alt="{'Play of slideshow'|@translate}"></a>
     34        <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button">
     35                <span class="pwg-icon pwg-icon-play">&nbsp;</span><span class="pwg-button-text">{'Play of slideshow'|@translate}</span>
     36        </a>
    2837{/if}
    29 
    3038{if isset($slideshow.U_STOP_PLAY)}
    31   <a class="navButton play" href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/pause.png" class="button" alt="{'Pause of slideshow'|@translate}"></a>
     39        <a href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" class="pwg-state-default pwg-button">
     40                <span class="pwg-icon pwg-icon-pause">&nbsp;</span><span class="pwg-button-text">{'Pause of slideshow'|@translate}</span>
     41        </a>
    3242{/if}
    3343
    3444 
    35 {if isset($previous)}
    36   <a class="navButton prev" 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>
     45{strip}{if isset($previous)}
     46        <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button">
     47                <span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
     48        </a>
    3749{else}
    38   <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left_unactive.png" class="button" alt=""></a>
    39 {/if}
     50        <span class="pwg-state-disabled pwg-button">
     51                <span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
     52        </span>
     53{/if}{/strip}
    4054 
    41 {if isset($first)}
    42   <a class="navButton prev" 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>
     55{strip}{if isset($first)}
     56        <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button">
     57                <span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
     58        </a>
    4359{else}
    44   <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first_unactive.png" class="button" alt=""></a>
    45 {/if}
     60        <span class="pwg-state-disabled pwg-button">
     61                <span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
     62        </span>
     63{/if}{/strip}
    4664
    4765
    4866{if isset($slideshow.U_START_REPEAT)}
    49   <a class="navButton repeat" href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_repeat.png" class="button" alt="{'Repeat the slideshow'|@translate}"></a>
     67        <a href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" class="pwg-state-default pwg-button">
     68                <span class="pwg-icon pwg-icon-repeat-play">&nbsp;</span><span class="pwg-button-text">{'Repeat the slideshow'|@translate}</span>
     69        </a>
    5070{/if}
    51 
    5271{if isset($slideshow.U_STOP_REPEAT)}
    53   <a class="navButton repeat" href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_repeat.png" class="button" alt="{'Not repeat the slideshow'|@translate}"></a>
     72        <a href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" class="pwg-state-default pwg-button">
     73                <span class="pwg-icon pwg-icon-repeat-stop">&nbsp;</span><span class="pwg-button-text">{'Not repeat the slideshow'|@translate}</span>
     74        </a>
    5475{/if}
    5576
    5677{if isset($slideshow)}
    57   {if isset($slideshow.U_DEC_PERIOD)}
    58     <a class="navButton dec_period" href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period.png" class="button" alt="{'Accelerate diaporama speed'|@translate}"></a>
    59   {else}
    60     <a class="navButton dec_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period_unactive.png" class="button" alt=""></a>
    61   {/if}
    62 
    63   {if isset($slideshow.U_INC_PERIOD)}
    64     <a class="navButton inc_period" href="{$slideshow.U_INC_PERIOD}" title="{'Reduce diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period.png" class="button" alt="{'Reduce diaporama speed'|@translate}"></a>
    65   {else}
    66     <a class="navButton inc_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period_unactive.png" class="button" alt=""></a>
    67   {/if}
     78{if isset($slideshow.U_INC_PERIOD)}
     79        <a href="{$slideshow.U_INC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button">
     80                <span class="pwg-icon pwg-icon-clock-minus">&nbsp;</span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span>
     81        </a>
     82{else}
     83        <span class="pwg-state-disabled pwg-button">
     84                <span class="pwg-icon pwg-icon-clock-minus">&nbsp;</span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span>
     85        </span>
     86{/if}
     87{if isset($slideshow.U_DEC_PERIOD)}
     88        <a href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button">
     89                <span class="pwg-icon pwg-icon-clock-plus">&nbsp;</span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span>
     90        </a>
     91{else}
     92        <span class="pwg-state-disabled pwg-button">
     93                <span class="pwg-icon pwg-icon-clock-plus">&nbsp;</span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span>
     94        </span>
     95{/if}
     96{/if}
     97{strip}{if isset($U_UP) and !isset($slideshow)}
     98        <a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button">
     99                <span class="pwg-icon pwg-icon-arrow-n">&nbsp;</span><span class="pwg-button-text">{'Thumbnails'|@translate}</span>
     100        </a>
     101{/if}{/strip}
     102</div>
     103{strip}
     104{footer_script}
     105document.onkeydown = function(e){ldelim}
     106        e=e||window.event;
     107        if (e.altKey) return true;
     108        var target=e.target||e.srcElement;
     109        if (target && target.type) return true;{* an input editable element *}
     110        var keyCode=e.keyCode||e.which, docElem=document.documentElement, url;
     111        switch(keyCode){ldelim}
     112{if isset($next)}
     113        case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break;
     114{/if}
     115{if isset($previous)}
     116        case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break;
     117{/if}
     118{if isset($first)}
     119        {* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
     120{/if}
     121{if isset($last)}
     122        {* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
    68123{/if}
    69124{if isset($U_UP) and !isset($slideshow)}
    70   <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>
     125        {* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break;
    71126{/if}
    72 
    73   </div>
    74 
    75 <script type="text/javascript">// <![CDATA[
    76 {literal}
    77 function keyboardNavigation(e)
    78 {
    79         if(!e) e=window.event;
    80         if (e.altKey) return true;
    81         var target = e.target || e.srcElement;
    82         if (target && target.type) return true; //an input editable element
    83         var keyCode=e.keyCode || e.which;
    84         var docElem = document.documentElement;
    85         switch(keyCode) {
    86 {/literal}
    87 {if isset($next)}
    88         case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&amp;", "&" ); return false; } break;
    89 {/if}
    90 {if isset($previous)}
    91         case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
    92 {/if}
    93 {if isset($first)}
    94         /*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
    95 {/if}
    96 {if isset($last)}
    97         /*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
    98 {/if}
    99 {if isset($U_UP) and !isset($slideshow)}
    100         /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
    101 {/if}
    102 
    103127{if isset($slideshow.U_START_PLAY)}
    104         /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
     128        {* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break;
    105129{/if}
    106130{if isset($slideshow.U_STOP_PLAY)}
    107         /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
     131        {* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break;
    108132{/if}
    109133        }
     134        if (url) {ldelim}window.location=url.replace("&amp;","&"); return false;}
    110135        return true;
    111136}
    112 document.onkeydown=keyboardNavigation;
    113 // ]]></script>
     137{/footer_script}
     138{/strip}
  • extensions/floOS/OS_glass/theme.css

    r9119 r9675  
    11/* ---------------------------------------------------------------------------
    2 Thème glass
    3 
    4 pour le template floOS
    5 
    6 by flop25
    7 
     2Thème OS_glass
     3
     4theme-enfant de OS_default
     5
     6by flop25 http://www.planete-flop.fr/
    87------------------------------------------------------------------------------ */
    98
  • extensions/floOS/OS_glass/themeconf.inc.php

    r9121 r9675  
    22/*
    33Theme Name: OS_glass
    4 Version: 1.0.0
     4Version: auto
    55Description:
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=498
    77Author: flop25
    8 Author URI: http://www.planete-flop.fr/site.php?acc=file
     8Author URI: http://www.planete-flop.fr
    99*/
    1010
     
    2121        'tab_closed'                    => array('mbLinks','mbTags','mbSpecials','mbIdentification'),   # tabs which are closed when the page is loaded
    2222);
    23 @include('themeconf_local.inc.php');
     23@include(PHPWG_ROOT_PATH. 'local/config/OS_glass.inc.php');
     24if (isset($conf['local_dir_site']))
     25{
     26  @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/OS_glass.inc.php');
     27}
    2428
    25         add_event_handler('init', 'dynamic_tab', 20);
    26 
    27         function  dynamic_tab() {
    28 global $template, $conf;
    29 $template->assign(
    30   array(
    31     'tab_system' => get_themeconf('tab_system'),
    32     'tab_closed' => get_themeconf('tab_closed'),
    33     ));
    34         }
     29add_event_handler('init', 'dynamic_tab', 20);
     30function  dynamic_tab() {
     31        global $template, $conf;
     32        $template->assign(
     33                array(
     34                        'tab_system' => get_themeconf('tab_system'),
     35                        'tab_closed' => get_themeconf('tab_closed'),
     36                        ));
     37}
    3538?>
  • extensions/floOS/OS_glass_clear/template/picture.tpl

    r9673 r9675  
    3737<div id="imageToolBar">
    3838  <div class="randomButtons">
    39     {if isset($U_SLIDESHOW_START) }
    40       <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_slideshow.png" class="button" alt="{'slideshow'|@translate}"></a>
    41     {/if}
    42     {if isset($U_METADATA) }
    43       <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/metadata.png" class="button" alt="metadata"></a>
    44     {/if}
    45     {if isset($current.U_DOWNLOAD) }
    46       <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"></a>
    47     {/if}
    48     {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
    49     {if isset($favorite) }
    50       <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/{if $favorite.IS_FAVORITE}del_favorite{else}favorite{/if}.png" class="button" alt="favorite" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"></a>
    51     {/if}
    52     {if !empty($U_SET_AS_REPRESENTATIVE) }
    53       <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/representative.png" class="button" alt="{'representative'|@translate}"></a>
    54     {/if}
    55     {if isset($U_ADMIN) }
    56       <a href="{$U_ADMIN}" title="{'Modify information'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/preferences.png" class="button" alt="{'edit'|@translate}"></a>
    57     {/if}
    58     {if isset($U_CADDIE) }{*caddie management BEGIN*}
    59 <script type="text/javascript">
     39{strip}{if isset($U_SLIDESHOW_START)}
     40        <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     41                <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span>
     42        </a>
     43{/if}{/strip}
     44{strip}{if isset($U_METADATA)}
     45        <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     46                <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span>
     47        </a>
     48{/if}{/strip}
     49{strip}{if isset($current.U_DOWNLOAD)}
     50        <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     51                <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'download'|@translate}</span>
     52        </a>
     53{/if}{/strip}
     54{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
     55{strip}{if isset($favorite)}
     56        <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="nofollow">
     57                <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span>
     58        </a>
     59{/if}{/strip}
     60{strip}{if isset($U_SET_AS_REPRESENTATIVE)}
     61        <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     62                <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span>
     63        </a>
     64{/if}{/strip}
     65{strip}{if isset($U_ADMIN)}
     66        <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     67                <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'edit'|@translate}</span>
     68        </a>
     69{/if}{/strip}
     70{strip}{if isset($U_CADDIE)}{*caddie management BEGIN*}
     71{footer_script}
    6072{literal}function addToCadie(aElement, rootUrl, id)
    6173{
    6274if (aElement.disabled) return;
    63 aElement.disabled=true; 
     75aElement.disabled=true;
    6476var y = new PwgWS(rootUrl);
    65 
    6677y.callService(
    67   "pwg.caddie.add", {image_id: id} ,
    68   {
    69     onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
    70     onSuccess: function(result) { aElement.disabled = false; }
    71   }
    72   );
     78        "pwg.caddie.add", {image_id: id} ,
     79        {
     80                onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
     81                onSuccess: function(result) { aElement.disabled = false; }
     82        }
     83        );
    7384}{/literal}
    74 </script>
    75       <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"></a>
    76     {/if}{*caddie management END*}
     85{/footer_script}
     86        <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     87                <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span>
     88        </a>
     89{/if}{/strip}{*caddie management END*}
    7790  </div>
    7891  {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
    79 </div> <!-- imageToolBar -->
     92</div>{*<!-- imageToolBar -->*}
    8093
    8194<div id="theImage">
     
    142155</div>
    143156
    144 <table id="standard" class="infoTable" summary="{'Some info about this picture'|@translate}">
    145   {if $display_info.author}
     157<table id="standard" class="infoTable">
     158{strip}
     159 {if $display_info.author}
    146160  <tr id="Author">
    147161    <td class="label">{'Author'|@translate}</td>
     
    228242        <tr id="rating">
    229243                <td class="label">
    230                         <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this picture'|@translate}{/if}</span>
     244                        <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span>
    231245                </td>
    232246                <td class="value">
    233247                        <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;">
    234                         <div>&nbsp;
     248                        <div>
    235249                        {foreach from=$rating.marks item=mark name=rate_loop}
    236                         {if !$smarty.foreach.rate_loop.first} | {/if}
    237250                        {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE}
    238                           <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}">
     251                                <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}">
    239252                        {else}
    240                           <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}">
     253                                <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}">
    241254                        {/if}
    242255                        {/foreach}
    243                         <script type="text/javascript" src="{$ROOT_URL}themes/default/js/rating.js"></script>
    244                         <script type="text/javascript">
    245                         makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id},
    246                         updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"),
    247                         ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
    248                         </script>
     256                        {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
     257                        {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'}
     258                        {footer_script}
     259                                var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[];
     260                                _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id},
     261                                        updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"),
     262                                        ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} );
     263                        {/footer_script}
     264                        {/strip}
    249265                        </div>
    250266                        </form>
     
    253269{/if}
    254270
    255 {if $display_info.privacy_level and isset($available_permission_levels) }
     271{if $display_info.privacy_level and isset($available_permission_levels)}
    256272        <tr id="Privacy">
    257273                <td class="label">{'Who can see this photo?'|@translate}</td>
    258                 <td class="value">
    259 <script type="text/javascript">
     274                <td class="value">
     275{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
     276{footer_script}
    260277{literal}function setPrivacyLevel(selectElement, rootUrl, id, level)
    261278{
     
    271288        );
    272289}{/literal}
    273 </script>
    274         <select onchange="setPrivacyLevel(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}, this.options[selectedIndex].value)">
     290{/footer_script}
     291        <select onchange="setPrivacyLevel(this, '{$ROOT_URL}', {$current.id}, this.options[selectedIndex].value)">
    275292                {foreach from=$available_permission_levels item=label key=level}
    276293                <option label="{$label}" value="{$level}"{if $level == $current.level} selected="selected"{/if}>{$label}</option>
     
    279296        </td></tr>
    280297{/if}
    281 
     298{/strip}
    282299</table>
    283300
  • extensions/floOS/OS_glass_clear/template/picture_nav_buttons.tpl

    r9673 r9675  
    11  <div class="navButtons">
    22 
    3 {if isset($last)}
    4   <a class="navButton prev" 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>
     3{strip}{if isset($last)}
     4        <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
     5                <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span>
     6        </a>
    57{else}
    6   <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last_unactive.png" class="button" alt=""></a>
    7 {/if}
    8  
    9 {if isset($next)}
    10   <a class="navButton next" 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>
     8        <span class="pwg-state-disabled pwg-button pwg-button-icon-right">
     9                <span class="pwg-icon pwg-icon-arrowstop-e">&nbsp;</span><span class="pwg-button-text">{'Last'|@translate}</span>
     10        </span>
     11{/if}{/strip}
     12{strip}{if isset($next)}
     13        <a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
     14                <span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
     15        </a>
    1116{else}
    12   <a class="navButton next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right_unactive.png" class="button" alt=""></a>
    13 {/if}
     17        <span class="pwg-state-disabled pwg-button pwg-button-icon-right">
     18                <span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
     19        </span>
     20{/if}{/strip}
    1421{if isset($next) }
    1522<a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next">
     
    1724</a>
    1825{/if}
    19     <img src="{$current.THUMB_SRC}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}">
     26        <img src="{$current.THUMB_SRC}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}">
    2027{if isset($previous) }
    2128<a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev">
     
    2532
    2633{if isset($slideshow.U_START_PLAY)}
    27   <a class="navButton play" href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/play.png" class="button" alt="{'Play of slideshow'|@translate}"></a>
     34        <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button">
     35                <span class="pwg-icon pwg-icon-play">&nbsp;</span><span class="pwg-button-text">{'Play of slideshow'|@translate}</span>
     36        </a>
    2837{/if}
    29 
    3038{if isset($slideshow.U_STOP_PLAY)}
    31   <a class="navButton play" href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/pause.png" class="button" alt="{'Pause of slideshow'|@translate}"></a>
     39        <a href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" class="pwg-state-default pwg-button">
     40                <span class="pwg-icon pwg-icon-pause">&nbsp;</span><span class="pwg-button-text">{'Pause of slideshow'|@translate}</span>
     41        </a>
    3242{/if}
    3343
    3444 
    35 {if isset($previous)}
    36   <a class="navButton prev" 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>
     45{strip}{if isset($previous)}
     46        <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button">
     47                <span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
     48        </a>
    3749{else}
    38   <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left_unactive.png" class="button" alt=""></a>
    39 {/if}
     50        <span class="pwg-state-disabled pwg-button">
     51                <span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
     52        </span>
     53{/if}{/strip}
    4054 
    41 {if isset($first)}
    42   <a class="navButton prev" 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>
     55{strip}{if isset($first)}
     56        <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button">
     57                <span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
     58        </a>
    4359{else}
    44   <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first_unactive.png" class="button" alt=""></a>
    45 {/if}
     60        <span class="pwg-state-disabled pwg-button">
     61                <span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
     62        </span>
     63{/if}{/strip}
    4664
    4765
    4866{if isset($slideshow.U_START_REPEAT)}
    49   <a class="navButton repeat" href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_repeat.png" class="button" alt="{'Repeat the slideshow'|@translate}"></a>
     67        <a href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" class="pwg-state-default pwg-button">
     68                <span class="pwg-icon pwg-icon-repeat-play">&nbsp;</span><span class="pwg-button-text">{'Repeat the slideshow'|@translate}</span>
     69        </a>
    5070{/if}
    51 
    5271{if isset($slideshow.U_STOP_REPEAT)}
    53   <a class="navButton repeat" href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_repeat.png" class="button" alt="{'Not repeat the slideshow'|@translate}"></a>
     72        <a href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" class="pwg-state-default pwg-button">
     73                <span class="pwg-icon pwg-icon-repeat-stop">&nbsp;</span><span class="pwg-button-text">{'Not repeat the slideshow'|@translate}</span>
     74        </a>
    5475{/if}
    5576
    5677{if isset($slideshow)}
    57   {if isset($slideshow.U_DEC_PERIOD)}
    58     <a class="navButton dec_period" href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period.png" class="button" alt="{'Accelerate diaporama speed'|@translate}"></a>
    59   {else}
    60     <a class="navButton dec_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period_unactive.png" class="button" alt=""></a>
    61   {/if}
    62 
    63   {if isset($slideshow.U_INC_PERIOD)}
    64     <a class="navButton inc_period" href="{$slideshow.U_INC_PERIOD}" title="{'Reduce diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period.png" class="button" alt="{'Reduce diaporama speed'|@translate}"></a>
    65   {else}
    66     <a class="navButton inc_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period_unactive.png" class="button" alt=""></a>
    67   {/if}
     78{if isset($slideshow.U_INC_PERIOD)}
     79        <a href="{$slideshow.U_INC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button">
     80                <span class="pwg-icon pwg-icon-clock-minus">&nbsp;</span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span>
     81        </a>
     82{else}
     83        <span class="pwg-state-disabled pwg-button">
     84                <span class="pwg-icon pwg-icon-clock-minus">&nbsp;</span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span>
     85        </span>
     86{/if}
     87{if isset($slideshow.U_DEC_PERIOD)}
     88        <a href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button">
     89                <span class="pwg-icon pwg-icon-clock-plus">&nbsp;</span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span>
     90        </a>
     91{else}
     92        <span class="pwg-state-disabled pwg-button">
     93                <span class="pwg-icon pwg-icon-clock-plus">&nbsp;</span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span>
     94        </span>
     95{/if}
     96{/if}
     97{strip}{if isset($U_UP) and !isset($slideshow)}
     98        <a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button">
     99                <span class="pwg-icon pwg-icon-arrow-n">&nbsp;</span><span class="pwg-button-text">{'Thumbnails'|@translate}</span>
     100        </a>
     101{/if}{/strip}
     102</div>
     103{strip}
     104{footer_script}
     105document.onkeydown = function(e){ldelim}
     106        e=e||window.event;
     107        if (e.altKey) return true;
     108        var target=e.target||e.srcElement;
     109        if (target && target.type) return true;{* an input editable element *}
     110        var keyCode=e.keyCode||e.which, docElem=document.documentElement, url;
     111        switch(keyCode){ldelim}
     112{if isset($next)}
     113        case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break;
     114{/if}
     115{if isset($previous)}
     116        case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break;
     117{/if}
     118{if isset($first)}
     119        {* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
     120{/if}
     121{if isset($last)}
     122        {* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
    68123{/if}
    69124{if isset($U_UP) and !isset($slideshow)}
    70   <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>
     125        {* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break;
    71126{/if}
    72 
    73   </div>
    74 
    75 <script type="text/javascript">// <![CDATA[
    76 {literal}
    77 function keyboardNavigation(e)
    78 {
    79         if(!e) e=window.event;
    80         if (e.altKey) return true;
    81         var target = e.target || e.srcElement;
    82         if (target && target.type) return true; //an input editable element
    83         var keyCode=e.keyCode || e.which;
    84         var docElem = document.documentElement;
    85         switch(keyCode) {
    86 {/literal}
    87 {if isset($next)}
    88         case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&amp;", "&" ); return false; } break;
    89 {/if}
    90 {if isset($previous)}
    91         case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
    92 {/if}
    93 {if isset($first)}
    94         /*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
    95 {/if}
    96 {if isset($last)}
    97         /*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
    98 {/if}
    99 {if isset($U_UP) and !isset($slideshow)}
    100         /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
    101 {/if}
    102 
    103127{if isset($slideshow.U_START_PLAY)}
    104         /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
     128        {* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break;
    105129{/if}
    106130{if isset($slideshow.U_STOP_PLAY)}
    107         /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&amp;","&"); return false; } break;
     131        {* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break;
    108132{/if}
    109133        }
     134        if (url) {ldelim}window.location=url.replace("&amp;","&"); return false;}
    110135        return true;
    111136}
    112 document.onkeydown=keyboardNavigation;
    113 // ]]></script>
     137{/footer_script}
     138{/strip}
  • extensions/floOS/OS_glass_clear/theme.css

    r9673 r9675  
    281281        background-position: center bottom;
    282282        background-color: #000000;
    283 }
     283}/*
    284284#imageToolBar A:hover {
    285285background-image: url(images/fondMenuSurvol.gif);
     
    287287background-position:center;
    288288background-color:transparent;
    289 }
     289}*/
    290290#action_pict {
    291291        border: 2px solid #FFFFFF;
     
    293293    color:#000;
    294294    font-weight:bold;
     295}
     296#imageToolBar {
     297    height: 60px;
     298}
     299#imageToolBar #thumbPrev, #imageToolBar #thumbNext {
     300        margin-left:5px;
     301        margin-right:5px;
     302        display:inline;
     303        width:auto;
     304}
     305#imageToolBar #thumbCurrent {
     306        margin-left:5px;
     307        margin-right:5px;
     308        display:inline;
     309        width:auto;
     310}
     311#imageToolBar #linkPrev, #imageToolBar #thumbCurrent, #imageToolBar #linkNext {
     312        border:#FFF solid 2px;
     313        width:auto;
    295314}
    296315/*calendar elements*/
  • extensions/floOS/OS_glass_clear/themeconf.inc.php

    r9673 r9675  
    11<?php
    22/*
    3 Theme Name: OS_glass
     3Theme Name: OS_glass_clear
    44Version: auto
    55Description:
    6 Theme URI: http://fr.piwigo.org/ext/extension_view.php?eid=383
     6Theme URI: http://piwigo.org/ext/extension_view.php?eid=514
    77Author: flop25
    88Author URI: http://www.planete-flop.fr
  • extensions/floOS/OS_glass_dark/themeconf.inc.php

    r9674 r9675  
    11<?php
    22/*
    3 Theme Name: OS_glass_clear
     3Theme Name: OS_glass_dark
    44Version: auto
    55Description:
    6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=514
     6Theme URI: http://piwigo.org/ext/extension_view.php?eid=515
    77Author: flop25
    88Author URI: http://www.planete-flop.fr
     
    1010
    1111$themeconf = array(
    12   'name'         => 'OS_glass_clear',
     12  'name'         => 'OS_glass_dark',
    1313  'parent'        => 'OS_default',
    1414  'icon_dir'      => 'themes/OS_default/icon',
     
    2121        'tab_closed'                    => array('mbLinks','mbTags','mbSpecials','mbIdentification'),   # tabs which are closed when the page is loaded
    2222);
    23 @include(PHPWG_ROOT_PATH. 'local/config/OS_glass_clear.inc.php');
     23@include(PHPWG_ROOT_PATH. 'local/config/OS_glass_dark.inc.php');
    2424if (isset($conf['local_dir_site']))
    2525{
    26   @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/OS_glass_clear.inc.php');
     26  @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/OS_glass_dark.inc.php');
    2727}
    2828
Note: See TracChangeset for help on using the changeset viewer.