Merge pull request #192 from tomtom84/master
fixes in diabook-derivates
This commit is contained in:
commit
19a7096be6
12 changed files with 10514 additions and 0 deletions
6
view/theme/diabook-aerith/rs_common_tabs.tpl
Executable file
6
view/theme/diabook-aerith/rs_common_tabs.tpl
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
<h3 style="margin-top: 0px; padding-left: 0px; text-align: center;">Settings Menu</h3>
|
||||||
|
<ul class="rs_tabs">
|
||||||
|
{{ for $tabs as $tab }}
|
||||||
|
<li><a href="$tab.url" class="rs_tab button $tab.sel">$tab.label</a></li>
|
||||||
|
{{ endfor }}
|
||||||
|
</ul>
|
2620
view/theme/diabook-aerith/style-settings.css
Normal file
2620
view/theme/diabook-aerith/style-settings.css
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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
|
// custom css
|
||||||
if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
|
if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
|
||||||
|
|
6
view/theme/diabook-blue/rs_common_tabs.tpl
Executable file
6
view/theme/diabook-blue/rs_common_tabs.tpl
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
<h3 style="margin-top: 0px; padding-left: 0px; text-align: center;">Settings Menu</h3>
|
||||||
|
<ul class="rs_tabs">
|
||||||
|
{{ for $tabs as $tab }}
|
||||||
|
<li><a href="$tab.url" class="rs_tab button $tab.sel">$tab.label</a></li>
|
||||||
|
{{ endfor }}
|
||||||
|
</ul>
|
2568
view/theme/diabook-blue/style-settings.css
Normal file
2568
view/theme/diabook-blue/style-settings.css
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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-blue/style-settings.css";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// custom css
|
// custom css
|
||||||
if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
|
if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
|
||||||
|
|
6
view/theme/diabook-red/rs_common_tabs.tpl
Executable file
6
view/theme/diabook-red/rs_common_tabs.tpl
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
<h3 style="margin-top: 0px; padding-left: 0px; text-align: center;">Settings Menu</h3>
|
||||||
|
<ul class="rs_tabs">
|
||||||
|
{{ for $tabs as $tab }}
|
||||||
|
<li><a href="$tab.url" class="rs_tab button $tab.sel">$tab.label</a></li>
|
||||||
|
{{ endfor }}
|
||||||
|
</ul>
|
2591
view/theme/diabook-red/style-settings.css
Normal file
2591
view/theme/diabook-red/style-settings.css
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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['right_aside'] = replace_macros($tabtpl, array(
|
||||||
|
'$tabs' => $tabs,
|
||||||
|
));
|
||||||
|
|
||||||
|
|
||||||
|
// CUSTOM CSS
|
||||||
|
$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-settings.css";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// custom css
|
// custom css
|
||||||
if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
|
if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
|
||||||
|
|
||||||
|
|
6
view/theme/diabook/rs_common_tabs.tpl
Executable file
6
view/theme/diabook/rs_common_tabs.tpl
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
<h3 style="margin-top: 0px; padding-left: 0px; text-align: center;">Settings Menu</h3>
|
||||||
|
<ul class="rs_tabs">
|
||||||
|
{{ for $tabs as $tab }}
|
||||||
|
<li><a href="$tab.url" class="rs_tab button $tab.sel">$tab.label</a></li>
|
||||||
|
{{ endfor }}
|
||||||
|
</ul>
|
2522
view/theme/diabook/style-settings.css
Normal file
2522
view/theme/diabook/style-settings.css
Normal file
File diff suppressed because it is too large
Load diff
|
@ -262,6 +262,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/style-settings.css";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// custom css
|
// custom css
|
||||||
if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
|
if (!is_null($cssFile)) $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue