]> git.mxchange.org Git - friendica.git/blob - view/theme/dispy/style.php
Accidentally removed a file
[friendica.git] / view / theme / dispy / style.php
1 <?php
2     $line_height = false;
3     $dispy_font_size = false;
4     $resolution = false;
5     $colour = false;
6     $site_line_height = get_config("dispy","line_height");
7     $site_dispy_font_size = get_config("dispy", "font_size" );
8     $site_colour = get_config("dispy", "colour" );
9
10     if (local_user()) {
11         $line_height = get_pconfig(local_user(), "dispy","line_height");
12         $dispy_font_size = get_pconfig(local_user(), "dispy", "font_size");
13         $colour = get_pconfig(local_user(), "dispy", "colour");
14     }
15
16     if ($line_height === false) {
17                 $line_height = $site_line_height;
18         }
19     if ($line_height === false) {
20                 $line_height = "1.2";
21         }
22     if ($dispy_font_size === false) {
23                 $dispy_font_size = $site_dispy_font_size;
24         }
25     if ($dispy_font_size === false) {
26                 $dispy_font_size = "12";
27         }
28     if ($colour === false) {
29                 $colour = $site_colour;
30         }
31     if ($colour === false) {
32                 $colour = "light";
33         }
34     
35     if($colour == "light") {
36         if (file_exists("$THEMEPATH/light/style.css")) {
37             echo file_get_contents("$THEMEPATH/light/style.css");
38         }
39     }
40
41     if($colour == "dark") {
42         if (file_exists("$THEMEPATH/dark/style.css")) { 
43             echo file_get_contents("$THEMEPATH/dark/style.css");
44         }
45         }
46
47         if($dispy_font_size == "16") {
48                 echo ".wall-item-content {
49                                 font-size: 16px;
50                         }";
51         }
52         if($dispy_font_size == "15") {
53                 echo ".wall-item-content {
54                                 font-size: 15px;
55                         }";
56         }       
57         if($dispy_font_size == "14") {
58                 echo ".wall-item-content {
59                                 font-size: 14px;
60                         }";
61         }
62         if($dispy_font_size == "13.5") {
63                 echo ".wall-item-content {
64                                 font-size: 13.5px;
65                         }";
66         }
67         if($dispy_font_size == "13") {
68                 echo ".wall-item-content {
69                                 font-size: 13px;
70                         }";
71         }
72         if($dispy_font_size == "12.5") {
73                 echo ".wall-item-content {
74                                 font-size: 12.5px;
75                         }";
76         }
77         if($dispy_font_size == "12") {
78                 echo ".wall-item-content {
79                                 font-size: 12px;
80                         }";
81         }
82         if($line_height == "1.5") {
83                 echo ".wall-item-content {
84                                 line-height: 1.5;
85                         }";
86         }       
87         if($line_height == "1.4") {
88                 echo ".wall-item-content {
89                                 line-height: 1.4;
90                         }";
91         }
92         if($line_height == "1.3") {
93                 echo ".wall-item-content {
94                                 line-height: 1.3;
95                         }";
96         }
97         if($line_height == "1.2") {
98                 echo ".wall-item-content {
99                                 line-height: 1.2;
100                         }";
101         }
102         if($line_height == "1.1") {
103                 echo ".wall-item-content {
104                                 line-height: 1.1;
105                         }";
106         }