Changeset 21995 for extensions/stripped/template
- Timestamp:
- Apr 3, 2013, 6:31:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/template/picture.tpl
r21215 r21995 204 204 {if $display_info_panel} 205 205 <div id="Tinfo" class="tabBlock"><div class="tabBlockContent"> 206 <table id="standard" class="infoTable"> 207 {if $display_info.author} 208 <tr id="Author"> 209 <td class="label">{'Author'|@translate}</td> 210 <td class="value">{if isset($INFO_AUTHOR)}{$INFO_AUTHOR}{else}{'N/A'|@translate}{/if}</td> 211 </tr> 212 {/if} 213 {if $display_info.created_on} 214 <tr id="datecreate"> 215 <td class="label">{'Created on'|@translate}</td> 216 <td class="value">{if isset($INFO_CREATION_DATE)}{$INFO_CREATION_DATE}{else}{'N/A'|@translate}{/if}</td> 217 </tr> 218 {/if} 219 {if $display_info.posted_on} 220 <tr id="datepost"> 221 <td class="label">{'Posted on'|@translate}</td> 222 <td class="value">{$INFO_POSTED_DATE}</td> 223 </tr> 224 {/if} 225 {if $display_info.dimensions} 226 <tr id="Dimensions"> 227 <td class="label">{'Dimensions'|@translate}</td> 228 <td class="value">{if isset($INFO_DIMENSIONS)}{$INFO_DIMENSIONS}{else}{'N/A'|@translate}{/if}</td> 229 </tr> 230 {/if} 231 {if $display_info.file} 232 <tr id="File"> 233 <td class="label">{'File'|@translate}</td> 234 <td class="value">{$INFO_FILE}</td> 235 </tr> 236 {/if} 237 {if $display_info.filesize} 238 <tr id="Filesize"> 239 <td class="label">{'Filesize'|@translate}</td> 240 <td class="value">{if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if}</td> 241 </tr> 242 {/if} 243 {if $display_info.categories} 244 <tr id="Categories"> 245 <td class="label">{'Categories'|@translate}</td> 246 <td class="value"> 247 {if isset($related_categories)} 248 <ul> 249 {foreach from=$related_categories item=cat} 250 <li>{$cat}</li> 251 {/foreach} 252 </ul> 253 {/if} 254 </td> 255 </tr> 256 {/if} 257 {if $display_info.visits} 258 <tr id="Visits"> 259 <td class="label">{'Visits'|@translate}</td> 260 <td class="value">{$INFO_VISITS}</td> 261 </tr> 262 {/if} 263 264 {if $display_info.rating_score and isset($rate_summary) } 265 <tr id="Score"> 266 <td class="label">{'Rating score'|@translate}</td> 267 <td class="value"> 268 {if $rate_summary.count} 269 {if $rate_summary.count == 1} 270 {assign var='rate_text' value='%d rate'|@translate} 271 {else} 272 {assign var='rate_text' value='%d rates'|@translate} 273 {/if} 274 <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$pwg->sprintf($rate_text, $rate_summary.count)})</span> 275 {else} 276 <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span> 277 {/if} 278 </td> 279 </tr> 280 {/if} 281 282 {if isset($rating)} 283 <tr id="Rating"> 284 <td class="label"> 285 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> 286 </td> 287 <td class="value"> 206 207 <dl id="standard" class="imageInfoTable"> 208 {strip} 209 {if $display_info.author and isset($INFO_AUTHOR)} 210 <div id="Author" class="imageInfo"> 211 <dt>{'Author'|@translate}</dt> 212 <dd>{$INFO_AUTHOR}</dd> 213 </div> 214 {/if} 215 {if $display_info.created_on and isset($INFO_CREATION_DATE)} 216 <div id="datecreate" class="imageInfo"> 217 <dt>{'Created on'|@translate}</dt> 218 <dd>{$INFO_CREATION_DATE}</dd> 219 </div> 220 {/if} 221 {if $display_info.posted_on} 222 <div id="datepost" class="imageInfo"> 223 <dt>{'Posted on'|@translate}</dt> 224 <dd>{$INFO_POSTED_DATE}</dd> 225 </div> 226 {/if} 227 {if $display_info.dimensions and isset($INFO_DIMENSIONS)} 228 <div id="Dimensions" class="imageInfo"> 229 <dt>{'Dimensions'|@translate}</dt> 230 <dd>{$INFO_DIMENSIONS}</dd> 231 </div> 232 {/if} 233 {if $display_info.file} 234 <div id="File" class="imageInfo"> 235 <dt>{'File'|@translate}</dt> 236 <dd>{$INFO_FILE}</dd> 237 </div> 238 {/if} 239 {if $display_info.filesize and isset($INFO_FILESIZE)} 240 <div id="Filesize" class="imageInfo"> 241 <dt>{'Filesize'|@translate}</dt> 242 <dd>{$INFO_FILESIZE}</dd> 243 </div> 244 {/if} 245 {if $display_info.tags and isset($related_tags)} 246 <div id="Tags" class="imageInfo"> 247 <dt>{'Tags'|@translate}</dt> 248 <dd> 249 {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}<a href="{$tag.URL}">{$tag.name}</a>{/foreach} 250 </dd> 251 </div> 252 {/if} 253 {if $display_info.categories and isset($related_categories)} 254 <div id="Categories" class="imageInfo"> 255 <dt>{'Albums'|@translate}</dt> 256 <dd> 257 <ul> 258 {foreach from=$related_categories item=cat} 259 <li>{$cat}</li> 260 {/foreach} 261 </ul> 262 </dd> 263 </div> 264 {/if} 265 {if $display_info.visits} 266 <div id="Visits" class="imageInfo"> 267 <dt>{'Visits'|@translate}</dt> 268 <dd>{$INFO_VISITS}</dd> 269 </div> 270 {/if} 271 {if $display_info.rating_score and isset($rate_summary)} 272 <div id="Average" class="imageInfo"> 273 <dt>{'Rating score'|@translate}</dt> 274 <dd> 275 {if $rate_summary.count} 276 {if $rate_summary.count == 1} 277 {assign var='rate_text' value='%d rate'|@translate} 278 {else} 279 {assign var='rate_text' value='%d rates'|@translate} 280 {/if} 281 <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$pwg->sprintf($rate_text, $rate_summary.count)})</span> 282 {else} 283 <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span> 284 {/if} 285 </dd> 286 </div> 287 {/if} 288 {if isset($rating)} 289 <div id="rating" class="imageInfo"> 290 <dt> 291 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> 292 </dt> 293 <dd> 288 294 <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> 289 295 <div> … … 306 312 </div> 307 313 </form> 308 </td> 309 </tr> 310 {/if} 311 314 </dd> 315 </div> 316 {/if} 317 {/strip} 318 </dl> 319 320 <table id="standard" class="infoTable"> 312 321 {if $display_info.privacy_level and isset($available_permission_levels)} 313 322 <tr id="Privacy"> … … 338 347 </tr> 339 348 {/if} 340 341 349 </table> 342 350 </div></div>
Note: See TracChangeset
for help on using the changeset viewer.