diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2011-10-10 07:33:41 -0700 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2011-10-10 07:33:41 -0700 |
commit | ed07a4def34a44be323a9b0d61e2d9eb0701ec4a (patch) | |
tree | 960cb038d94a5c7715a59e5346358e9ae7afe5e8 /mod/settings.php | |
parent | 3174847de80600be5e0bf32864edca79388d6433 (diff) | |
parent | f64e2d63b9ee66482b3461ecb6ee8f7776e23b87 (diff) | |
download | volse-hubzilla-ed07a4def34a44be323a9b0d61e2d9eb0701ec4a.tar.gz volse-hubzilla-ed07a4def34a44be323a9b0d61e2d9eb0701ec4a.tar.bz2 volse-hubzilla-ed07a4def34a44be323a9b0d61e2d9eb0701ec4a.zip |
Merge pull request #26 from fabrixxm/master
New common tab template. Updated css
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/mod/settings.php b/mod/settings.php index 44ebdd77b..7112db887 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -306,10 +306,22 @@ function settings_content(&$a) { return; } - $tabtpl = get_markup_template("settings_tabs.tpl"); + $tabs = array( + array( + 'label' => t('Account settings'), + 'url' => $a->get_baseurl().'/settings', + 'sel' => (($a->argc == 1)?'active':''), + ), + array( + 'label' => t('Plugin settings'), + 'url' => $a->get_baseurl().'/settings/addon', + 'sel' => (($a->argc > 1) && ($a->argv[1] === 'addon')?'active':''), + ) + ); + + $tabtpl = get_markup_template("common_tabs.tpl"); $tabs = replace_macros($tabtpl, array( - '$account' => array( t('Account settings'), $a->get_baseurl().'/settings'), - '$plugins' => array( t('Plugin settings'), $a->get_baseurl().'/settings/addon') + '$tabs' => $tabs, )); |