source: extensions/Flash_Gallery/modules/TiltViewer/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: 3.5 KB
RevLine 
[3531]1<?php
2
3// extended parameters for
4// simpleviewer module
5
6/*
7Option Name     Default Value   Description
8useReloadButton         true    Whether to use the circular reload button under the images, or to use next/back arrow buttons for gallery paging.
9showFlipButton  true    Whether to display the 'flip' button at the bottom-right of a zoomed in image. Affects all images.
10                For XML galleries, you can also remove the flip button for an individual image by adding the 'showFlipButton' property to the image's photo tag in the gallery XML document.
11showLinkButton  true    Whether to display the 'go to Flickr page' button on the image flipside. Affects all images.
12                For XML galleries, you can also remove the link button for an individual image by removing the 'linkurl' property from the image's photo tag in the gallery XML document.
13columns         5       Number of columns of images to display.
14rows            5       Number of rows of images to display.
15linkLabel       "go to Flickr page"     Text to display as the flipside link button label.
16frameColor      0xFFFFFF        Hexadecimal color value of the image frame.
17backColor       0xFFFF00        Hexadecimal color value of the flipside background.
18bkgndInnerColor         0x333333        Hexadecimal color value of the stage background gradient center.
19bkgndOuterColor         0x000000        Hexadecimal color value of the stage background gradient edge.
20langGoFull      Go Fullscreen   The text displayed for the right-click 'Go Fullscreen' menu option. Can be used to translate TiltViewer into a non-English language.
21langExitFull    Exit Fullscreen         The text displayed for the right-click 'Exit Fullscreen' menu option. Can be used to translate TiltViewer into a non-English language.
22langAbout       About   The text displayed for the right-click 'About' menu option. Can be used to translate TiltViewer into a non-English language.
23
24*/
25
26if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
27
28
29// default values
30if (!isset($ext_datas)) $ext_datas = array(
31                'allowFullScreen'       => true,
32                'useReloadButton'       => true,
33                'showFlipButton'        => true,
34                'showLinkButton'        => true,
35                'columns'                       => "5",
36                'rows'                          => "5",
37                'linkLabel'             => "go to Picture page" ,
38                'frameColor'            => "#FFFFFF",
39                'backColor'                     => "#FFFF00",
40                'bkgndInnerColor'       => "#333333",
41                'bkgndOuterColor'       => "#000000",
42                'langGoFull'            => "Go Fullscreen" ,
43                'langExitFull'          => "Exit Fullscreen", 
44                'langAbout'             => "About",
45                'maxJPGSize'            => "500"
46);
47
48
49// Enregistrement de la configuration
50if (isset($_POST['submit']) and !is_adviser())
51{
52
53        foreach ($ext_datas as $key =>$value)
54        {
55                if ($key == "useReloadButton" OR $key == "showFlipButton" OR $key == "showLinkButton" OR $key == "allowFullScreen")
56                        $ext_datas[$key] = isset($_POST['TV_'.$key]);
57                else
58                        $ext_datas[$key] = $_POST['TV_'.$key];
59        }
60}
61
62foreach ($ext_datas as $key => $value)
63{
64
65        if ($key == "useReloadButton" OR $key == "showFlipButton" OR $key == "showLinkButton" OR $key == "allowFullScreen")
66                $template->assign(array( 'TV_'.$key => (isset($ext_datas[$key]) ? 'checked="checked"': '')));
67        else
68                $template->assign(array( 'TV_'.$key => $ext_datas[$key]));
69
70}
71$template->assign(array('OTHERS_SCRIPT' =>
72                        '<script type="text/javascript" src="'.FLASHGAL_PATH.'farbtastic/farbtastic.js"></script>
73                        <link href="'.FLASHGAL_PATH.'farbtastic/farbtastic.css" rel="stylesheet" type="text/css"  />'));
74
75$template->set_filenames(array('module_options' => dirname(__FILE__) . '/config.tpl'));
76$template->assign_var_from_handle('MODULE_OPTIONS', 'module_options');
77
78?>
Note: See TracBrowser for help on using the repository browser.