1 | <?php |
---|
2 | // File to personalize datas for the header xml (ex. color...) |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | $imageScaleMode = array('', 'Crop', 'Fit'); |
---|
6 | $initialState = array ('', 'Load Image', 'Start Slideshow', 'Show Albums', 'Show Thumbnails'); |
---|
7 | $showCaption = array ('', 'Always', 'Never', 'onMouseOver'); |
---|
8 | $showButtons = array ('', 'Always', 'Never', 'onMouseOver'); |
---|
9 | $rotationDirection = array('', 'Vertical CW', 'Vertical CCW', 'Horizontal CW', 'Horizontal CCW'); |
---|
10 | |
---|
11 | $module['ext_datas']['imageScaleMode'] = $imageScaleMode[$module['ext_datas']['imageScaleMode']]; |
---|
12 | $module['ext_datas']['initialState'] = $initialState[$module['ext_datas']['initialState']]; |
---|
13 | $module['ext_datas']['showCaption'] = $showCaption[$module['ext_datas']['showCaption']]; |
---|
14 | $module['ext_datas']['showButtons'] = $showButtons[$module['ext_datas']['showButtons']]; |
---|
15 | $module['ext_datas']['rotationDirection'] = $imageScaleMode[$module['ext_datas']['rotationDirection']]; |
---|
16 | |
---|
17 | $module['ext_datas']['frameColor'] = str_replace ("#", "0x", $module['ext_datas']['frameColor']); |
---|
18 | $module['ext_datas']['backgroundColor'] = str_replace ("#", "0x", $module['ext_datas']['backgroundColor']); |
---|
19 | |
---|
20 | ?> |
---|