source: extensions/Flash_Gallery/modules/FlashGallery/admin/config.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.6 KB
Line 
1<?php
2
3
4if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
5
6// default values
7if (!isset($ext_datas)) $ext_datas = array(
8'thumb_bg_color'        => "#EEEEEE",
9'thumb_bg_over'         => "#999999",
10'scroll_but_bg'         => "#EEEEEE",
11'scroll_but_arrow'      => "v999999",
12'scroll_but_bg_over'=> "#BBBBBB",
13'scroll_but_arrow_over' => "#FFFFFF",
14'big_pic_border'        => "#FFFFFF",
15'next_pic_bg'           => "#EEEEEE",
16'next_pic_arrow'        => "#999999",
17'next_pic_bg_over'      => "#BBBBBB",
18'next_pic_arrow_over'   => "#FFFFFF",
19'background_color'      => "#FFFFFF",
20'text_color'            => "#FFFFFF",
21
22'text_visible'          => true, //"on"
23'fullscreen_visible'=> true //"on"
24
25);
26
27if (isset($_POST['submit']) and !is_adviser())
28{
29        foreach ($ext_datas as $key =>$value)
30        {
31                if ($key == "fullscreen_visible" or $key == "text_visible")
32                        $ext_datas[$key] = isset($_POST['FlashGy_'.$key]);
33                else
34                        $ext_datas[$key] = $_POST['FlashGy_'.$key];
35        }
36}
37
38foreach ($ext_datas as $key => $value)
39{
40
41        if ($key == "fullscreen_visible" or $key == "text_visible")
42                $template->assign(array( 'FlashGy_'.$key => (($ext_datas[$key]) ? 'checked="checked"': '')));
43               
44        else
45                $template->assign(array( 'FlashGy_'.$key => $ext_datas[$key]));
46
47}
48
49$template->assign(array('OTHERS_SCRIPT' =>
50                        '<script type="text/javascript" src="'.FLASHGAL_PATH.'farbtastic/farbtastic.js"></script>
51                        <link href="'.FLASHGAL_PATH.'farbtastic/farbtastic.css" rel="stylesheet" type="text/css"  />'));
52
53
54
55$template->set_filenames(array('module_options' => dirname(__FILE__) . '/config.tpl'));
56$template->assign_var_from_handle('MODULE_OPTIONS', 'module_options');
57
58?>
Note: See TracBrowser for help on using the repository browser.