]> git.mxchange.org Git - friendica.git/blob - view/theme/cleanzero/style.php
Vier: switching some more icons to "font awesome"
[friendica.git] / view / theme / cleanzero / style.php
1 <?php
2         $color=false;
3         $cleanzero_font_size=false;
4         $cleanzero_theme_width=false;
5
6         $site_color = get_config("cleanzero","color");
7         $site_cleanzero_font_size = get_config("cleanzero", "font_size" );
8         $site_cleanzero_theme_width = get_config("cleanzero", "theme_width");
9         
10         if (local_user()) {
11                 $color = get_pconfig(local_user(), "cleanzero","color");
12                 $cleanzero_font_size = get_pconfig(local_user(), "cleanzero", "font_size");
13                 $cleanzero_theme_width = get_pconfig(local_user(), "cleanzero", "theme_width");
14         
15         }
16         
17         if ($color===false) $color=$site_color;
18         if ($color===false) $color="cleanzero";
19         if ($cleanzero_font_size===false) $cleanzero_font_size=$site_cleanzero_font_size;
20         if ($cleanzero_theme_width===false) $cleanzero_theme_width=$site_cleanzero_theme_width;
21         if ($cleanzero_theme_width===false) $cleanzero_theme_width="standard";
22         
23                 
24         if (file_exists("$THEMEPATH/$color/style.css")){
25                 echo file_get_contents("$THEMEPATH/$color/style.css");
26         }
27
28
29
30         if($cleanzero_font_size == "16"){
31                 echo "
32                         .wall-item-content-wrapper {
33                                         font-size: 16px;
34                                         }
35                                         
36                         .wall-item-content-wrapper.comment {
37                                         font-size: 16px;
38                                         }
39                 ";  
40        }
41        if($cleanzero_font_size == "14"){
42                 echo "
43                         .wall-item-content-wrapper {
44                                         font-size: 14px;
45                                         }
46                                         
47                         .wall-item-content-wrapper.comment {
48                                         font-size: 14px;
49                                         }
50                 ";
51         }       
52         if($cleanzero_font_size == "12"){
53                 echo "
54                         .wall-item-content-wrapper {
55                                         font-size: 12px;
56                                         }
57                                         
58                         .wall-item-content-wrapper.comment {
59                                         font-size: 12px;
60                                         }
61                 ";
62         }
63         if($cleanzero_font_size == "10"){
64                 echo "
65                         .wall-item-content-wrapper {
66                                         font-size: 10px;
67                                         }
68                                         
69                         .wall-item-content-wrapper.comment {
70                                         font-size: 10px;
71                                         }
72                 ";
73         }
74         if ($cleanzero_theme_width === "standard") {
75                 echo "
76                      section {
77                         margin: 0px 10%;
78                        margin-right:10%;
79                        }
80
81                      aside {
82                         margin-left: 10%;
83                       }
84                      nav {
85                         margin-left: 10%;
86                         margin-right: 10%;
87
88                       }
89
90                      nav #site-location {
91                         right: 10%;
92
93                       }
94                 ";
95         }
96
97         if ($cleanzero_theme_width === "narrow") {
98                 echo "
99                      section {
100                         margin: 0px 15%;
101                        margin-right:15%;
102                        }
103
104                      aside {
105                         margin-left: 15%;
106                       }
107                      nav {
108                         margin-left: 15%;
109                         margin-right: 15%;
110
111                       }
112
113                      nav #site-location {
114                         right: 15%;
115
116                       }
117                 ";
118         }
119         if ($cleanzero_theme_width === "wide") {
120                 echo "
121                      section {
122                         margin: 0px 5%;
123                        margin-right:5%;
124                        }
125
126                      aside {
127                         margin-left: 5%;
128                       }
129                      nav {
130                         margin-left: 5%;
131                         margin-right: 5%;
132
133                       }
134
135                      nav #site-location {
136                         right: 5%;
137
138                       }
139                 ";
140         }