blob: 635094c8a37efd3f659c4bd6667a1a3e1447b921 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
/**
* @version $Header$
* @package fisheye
* @subpackage modules
*/
/**
* required setup
*/
namespace Bitweaver\Fisheye;
use Bitweaver\KernelTools;
global $gQueryUserId, $gContent, $moduleParams;
// makes things in older modules easier
extract( $moduleParams );
$image = new FisheyeImage();
$display = true;
$listHash = $module_params;
$listHash['gallery_id'] = 3;
if( $display ) {
$listHash['size'] = 'medium';
$listHash['max_records'] = 5;
$listHash['sort_mode'] = 'random';
$images = $image->getList( $listHash );
$moduleTitle = 'Specials';
$moduleTitle = KernelTools::tra( $moduleTitle );
$gBitSmarty->assign( 'moduleTitle', $moduleTitle );
$gBitSmarty->assign( 'modImages', $images );
$gBitSmarty->assign( 'module_params', $module_params );
$gBitSmarty->assign( 'maxlen', $module_params["maxlen"] ?? 0 );
$gBitSmarty->assign( 'maxlendesc', $module_params["maxlendesc"] ?? 0 );
}
|