diff options
| author | Tyler Bello <tylerbello@users.sourceforge.net> | 2010-01-29 20:22:24 +0000 |
|---|---|---|
| committer | Tyler Bello <tylerbello@users.sourceforge.net> | 2010-01-29 20:22:24 +0000 |
| commit | 85247ef069425ecc429cf157b7f59e6613c97332 (patch) | |
| tree | 57feda8cf59bd734705887719dcece6963194eba | |
| parent | d8a63e703a3ab4ae8658d5f3e1fc37bd84273444 (diff) | |
| download | feed-85247ef069425ecc429cf157b7f59e6613c97332.tar.gz feed-85247ef069425ecc429cf157b7f59e6613c97332.tar.bz2 feed-85247ef069425ecc429cf157b7f59e6613c97332.zip | |
clean up to use moduleParams smarty var, use ul.data>li.item in listing
| -rwxr-xr-x | templates/center_recent_comments.php | 11 | ||||
| -rwxr-xr-x | templates/center_recent_comments.tpl | 17 |
2 files changed, 17 insertions, 11 deletions
diff --git a/templates/center_recent_comments.php b/templates/center_recent_comments.php index 4cc25c1..a0cbcc2 100755 --- a/templates/center_recent_comments.php +++ b/templates/center_recent_comments.php @@ -20,10 +20,13 @@ if (!empty($params['full'])) { $listHash['parse'] = TRUE; } -$listHash['full'] = TRUE; -$listHash['thumb_size'] = 'avatar'; -$listHash['show_date'] = TRUE; -$listHash['root_content_type_guid'] = array('fisheyeimage','fisheyegallery','bituser','fisheyeflickrimage','fisheyeflickrset','feedstatus'); +$listHash['full'] = (!empty( $params['full'] ) ? $params['full'] : TRUE); +$listHash['thumb_size'] = (!empty( $params['thumb_size'] ) ? $params['thumb_size'] : 'avatar'); +$listHash['show_date'] = (!empty( $params['show_date'] ) ? $params['show_date'] : TRUE);; + +if( !empty( $params['root_content_type_guid'] ) ) { + $listHash['root_content_type_guid'] = $params['root_content_type_guid']; +} $gBitSmarty->assign( 'moduleTitle', $moduleTitle ); $lcom = new LibertyComment(); diff --git a/templates/center_recent_comments.tpl b/templates/center_recent_comments.tpl index 3c078a3..58b8ac7 100755 --- a/templates/center_recent_comments.tpl +++ b/templates/center_recent_comments.tpl @@ -1,19 +1,22 @@ {strip} {if $modLastComments} -<div class="listing fisheye"> +<div class=""> <div class="header"> <h1>{tr}{$moduleTitle}{/tr}</h1> </div> <div class="body"> + <ul class="data"> {section name=ix loop=$modLastComments} - <div style="clear:both;"> - <a href="{$modLastComments[ix].object->getDisplayUrl()}"><img style="width:50px;height: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> - <div style="width:550px;float:left;margin-left:10px;vertical-align:top;min-height:40px;margin-bottom:10px;background-color:#eee;padding:5px;"> + <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> + <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} - <small>{$modLastComments[ix].last_modified|bit_short_datetime}</small> + <div class="date">{$modLastComments[ix].last_modified|bit_short_datetime}</div> </div> - </div> - {/section} + </li> + {/section} + </ul> </div> <!-- end .body --> +</div> {/if} {/strip} |
