blogs
[ class tree: blogs ] [ index: blogs ] [ all elements ]

Source for file mod_blog_roll.php

Documentation is available at mod_blog_roll.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package blogs
  5.  * @subpackage modules
  6.  */
  7.  
  8. /**
  9.  * required setup
  10.  */
  11. include_onceBLOGS_PKG_PATH.'BitBlog.php' );
  12. //require_once( USERS_PKG_PATH.'BitUser.php' );
  13.  
  14. global $gQueryUserId$module_rows$moduleParams;
  15.  
  16. $listHash['max_records'$module_rows;
  17. $listHash['sort_mode'!empty$moduleParams['module_params']['sort_mode') ) $moduleParams['module_params']['sort_mode''created_desc';
  18. BitUser::userCollection$moduleParams['module_params']$listHash );
  19.  
  20. $blog new BitBlog();
  21. if$modBlogs $blog->getList$listHash ) ) {
  22.     foreacharray_keys$modBlogs as $b {
  23.         $modBlogs[$b]['post'$blog->getPostarray'blog_id' => $modBlogs[$b]['blog_id') );
  24.     }
  25.     $_template->tpl_vars['modBlogs'new Smarty_variable$modBlogs );
  26. }
  27.  
  28. $moduleTitle (!empty$moduleParams['title'$moduleParams['title''Blog Roll');
  29. $_template->tpl_vars['moduleTitle'new Smarty_variable$moduleTitle );
  30. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:10 +0000 by phpDocumentor 1.5.0-lsces