Ignore:
Timestamp:
04/27/16 09:25:14 (4 years ago)
Author:
plg
Message:

equivalent to stripped r31390 (move admin links into a dedicated switchbox)

+ fontello icons for admin/favorites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_responsive/template/picture.tpl

    r31575 r31576  
    1717                        {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} 
    1818                </li> 
     19 
     20 
     21{if isset($U_PHOTO_ADMIN) or isset($U_CADDIE) or !empty($U_SET_AS_REPRESENTATIVE)} 
     22    <li> 
     23      <a id="adminSwitchLink" href="#"> 
     24        <span class="pwg-icon pwg-icon-cog"></span> 
     25        <span class="pwg-button-text">{'Administration'|@translate}</span> 
     26      </a> 
     27    </li> 
     28 
     29{footer_script require='jquery'}{literal} 
     30jQuery().ready(function() { 
     31  (window.SwitchBox=window.SwitchBox||[]).push("#adminSwitchLink", "#adminSwitchBox"); 
     32}); 
     33{/literal}{/footer_script} 
     34  
     35<div id="adminSwitchBox" class="switchBox"> 
     36  <ul> 
     37  {if isset($U_PHOTO_ADMIN)} 
     38    <li><a href="{$U_PHOTO_ADMIN}" title="{'Modify information'|@translate}">{'edit'|@translate}</a></li> 
     39  {/if} 
     40  {if isset($U_CADDIE)} 
     41    <li><a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" rel="nofollow">{'caddie'|@translate}</a></li> 
     42  {/if} 
     43  {if !empty($U_SET_AS_REPRESENTATIVE) } 
     44    <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}">{'representative'|@translate}</a></li> 
     45  {/if} 
     46  </ul> 
     47</div> 
     48{/if} 
     49 
    1950                {strip}{if isset($U_SLIDESHOW_START) } 
    2051                        <li> 
     
    2556            </li> 
    2657                {/if}{/strip} 
    27         {strip}{if isset($U_PHOTO_ADMIN) } 
    28                         <li><a href="{$U_PHOTO_ADMIN}" title="{'Modify information'|@translate}">{'edit'|@translate}</a></li> 
    29         {/if}{/strip} 
    30                 {strip}{if isset($U_CADDIE)} 
    31                         <li><a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" rel="nofollow">{'caddie'|@translate}</a></li> 
    32         {/if}{/strip} 
    3358                {strip}{if isset($favorite) } 
    34                         <li><a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}">{'Favorites'|@translate}</a></li> 
    35         {/if}{/strip} 
    36         {strip}{if !empty($U_SET_AS_REPRESENTATIVE) } 
    37                         <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}">{'representative'|@translate}</a></li> 
     59                        <li> 
     60        <a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}"> 
     61          <span class="pwg-icon pwg-icon-heart"></span> 
     62          <span class="pwg-button-text">{'Favorites'|@translate}</span> 
     63        </a> 
     64      </li> 
    3865        {/if}{/strip} 
    3966                {strip}{if isset($current.U_DOWNLOAD)} 
Note: See TracChangeset for help on using the changeset viewer.