Ignore:
Timestamp:
Jan 18, 2011, 10:12:42 PM (13 years ago)
Author:
rvelices
Message:
  • picture page compacts the output html using smarty strip
  • decrease the default number of tags showable in the menubar
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/picture.tpl

    r8711 r8757  
    3636<div id="imageToolBar">
    3737<div class="actionButtons">
    38 {if isset($U_SLIDESHOW_START)}
     38{strip}{if isset($U_SLIDESHOW_START)}
    3939        <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
    4040                <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'slideshow'|@translate}</span>
    4141        </a>
    42 {/if}
    43 {if isset($U_METADATA)}
     42{/if}{/strip}
     43{strip}{if isset($U_METADATA)}
    4444        <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
    4545                <span class="pwg-icon pwg-icon-camera-info">&nbsp;</span><span class="pwg-button-text">{'Show file metadata'|@translate}</span>
    4646        </a>
    47 {/if}
    48 {if isset($current.U_DOWNLOAD)}
     47{/if}{/strip}
     48{strip}{if isset($current.U_DOWNLOAD)}
    4949        <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
    5050                <span class="pwg-icon pwg-icon-save">&nbsp;</span><span class="pwg-button-text">{'download'|@translate}</span>
    5151        </a>
    52 {/if}
     52{/if}{/strip}
    5353{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
    54 {if isset($favorite)}
     54{strip}{if isset($favorite)}
    5555        <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">
    5656                <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}">&nbsp;</span><span class="pwg-button-text">{'Favorites'|@translate}</span>
    5757        </a>
    58 {/if}
    59 {if isset($U_SET_AS_REPRESENTATIVE)}
     58{/if}{/strip}
     59{strip}{if isset($U_SET_AS_REPRESENTATIVE)}
    6060        <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
    6161                <span class="pwg-icon pwg-icon-representative">&nbsp;</span><span class="pwg-button-text">{'representative'|@translate}</span>
    6262        </a>
    63 {/if}
    64 {if isset($U_ADMIN)}
     63{/if}{/strip}
     64{strip}{if isset($U_ADMIN)}
    6565        <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
    6666                <span class="pwg-icon pwg-icon-edit">&nbsp;</span><span class="pwg-button-text">{'edit'|@translate}</span>
    6767        </a>
    68 {/if}
    69 {if isset($U_CADDIE)}{*caddie management BEGIN*}
     68{/if}{/strip}
     69{strip}{if isset($U_CADDIE)}{*caddie management BEGIN*}
    7070{footer_script}
    7171{literal}function addToCadie(aElement, rootUrl, id)
     
    8686                <span class="pwg-icon pwg-icon-caddie-add">&nbsp;</span><span class="pwg-button-text">{'caddie'|@translate}</span>
    8787        </a>
    88 {/if}{*caddie management END*}
     88{/if}{/strip}{*caddie management END*}
    8989</div>
    9090
    9191        {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
    92 </div> <!-- imageToolBar -->
     92</div>{*<!-- imageToolBar -->*}
    9393
    9494<div id="theImage">
     
    121121
    122122<table id="standard" class="infoTable">
     123{strip}
    123124        {if $display_info.author}
    124125        <tr id="Author">
     
    217218                        {/if}
    218219                        {/foreach}
    219                         {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
     220                        {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
    220221                        {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'}
    221222                        {footer_script}
     
    225226                                        ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} );
    226227                        {/footer_script}
     228                        {/strip}
    227229                        </div>
    228230                        </form>
     
    258260        </td></tr>
    259261{/if}
    260 
     262{/strip}
    261263</table>
    262264
Note: See TracChangeset for help on using the changeset viewer.