1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

add several HOOK_PREFS_TAB_SECTION hook points

This commit is contained in:
Andrew Dolgov
2012-12-27 01:12:28 +04:00
parent 24e811add9
commit 699daf5856
3 changed files with 25 additions and 1 deletions

View File

@@ -366,6 +366,10 @@ class Pref_Prefs extends Handler_Protected {
}
}
global $pluginhost;
$pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB_SECTION,
"hook_prefs_tab_section", "prefPrefsAuth");
print "</div>"; #pane
print "<div dojoType=\"dijit.layout.AccordionPane\" selected=\"true\" title=\"".__('Preferences')."\">";
@@ -594,6 +598,10 @@ class Pref_Prefs extends Handler_Protected {
print "</table>";
global $pluginhost;
$pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB_SECTION,
"hook_prefs_tab_section", "prefPrefsPrefsInside");
print '</div>'; # inside pane
print '<div dojoType="dijit.layout.ContentPane" region="bottom">';
@@ -621,6 +629,10 @@ class Pref_Prefs extends Handler_Protected {
<label for='prefs_show_advanced'>" .
__("Show additional preferences") . "</label>";
global $pluginhost;
$pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB_SECTION,
"hook_prefs_tab_section", "prefPrefsPrefsOutside");
print "</form>";
print '</div>'; # inner pane
print '</div>'; # border container