Source for file mod_banner_rand.php
Documentation is available at mod_banner_rand.php
global $gQueryUserId, $gContent, $moduleParams;
// makes things in older modules easier
require_once( FISHEYE_PKG_PATH. 'FisheyeGallery.php' );
$listHash = $module_params;
$listHash['size'] = 'extra-large';
$listHash['gallery_id'] = $module_rows;
$listHash['max_records'] = 5;
$listHash['sort_mode'] = 'random';
$images = $image->getList( $listHash );
$moduleTitle = 'Banner Image';
$_template->tpl_vars['moduleTitle'] = new Smarty_variable( $title );
$_template->tpl_vars['modImages'] = new Smarty_variable( $images );
$_template->tpl_vars['module_params'] = new Smarty_variable( $module_params );
|