diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-01-20 05:36:58 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-01-20 05:36:58 +0000 |
commit | b7fff52095e774c9e905aafe980fec251ee3eaca (patch) | |
tree | e6b8c2fdad5d490749832f709d75f94a2ceaf659 /themes/default/template | |
parent | 99b58aef93c2a681ded76d2ba44a28cdef397291 (diff) |
feature 2548 multisize
- comments thumbnails + no more hard coded thumbnail sizes in css
- removed admin thumbnail page + language cleanup
git-svn-id: http://piwigo.org/svn/trunk@12930 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | themes/default/template/comment_list.tpl | 16 | ||||
-rw-r--r-- | themes/default/template/comments.tpl | 2 |
2 files changed, 14 insertions, 4 deletions
diff --git a/themes/default/template/comment_list.tpl b/themes/default/template/comment_list.tpl index 2ff4d03e8..534d04bd7 100644 --- a/themes/default/template/comment_list.tpl +++ b/themes/default/template/comment_list.tpl @@ -1,12 +1,22 @@ -{* $Id$ *} +{if isset($comment_derivative_params)} +{strip}{html_style} +.thumbnailCategory DIV.illustration{ldelim} + width: {$comment_derivative_params->max_width()+5}px; +} + +.content .thumbnailCategory .description{ldelim} + height: {$comment_derivative_params->max_height()+5}px; +} +{/html_style}{/strip} +{/if} <ul class="thumbnailCategories"> {foreach from=$comments item=comment name=comment_loop} <li> <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> - {if isset($comment.TN_SRC)} + {if isset($comment.src_image)} <div class="illustration"> <a href="{$comment.U_PICTURE}"> - <img src="{$comment.TN_SRC}" alt="{$comment.ALT}"> + <img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}"> </a> </div> {/if} diff --git a/themes/default/template/comments.tpl b/themes/default/template/comments.tpl index fd2cace00..92c1cc2db 100644 --- a/themes/default/template/comments.tpl +++ b/themes/default/template/comments.tpl @@ -73,7 +73,7 @@ {if isset($comments)} <div id="comments"> - {include file='comment_list.tpl'} + {include file='comment_list.tpl' comment_derivative_params=$derivative_params} </div> {/if} |