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

Revision 3531, 1.2 KB checked in by tiico, 11 years ago (diff)

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

Line 
1<?php
2// File to personalize datas for the header xml (ex. color...)
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5//$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array(''));
6
7foreach ($module['ext_datas'] as $key => $value)
8{
9        if ($key == "photoDynamicShow" OR $key == "enableURL" OR $key == "startAutoPlay"
10                 OR $key == "screenfullButton" OR $key == "Enableoutsideborder" OR $key == "EnablephotoTitle"
11                 OR $key == "Enablephotorotation")
12                $module['ext_datas'][$key] = ($value ? "true" : "false");
13}
14
15
16$module['ext_datas']['DbackgroundColor'] = str_replace("#", "0x", $module['ext_datas']['DbackgroundColor']);
17$module['ext_datas']['BbackgroundColor'] = str_replace("#", "0x", $module['ext_datas']['BbackgroundColor']);
18$module['ext_datas']['photoBackColor'] = str_replace("#", "0x", $module['ext_datas']['photoBackColor']);
19$module['ext_datas']['outsidebordercolor'] = str_replace("#", "0x", $module['ext_datas']['outsidebordercolor']);
20$module['ext_datas']['photoButtonColor'] = str_replace("#", "0x", $module['ext_datas']['photoButtonColor']);
21$module['ext_datas']['photoTitleColor'] = str_replace("#", "0x", $module['ext_datas']['photoTitleColor']);
22                                 
23?>
Note: See TracBrowser for help on using the repository browser.