]> git.mxchange.org Git - friendica.git/blob - view/theme/diabook/diabook-pink/style.php
Merge https://github.com/friendica/friendica into pull
[friendica.git] / view / theme / diabook / diabook-pink / style.php
1 <?php
2         $line_height=false;
3         $diabook_font_size=false;
4         $resolution=false;
5         $site_line_height = get_config("diabook-aerith","line_height");
6         $site_diabook_font_size = get_config("diabook-aerith", "font_size" );
7         $site_resolution = get_config("diabook-aerith", "resolution" );
8         
9         
10         if (local_user()) {
11                 $line_height = get_pconfig(local_user(), "diabook-aerith","line_height");
12                 $diabook_font_size = get_pconfig(local_user(), "diabook-aerith", "font_size");
13                 $resolution = get_pconfig(local_user(), "diabook-aerith", "resolution");
14         }
15         
16         if ($line_height===false) $line_height=$site_line_height;
17         if ($line_height===false) $line_height="1.3";
18         if ($diabook_font_size===false) $diabook_font_size=$site_diabook_font_size;
19         if ($diabook_font_size===false) $diabook_font_size="13";
20         if ($resolution===false) $resolution=$site_resolution;
21         if ($resolution===false) $resolution="normal";
22         
23         
24         if($resolution == "normal") {   
25         if (file_exists("$THEMEPATH/style.css")){
26                 echo file_get_contents("$THEMEPATH/style.css");
27         }
28
29    if($diabook_font_size == "15"){
30                 echo "
31                         .wall-item-container .wall-item-content {
32                                         font-size: 15px;
33                                         }
34                                         
35                         .wall-item-photo-container .wall-item-content {
36                                         font-size: 15px;
37                                         }
38                 ";
39         }       
40         if($diabook_font_size == "14"){
41                 echo "
42                         .wall-item-container .wall-item-content {
43                                         font-size: 14px;
44                                         }
45                                         
46                         .wall-item-photo-container .wall-item-content {
47                                         font-size: 14px;
48                                         }
49                 ";
50         }
51         if($diabook_font_size == "13.5"){
52                 echo "
53                         .wall-item-container .wall-item-content {
54                                         font-size: 13.5px;
55                                         }
56                                         
57                         .wall-item-photo-container .wall-item-content {
58                                         font-size: 13.5px;
59                                         }
60                 ";
61         }
62         if($diabook_font_size == "13"){
63                 echo "
64                         .wall-item-container .wall-item-content {
65                                         font-size: 13px;
66                                         }
67                                         
68                         .wall-item-photo-container .wall-item-content {
69                                         font-size: 13px;
70                                         }
71                 ";
72         }
73         if($diabook_font_size == "12.5"){
74                 echo "
75                         .wall-item-container .wall-item-content {
76                                         font-size: 12.5px;
77                                         }
78                                         
79                         .wall-item-photo-container .wall-item-content {
80                                         font-size: 12.5px;
81                                         }
82                 ";
83         }
84         if($diabook_font_size == "12"){
85                 echo "
86                         .wall-item-container .wall-item-content {
87                                         font-size: 12px;
88                                         }
89                                         
90                         .wall-item-photo-container .wall-item-content {
91                                         font-size: 12px;
92                                         }
93                 ";
94         }
95         if($line_height == "1.5"){
96                 echo "
97                         .wall-item-container .wall-item-content {
98                                         line-height: 1.5;
99                                         }
100                                         
101                         .wall-item-photo-container .wall-item-content {
102                                         line-height: 1.5;
103                                         }
104                 ";
105         }       
106         if($line_height == "1.4"){
107                 echo "
108                         .wall-item-container .wall-item-content {
109                                         line-height: 1.4;
110                                         }
111                                         
112                         .wall-item-photo-container .wall-item-content {
113                                         line-height: 1.4;
114                                         }
115                 ";
116         }
117         if($line_height == "1.3"){
118                 echo "
119                         .wall-item-container .wall-item-content {
120                                         line-height: 1.3;
121                                         }
122                                         
123                         .wall-item-photo-container .wall-item-content {
124                                         line-height: 1.3;
125                                         }
126                 ";
127         }
128         if($line_height == "1.2"){
129                 echo "
130                         .wall-item-container .wall-item-content {
131                                         line-height: 1.2;
132                                         }
133                                         
134                         .wall-item-photo-container .wall-item-content {
135                                         line-height: 1.2;
136                                         }
137                 ";
138         }
139         if($line_height == "1.1"){
140                 echo "
141                         .wall-item-container .wall-item-content {
142                                         line-height: 1.1;
143                                         }
144                                         
145                         .wall-item-photo-container .wall-item-content {
146                                         line-height: 1.1;
147                                         }
148                 ";
149         }
150         }
151         
152         if($resolution == "wide") {     
153         if (file_exists("$THEMEPATH/style-wide.css")){
154                 echo file_get_contents("$THEMEPATH/style-wide.css");
155         }
156         if($diabook_font_size == "15"){
157                 echo "
158                         .wall-item-container .wall-item-content {
159                                         font-size: 15px;
160                                         }
161                                         
162                         .wall-item-photo-container .wall-item-content {
163                                         font-size: 15px;
164                                         }
165                 ";
166         }
167         if($diabook_font_size == "14"){
168                 echo "
169                         .wall-item-container .wall-item-content {
170                                         font-size: 14px;
171                                         }
172                                         
173                         .wall-item-photo-container .wall-item-content {
174                                         font-size: 14px;
175                                         }
176                 ";
177         }
178         if($diabook_font_size == "13.5"){
179                 echo "
180                         .wall-item-container .wall-item-content {
181                                         font-size: 13.5px;
182                                         }
183                                         
184                         .wall-item-photo-container .wall-item-content {
185                                         font-size: 13.5px;
186                                         }
187                 ";
188         }
189         if($diabook_font_size == "13"){
190                 echo "
191                         .wall-item-container .wall-item-content {
192                                         font-size: 13px;
193                                         }
194                                         
195                         .wall-item-photo-container .wall-item-content {
196                                         font-size: 13px;
197                                         }
198                 ";
199         }
200         if($diabook_font_size == "12.5"){
201                 echo "
202                         .wall-item-container .wall-item-content {
203                                         font-size: 12.5px;
204                                         }
205                                         
206                         .wall-item-photo-container .wall-item-content {
207                                         font-size: 12.5px;
208                                         }
209                 ";
210         }
211         if($diabook_font_size == "12"){
212                 echo "
213                         .wall-item-container .wall-item-content {
214                                         font-size: 12px;
215                                         }
216                                         
217                         .wall-item-photo-container .wall-item-content {
218                                         font-size: 12px;
219                                         }
220                 ";
221         }
222         if($line_height == "1.5"){
223                 echo "
224                         .wall-item-container .wall-item-content {
225                                         line-height: 1.5;
226                                         }
227                                         
228                         .wall-item-photo-container .wall-item-content {
229                                         line-height: 1.5;
230                                         }
231                 ";
232         }       
233         if($line_height == "1.4"){
234                 echo "
235                         .wall-item-container .wall-item-content {
236                                         line-height: 1.4;
237                                         }
238                                         
239                         .wall-item-photo-container .wall-item-content {
240                                         line-height: 1.4;
241                                         }
242                 ";
243         }
244         if($line_height == "1.3"){
245                 echo "
246                         .wall-item-container .wall-item-content {
247                                         line-height: 1.3;
248                                         }
249                                         
250                         .wall-item-photo-container .wall-item-content {
251                                         line-height: 1.3;
252                                         }
253                 ";
254         }
255         if($line_height == "1.2"){
256                 echo "
257                         .wall-item-container .wall-item-content {
258                                         line-height: 1.2;
259                                         }
260                                         
261                         .wall-item-photo-container .wall-item-content {
262                                         line-height: 1.2;
263                                         }
264                 ";
265         }
266         if($line_height == "1.1"){
267                 echo "
268                         .wall-item-container .wall-item-content {
269                                         line-height: 1.1;
270                                         }
271                                         
272                         .wall-item-photo-container .wall-item-content {
273                                         line-height: 1.1;
274                                         }
275                 ";
276         }
277         }