diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-03-01 14:24:04 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-03-01 14:24:04 +0000 |
commit | 732e456b3ba0c3e9ff4134e0ea815df03375918b (patch) | |
tree | 1bec560e6642d417c37a161b0de39d778686f8e3 /template/yoga/thumbnails.tpl | |
parent | e6b785cbaa554d815a385e380ff959c7dea595ba (diff) |
- thumbnails.tpl migration
git-svn-id: http://piwigo.org/svn/trunk@2234 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | template/yoga/thumbnails.tpl | 78 |
1 files changed, 38 insertions, 40 deletions
diff --git a/template/yoga/thumbnails.tpl b/template/yoga/thumbnails.tpl index 84c814a76..106a20847 100644 --- a/template/yoga/thumbnails.tpl +++ b/template/yoga/thumbnails.tpl @@ -1,43 +1,41 @@ -<!-- DEV TAG: not smarty migrated --> -<!-- $Id$ --> -<!-- BEGIN thumbnails --> +{* $Id$ *} + +{if !empty($thumbnails)} <ul class="thumbnails"> - <!-- BEGIN line --> - <!-- BEGIN thumbnail --> - <li class="{thumbnails.line.thumbnail.CLASS}"> - <span class="wrap1"> - <span class="wrap2"> - <a href="{thumbnails.line.thumbnail.U_IMG_LINK}"> - <img class="thumbnail" src="{thumbnails.line.thumbnail.IMAGE}" - alt="{thumbnails.line.thumbnail.IMAGE_ALT}" - title="{thumbnails.line.thumbnail.IMAGE_TITLE}"> - </a> - </span> - <span class="thumbLegend"> - <!-- BEGIN element_name --> - {thumbnails.line.thumbnail.element_name.NAME} - <!-- END element_name --> - <!-- BEGIN category_name --> - [{thumbnails.line.thumbnail.category_name.NAME}] - <!-- END category_name --> - {thumbnails.line.thumbnail.IMAGE_TS} - <!-- BEGIN nb_comments --> - <span class="{thumbnails.line.thumbnail.nb_comments.CLASS}"> - <br /> - {thumbnails.line.thumbnail.nb_comments.NB_COMMENTS} - </span> - <!-- END nb_comments --> - <!-- BEGIN nb_hits --> - <span class="{thumbnails.line.thumbnail.nb_hits.CLASS}"> - <br /> - {thumbnails.line.thumbnail.nb_hits.HITS} - </span> - <!-- END nb_hits --> - </span> - </span> - </li> - <!-- END thumbnail --> - <!-- END line --> +{foreach from=$thumbnails item=thumbnail} + <li class="{$thumbnail.CLASS}"> + <span class="wrap1"> + <span class="wrap2"> + <a href="{$thumbnail.U_IMG_LINK}"> + <img class="thumbnail" src="{$thumbnail.IMAGE}" + alt="{$thumbnail.IMAGE_ALT}" + title="{$thumbnail.IMAGE_TITLE}"> + </a> + </span> + <span class="thumbLegend"> + {if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if} + {if !empty($thumbnail.CATEGORY_NAME)}{$thumbnail.CATEGORY_NAME}{/if} + {if !empty($thumbnail.IMAGE_TS)}{$thumbnail.IMAGE_TS}{/if} + + {if !empty($thumbnail.nb_comments)} + <span class="{$thumbnail.nb_comments.CLASS} nb-comments"> + <br /> + {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.nb_comments.NB_COMMENTS)} + </span> + {/if} + + {if !empty($thumbnail.nb_hits)} + <span class="{$thumbnail.nb_hits.CLASS} nb-hits"> + <br /> + {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.nb_hits.HITS)} + </span> + {/if} + </span> + </span> + </li> +{/foreach} </ul> -<!-- END thumbnails --> +{/if} + + |