diff options
Diffstat (limited to '')
-rw-r--r-- | template-extension/distributed/samples/my-thumbnails.tpl | 8 | ||||
-rw-r--r-- | template-extension/distributed/samples/my-thumbnails2.tpl | 6 | ||||
-rw-r--r-- | template/yoga/mainpage_categories.tpl | 46 | ||||
-rw-r--r-- | template/yoga/thumbnails.tpl | 10 |
4 files changed, 35 insertions, 35 deletions
diff --git a/template-extension/distributed/samples/my-thumbnails.tpl b/template-extension/distributed/samples/my-thumbnails.tpl index df39ab019..068ec5561 100644 --- a/template-extension/distributed/samples/my-thumbnails.tpl +++ b/template-extension/distributed/samples/my-thumbnails.tpl @@ -6,14 +6,14 @@ <li> <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 href="{$thumbnail.URL}"> + <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" /> </a> </span> <span class="thumbLegend" style="color:#F36;"> © 2008 Piwigo<br /> - {if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if} - {if !empty($thumbnail.IMAGE_TS)}{$thumbnail.IMAGE_TS}{/if} + {if !empty($thumbnail.NAME)}{$thumbnail.NAME}{/if} + {if !empty($thumbnail.ICON_TS)}{$thumbnail.ICON_TS}{/if} {if isset($thumbnail.NB_COMMENTS)} <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> diff --git a/template-extension/distributed/samples/my-thumbnails2.tpl b/template-extension/distributed/samples/my-thumbnails2.tpl index 205cc80e8..f65f8f31b 100644 --- a/template-extension/distributed/samples/my-thumbnails2.tpl +++ b/template-extension/distributed/samples/my-thumbnails2.tpl @@ -7,10 +7,10 @@ <li> <fieldset class="fld1"> <legend class="thumbLegend"> - {if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if} + {if !empty($thumbnail.NAME)}{$thumbnail.NAME}{/if} </legend> - <a href="{$thumbnail.U_IMG_LINK}" class="lap2"> - <span><img class="thumbnail" src="{$thumbnail.IMAGE}" alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}" /></span> + <a href="{$thumbnail.URL}" class="lap2"> + <span><img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" /></span> </a> </fieldset> </li> diff --git a/template/yoga/mainpage_categories.tpl b/template/yoga/mainpage_categories.tpl index b28c619fb..226a82c05 100644 --- a/template/yoga/mainpage_categories.tpl +++ b/template/yoga/mainpage_categories.tpl @@ -1,27 +1,29 @@ {* $Id$ *} <ul class="thumbnailCategories"> - {foreach from=$category_thumbnails item=cat} - <li> - <div class="thumbnailCategory"> - <div class="illustration"> - <a href="{$cat.URL}"> - <img src="{$cat.TN_SRC}" alt="{$cat.ALT}" title="{'hint_category'|@translate}"> - </a> - </div> - <div class="description"> - <h3> - <a href="{$cat.URL}">{$cat.NAME}</a> - {$cat.ICON} - </h3> - {if isset($cat.INFO_DATES) } - <p>{$cat.INFO_DATES}</p> - {/if} - <p>{$cat.CAPTION_NB_IMAGES}</p> - <p>{$cat.DESCRIPTION}</p> - </div> - </div> - </li> - {/foreach} +{foreach from=$category_thumbnails item=cat} + <li> + <div class="thumbnailCategory"> + <div class="illustration"> + <a href="{$cat.URL}"> + <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{'hint_category'|@translate}"> + </a> + </div> + <div class="description"> + <h3> + <a href="{$cat.URL}">{$cat.NAME}</a> + {$cat.ICON_TS} + </h3> + {if isset($cat.INFO_DATES) } + <p>{$cat.INFO_DATES}</p> + {/if} + <p>{$cat.CAPTION_NB_IMAGES}</p> + {if not empty($cat.DESCRIPTION)} + <p>{$cat.DESCRIPTION}</p> + {/if} + </div> + </div> + </li> +{/foreach} </ul> diff --git a/template/yoga/thumbnails.tpl b/template/yoga/thumbnails.tpl index 2fd37f649..66829ecec 100644 --- a/template/yoga/thumbnails.tpl +++ b/template/yoga/thumbnails.tpl @@ -6,15 +6,13 @@ <li> <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 href="{$thumbnail.URL}"> + <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" /> </a> </span> <span class="thumbLegend"> - - {if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if} - {if !empty($thumbnail.IMAGE_TS)}{$thumbnail.IMAGE_TS}{/if} - + {$thumbnail.NAME|@default} + {$thumbnail.ICON_TS} {if isset($thumbnail.NB_COMMENTS)} <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> <br /> |