aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-red/theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/theme/diabook-red/theme.php')
-rwxr-xr-xview/theme/diabook-red/theme.php62
1 files changed, 57 insertions, 5 deletions
diff --git a/view/theme/diabook-red/theme.php b/view/theme/diabook-red/theme.php
index df941197a..44a76a5e4 100755
--- a/view/theme/diabook-red/theme.php
+++ b/view/theme/diabook-red/theme.php
@@ -15,7 +15,7 @@ $cssFile = null;
/**
* prints last community activity
*/
-function diabook_blue_community_info(){
+function diabook_red_community_info(){
$a = get_app();
//right_aside at networkpages
@@ -139,7 +139,8 @@ function diabook_blue_community_info(){
//nav FIND FRIENDS
if(local_user()) {
$nv = array();
- $nv['directory'] = Array('directory', t('Directory'), "", "");
+ $nv['directory'] = Array('directory', t('Local').' '.t('Directory'), "", "");
+ $nv['global_directory'] = Array('http://dir.friendica.com/', t('Global Directory'), "", "");
$nv['match'] = Array('match', t('Similar Interests'), "", "");
$nv['suggest'] = Array('suggest', t('Friend Suggestions'), "", "");
$nv['invite'] = Array('invite', t('Invite Friends'), "", "");
@@ -234,7 +235,7 @@ if ($a->argv[0] === "network" && local_user()){
if($ccCookie != "8") {
// COMMUNITY
- diabook_blue_community_info();
+ diabook_red_community_info();
// CUSTOM CSS
$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-network.css";
@@ -247,7 +248,7 @@ if ($a->argv[0] === "network" && local_user()){
if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname']){
if($ccCookie != "8") {
// COMMUNITY
- diabook_blue_community_info();
+ diabook_red_community_info();
// CUSTOM CSS
$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-profile.css";
@@ -255,12 +256,63 @@ 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('Edit/Manage Profiles'),
+ 'url' => $a->get_baseurl(true).'/profiles',
+ ),
+ 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);
//load jquery.cookie.js
$cookieJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/js/jquery.cookie.js";
-$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" />', $cookieJS);
+$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $cookieJS);
//js scripts