mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-17 23:06:02 +02:00
feature 2372 added: shortcut to edit CSS file from the themes page. If plugin
LocalFiles Editor is active, a link "CSS" is displayed under each active theme and goes directly to the CSS edition page. git-svn-id: http://piwigo.org/svn/trunk@11586 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -10,6 +10,10 @@ elseif (isset($_POST['edited_file']))
|
||||
{
|
||||
$edited_file = $_POST['edited_file'];
|
||||
}
|
||||
elseif (isset($_GET['theme']) and in_array($_GET['theme'], array_keys(get_pwg_themes())))
|
||||
{
|
||||
$edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . 'css/'.$_GET['theme'].'-rules.css';
|
||||
}
|
||||
else
|
||||
{
|
||||
$edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . 'css/'.get_default_theme().'-rules.css';
|
||||
|
||||
Reference in New Issue
Block a user