diff options
| author | Christian Fowler <spider@viovio.com> | 2010-01-30 21:52:52 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2010-01-30 21:52:52 +0000 |
| commit | edc33813d1d2fbef154c34f2f2a078ee01cb81d8 (patch) | |
| tree | 9515eba503493960258d3e32e2075d59cfcc558f | |
| parent | e49d08e0c7871867e78fb301b5bf58b252a4447d (diff) | |
| download | liberty-edc33813d1d2fbef154c34f2f2a078ee01cb81d8.tar.gz liberty-edc33813d1d2fbef154c34f2f2a078ee01cb81d8.tar.bz2 liberty-edc33813d1d2fbef154c34f2f2a078ee01cb81d8.zip | |
add View link
| -rwxr-xr-x | templates/center_recent_comments.tpl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/center_recent_comments.tpl b/templates/center_recent_comments.tpl index 58b8ac7..b69b199 100755 --- a/templates/center_recent_comments.tpl +++ b/templates/center_recent_comments.tpl @@ -4,13 +4,17 @@ <div class="header"> <h1>{tr}{$moduleTitle}{/tr}</h1> </div> - <div class="body"> + + <div class="body comments"> <ul class="data"> {section name=ix loop=$modLastComments} <li class="item"> - <a href="{$modLastComments[ix].object->getDisplayUrl()}"><img style="width:50px;float:left;" src="{if $modLastComments[ix].object->getThumbnailUrl($moduleParams.module_params.thumb_size)}{$modLastComments[ix].object->getThumbnailUrl($moduleParams.module_params.thumb_size)}{else}{$smarty.const.USERS_PKG_URL}icons/silhouette.png{/if}" alt="{$modLastComments[ix].object->getTitle()|escape}" title="{$modLastComments[ix].object->getTitle()|escape}" /></a> + <a href="{$modLastComments[ix].display_url}"><img style="width:50px;float:left;" src="{$modLastComments[ix].object->getThumbnailUrl($moduleParams.module_params.thumb_size)|default:"`$smarty.const.USERS_PKG_URL`icons/silhouette.png"}" alt="{$modLastComments[ix].object->getTitle()|escape}" title="{$modLastComments[ix].object->getTitle()|escape}" /></a> <div style="margin-left:60px;vertical-align:top;min-height:40px;margin-bottom:10px;background-color:#eee;padding:5px;"> - {displayname hash=$modLastComments[ix]} {$modLastComments[ix].parsed_data} + {if !empty($modLastComments[ix].title)}<div><strong>{$modLastComments[ix].title|escape}</strong></div>{/if} + {$modLastComments[ix].parsed_data} +<div>- {displayname hash=$modLastComments[ix]}</div> + <div class="actiontext"><a href="{$modLastComments[ix].display_url}">{tr}View{/tr}</a>{* <a href="{$modLastComments[ix].display_url}{if strpos($modLastComments[ix].display_url,'?')}&{else}?{/if}post_comment_reply_id={$modLastComments[ix].parent_id}&post_comment_request=1">{tr}Reply{/tr}<a/>*}</div> <div class="date">{$modLastComments[ix].last_modified|bit_short_datetime}</div> </div> </li> |
