Changeset 8757


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

Legend:

Unmodified
Added
Removed
  • trunk/include/config_default.inc.php

    r8728 r8757  
    602602// menubar_tag_cloud_items_number: number of tags to show in the tag
    603603// cloud in the menubar. Only the most represented tags will be shown
    604 $conf['menubar_tag_cloud_items_number'] = 100;
     604$conf['menubar_tag_cloud_items_number'] = 20;
    605605
    606606// content_tag_cloud_items_number: number of related tags to show in the tag
  • 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
  • trunk/themes/default/template/picture_nav_buttons.tpl

    r8299 r8757  
    3131        </a>
    3232{/if}
    33 {if isset($first)}
     33{strip}{if isset($first)}
    3434        <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button">
    3535                <span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
     
    3939                <span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
    4040        </span>
    41 {/if}
    42 {if isset($previous)}
     41{/if}{/strip}
     42{strip}{if isset($previous)}
    4343        <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button">
    4444                <span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
     
    4848                <span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
    4949        </span>
    50 {/if}
     50{/if}{/strip}
    5151{if isset($slideshow.U_START_PLAY)}
    5252        <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button">
     
    5959        </a>
    6060{/if}
    61 {if isset($U_UP) and !isset($slideshow)}
     61{strip}{if isset($U_UP) and !isset($slideshow)}
    6262        <a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button">
    6363                <span class="pwg-icon pwg-icon-arrow-n">&nbsp;</span><span class="pwg-button-text">{'Thumbnails'|@translate}</span>
    6464        </a>
    65 {/if}
    66 {if isset($next)}
     65{/if}{/strip}
     66{strip}{if isset($next)}
    6767        <a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
    6868                <span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
     
    7272                <span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
    7373        </span>
    74 {/if}
    75 {if isset($last)}
     74{/if}{/strip}
     75{strip}{if isset($last)}
    7676        <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
    7777                <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span>
     
    8181                <span class="pwg-icon pwg-icon-arrowstop-e">&nbsp;</span><span class="pwg-button-text">{'Last'|@translate}</span>
    8282        </span>
    83 {/if}
     83{/if}{/strip}
    8484{/if}
    8585</div>
    86 
    87 {footer_script}{literal}
    88 document.onkeydown = function(e)
    89 {
     86{strip}
     87{footer_script}
     88document.onkeydown = function(e){ldelim}
    9089        e=e||window.event;
    9190        if (e.altKey) return true;
    92         var target = e.target||e.srcElement;
    93         if (target && target.type) return true; //an input editable element
    94         var keyCode = e.keyCode||e.which;
    95         var docElem = document.documentElement;
    96         var url;
    97         switch(keyCode) {
    98 {/literal}
     91        var target=e.target||e.srcElement;
     92        if (target && target.type) return true;{* an input editable element *}
     93        var keyCode=e.keyCode||e.which, docElem=document.documentElement, url;
     94        switch(keyCode){ldelim}
    9995{if isset($next)}
    100         case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}";  break;
     96        case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break;
    10197{/if}
    10298{if isset($previous)}
     
    104100{/if}
    105101{if isset($first)}
    106         /*Home*/case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
     102        {* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
    107103{/if}
    108104{if isset($last)}
    109         /*End*/case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
     105        {* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
    110106{/if}
    111107{if isset($U_UP) and !isset($slideshow)}
    112         /*Up*/case 38: if (e.ctrlKey)url="{$U_UP}"; break;
     108        {* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break;
    113109{/if}
    114110{if isset($slideshow.U_START_PLAY)}
    115         /*Pause*/case 32: url="{$slideshow.U_START_PLAY}"; break;
     111        {* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break;
    116112{/if}
    117113{if isset($slideshow.U_STOP_PLAY)}
    118         /*Play*/case 32: url="{$slideshow.U_STOP_PLAY}"; break;
     114        {* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break;
    119115{/if}
    120116        }
     
    123119}
    124120{/footer_script}
     121{/strip}
Note: See TracChangeset for help on using the changeset viewer.