diff options
author | friendica <info@friendica.com> | 2012-03-31 14:50:14 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-31 14:50:14 -0700 |
commit | 7581b32bb38fe4e0f9703cc887a54984ebfe88ea (patch) | |
tree | 6de9e45c79bf93c90ebed310fd1016863634221a /view/theme/diabook-red/theme.php | |
parent | 0cf2e051bbe98166e99025bc1f32a6e8e08a26f2 (diff) | |
parent | 05ad28fb9b75a2ad3925ed3d444e3577ee43c932 (diff) | |
download | volse-hubzilla-7581b32bb38fe4e0f9703cc887a54984ebfe88ea.tar.gz volse-hubzilla-7581b32bb38fe4e0f9703cc887a54984ebfe88ea.tar.bz2 volse-hubzilla-7581b32bb38fe4e0f9703cc887a54984ebfe88ea.zip |
Merge branch 'pull'
Diffstat (limited to 'view/theme/diabook-red/theme.php')
-rwxr-xr-x | view/theme/diabook-red/theme.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/view/theme/diabook-red/theme.php b/view/theme/diabook-red/theme.php index 3ce8e24c8..ba5a69d25 100755 --- a/view/theme/diabook-red/theme.php +++ b/view/theme/diabook-red/theme.php @@ -255,6 +255,54 @@ 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['aside'] = replace_macros($tabtpl, array( + '$tabs' => $tabs, + )); + + + // CUSTOM CSS + $cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-settings.css"; + +} + + // custom css if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile); |