From: Tobias Diekershoff Date: Sun, 7 Sep 2014 12:00:09 +0000 (+0200) Subject: updating config files for duepuntozero X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a9782251e5a56a5897e0ca050d85c2c98aaa1b69;p=friendica.git updating config files for duepuntozero --- diff --git a/view/theme/duepuntozero/config.php b/view/theme/duepuntozero/config.php index f8209bb872..edf12c35fa 100644 --- a/view/theme/duepuntozero/config.php +++ b/view/theme/duepuntozero/config.php @@ -43,6 +43,11 @@ function clean_form(&$a, &$colorset, $user){ $colorset = array( 'default'=>t('default'), 'greenzero'=>t('greenzero'), + 'purplezero'=>t('purplezero'), + 'easterbunny'=>t('easterbunny'), + 'darkzero'=>t('darkzero'), + 'comix'=>t('comix'), + 'slackr'=>t('slackr'), ); if ($user) { $color = get_pconfig(local_user(), 'duepuntozero', 'colorset'); @@ -54,7 +59,7 @@ function clean_form(&$a, &$colorset, $user){ '$submit' => t('Submit'), '$baseurl' => $a->get_baseurl(), '$title' => t("Theme settings"), - '$colorset' => array('duepuntozero_colorset', t('Color scheme'), $color, '', $colorset), + '$colorset' => array('duepuntozero_colorset', t('Variations'), $color, '', $colorset), )); return $o; } diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index e6c276c0a3..ba3f25d3e2 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -5,6 +5,23 @@ function duepuntozero_init(&$a) { $a->theme_info = array(); set_template_engine($a, 'smarty3'); + $colorset = get_pconfig( local_user(), 'duepuntozero','colorset'); + if (!$colorset) + $colorset = get_config('duepuntozero', 'colorset'); // user setting have priority, then node settings + if ($colorset) { + if ($colorset == 'greenzero') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'purplezero') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'easterbunny') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'darkzero') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'comix') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'slackr') + $a->page['htmlhead'] .= ''."\n"; + } $a->page['htmlhead'] .= <<< EOT