source: extensions/Flash_Gallery/modules/ArtGallery/xml/before_header.inc.php @ 3531

Last change on this file since 3531 was 3531, checked in by tiico, 15 years ago

First revision (for testing)
Only in French (translation to be done)

File size: 1.3 KB
Line 
1<?php
2// File to personalize datas for the header xml (ex. color...)
3if (!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
19foreach ($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?>
Note: See TracBrowser for help on using the repository browser.