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

Source for file mod_top_authors.php

Documentation is available at mod_top_authors.php

  1. <?php
  2. // $Header$
  3. /**
  4.  * Params:
  5.  * - content_type_guid : if set, show only those content_type_guid's
  6.  * @package liberty
  7.  * @subpackage modules
  8.  */
  9.  
  10. global $gQueryUser$gBitUser$gLibertySystem$moduleParams;
  11. extract$moduleParams );
  12.  
  13. /* this doesn't work as expected. without it, the user can fill in the title himself
  14. if( empty( $module_title ) ) {
  15.     if( !empty( $module_params['content_type_guid'] ) && !empty( $gLibertySystem->mContentTypes[$module_params['content_type_guid']] ) ) {
  16.         $title = tra( "Top Authors" ).': '.$gLibertySystem->getContentTypeName( $module_params['content_type_guid'] );
  17.     } else {
  18.         $_template->tpl_vars['showContentType'] = new Smarty_variable( TRUE );
  19.         $title = tra( "Top Authors" );
  20.     }
  21.     $_template->tpl_vars['moduleTitle'] = new Smarty_variable( $title );
  22. }
  23. */
  24.  
  25. $listHash $_REQUEST;
  26. if!empty$module_params['content_type_guid') ) {
  27.     $listHash['content_type_guid'$module_params['content_type_guid'];
  28. }
  29. $listHash['max_records'$module_rows;
  30.  
  31. $modAuthors $gBitUser->getAuthorList$listHash );
  32. $_template->tpl_vars['modAuthors'new Smarty_variable$modAuthors );
  33. ?>

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