diff options
| author | wjames5 <will@tekimaki.com> | 2009-11-03 15:41:42 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2009-11-03 15:41:42 +0000 |
| commit | 82886ec9d17316e3c2044f899a34fd17b60fb6cc (patch) | |
| tree | e9de068d120de6575f46e7be11a2b58b8e185340 /templates | |
| parent | 9d24cca34f2f509bc9849eb3215469d64e795f22 (diff) | |
| download | blogs-82886ec9d17316e3c2044f899a34fd17b60fb6cc.tar.gz blogs-82886ec9d17316e3c2044f899a34fd17b60fb6cc.tar.bz2 blogs-82886ec9d17316e3c2044f899a34fd17b60fb6cc.zip | |
move hide user blog posts on user pages to admin opt in feature, and dont hide empty lists on general blog listing requests so we dont have a confusing empty pageR270
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/center_list_blog_posts.php | 3 | ||||
| -rw-r--r-- | templates/center_list_blog_posts.tpl | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/templates/center_list_blog_posts.php b/templates/center_list_blog_posts.php index df775b2..665d80f 100644 --- a/templates/center_list_blog_posts.php +++ b/templates/center_list_blog_posts.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_blogs/templates/center_list_blog_posts.php,v 1.34 2009/09/02 17:41:56 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_blogs/templates/center_list_blog_posts.php,v 1.35 2009/11/03 15:41:42 wjames5 Exp $ * @package bitweaver */ global $gBitSmarty, $gBlog, $gBitSystem, $gQueryUserId, $moduleParams, $gBitUser; @@ -98,7 +98,6 @@ $listHash['min_owner_status_id'] = 0; $blogPost->invokeServices( 'content_list_function', $listHash ); $blogPosts = $blogPost->getList( $listHash ); $gBitSmarty->assign( 'paginationPath', $paginationPath ); -$gBitSmarty->assign( 'showEmpty', !empty( $moduleParams['module_params']['show_empty'] ) ); $gBitSmarty->assign_by_ref( 'gQueryUserId', $listHash['user_id'] ); $gBitSmarty->assign_by_ref( 'blogPosts', $blogPosts["data"] ); $gBitSmarty->assign( 'listInfo', $blogPosts['listInfo'] ); diff --git a/templates/center_list_blog_posts.tpl b/templates/center_list_blog_posts.tpl index 11469f3..c95bd68 100644 --- a/templates/center_list_blog_posts.tpl +++ b/templates/center_list_blog_posts.tpl @@ -1,5 +1,5 @@ -{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/center_list_blog_posts.tpl,v 1.10 2008/08/27 18:31:32 laetzer Exp $ *} -{if $blogPosts || $showEmpty} +{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/center_list_blog_posts.tpl,v 1.11 2009/11/03 15:41:42 wjames5 Exp $ *} +{if !( $smarty.request.home && $gBitSystem->isFeatureActive('blog_hide_empty_usr_list') ) } <div class="floaticon">{bithelp}</div> <div class="display blogs"> |
