Source for file mod_top_authors.php
Documentation is available at mod_top_authors.php
* - content_type_guid : if set, show only those content_type_guid's
global $gQueryUser, $gBitUser, $gLibertySystem, $moduleParams;
/* this doesn't work as expected. without it, the user can fill in the title himself
if( empty( $module_title ) ) {
if( !empty( $module_params['content_type_guid'] ) && !empty( $gLibertySystem->mContentTypes[$module_params['content_type_guid']] ) ) {
$title = tra( "Top Authors" ).': '.$gLibertySystem->getContentTypeName( $module_params['content_type_guid'] );
$_template->tpl_vars['showContentType'] = new Smarty_variable( TRUE );
$title = tra( "Top Authors" );
$_template->tpl_vars['moduleTitle'] = new Smarty_variable( $title );
if( !empty( $module_params['content_type_guid'] ) ) {
$listHash['content_type_guid'] = $module_params['content_type_guid'];
$listHash['max_records'] = $module_rows;
$_template->tpl_vars['modAuthors'] = new Smarty_variable( $modAuthors );
|