Changeset 30484 for extensions/greydragon/template
- Timestamp:
- Nov 14, 2014, 5:20:26 AM (9 years ago)
- Location:
- extensions/greydragon/template
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/greydragon/template/header.tpl
r30210 r30484 3 3 <head> 4 4 <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}"> 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 {if $greydragon.p_nogenerator !== "on"} 5 7 <meta name="generator" content="Piwigo (aka PWG), see piwigo.org"> 6 {if isset($meta_ref) } 8 {/if} 9 {if isset($meta_ref)} 7 10 {if isset($INFO_AUTHOR)} 8 11 <meta name="author" content="{$INFO_AUTHOR|@strip_tags:false|@replace:'"':' '}"> … … 18 21 {/if} 19 22 <title>{if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE}</title> 23 {if $greydragon.p_favicon_path} 24 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$greydragon.p_favicon_path}"> 25 {else} 20 26 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico"> 21 27 {/if} 22 28 <link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" > 23 29 <link rel="search" title="{'Search'|@translate}" href="{$ROOT_URL}search.php" > … … 27 33 {if isset($last.U_IMG) }<link rel="last" title="{'Last'|@translate}" href="{$last.U_IMG}" >{/if} 28 34 {if isset($U_UP) }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if} 29 30 35 {assign var=root value="themes/greydragon/css"} 31 36 {assign var=colorpack value=$root|cat:"/colorpack/"|cat:$greydragon.p_colorpack|cat:"/styles.css"} 32 33 37 {combine_css path="themes/greydragon/css/bootstrap.min.css" order=-100} 34 38 {combine_css path="themes/greydragon/css/styles.css" order=100} 35 39 {combine_css path="$colorpack" order=101} 36 37 40 {if count($greydragon.p_customcss) > 0 || $greydragon.p_lowertext == "on"} 38 41 {combine_css path="themes/greydragon/css/custom.css" order=101} … … 40 43 {combine_script id='greydragon.bootstrap' load='footer' require='jquery' path='themes/greydragon/js/bootstrap.min.js' order=98} 41 44 {combine_script id='greydragon.cookie' load='footer' require='jquery' path='themes/greydragon/js/jquery.cockie.js' order=99} 42 43 45 {if $SCRIPT_NAME|strstr:"picture.php"} 44 46 {assign var=includeMenu value="off" scope=root nocache} … … 56 58 {assign var=includeMenu value="on" scope=root nocache} 57 59 {/if} 58 59 60 {footer_script} 61 jQuery("div.infos").delay(8000).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); }); 62 jQuery("div.warnings").delay(8000).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); }); 63 jQuery("div.errors").click(function() { jQuery(this).animate({ 'width': 'hide' }, 500, function(){ jQuery(this).hide(); }); }); 60 64 {if $includeMenu=="on"} 61 65 {combine_script id='greydragon.scripts' load='footer' require='jquery' path='themes/greydragon/js/theme.menu.js' order=100} 62 63 66 {if isset({$greydragon.p_main_menu})} 64 67 var p_main_menu = "{$greydragon.p_main_menu}"; … … 69 72 var p_hideabout = "{$greydragon.p_hideabout}"; 70 73 {/if} 71 72 74 var p_pict_descr = "{$greydragon.p_pict_descr}"; 73 75 var p_pict_comment = "{$greydragon.p_pict_comment}"; 74 76 var p_pict_tab_anim = "{$greydragon.p_pict_tab_anim}"; 75 76 77 jQuery("#ato_header .parent:eq(0) ul").append('<li><a class="icon-brush" href="{$greydragon.U_SITE_ADMIN}theme&theme=greydragon">{'Theme Config'|translate}</a></li>'); 77 78 {/footer_script} 78 79 79 {get_combined_css} 80 80 {foreach from=$themes item=theme} … … 102 102 {/if} 103 103 </head> 104 <body id="{$BODY_ID}" class="{if $includeMenu=="on"}{$greydragon.p_main_menu}-menu{else}hide-menu{/if}{if $PAGE_BANNER}{else} no-header{/if} ">104 <body id="{$BODY_ID}" class="{if $includeMenu=="on"}{$greydragon.p_main_menu}-menu{else}hide-menu{/if}{if $PAGE_BANNER}{else} no-header{/if}{if $greydragon.p_nocounter == "on"} no-b-counter{/if}"> 105 105 <div id="the_page"> 106 106 {if not empty($header_msgs)} -
extensions/greydragon/template/menubar.tpl
r30210 r30484 4 4 <dl id="{$id}"> 5 5 {if not empty($block->template)} 6 {include file=$block->template|@get_extent:$id }6 {include file=$block->template|@get_extent:$id } 7 7 {else} 8 8 {$block->raw_content} -
extensions/greydragon/template/picture.tpl
r30210 r30484 1 1 {combine_script id='core.switchbox' load='async' require='jquery' path='themes/default/js/switchbox.js'} 2 {combine_script id='picture-js' load='async' require='jquery' path='themes/greydragon/js/theme.photo.js'} 2 {combine_script id='picture-js' load='async' require='jquery,core.switchbox' path='themes/greydragon/js/theme.photo.js'} 3 {assign var=overlay_mode value="off"} 4 {if $greydragon.p_pict_tab_mode == "txt-with-overlay" || $greydragon.p_pict_tab_mode == "ico-with-overlay"}{$overlay_mode="on"}{/if} 5 {assign var=ico_mode value="off"} 6 {if $greydragon.p_pict_tab_mode == "ico-tab-open" || $greydragon.p_pict_tab_mode == "ico-tab-close" || $greydragon.p_pict_tab_mode == "ico-with-overlay"}{$ico_mode="on"}{/if} 3 7 4 8 {if isset($MENUBAR)}{$MENUBAR}{/if} 9 5 10 <div id="content"{if isset($MENUBAR)} class="contentWithMenu"{/if}> 6 7 11 {if isset($errors) or not empty($infos)} 8 12 {include file='infos_errors.tpl'} … … 91 95 {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} 92 96 {footer_script} 93 {literal}function addToCadie(aElement, rootUrl, id) 94 { 95 if (aElement.disabled) return; 96 aElement.disabled=true; 97 var y = new PwgWS(rootUrl); 98 y.callService( 99 "pwg.caddie.add", {image_id: id} , 100 { 101 onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, 102 onSuccess: function(result) { aElement.disabled = false; } 103 } 104 ); 97 {literal}function addToCadie(aElement, rootUrl, id) { 98 if (aElement.disabled) return; 99 aElement.disabled=true; 100 var y = new PwgWS(rootUrl); 101 y.callService("pwg.caddie.add", {image_id: id}, { onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, onSuccess: function(result) { aElement.disabled = false; }}); 105 102 }{/literal} 106 103 {/footer_script} … … 149 146 </div> 150 147 {/if} *} 151 </div> 148 {if $greydragon.p_pict_tab_mode !== "hide" && $overlay_mode == "on"} 149 <div id="image-metadata-ico"> 150 <ul class="image-metadata-ico"> 151 {if isset($COMMENT_IMG)}<li class="meta-desc{if $ico_mode=="on"} glyphicon glyphicon-eye-open{/if}{if $def_tab == 'desc'} active{/if}">{if $ico_mode=="off"}{'Description'|@translate}{/if}</li>{/if} 152 <li class="meta-info {if $ico_mode=="on"} glyphicon glyphicon-info-sign{/if}{if $def_tab == 'info'} active{/if}">{if $ico_mode=="off"}{'Info'|@translate}{/if}</li> 153 {if isset($metadata)}<li class="meta-exif{if $ico_mode=="on"} glyphicon glyphicon-camera{/if}{if $def_tab == 'exif'} active{/if}">{if $ico_mode=="off"}{'Exif'|@translate}{/if}</li>{/if} 154 <li class="meta-tags{if $ico_mode=="on"} glyphicon glyphicon-tags{/if}{if $def_tab == 'tags'} active{/if}" >{if $ico_mode=="off"}{'Tags'|@translate}{/if}</li> 155 {if isset($COMMENT_COUNT)}<li class="meta-comment{if $ico_mode=="on"} glyphicon glyphicon-comment{/if}{if $def_tab == 'comments'} active{/if}">{if $ico_mode=="off"}{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}{else} {$COMMENT_COUNT}{/if}</li>{/if} 156 </ul> 157 </div> 158 {/if} 159 160 </div> 161 152 162 {assign var=def_tab value="{$greydragon.p_pict_tab_default}"} 153 163 {if !isset($metadata) && $def_tab == 'exif'}{$def_tab="desc"}{/if} 154 164 {if !isset($COMMENT_COUNT) && $def_tab == 'comments'}{$def_tab="desc"}{/if} 155 165 {if !isset($COMMENT_IMG) && $def_tab == 'desc'}{$def_tab="info"}{/if} 156 {if $ def_tab !== "hide"}166 {if $greydragon.p_pict_tab_mode !== "hide" && $overlay_mode == "off"} 157 167 <ul class="image-metadata"> 158 {if isset($COMMENT_IMG)}<li {if $def_tab == 'desc'}class="active"{/if} rel="tab-desc">{'Description'|@translate}</li>{/if} 159 <li {if $def_tab == 'info'}class="active"{/if} rel="tab-meta">{'Info'|@translate}</li> 160 {if isset($metadata)}<li {if $def_tab == 'exif'}class="active"{/if} rel="tab-exif">{'Exif'|@translate}</li>{/if} 161 <li {if $def_tab == 'tags'}class="active"{/if} rel="tab-tags">{'Tags'|@translate}</li> 162 {if isset($COMMENT_COUNT)}<li {if $def_tab == 'comments'}class="active"{/if} rel="tab-comment">{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}</li>{/if} 168 {if isset($COMMENT_IMG)}<li class="{if $ico_mode=="on"}glyphicon glyphicon-eye-open{/if}{if $def_tab == 'desc'} active{/if}" rel="tab-desc">{if $ico_mode=="off"}{'Description'|@translate}{/if}</li>{/if} 169 <li class="{if $ico_mode=="on"}glyphicon glyphicon-info-sign{/if}{if $def_tab == 'info'} active{/if}" rel="tab-meta">{if $ico_mode=="off"}{'Info'|@translate}{/if}</li> 170 {if isset($metadata)}<li class="{if $ico_mode=="on"}glyphicon glyphicon-camera{/if}{if $def_tab == 'exif'} active{/if}" rel="tab-exif">{if $ico_mode=="off"}{'Exif'|@translate}{/if}</li>{/if} 171 <li class="{if $ico_mode=="on"}glyphicon glyphicon-tags{/if}{if $def_tab == 'tags'} active{/if}" rel="tab-tags">{if $ico_mode=="off"}{'Tags'|@translate}{/if}</li> 172 {if isset($COMMENT_COUNT)}<li class="{if $ico_mode=="on"}glyphicon glyphicon-comment{/if}{if $def_tab == 'comments'} active{/if}" rel="tab-comment">{if $ico_mode=="off"}{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}{else} {$COMMENT_COUNT}{/if}</li>{/if} 173 <li id="image-metadata-toggle" class="glyphicon {if $greydragon.p_pict_tab_mode == "txt-tab-close" || $greydragon.p_pict_tab_mode == "ico-tab-close"}glyphicon-chevron-down{else}glyphicon-chevron-up{/if}" ></li> 163 174 </ul> 164 165 <div class="image-metadata-tabs"> 175 {/if} 176 {if $greydragon.p_pict_tab_mode !== "hide"} 177 <div class="image-metadata-tabs{if $overlay_mode=="on"} overlay{/if}" {if $greydragon.p_pict_tab_mode == "txt-tab-close" || $greydragon.p_pict_tab_mode == "ico-tab-close" || $overlay_mode=="on"}style="display: none;"{/if}> 166 178 {if isset($COMMENT_IMG)} 167 179 <div id="tab-desc" class="image-metadata-tab"> … … 171 183 172 184 <div id="tab-meta" class="image-metadata-tab"> 173 <dl id="standard" class="imageInfoTable ">185 <dl id="standard" class="imageInfoTable dl-horizontal"> 174 186 {strip} 175 187 {if $display_info.author and isset($INFO_AUTHOR)} 176 <div id="Author" class="imageInfo"> 177 <dt>{'Author'|@translate}</dt> 178 <dd>{$INFO_AUTHOR}</dd> 179 </div> 188 <dt id="Author" class="imageInfo">{'Author'|@translate}</dt> 189 <dd>{$INFO_AUTHOR}</dd> 180 190 {/if} 181 191 {if $display_info.created_on and isset($INFO_CREATION_DATE)} 182 <div id="datecreate" class="imageInfo"> 183 <dt>{'Created on'|@translate}</dt> 184 <dd>{$INFO_CREATION_DATE}</dd> 185 </div> 192 <dt id="datecreate">{'Created on'|@translate}</dt> 193 <dd>{$INFO_CREATION_DATE}</dd> 186 194 {/if} 187 195 {if $display_info.posted_on} 188 <div id="datepost" class="imageInfo"> 189 <dt>{'Posted on'|@translate}</dt> 190 <dd>{$INFO_POSTED_DATE}</dd> 191 </div> 196 <dt id="datepost">{'Posted on'|@translate}</dt> 197 <dd>{$INFO_POSTED_DATE}</dd> 192 198 {/if} 193 199 {if $display_info.dimensions and isset($INFO_DIMENSIONS)} 194 <div id="Dimensions" class="imageInfo"> 195 <dt>{'Dimensions'|@translate}</dt> 196 <dd>{$INFO_DIMENSIONS}</dd> 197 </div> 200 <dt id="Dimensions">{'Dimensions'|@translate}</dt> 201 <dd>{$INFO_DIMENSIONS}</dd> 198 202 {/if} 199 203 {if $display_info.file} 200 <div id="File" class="imageInfo"> 201 <dt>{'File'|@translate}</dt> 202 <dd>{$INFO_FILE}</dd> 203 </div> 204 <dt id="File">{'File'|@translate}</dt> 205 <dd>{$INFO_FILE}</dd> 204 206 {/if} 205 207 {if $display_info.filesize and isset($INFO_FILESIZE)} 206 <div id="Filesize" class="imageInfo"> 207 <dt>{'Filesize'|@translate}</dt> 208 <dd>{$INFO_FILESIZE}</dd> 209 </div> 208 <dt id="Filesize">{'Filesize'|@translate}</dt> 209 <dd>{$INFO_FILESIZE}</dd> 210 210 {/if} 211 211 {if $display_info.categories and isset($related_categories)} 212 <div id="Categories" class="imageInfo"> 213 <dt>{'Albums'|@translate}</dt> 214 <dd> 215 <ul> 216 {foreach from=$related_categories item=cat} 217 <li>{$cat}</li> 218 {/foreach} 219 </ul> 220 </dd> 221 </div> 212 <dt id="Categories">{'Albums'|@translate}</dt> 213 <dd> 214 <ul> 215 {foreach from=$related_categories item=cat} 216 <li>{$cat}</li> 217 {/foreach} 218 </ul> 219 </dd> 222 220 {/if} 223 221 {if $display_info.visits} 224 <div id="Visits" class="imageInfo"> 225 <dt>{'Visits'|@translate}</dt> 226 <dd>{$INFO_VISITS}</dd> 227 </div> 228 {/if} 229 222 <dt id="Visits">{'Visits'|@translate}</dt> 223 <dd>{$INFO_VISITS}</dd> 224 {/if} 230 225 {if $display_info.rating_score and isset($rate_summary)} 231 <div id="Average" class="imageInfo"> 232 <dt>{'Rating score'|@translate}</dt> 233 <dd> 234 {if $rate_summary.count} 235 <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$rate_summary.count|@translate_dec:'%d rate':'%d rates'})</span> 236 {else} 237 <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span> 238 {/if} 239 </dd> 240 </div> 226 <dt id="Average">{'Rating score'|@translate}</dt> 227 <dd> 228 {if $rate_summary.count} 229 <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$rate_summary.count|@translate_dec:'%d rate':'%d rates'})</span> 230 {else} 231 <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span> 232 {/if} 233 </dd> 241 234 {/if} 242 235 243 236 {if isset($rating)} 244 <div id="rating" class="imageInfo"> 245 <dt> 246 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> 247 </dt> 248 <dd> 249 <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> 250 <div> 251 {foreach from=$rating.marks item=mark name=rate_loop} 252 {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} 253 <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> 254 {else} 255 <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> 256 {/if} 257 {/foreach} 258 {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 237 <dt id="rating" > 238 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> 239 </dt> 240 <dd> 241 <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> 242 {foreach from=$rating.marks item=mark name=rate_loop} 243 {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} 244 <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> 245 {else} 246 <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> 247 {/if} 248 {/foreach} 249 {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 259 250 {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} 260 251 {footer_script} … … 276 267 {rdelim}{rdelim} ); 277 268 {/footer_script} 278 {/strip} 279 </div> 280 </form> 281 </dd> 282 </div> 269 {/strip} 270 </form> 271 </dd> 283 272 {/if} 284 273 285 274 {if $display_info.privacy_level and isset($available_permission_levels)} 286 <div id="Privacy" class="imageInfo"> 287 <dt>{'Who can see this photo?'|@translate}</dt> 288 <dd> 289 <div> 290 <a id="privacyLevelLink" href>{$available_permission_levels[$current.level]}</a> 291 </div> 275 <dt id="Privacy">{'Who can see this photo?'|@translate}</dt> 276 <dd> 277 <a id="privacyLevelLink" href>{$available_permission_levels[$current.level]}</a> 292 278 {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 293 279 {footer_script require='jquery'}{strip} … … 308 294 (SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox"); 309 295 {/strip}{/footer_script} 310 311 296 <div id="privacyLevelBox" class="switchBox" style="display:none"> 297 {foreach from=$available_permission_levels item=label key=level} 312 298 <span class="switchCheck"{if $level != $current.level} style="visibility:hidden"{/if}>✔ </span> 313 299 <a id="switchLevel{$level}" href="javascript:setPrivacyLevel({$current.id},{$level})">{$label}</a><br> 314 {/foreach} 315 </div> 316 </dd> 317 </div> 318 {/if} 319 {/strip} 300 {/foreach} 301 </div> 302 </dd> 303 {/if} 304 {/strip} 320 305 </dl> 321 </div> 306 </div> 322 307 323 308 {if isset($metadata)} 324 309 <div id="tab-exif" class="image-metadata-tab"> 325 <dl id=" Metadata" class="imageInfoTable">310 <dl id="metadata" class="imageInfoTable dl-horizontal"> 326 311 {foreach from=$metadata item=meta} 327 312 {foreach from=$meta.lines item=value key=label} 328 <div class="imageInfo">329 313 <dt>{$label}</dt> 330 314 <dd>{$value}</dd> 331 </div>332 315 {/foreach} 333 316 {/foreach} … … 338 321 <div id="tab-tags" class="image-metadata-tab"> 339 322 {if $display_info.tags and isset($related_tags)} 340 <div> 341 <dd> 323 <dd> 342 324 {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}<a href="{$tag.URL}">{$tag.name}</a>{/foreach} 343 </dd> 344 </div> 325 </dd> 326 {else} 327 ... 345 328 {/if} 346 329 </div> … … 390 373 </div> 391 374 {/if} 375 </div> 392 376 {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}
Note: See TracChangeset
for help on using the changeset viewer.