Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding 3 options for the default behaviour of the panels ToDo lang files git-svn-id: http://piwigo.org/svn/trunk@23251 68402e56-0260-453c-a942-63ccdbb3a9ee
- Loading branch information
Showing
10 changed files
with
779 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
// Need upgrade? | ||
global $conf; | ||
include(PHPWG_THEMES_PATH.'elegant/admin/upgrade.inc.php'); | ||
|
||
load_language('theme.lang', PHPWG_THEMES_PATH.'elegant/'); | ||
|
||
$config_send= array(); | ||
|
||
if(isset($_POST['submit_elegant'])) | ||
{ | ||
$config_send['p_main_menu']=(isset($_POST['p_main_menu']) and !empty($_POST['p_main_menu'])) ? $_POST['p_main_menu'] : 'on'; | ||
$config_send['p_pict_descr']=(isset($_POST['p_pict_descr']) and !empty($_POST['p_pict_descr'])) ? $_POST['p_pict_descr'] : 'on'; | ||
$config_send['p_pict_comment']=(isset($_POST['p_pict_comment']) and !empty($_POST['p_pict_comment'])) ? $_POST['p_pict_comment'] : 'off'; | ||
conf_update_param('elegant', pwg_db_real_escape_string(serialize($config_send))); | ||
|
||
array_push($page['infos'], l10n('Information data registered in database')); | ||
|
||
load_conf_from_db(); | ||
} | ||
|
||
$template->set_filenames(array( | ||
'theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); | ||
|
||
$template->assign('options', unserialize($conf['elegant'])); | ||
|
||
$template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{combine_css path="themes/default/js/ui/theme/jquery.ui.button.css"} | ||
{combine_css path="themes/elegant/admin/jquery.ui.button.css"} | ||
{footer_script require='jquery.ui.button'} | ||
{literal} | ||
jQuery(document).ready(function(){ | ||
jQuery( ".radio" ).buttonset(); | ||
}); | ||
{/literal} | ||
{/footer_script} | ||
|
||
<div class="titrePage"> | ||
<h2>{'Elegant Configuration'|@translate}</h2> | ||
</div> | ||
<form method="post" class="properties" action="" ENCTYPE="multipart/form-data" name="form" class="properties"> | ||
<div id="configContent"> | ||
<fieldset> | ||
<legend>{'Panels options'|@translate}</legend> | ||
<p>{'Choose what should be the default state for each panel, or disable the animation:'|@translate}</p> | ||
<ul> | ||
<li class="radio" > | ||
<label for="p_main_menu"><span class="property">{'Main Menu Panel'|@translate}</span> </label> | ||
<input type="radio" id="p_main_menu_on" name="p_main_menu" value="on" {if $options.p_main_menu=="on"}checked="checked"{/if}><label for="p_main_menu_on">{'Displayed'|@translate}</label> | ||
<input type="radio" id="p_main_menu_off" name="p_main_menu" value="off" {if $options.p_main_menu=="off"}checked="checked"{/if}><label for="p_main_menu_off">{'Hidden'|@translate}</label> | ||
<input type="radio" id="p_main_menu_disabled" name="p_main_menu" value="disabled" {if $options.p_main_menu=="disabled"}checked="checked"{/if}><label for="p_main_menu_disabled">{'Disable animation'|@translate}</label> | ||
</li> | ||
<li class="radio" > | ||
<label for="p_pict_descr"><span class="property">{'Photo Description Panel'|@translate}</span> </label> | ||
<input type="radio" id="p_pict_descr_on" name="p_pict_descr" value="on" {if $options.p_pict_descr=="on"}checked="checked"{/if}><label for="p_pict_descr_on">{'Displayed'|@translate}</label> | ||
<input type="radio" id="p_pict_descr_off" name="p_pict_descr" value="off" {if $options.p_pict_descr=="off"}checked="checked"{/if}><label for="p_pict_descr_off">{'Hidden'|@translate}</label> | ||
<input type="radio" id="p_pict_descr_disabled" name="p_pict_descr" value="disabled" {if $options.p_pict_descr=="disabled"}checked="checked"{/if}><label for="p_pict_descr_disabled">{'Disable animation'|@translate}</label> | ||
</li> | ||
<li class="radio" > | ||
<label for="p_pict_comment"><span class="property">{'Comments Panel'|@translate}</span> </label> | ||
<input type="radio" id="p_pict_comment_on" name="p_pict_comment" value="on" {if $options.p_pict_comment=="on"}checked="checked"{/if}><label for="p_pict_comment_on">{'Displayed'|@translate}</label> | ||
<input type="radio" id="p_pict_comment_off" name="p_pict_comment" value="off" {if $options.p_pict_comment=="off"}checked="checked"{/if}><label for="p_pict_comment_off">{'Hidden'|@translate}</label> | ||
<input type="radio" id="p_pict_comment_disabled" name="p_pict_comment" value="disabled" {if $options.p_pict_comment=="disabled"}checked="checked"{/if}><label for="p_pict_comment_disabled">{'Disable animation'|@translate}</label> | ||
</li> | ||
</ul> | ||
</fieldset> | ||
</div> | ||
<p> | ||
<input class="submit" type="submit" value="{'Submit'|@translate}" name="submit_elegant" /> | ||
</p> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
// +-----------------------------------------------------------------------+ | ||
// | Piwigo - a PHP based picture gallery | | ||
// +-----------------------------------------------------------------------+ | ||
// | Copyright(C) 2008 Piwigo Team http://piwigo.org | | ||
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | | ||
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | | ||
// +-----------------------------------------------------------------------+ | ||
// | This program is free software; you can redistribute it and/or modify | | ||
// | it under the terms of the GNU General Public License as published by | | ||
// | the Free Software Foundation | | ||
// | | | ||
// | This program is distributed in the hope that it will be useful, but | | ||
// | WITHOUT ANY WARRANTY; without even the implied warranty of | | ||
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | ||
// | General Public License for more details. | | ||
// | | | ||
// | You should have received a copy of the GNU General Public License | | ||
// | along with this program; if not, write to the Free Software | | ||
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | | ||
// | USA. | | ||
// +-----------------------------------------------------------------------+ | ||
|
||
// Recursive call | ||
$url = '../'; | ||
header( 'Request-URI: '.$url ); | ||
header( 'Content-Location: '.$url ); | ||
header( 'Location: '.$url ); | ||
exit(); | ||
?> |
Oops, something went wrong.