Changeset 8757
- Timestamp:
- Jan 18, 2011, 10:12:42 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config_default.inc.php
r8728 r8757 602 602 // menubar_tag_cloud_items_number: number of tags to show in the tag 603 603 // 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; 605 605 606 606 // content_tag_cloud_items_number: number of related tags to show in the tag -
trunk/themes/default/template/picture.tpl
r8711 r8757 36 36 <div id="imageToolBar"> 37 37 <div class="actionButtons"> 38 { if isset($U_SLIDESHOW_START)}38 {strip}{if isset($U_SLIDESHOW_START)} 39 39 <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 40 40 <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span> 41 41 </a> 42 {/if} 43 { if isset($U_METADATA)}42 {/if}{/strip} 43 {strip}{if isset($U_METADATA)} 44 44 <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 45 45 <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span> 46 46 </a> 47 {/if} 48 { if isset($current.U_DOWNLOAD)}47 {/if}{/strip} 48 {strip}{if isset($current.U_DOWNLOAD)} 49 49 <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 50 50 <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'download'|@translate}</span> 51 51 </a> 52 {/if} 52 {/if}{/strip} 53 53 {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 54 { if isset($favorite)}54 {strip}{if isset($favorite)} 55 55 <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"> 56 56 <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span> 57 57 </a> 58 {/if} 59 { if isset($U_SET_AS_REPRESENTATIVE)}58 {/if}{/strip} 59 {strip}{if isset($U_SET_AS_REPRESENTATIVE)} 60 60 <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 61 61 <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span> 62 62 </a> 63 {/if} 64 { if isset($U_ADMIN)}63 {/if}{/strip} 64 {strip}{if isset($U_ADMIN)} 65 65 <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 66 66 <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'edit'|@translate}</span> 67 67 </a> 68 {/if} 69 { if isset($U_CADDIE)}{*caddie management BEGIN*}68 {/if}{/strip} 69 {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} 70 70 {footer_script} 71 71 {literal}function addToCadie(aElement, rootUrl, id) … … 86 86 <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span> 87 87 </a> 88 {/if}{ *caddie management END*}88 {/if}{/strip}{*caddie management END*} 89 89 </div> 90 90 91 91 {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} 92 </div> <!-- imageToolBar -->92 </div>{*<!-- imageToolBar -->*} 93 93 94 94 <div id="theImage"> … … 121 121 122 122 <table id="standard" class="infoTable"> 123 {strip} 123 124 {if $display_info.author} 124 125 <tr id="Author"> … … 217 218 {/if} 218 219 {/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'} 220 221 {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} 221 222 {footer_script} … … 225 226 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} ); 226 227 {/footer_script} 228 {/strip} 227 229 </div> 228 230 </form> … … 258 260 </td></tr> 259 261 {/if} 260 262 {/strip} 261 263 </table> 262 264 -
trunk/themes/default/template/picture_nav_buttons.tpl
r8299 r8757 31 31 </a> 32 32 {/if} 33 { if isset($first)}33 {strip}{if isset($first)} 34 34 <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button"> 35 35 <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> … … 39 39 <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> 40 40 </span> 41 {/if} 42 { if isset($previous)}41 {/if}{/strip} 42 {strip}{if isset($previous)} 43 43 <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button"> 44 44 <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> … … 48 48 <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> 49 49 </span> 50 {/if} 50 {/if}{/strip} 51 51 {if isset($slideshow.U_START_PLAY)} 52 52 <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button"> … … 59 59 </a> 60 60 {/if} 61 { if isset($U_UP) and !isset($slideshow)}61 {strip}{if isset($U_UP) and !isset($slideshow)} 62 62 <a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button"> 63 63 <span class="pwg-icon pwg-icon-arrow-n"> </span><span class="pwg-button-text">{'Thumbnails'|@translate}</span> 64 64 </a> 65 {/if} 66 { if isset($next)}65 {/if}{/strip} 66 {strip}{if isset($next)} 67 67 <a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> 68 68 <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> … … 72 72 <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> 73 73 </span> 74 {/if} 75 { if isset($last)}74 {/if}{/strip} 75 {strip}{if isset($last)} 76 76 <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> 77 77 <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span> … … 81 81 <span class="pwg-icon pwg-icon-arrowstop-e"> </span><span class="pwg-button-text">{'Last'|@translate}</span> 82 82 </span> 83 {/if} 83 {/if}{/strip} 84 84 {/if} 85 85 </div> 86 87 {footer_script}{literal} 88 document.onkeydown = function(e) 89 { 86 {strip} 87 {footer_script} 88 document.onkeydown = function(e){ldelim} 90 89 e=e||window.event; 91 90 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} 99 95 {if isset($next)} 100 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; 96 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break; 101 97 {/if} 102 98 {if isset($previous)} … … 104 100 {/if} 105 101 {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; 107 103 {/if} 108 104 {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; 110 106 {/if} 111 107 {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; 113 109 {/if} 114 110 {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; 116 112 {/if} 117 113 {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; 119 115 {/if} 120 116 } … … 123 119 } 124 120 {/footer_script} 121 {/strip}
Note: See TracChangeset
for help on using the changeset viewer.