1 | <?php |
---|
2 | // File to personalize datas for the header xml (ex. color...) |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | |
---|
6 | $Imagealign = array( '', 'left', 'right', 'top', 'bottom', 'center'); |
---|
7 | $ImagescaleMode = array( '', 'fit', 'crop', 'noScale'); |
---|
8 | |
---|
9 | $ImagetransitionEffect = array('', 'fade', 'zoom', 'pixel'); |
---|
10 | $Thumbbarposition = array('', 'left', 'right', 'top', 'bottom'); |
---|
11 | $Captionposition = array('', 'top', 'bottom'); |
---|
12 | |
---|
13 | $module['ext_datas']['Imagealign'] = $Imagealign[$module['ext_datas']['Imagealign']]; |
---|
14 | $module['ext_datas']['ImagescaleMode'] = $ImagescaleMode[$module['ext_datas']['ImagescaleMode']]; |
---|
15 | $module['ext_datas']['ImagetransitionEffect'] = $ImagetransitionEffect[$module['ext_datas']['ImagetransitionEffect']]; |
---|
16 | $module['ext_datas']['Thumbbarposition'] = $Thumbbarposition[$module['ext_datas']['Thumbbarposition']]; |
---|
17 | $module['ext_datas']['Captionposition'] = $Captionposition[$module['ext_datas']['Captionposition']]; |
---|
18 | |
---|
19 | foreach ($module['ext_datas'] as $key => $value) |
---|
20 | { |
---|
21 | |
---|
22 | if ($key == "ThumbnailoutlineColor" or $key == "ThumbnailoutlineColorOnRollOver" or $key == "ThumbnailoutlineColorOnClick" |
---|
23 | or $key == "Captioncolor" or $key == "CaptionbgColor" or $key == "PreviewoutlineColor" ) |
---|
24 | $module['ext_datas'][$key] = str_replace ("#", "0x", $value); |
---|
25 | } |
---|
26 | |
---|
27 | |
---|
28 | ?> |
---|