From 19af382ffb42806f1486040bc5dc81fecffdfc5a Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 21 Feb 2015 09:44:13 +0100 Subject: [PATCH] "plus" is now the default style at "vier" for new installations --- view/theme/vier/config.php | 13 ++++++++----- view/theme/vier/theme.php | 3 +++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/view/theme/vier/config.php b/view/theme/vier/config.php index 72279daebc..9df9088ed8 100644 --- a/view/theme/vier/config.php +++ b/view/theme/vier/config.php @@ -14,6 +14,9 @@ function theme_content(&$a){ if ($style == "") $style = get_config('vier', 'style'); + if ($style == "") + $style = "plus"; + return vier_form($a,$style); } @@ -41,12 +44,12 @@ function theme_admin_post(&$a){ function vier_form(&$a, $style){ $styles = array( - "shadow"=>"Shadow", - "flat"=>"Flat", - "netcolour"=>"Coloured Networks", - "breathe"=>"Breathe", "plus"=>"Plus", - "dark"=>"Dark" + "breathe"=>"Breathe", + "dark"=>"Dark", + "shadow"=>"Shadow", + "netcolour"=>"Coloured Networks", + "flat"=>"Flat" ); $t = get_markup_template("theme_settings.tpl" ); $o .= replace_macros($t, array( diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 91e34e7824..a7ba561b23 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -21,6 +21,9 @@ $style = get_pconfig(local_user(), 'vier', 'style'); if ($style == "") $style = get_config('vier', 'style'); +if ($style == "") + $style = "plus"; + if ($style == "flat") $a->page['htmlhead'] .= ''."\n"; else if ($style == "netcolour")