diff options
| author | wjames5 <will@tekimaki.com> | 2007-04-07 23:35:49 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-04-07 23:35:49 +0000 |
| commit | cd47daff4481dcd75cce129ad9e9701da5b50d21 (patch) | |
| tree | 9bb0be379e4aaca453672cbc27d726f333d23c28 /modules | |
| parent | 2872ecc8b1b75004473751ea3de83b023cfbd63d (diff) | |
| download | blogs-cd47daff4481dcd75cce129ad9e9701da5b50d21.tar.gz blogs-cd47daff4481dcd75cce129ad9e9701da5b50d21.tar.bz2 blogs-cd47daff4481dcd75cce129ad9e9701da5b50d21.zip | |
display publish date in list if no post tile
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_last_blog_posts.tpl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/mod_last_blog_posts.tpl b/modules/mod_last_blog_posts.tpl index cdbe26a..172e2aa 100644 --- a/modules/mod_last_blog_posts.tpl +++ b/modules/mod_last_blog_posts.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_blogs/modules/mod_last_blog_posts.tpl,v 1.8 2007/04/07 23:22:32 wjames5 Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_blogs/modules/mod_last_blog_posts.tpl,v 1.9 2007/04/07 23:35:49 wjames5 Exp $ *} {strip} {if $gBitSystem->isPackageActive('blogs')} {bitmodule title="$moduleTitle" name="last_blog_posts"} @@ -12,7 +12,14 @@ <ul class="blogs"> {section name=ix loop=$modLastBlogPosts} <li class="{cycle values="odd,even"}"> - <div class="title"><a href="{$modLastBlogPosts[ix].display_url}">{$modLastBlogPosts[ix].title}</a></div> + <div class="title"> + <a href="{$modLastBlogPosts[ix].display_url}"> + {if $modLastBlogPosts[ix].title} + {$modLastBlogPosts[ix].title} + {else} + {$modLastBlogPosts[ix].publish_date|default:$modLastBlogPosts[ix].created|bit_long_date} + {/if} + </a></div> <div class="date">{$modLastBlogPosts[ix].created|bit_long_date} <br /> by {displayname hash=$modLastBlogPosts[ix]}</div> |
