Ignore:
Timestamp:
Jan 15, 2013, 1:31:14 PM (12 years ago)
Author:
mistic100
Message:

display banners size, list specific album banners

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/header_manager/admin/template/config.tpl

    r17734 r20169  
    55  jQuery(".display-help:not(#"+ jQuery(this).val() +")").slideUp();
    66  jQuery("#"+ jQuery(this).val()).slideDown();
     7});
     8jQuery(".showImage").tipTip({
     9  delay: 0,
     10  fadeIn: 200,
     11  fadeOut: 200,
     12  maxWidth: '300px',
     13  defaultPosition: 'top'
    714});
    815{/literal}{/footer_script}
     
    4148      <label for="banner-random"><b>{'Random'|@translate}</b></label>
    4249    </div>
    43     {foreach from=$banners item=image}
     50    {foreach from=$banners item=image key=name}
    4451    <div class="banner-radio">
    4552      <span class="actions">
     
    4855      <span class="banner-wrapper">
    4956        <a href="{$CONFIG_URL}&amp;delete_banner={$image.NAME}" title="{'Delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" class="delete-banner">&times;</a>
    50         <label for="banner-{$image.NAME}"><img src="{$image.THUMB}" alt="{$image.NAME}"></label>
     57        <span class="banner-size">{$image.SIZE[0]} &times; {$image.SIZE[1]} px</span>
     58        <label for="banner-{$image.NAME}" title="{$name}"><img src="{$image.THUMB}" alt="{$image.NAME}"></label>
    5159      </span>
    5260    </div>
     
    6068  </fieldset>
    6169
    62   <p><input type="submit" name="save_config" value="{'Submit'|@translate}" class="submit"></p>
     70  <p class="formButtons"><input type="submit" name="save_config" value="{'Submit'|@translate}" class="submit"></p>
     71 
     72  <fieldset>
     73    <legend>{'Album specific banners'|@translate}</legend>
     74    <i>{'In order to add a specific banner, go to the admin page of the desired album.'|@translate}</i>
     75   
     76  {if $categories}
     77    <ul id="album_banners">
     78    {foreach from=$categories item=cat}
     79      <li>
     80        {$cat.NAME}
     81        <a class="showImage" title="<img src='{$banners[$cat.IMAGE].THUMB}'>"><img src="{$HEADER_MANAGER_PATH}admin/template/image_{$cat.DEEP}.png"></a>
     82        <a href="{$cat.U_DELETE}" title="{'Restore default banner'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.admin_icon_dir}/delete.png"></a>
     83      </li>
     84    {/foreach}
     85    </ul>
     86   
     87    <p>
     88      <img src="{$HEADER_MANAGER_PATH}admin/template/image_0.png"> : {'Non recursive'|@translate} &bull;
     89      <img src="{$HEADER_MANAGER_PATH}admin/template/image_1.png"> : {'Recursive'|@translate}
     90    </p>
     91  {/if}
     92  </fieldset>
    6393</form>
Note: See TracChangeset for help on using the changeset viewer.