Changeset 2462
- Timestamp:
- Jul 30, 2008, 9:24:55 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r2434 r2462 174 174 // $localphp = '../.' . substr($localtpl,0,-3).'php'; 175 175 // if (file_exists($localphp)) @include_once($localphp); 176 177 /* Does it have a samename.css available */ 178 $localcss = substr($localtpl,0,-3).'css'; 179 if (file_exists($localcss)) 180 { 181 $this->html_head_elements[] = 182 '<link rel="stylesheet" type="text/css" href="' 183 . substr($localcss, 2) . '">'; 184 } 176 185 } 177 186 } -
trunk/template-extension/distributed/samples/my-thumbnails2.tpl
r2434 r2462 5 5 {foreach from=$thumbnails item=thumbnail} 6 6 <li> 7 <span class="wrap1"> 8 <span class="wrap2"> 9 <a href="{$thumbnail.U_IMG_LINK}"> 7 <fieldset class="wrap1"> 8 <legend class="thumbLegend"> 9 {if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if} 10 </legend> 11 <a href="{$thumbnail.U_IMG_LINK}" class="wrap2"> 10 12 <img class="thumbnail" src="{$thumbnail.IMAGE}" alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}" /> 11 13 </a> 12 </span> 13 <span class="thumbLegend" style="color:#3F6;"> 14 © 2008 Piwigo<br /> 15 {if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if} 16 {if !empty($thumbnail.IMAGE_TS)}{$thumbnail.IMAGE_TS}{/if} 17 18 {if isset($thumbnail.NB_COMMENTS)} 19 <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> 20 <br /> 21 {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)} 22 </span> 23 {/if} 24 25 {if isset($thumbnail.NB_HITS)} 26 <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits"> 27 <br /> 28 {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)} 29 </span> 30 {/if} 31 </span> 32 </span> 14 </fieldset> 33 15 </li> 34 16 {/foreach}
Note: See TracChangeset
for help on using the changeset viewer.