From 85247ef069425ecc429cf157b7f59e6613c97332 Mon Sep 17 00:00:00 2001 From: Tyler Bello Date: Fri, 29 Jan 2010 20:22:24 +0000 Subject: clean up to use moduleParams smarty var, use ul.data>li.item in listing --- templates/center_recent_comments.php | 11 +++++++---- 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} -
+

{tr}{$moduleTitle}{/tr}

+
    {section name=ix loop=$modLastComments} -
    - {$modLastComments[ix].object->getTitle()|escape} -
    +
  • + {$modLastComments[ix].object->getTitle()|escape} +
    {displayname hash=$modLastComments[ix]} {$modLastComments[ix].parsed_data} - {$modLastComments[ix].last_modified|bit_short_datetime} +
    {$modLastComments[ix].last_modified|bit_short_datetime}
    -
  • - {/section} + + {/section} +
+
{/if} {/strip} -- cgit v1.3