diff options
Diffstat (limited to 'classes/pref/prefs.php')
-rw-r--r-- | classes/pref/prefs.php | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 5a787bb0c..161b0acb6 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -351,7 +351,7 @@ class Pref_Prefs extends Handler_Protected { } else if (function_exists("imagecreatefromstring")) { - print_warning(__("You will need a compatible Authenticator to use this. Changing your password would automatically disable OTP.")); + print "<p>" . __("You will need a compatible Authenticator to use this. Changing your password would automatically disable OTP.") . "</p>"; print "<p>".__("Scan the following code by the Authenticator application:")."</p>"; @@ -515,7 +515,7 @@ class Pref_Prefs extends Handler_Protected { $active_section = $line["section_id"]; - print "<tr><td colspan=\"3\"><h3>".$section_name."</h3></td></tr>"; + print "<tr><td colspan=\"3\"><h2>".$section_name."</h2></td></tr>"; $lnum = 0; } @@ -681,12 +681,6 @@ class Pref_Prefs extends Handler_Protected { print "<div dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Plugins')."\">"; - print_notice(__("You will need to reload Tiny Tiny RSS for plugin changes to take effect.")); - - if (ini_get("open_basedir") && function_exists("curl_init") && !defined("NO_CURL")) { - print_warning("Your PHP configuration has open_basedir restrictions enabled. Some plugins relying on CURL for functionality may not work correctly."); - } - print "<form dojoType=\"dijit.form.Form\" id=\"changePluginsForm\">"; print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\"> @@ -709,9 +703,16 @@ class Pref_Prefs extends Handler_Protected { print_hidden("op", "pref-prefs"); print_hidden("method", "setplugins"); + print '<div dojoType="dijit.layout.BorderContainer" gutters="false">'; + print '<div dojoType="dijit.layout.ContentPane" region="center" style="overflow-y : auto">'; + + if (ini_get("open_basedir") && function_exists("curl_init") && !defined("NO_CURL")) { + print_warning("Your PHP configuration has open_basedir restrictions enabled. Some plugins relying on CURL for functionality may not work correctly."); + } + print "<table width='100%' class='prefPluginsList'>"; - print "<tr><td colspan='5'><h3>".__("System plugins")."</h3>". + print "<tr><td colspan='5'><h2>".__("System plugins")."</h2>". format_notice(__("System plugins are enabled in <strong>config.php</strong> for all users.")). "</td></tr>"; @@ -769,7 +770,7 @@ class Pref_Prefs extends Handler_Protected { } } - print "<tr><td colspan='4'><h3>".__("User plugins")."</h3></td></tr>"; + print "<tr><td colspan='4'><h2>".__("User plugins")."</h2></td></tr>"; print "<tr class=\"title\"> <td width=\"5%\"> </td> @@ -833,12 +834,18 @@ class Pref_Prefs extends Handler_Protected { print "</table>"; - print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">". - __("Enable selected plugins")."</button></p>"; + //print "<p>" . __("You will need to reload Tiny Tiny RSS for plugin changes to take effect.") . "</p>"; - print "</form>"; + print "</div>"; #content-pane + print '<div dojoType="dijit.layout.ContentPane" region="bottom">'; + print "<button dojoType=\"dijit.form.Button\" type=\"submit\">". + __("Enable selected plugins")."</button>"; + print "</div>"; #pane print "</div>"; #pane + print "</doiv>"; #border-container + + print "</form>"; PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB, "hook_prefs_tab", "prefPrefs"); |