]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/style.php
removed blank lines
[friendica.git] / view / theme / vier / style.php
index 3d3c776745de4c86a02527d334a0eab9a811b61f..b1386ad7076dbebf7c48631b553251086a21fe00 100644 (file)
@@ -1,10 +1,14 @@
 <?php
+
+use Friendica\Core\Config;
+use Friendica\Core\PConfig;
+
 $uid = get_theme_uid();
 
-$style = get_pconfig($uid, 'vier', 'style');
+$style = PConfig::get($uid, 'vier', 'style');
 
 if ($style == "")
-       $style = get_config('vier', 'style');
+       $style = Config::get('vier', 'style');
 
 if ($style == "")
        $style = "plus";
@@ -19,6 +23,8 @@ else if ($style == "plus")
        $stylecssfile = 'view/theme/vier/plus.css';
 else if ($style == "dark")
        $stylecssfile = 'view/theme/vier/dark.css';
+else if ($style == "plusminus")
+       $stylecssfile = 'view/theme/vier/plusminus.css';
 
 if (file_exists($THEMEPATH."//style.css")) {
        $stylecss = file_get_contents($THEMEPATH."//style.css")."\n";
@@ -46,7 +52,7 @@ if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || isset($_SERVER['HTTP_IF_NONE_MA
        $cached_etag = str_replace(array('"', "-gzip"), array('', ''),
                                stripslashes($_SERVER['HTTP_IF_NONE_MATCH']));
 
-       if (($cached_modified == $modified) AND ($cached_etag == $etag)) {
+       if (($cached_modified == $modified) && ($cached_etag == $etag)) {
                header('HTTP/1.1 304 Not Modified');
                exit();
        }