aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-10-10 15:28:34 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-10-10 15:28:34 +0200
commitf64e2d63b9ee66482b3461ecb6ee8f7776e23b87 (patch)
tree9aff5c840b9ec7affe78494e77ff9c2183b6394a /mod/settings.php
parent077726a193809bed5b1433713b69ce985e177925 (diff)
downloadvolse-hubzilla-f64e2d63b9ee66482b3461ecb6ee8f7776e23b87.tar.gz
volse-hubzilla-f64e2d63b9ee66482b3461ecb6ee8f7776e23b87.tar.bz2
volse-hubzilla-f64e2d63b9ee66482b3461ecb6ee8f7776e23b87.zip
New common tab template. Update css
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php18
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,
));