aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-aerith/theme.php
diff options
context:
space:
mode:
authortomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net>2012-03-31 08:00:45 -0700
committertomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net>2012-03-31 08:00:45 -0700
commit19a7096be65d761abf9f9e195a862208aa6fa397 (patch)
tree52e17af1bb04bec2604872fd2fb7bcabc6c26ed0 /view/theme/diabook-aerith/theme.php
parentadebc2793e84344fca1700eb6af583a9a0abcb1a (diff)
parent13ded12ffb73a9c9ef2e94500e74f6f30481a0c8 (diff)
downloadvolse-hubzilla-19a7096be65d761abf9f9e195a862208aa6fa397.tar.gz
volse-hubzilla-19a7096be65d761abf9f9e195a862208aa6fa397.tar.bz2
volse-hubzilla-19a7096be65d761abf9f9e195a862208aa6fa397.zip
Merge pull request #192 from tomtom84/master
fixes in diabook-derivates
Diffstat (limited to 'view/theme/diabook-aerith/theme.php')
-rwxr-xr-xview/theme/diabook-aerith/theme.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/view/theme/diabook-aerith/theme.php b/view/theme/diabook-aerith/theme.php
index 1894c07db..38dd9ae8c 100755
--- a/view/theme/diabook-aerith/theme.php
+++ b/view/theme/diabook-aerith/theme.php
@@ -254,6 +254,53 @@ if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname']){
}
}
+//tabs at right_aside on settings page
+if ($a->argv[0] === "settings"){
+
+ $tabs = array(
+ array(
+ 'label' => t('Account settings'),
+ 'url' => $a->get_baseurl(true).'/settings',
+ 'sel' => (($a->argc == 1)?'active':''),
+ ),
+ array(
+ 'label' => t('Display settings'),
+ 'url' => $a->get_baseurl(true).'/settings/display',
+ 'sel' => (($a->argc > 1) && ($a->argv[1] === 'display')?'active':''),
+ ),
+
+ array(
+ 'label' => t('Connector settings'),
+ 'url' => $a->get_baseurl(true).'/settings/connectors',
+ 'sel' => (($a->argc > 1) && ($a->argv[1] === 'connectors')?'active':''),
+ ),
+ array(
+ 'label' => t('Plugin settings'),
+ 'url' => $a->get_baseurl(true).'/settings/addon',
+ 'sel' => (($a->argc > 1) && ($a->argv[1] === 'addon')?'active':''),
+ ),
+ array(
+ 'label' => t('Connections'),
+ 'url' => $a->get_baseurl(true) . '/settings/oauth',
+ 'sel' => (($a->argc > 1) && ($a->argv[1] === 'oauth')?'active':''),
+ ),
+ array(
+ 'label' => t('Export personal data'),
+ 'url' => $a->get_baseurl(true) . '/uexport',
+ 'sel' => ''
+ )
+ );
+ $tabtpl = file_get_contents(dirname(__file__).'/rs_common_tabs.tpl') ;
+ $a->page['right_aside'] = replace_macros($tabtpl, array(
+ '$tabs' => $tabs,
+ ));
+
+
+ // CUSTOM CSS
+ $cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/style-settings.css";
+
+}
+
// custom css
if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);