diff options
| -rw-r--r-- | admin/admin_blogs_inc.php | 6 | ||||
| -rw-r--r-- | templates/center_list_blog_posts.php | 3 | ||||
| -rw-r--r-- | templates/center_list_blog_posts.tpl | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/admin/admin_blogs_inc.php b/admin/admin_blogs_inc.php index 6172106..d081dca 100644 --- a/admin/admin_blogs_inc.php +++ b/admin/admin_blogs_inc.php @@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_blogs/admin/admin_blogs_inc.php,v 1.22 2008/04/01 21:57:13 lsces Exp $ +// $Header: /cvsroot/bitweaver/_bit_blogs/admin/admin_blogs_inc.php,v 1.23 2009/11/03 15:41:42 wjames5 Exp $ // get a list of blogs for the selection of the home blog require_once( BLOGS_PKG_PATH.'BitBlog.php' ); @@ -69,6 +69,10 @@ $formBlogFeatures = array( 'label' => 'Auto Display Primary Attachment', 'note' => 'Blog posts can automatically display any attachment, typically an image, that is marked as the "Primary Attachment" during editing. This is especially useful for automatically inserting a photograph into a post.', ), + "blog_hide_empty_usr_list" => array( + 'label' => 'Hide empty blog message on user pages', + 'note' => 'Enable to hide the "No Records Found" on user\'s blog rolls', + ), ); $gBitSmarty->assign( 'formBlogFeatures',$formBlogFeatures ); 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"> |
