source: extensions/Fotorama/admin.php @ 29384

Last change on this file since 29384 was 29384, checked in by JanisV, 10 years ago

Added parameter for show caption with image title

File size: 1.3 KB
Line 
1<?php
2
3defined('FOTORAMA_PATH') or die('Hacking attempt!');
4
5global $conf, $template, $page;
6
7if (isset($_POST['submit']))
8{
9  $conf['Fotorama'] = array(
10    'shadows' => isset($_POST['shadows']),
11    'only_fullscreen' => isset($_POST['only_fullscreen']),
12    'autoplay' => isset($_POST['autoplay']),
13    'stopautoplayontouch' => isset($_POST['stopautoplayontouch']),
14    'loop' => isset($_POST['loop']),
15    'enable_caption' => isset($_POST['enable_caption']),
16    );
17  if (isset($_POST['allowfullscreen']))
18    $conf['Fotorama']['allowfullscreen'] = $_POST['allowfullscreen'];
19  if (isset($_POST['fit']))
20    $conf['Fotorama']['fit'] = $_POST['fit'];
21  if (isset($_POST['transition']))
22    $conf['Fotorama']['transition'] = $_POST['transition'];
23  if (isset($_POST['nav']))
24    $conf['Fotorama']['nav'] = $_POST['nav'];
25  if (isset($_POST['fullscreen_nav']))
26    $conf['Fotorama']['fullscreen_nav'] = $_POST['fullscreen_nav'];
27
28  conf_update_param('Fotorama', serialize($conf['Fotorama']));
29  $page['infos'][] = l10n('Information data registered in database');
30}
31
32$template->assign(array(
33  'Fotorama' => $conf['Fotorama'],
34  ));
35
36$template->set_filename('admintools_content', realpath(FOTORAMA_PATH . 'template/admin.tpl'));
37$template->assign_var_from_handle('ADMIN_CONTENT', 'admintools_content');
38
39?>
Note: See TracBrowser for help on using the repository browser.