]> git.mxchange.org Git - friendica.git/blob - view/theme/diabook/style.php
Merge pull request #253 from fabrixxm/master
[friendica.git] / view / theme / diabook / style.php
1 <?php
2         $line_height=false;
3         $diabook_font_size=false;
4         $resolution=false;
5         $color=false;
6         $site_line_height = get_config("diabook","line_height");
7         $site_diabook_font_size = get_config("diabook", "font_size" );
8         $site_resolution = get_config("diabook", "resolution" );
9         $site_color = get_config("diabook", "color" );
10         
11         
12         if (local_user()) {
13                 $line_height = get_pconfig(local_user(), "diabook","line_height");
14                 $diabook_font_size = get_pconfig(local_user(), "diabook", "font_size");
15                 $resolution = get_pconfig(local_user(), "diabook", "resolution");
16                 $color = get_pconfig(local_user(), "diabook", "color");
17         }
18         
19         if ($line_height===false) $line_height=$site_line_height;
20         if ($line_height===false) $line_height="1.3";
21         if ($diabook_font_size===false) $diabook_font_size=$site_diabook_font_size;
22         if ($diabook_font_size===false) $diabook_font_size="13";
23         if ($resolution===false) $resolution=$site_resolution;
24         if ($resolution===false) $resolution="normal";
25         if ($color===false) $color=$site_color;
26         if ($color===false) $color="diabook";
27         
28         if($color == "diabook") {
29         if($resolution == "normal") {   
30         if (file_exists("$THEMEPATH/style.css")){
31                 echo file_get_contents("$THEMEPATH/style.css");
32         }
33
34    if($diabook_font_size == "15"){
35                 echo "
36                         .wall-item-container .wall-item-content {
37                                         font-size: 15px;
38                                         }
39                                         
40                         .wall-item-photo-container .wall-item-content {
41                                         font-size: 15px;
42                                         }
43                 ";
44         }       
45         if($diabook_font_size == "14"){
46                 echo "
47                         .wall-item-container .wall-item-content {
48                                         font-size: 14px;
49                                         }
50                                         
51                         .wall-item-photo-container .wall-item-content {
52                                         font-size: 14px;
53                                         }
54                 ";
55         }
56         if($diabook_font_size == "13.5"){
57                 echo "
58                         .wall-item-container .wall-item-content {
59                                         font-size: 13.5px;
60                                         }
61                                         
62                         .wall-item-photo-container .wall-item-content {
63                                         font-size: 13.5px;
64                                         }
65                 ";
66         }
67         if($diabook_font_size == "13"){
68                 echo "
69                         .wall-item-container .wall-item-content {
70                                         font-size: 13px;
71                                         }
72                                         
73                         .wall-item-photo-container .wall-item-content {
74                                         font-size: 13px;
75                                         }
76                 ";
77         }
78         if($diabook_font_size == "12.5"){
79                 echo "
80                         .wall-item-container .wall-item-content {
81                                         font-size: 12.5px;
82                                         }
83                                         
84                         .wall-item-photo-container .wall-item-content {
85                                         font-size: 12.5px;
86                                         }
87                 ";
88         }
89         if($diabook_font_size == "12"){
90                 echo "
91                         .wall-item-container .wall-item-content {
92                                         font-size: 12px;
93                                         }
94                                         
95                         .wall-item-photo-container .wall-item-content {
96                                         font-size: 12px;
97                                         }
98                 ";
99         }
100         if($line_height == "1.5"){
101                 echo "
102                         .wall-item-container .wall-item-content {
103                                         line-height: 1.5;
104                                         }
105                                         
106                         .wall-item-photo-container .wall-item-content {
107                                         line-height: 1.5;
108                                         }
109                 ";
110         }       
111         if($line_height == "1.4"){
112                 echo "
113                         .wall-item-container .wall-item-content {
114                                         line-height: 1.4;
115                                         }
116                                         
117                         .wall-item-photo-container .wall-item-content {
118                                         line-height: 1.4;
119                                         }
120                 ";
121         }
122         if($line_height == "1.3"){
123                 echo "
124                         .wall-item-container .wall-item-content {
125                                         line-height: 1.3;
126                                         }
127                                         
128                         .wall-item-photo-container .wall-item-content {
129                                         line-height: 1.3;
130                                         }
131                 ";
132         }
133         if($line_height == "1.2"){
134                 echo "
135                         .wall-item-container .wall-item-content {
136                                         line-height: 1.2;
137                                         }
138                                         
139                         .wall-item-photo-container .wall-item-content {
140                                         line-height: 1.2;
141                                         }
142                 ";
143         }
144         if($line_height == "1.1"){
145                 echo "
146                         .wall-item-container .wall-item-content {
147                                         line-height: 1.1;
148                                         }
149                                         
150                         .wall-item-photo-container .wall-item-content {
151                                         line-height: 1.1;
152                                         }
153                 ";
154         }
155         }
156         
157         if($resolution == "wide") {     
158         if (file_exists("$THEMEPATH/style-wide.css")){
159                 echo file_get_contents("$THEMEPATH/style-wide.css");
160         }
161         if($diabook_font_size == "15"){
162                 echo "
163                         .wall-item-container .wall-item-content {
164                                         font-size: 15px;
165                                         }
166                                         
167                         .wall-item-photo-container .wall-item-content {
168                                         font-size: 15px;
169                                         }
170                 ";
171         }
172         if($diabook_font_size == "14"){
173                 echo "
174                         .wall-item-container .wall-item-content {
175                                         font-size: 14px;
176                                         }
177                                         
178                         .wall-item-photo-container .wall-item-content {
179                                         font-size: 14px;
180                                         }
181                 ";
182         }
183         if($diabook_font_size == "13.5"){
184                 echo "
185                         .wall-item-container .wall-item-content {
186                                         font-size: 13.5px;
187                                         }
188                                         
189                         .wall-item-photo-container .wall-item-content {
190                                         font-size: 13.5px;
191                                         }
192                 ";
193         }
194         if($diabook_font_size == "13"){
195                 echo "
196                         .wall-item-container .wall-item-content {
197                                         font-size: 13px;
198                                         }
199                                         
200                         .wall-item-photo-container .wall-item-content {
201                                         font-size: 13px;
202                                         }
203                 ";
204         }
205         if($diabook_font_size == "12.5"){
206                 echo "
207                         .wall-item-container .wall-item-content {
208                                         font-size: 12.5px;
209                                         }
210                                         
211                         .wall-item-photo-container .wall-item-content {
212                                         font-size: 12.5px;
213                                         }
214                 ";
215         }
216         if($diabook_font_size == "12"){
217                 echo "
218                         .wall-item-container .wall-item-content {
219                                         font-size: 12px;
220                                         }
221                                         
222                         .wall-item-photo-container .wall-item-content {
223                                         font-size: 12px;
224                                         }
225                 ";
226         }
227         if($line_height == "1.5"){
228                 echo "
229                         .wall-item-container .wall-item-content {
230                                         line-height: 1.5;
231                                         }
232                                         
233                         .wall-item-photo-container .wall-item-content {
234                                         line-height: 1.5;
235                                         }
236                 ";
237         }       
238         if($line_height == "1.4"){
239                 echo "
240                         .wall-item-container .wall-item-content {
241                                         line-height: 1.4;
242                                         }
243                                         
244                         .wall-item-photo-container .wall-item-content {
245                                         line-height: 1.4;
246                                         }
247                 ";
248         }
249         if($line_height == "1.3"){
250                 echo "
251                         .wall-item-container .wall-item-content {
252                                         line-height: 1.3;
253                                         }
254                                         
255                         .wall-item-photo-container .wall-item-content {
256                                         line-height: 1.3;
257                                         }
258                 ";
259         }
260         if($line_height == "1.2"){
261                 echo "
262                         .wall-item-container .wall-item-content {
263                                         line-height: 1.2;
264                                         }
265                                         
266                         .wall-item-photo-container .wall-item-content {
267                                         line-height: 1.2;
268                                         }
269                 ";
270         }
271         if($line_height == "1.1"){
272                 echo "
273                         .wall-item-container .wall-item-content {
274                                         line-height: 1.1;
275                                         }
276                                         
277                         .wall-item-photo-container .wall-item-content {
278                                         line-height: 1.1;
279                                         }
280                 ";
281         }
282         }
283         }
284         
285         if($color == "aerith") {
286         if($resolution == "normal") {   
287         if (file_exists("$THEMEPATH/diabook-aerith/style.css")){
288                 echo file_get_contents("$THEMEPATH/diabook-aerith/style.css");
289         }
290
291    if($diabook_font_size == "15"){
292                 echo "
293                         .wall-item-container .wall-item-content {
294                                         font-size: 15px;
295                                         }
296                                         
297                         .wall-item-photo-container .wall-item-content {
298                                         font-size: 15px;
299                                         }
300                 ";
301         }       
302         if($diabook_font_size == "14"){
303                 echo "
304                         .wall-item-container .wall-item-content {
305                                         font-size: 14px;
306                                         }
307                                         
308                         .wall-item-photo-container .wall-item-content {
309                                         font-size: 14px;
310                                         }
311                 ";
312         }
313         if($diabook_font_size == "13.5"){
314                 echo "
315                         .wall-item-container .wall-item-content {
316                                         font-size: 13.5px;
317                                         }
318                                         
319                         .wall-item-photo-container .wall-item-content {
320                                         font-size: 13.5px;
321                                         }
322                 ";
323         }
324         if($diabook_font_size == "13"){
325                 echo "
326                         .wall-item-container .wall-item-content {
327                                         font-size: 13px;
328                                         }
329                                         
330                         .wall-item-photo-container .wall-item-content {
331                                         font-size: 13px;
332                                         }
333                 ";
334         }
335         if($diabook_font_size == "12.5"){
336                 echo "
337                         .wall-item-container .wall-item-content {
338                                         font-size: 12.5px;
339                                         }
340                                         
341                         .wall-item-photo-container .wall-item-content {
342                                         font-size: 12.5px;
343                                         }
344                 ";
345         }
346         if($diabook_font_size == "12"){
347                 echo "
348                         .wall-item-container .wall-item-content {
349                                         font-size: 12px;
350                                         }
351                                         
352                         .wall-item-photo-container .wall-item-content {
353                                         font-size: 12px;
354                                         }
355                 ";
356         }
357         if($line_height == "1.5"){
358                 echo "
359                         .wall-item-container .wall-item-content {
360                                         line-height: 1.5;
361                                         }
362                                         
363                         .wall-item-photo-container .wall-item-content {
364                                         line-height: 1.5;
365                                         }
366                 ";
367         }       
368         if($line_height == "1.4"){
369                 echo "
370                         .wall-item-container .wall-item-content {
371                                         line-height: 1.4;
372                                         }
373                                         
374                         .wall-item-photo-container .wall-item-content {
375                                         line-height: 1.4;
376                                         }
377                 ";
378         }
379         if($line_height == "1.3"){
380                 echo "
381                         .wall-item-container .wall-item-content {
382                                         line-height: 1.3;
383                                         }
384                                         
385                         .wall-item-photo-container .wall-item-content {
386                                         line-height: 1.3;
387                                         }
388                 ";
389         }
390         if($line_height == "1.2"){
391                 echo "
392                         .wall-item-container .wall-item-content {
393                                         line-height: 1.2;
394                                         }
395                                         
396                         .wall-item-photo-container .wall-item-content {
397                                         line-height: 1.2;
398                                         }
399                 ";
400         }
401         if($line_height == "1.1"){
402                 echo "
403                         .wall-item-container .wall-item-content {
404                                         line-height: 1.1;
405                                         }
406                                         
407                         .wall-item-photo-container .wall-item-content {
408                                         line-height: 1.1;
409                                         }
410                 ";
411         }
412         }
413         
414         if($resolution == "wide") {     
415         if (file_exists("$THEMEPATH/diabook-aerith/style-wide.css")){
416                 echo file_get_contents("$THEMEPATH/diabook-aerith/style-wide.css");
417         }
418         if($diabook_font_size == "15"){
419                 echo "
420                         .wall-item-container .wall-item-content {
421                                         font-size: 15px;
422                                         }
423                                         
424                         .wall-item-photo-container .wall-item-content {
425                                         font-size: 15px;
426                                         }
427                 ";
428         }
429         if($diabook_font_size == "14"){
430                 echo "
431                         .wall-item-container .wall-item-content {
432                                         font-size: 14px;
433                                         }
434                                         
435                         .wall-item-photo-container .wall-item-content {
436                                         font-size: 14px;
437                                         }
438                 ";
439         }
440         if($diabook_font_size == "13.5"){
441                 echo "
442                         .wall-item-container .wall-item-content {
443                                         font-size: 13.5px;
444                                         }
445                                         
446                         .wall-item-photo-container .wall-item-content {
447                                         font-size: 13.5px;
448                                         }
449                 ";
450         }
451         if($diabook_font_size == "13"){
452                 echo "
453                         .wall-item-container .wall-item-content {
454                                         font-size: 13px;
455                                         }
456                                         
457                         .wall-item-photo-container .wall-item-content {
458                                         font-size: 13px;
459                                         }
460                 ";
461         }
462         if($diabook_font_size == "12.5"){
463                 echo "
464                         .wall-item-container .wall-item-content {
465                                         font-size: 12.5px;
466                                         }
467                                         
468                         .wall-item-photo-container .wall-item-content {
469                                         font-size: 12.5px;
470                                         }
471                 ";
472         }
473         if($diabook_font_size == "12"){
474                 echo "
475                         .wall-item-container .wall-item-content {
476                                         font-size: 12px;
477                                         }
478                                         
479                         .wall-item-photo-container .wall-item-content {
480                                         font-size: 12px;
481                                         }
482                 ";
483         }
484         if($line_height == "1.5"){
485                 echo "
486                         .wall-item-container .wall-item-content {
487                                         line-height: 1.5;
488                                         }
489                                         
490                         .wall-item-photo-container .wall-item-content {
491                                         line-height: 1.5;
492                                         }
493                 ";
494         }       
495         if($line_height == "1.4"){
496                 echo "
497                         .wall-item-container .wall-item-content {
498                                         line-height: 1.4;
499                                         }
500                                         
501                         .wall-item-photo-container .wall-item-content {
502                                         line-height: 1.4;
503                                         }
504                 ";
505         }
506         if($line_height == "1.3"){
507                 echo "
508                         .wall-item-container .wall-item-content {
509                                         line-height: 1.3;
510                                         }
511                                         
512                         .wall-item-photo-container .wall-item-content {
513                                         line-height: 1.3;
514                                         }
515                 ";
516         }
517         if($line_height == "1.2"){
518                 echo "
519                         .wall-item-container .wall-item-content {
520                                         line-height: 1.2;
521                                         }
522                                         
523                         .wall-item-photo-container .wall-item-content {
524                                         line-height: 1.2;
525                                         }
526                 ";
527         }
528         if($line_height == "1.1"){
529                 echo "
530                         .wall-item-container .wall-item-content {
531                                         line-height: 1.1;
532                                         }
533                                         
534                         .wall-item-photo-container .wall-item-content {
535                                         line-height: 1.1;
536                                         }
537                 ";
538         }
539         }
540         }
541         
542         if($color== "blue") {
543         if($resolution == "normal") {   
544         if (file_exists("$THEMEPATH/diabook-blue/style.css")){
545                 echo file_get_contents("$THEMEPATH/diabook-blue/style.css");
546         }
547
548    if($diabook_font_size == "15"){
549                 echo "
550                         .wall-item-container .wall-item-content {
551                                         font-size: 15px;
552                                         }
553                                         
554                         .wall-item-photo-container .wall-item-content {
555                                         font-size: 15px;
556                                         }
557                 ";
558         }       
559         if($diabook_font_size == "14"){
560                 echo "
561                         .wall-item-container .wall-item-content {
562                                         font-size: 14px;
563                                         }
564                                         
565                         .wall-item-photo-container .wall-item-content {
566                                         font-size: 14px;
567                                         }
568                 ";
569         }
570         if($diabook_font_size == "13.5"){
571                 echo "
572                         .wall-item-container .wall-item-content {
573                                         font-size: 13.5px;
574                                         }
575                                         
576                         .wall-item-photo-container .wall-item-content {
577                                         font-size: 13.5px;
578                                         }
579                 ";
580         }
581         if($diabook_font_size == "13"){
582                 echo "
583                         .wall-item-container .wall-item-content {
584                                         font-size: 13px;
585                                         }
586                                         
587                         .wall-item-photo-container .wall-item-content {
588                                         font-size: 13px;
589                                         }
590                 ";
591         }
592         if($diabook_font_size == "12.5"){
593                 echo "
594                         .wall-item-container .wall-item-content {
595                                         font-size: 12.5px;
596                                         }
597                                         
598                         .wall-item-photo-container .wall-item-content {
599                                         font-size: 12.5px;
600                                         }
601                 ";
602         }
603         if($diabook_font_size == "12"){
604                 echo "
605                         .wall-item-container .wall-item-content {
606                                         font-size: 12px;
607                                         }
608                                         
609                         .wall-item-photo-container .wall-item-content {
610                                         font-size: 12px;
611                                         }
612                 ";
613         }
614         if($line_height == "1.5"){
615                 echo "
616                         .wall-item-container .wall-item-content {
617                                         line-height: 1.5;
618                                         }
619                                         
620                         .wall-item-photo-container .wall-item-content {
621                                         line-height: 1.5;
622                                         }
623                 ";
624         }       
625         if($line_height == "1.4"){
626                 echo "
627                         .wall-item-container .wall-item-content {
628                                         line-height: 1.4;
629                                         }
630                                         
631                         .wall-item-photo-container .wall-item-content {
632                                         line-height: 1.4;
633                                         }
634                 ";
635         }
636         if($line_height == "1.3"){
637                 echo "
638                         .wall-item-container .wall-item-content {
639                                         line-height: 1.3;
640                                         }
641                                         
642                         .wall-item-photo-container .wall-item-content {
643                                         line-height: 1.3;
644                                         }
645                 ";
646         }
647         if($line_height == "1.2"){
648                 echo "
649                         .wall-item-container .wall-item-content {
650                                         line-height: 1.2;
651                                         }
652                                         
653                         .wall-item-photo-container .wall-item-content {
654                                         line-height: 1.2;
655                                         }
656                 ";
657         }
658         if($line_height == "1.1"){
659                 echo "
660                         .wall-item-container .wall-item-content {
661                                         line-height: 1.1;
662                                         }
663                                         
664                         .wall-item-photo-container .wall-item-content {
665                                         line-height: 1.1;
666                                         }
667                 ";
668         }
669         }
670         
671         if($resolution == "wide") {     
672         if (file_exists("$THEMEPATH/diabook-blue/style-wide.css")){
673                 echo file_get_contents("$THEMEPATH/diabook-blue/style-wide.css");
674         }
675         if($diabook_font_size == "15"){
676                 echo "
677                         .wall-item-container .wall-item-content {
678                                         font-size: 15px;
679                                         }
680                                         
681                         .wall-item-photo-container .wall-item-content {
682                                         font-size: 15px;
683                                         }
684                 ";
685         }
686         if($diabook_font_size == "14"){
687                 echo "
688                         .wall-item-container .wall-item-content {
689                                         font-size: 14px;
690                                         }
691                                         
692                         .wall-item-photo-container .wall-item-content {
693                                         font-size: 14px;
694                                         }
695                 ";
696         }
697         if($diabook_font_size == "13.5"){
698                 echo "
699                         .wall-item-container .wall-item-content {
700                                         font-size: 13.5px;
701                                         }
702                                         
703                         .wall-item-photo-container .wall-item-content {
704                                         font-size: 13.5px;
705                                         }
706                 ";
707         }
708         if($diabook_font_size == "13"){
709                 echo "
710                         .wall-item-container .wall-item-content {
711                                         font-size: 13px;
712                                         }
713                                         
714                         .wall-item-photo-container .wall-item-content {
715                                         font-size: 13px;
716                                         }
717                 ";
718         }
719         if($diabook_font_size == "12.5"){
720                 echo "
721                         .wall-item-container .wall-item-content {
722                                         font-size: 12.5px;
723                                         }
724                                         
725                         .wall-item-photo-container .wall-item-content {
726                                         font-size: 12.5px;
727                                         }
728                 ";
729         }
730         if($diabook_font_size == "12"){
731                 echo "
732                         .wall-item-container .wall-item-content {
733                                         font-size: 12px;
734                                         }
735                                         
736                         .wall-item-photo-container .wall-item-content {
737                                         font-size: 12px;
738                                         }
739                 ";
740         }
741         if($line_height == "1.5"){
742                 echo "
743                         .wall-item-container .wall-item-content {
744                                         line-height: 1.5;
745                                         }
746                                         
747                         .wall-item-photo-container .wall-item-content {
748                                         line-height: 1.5;
749                                         }
750                 ";
751         }       
752         if($line_height == "1.4"){
753                 echo "
754                         .wall-item-container .wall-item-content {
755                                         line-height: 1.4;
756                                         }
757                                         
758                         .wall-item-photo-container .wall-item-content {
759                                         line-height: 1.4;
760                                         }
761                 ";
762         }
763         if($line_height == "1.3"){
764                 echo "
765                         .wall-item-container .wall-item-content {
766                                         line-height: 1.3;
767                                         }
768                                         
769                         .wall-item-photo-container .wall-item-content {
770                                         line-height: 1.3;
771                                         }
772                 ";
773         }
774         if($line_height == "1.2"){
775                 echo "
776                         .wall-item-container .wall-item-content {
777                                         line-height: 1.2;
778                                         }
779                                         
780                         .wall-item-photo-container .wall-item-content {
781                                         line-height: 1.2;
782                                         }
783                 ";
784         }
785         if($line_height == "1.1"){
786                 echo "
787                         .wall-item-container .wall-item-content {
788                                         line-height: 1.1;
789                                         }
790                                         
791                         .wall-item-photo-container .wall-item-content {
792                                         line-height: 1.1;
793                                         }
794                 ";
795         }
796         }
797         }
798         
799         if($color== "red") {
800         if($resolution == "normal") {   
801         if (file_exists("$THEMEPATH/diabook-red/style.css")){
802                 echo file_get_contents("$THEMEPATH/diabook-red/style.css");
803         }
804
805    if($diabook_font_size == "15"){
806                 echo "
807                         .wall-item-container .wall-item-content {
808                                         font-size: 15px;
809                                         }
810                                         
811                         .wall-item-photo-container .wall-item-content {
812                                         font-size: 15px;
813                                         }
814                 ";
815         }       
816         if($diabook_font_size == "14"){
817                 echo "
818                         .wall-item-container .wall-item-content {
819                                         font-size: 14px;
820                                         }
821                                         
822                         .wall-item-photo-container .wall-item-content {
823                                         font-size: 14px;
824                                         }
825                 ";
826         }
827         if($diabook_font_size == "13.5"){
828                 echo "
829                         .wall-item-container .wall-item-content {
830                                         font-size: 13.5px;
831                                         }
832                                         
833                         .wall-item-photo-container .wall-item-content {
834                                         font-size: 13.5px;
835                                         }
836                 ";
837         }
838         if($diabook_font_size == "13"){
839                 echo "
840                         .wall-item-container .wall-item-content {
841                                         font-size: 13px;
842                                         }
843                                         
844                         .wall-item-photo-container .wall-item-content {
845                                         font-size: 13px;
846                                         }
847                 ";
848         }
849         if($diabook_font_size == "12.5"){
850                 echo "
851                         .wall-item-container .wall-item-content {
852                                         font-size: 12.5px;
853                                         }
854                                         
855                         .wall-item-photo-container .wall-item-content {
856                                         font-size: 12.5px;
857                                         }
858                 ";
859         }
860         if($diabook_font_size == "12"){
861                 echo "
862                         .wall-item-container .wall-item-content {
863                                         font-size: 12px;
864                                         }
865                                         
866                         .wall-item-photo-container .wall-item-content {
867                                         font-size: 12px;
868                                         }
869                 ";
870         }
871         if($line_height == "1.5"){
872                 echo "
873                         .wall-item-container .wall-item-content {
874                                         line-height: 1.5;
875                                         }
876                                         
877                         .wall-item-photo-container .wall-item-content {
878                                         line-height: 1.5;
879                                         }
880                 ";
881         }       
882         if($line_height == "1.4"){
883                 echo "
884                         .wall-item-container .wall-item-content {
885                                         line-height: 1.4;
886                                         }
887                                         
888                         .wall-item-photo-container .wall-item-content {
889                                         line-height: 1.4;
890                                         }
891                 ";
892         }
893         if($line_height == "1.3"){
894                 echo "
895                         .wall-item-container .wall-item-content {
896                                         line-height: 1.3;
897                                         }
898                                         
899                         .wall-item-photo-container .wall-item-content {
900                                         line-height: 1.3;
901                                         }
902                 ";
903         }
904         if($line_height == "1.2"){
905                 echo "
906                         .wall-item-container .wall-item-content {
907                                         line-height: 1.2;
908                                         }
909                                         
910                         .wall-item-photo-container .wall-item-content {
911                                         line-height: 1.2;
912                                         }
913                 ";
914         }
915         if($line_height == "1.1"){
916                 echo "
917                         .wall-item-container .wall-item-content {
918                                         line-height: 1.1;
919                                         }
920                                         
921                         .wall-item-photo-container .wall-item-content {
922                                         line-height: 1.1;
923                                         }
924                 ";
925         }
926         }
927         
928         if($resolution == "wide") {     
929         if (file_exists("$THEMEPATH/diabook-red/style-wide.css")){
930                 echo file_get_contents("$THEMEPATH/diabook-red/style-wide.css");
931         }
932         if($diabook_font_size == "15"){
933                 echo "
934                         .wall-item-container .wall-item-content {
935                                         font-size: 15px;
936                                         }
937                                         
938                         .wall-item-photo-container .wall-item-content {
939                                         font-size: 15px;
940                                         }
941                 ";
942         }
943         if($diabook_font_size == "14"){
944                 echo "
945                         .wall-item-container .wall-item-content {
946                                         font-size: 14px;
947                                         }
948                                         
949                         .wall-item-photo-container .wall-item-content {
950                                         font-size: 14px;
951                                         }
952                 ";
953         }
954         if($diabook_font_size == "13.5"){
955                 echo "
956                         .wall-item-container .wall-item-content {
957                                         font-size: 13.5px;
958                                         }
959                                         
960                         .wall-item-photo-container .wall-item-content {
961                                         font-size: 13.5px;
962                                         }
963                 ";
964         }
965         if($diabook_font_size == "13"){
966                 echo "
967                         .wall-item-container .wall-item-content {
968                                         font-size: 13px;
969                                         }
970                                         
971                         .wall-item-photo-container .wall-item-content {
972                                         font-size: 13px;
973                                         }
974                 ";
975         }
976         if($diabook_font_size == "12.5"){
977                 echo "
978                         .wall-item-container .wall-item-content {
979                                         font-size: 12.5px;
980                                         }
981                                         
982                         .wall-item-photo-container .wall-item-content {
983                                         font-size: 12.5px;
984                                         }
985                 ";
986         }
987         if($diabook_font_size == "12"){
988                 echo "
989                         .wall-item-container .wall-item-content {
990                                         font-size: 12px;
991                                         }
992                                         
993                         .wall-item-photo-container .wall-item-content {
994                                         font-size: 12px;
995                                         }
996                 ";
997         }
998         if($line_height == "1.5"){
999                 echo "
1000                         .wall-item-container .wall-item-content {
1001                                         line-height: 1.5;
1002                                         }
1003                                         
1004                         .wall-item-photo-container .wall-item-content {
1005                                         line-height: 1.5;
1006                                         }
1007                 ";
1008         }       
1009         if($line_height == "1.4"){
1010                 echo "
1011                         .wall-item-container .wall-item-content {
1012                                         line-height: 1.4;
1013                                         }
1014                                         
1015                         .wall-item-photo-container .wall-item-content {
1016                                         line-height: 1.4;
1017                                         }
1018                 ";
1019         }
1020         if($line_height == "1.3"){
1021                 echo "
1022                         .wall-item-container .wall-item-content {
1023                                         line-height: 1.3;
1024                                         }
1025                                         
1026                         .wall-item-photo-container .wall-item-content {
1027                                         line-height: 1.3;
1028                                         }
1029                 ";
1030         }
1031         if($line_height == "1.2"){
1032                 echo "
1033                         .wall-item-container .wall-item-content {
1034                                         line-height: 1.2;
1035                                         }
1036                                         
1037                         .wall-item-photo-container .wall-item-content {
1038                                         line-height: 1.2;
1039                                         }
1040                 ";
1041         }
1042         if($line_height == "1.1"){
1043                 echo "
1044                         .wall-item-container .wall-item-content {
1045                                         line-height: 1.1;
1046                                         }
1047                                         
1048                         .wall-item-photo-container .wall-item-content {
1049                                         line-height: 1.1;
1050                                         }
1051                 ";
1052         }
1053         }
1054         }
1055         
1056         if($color== "pink") {
1057         if($resolution == "normal") {   
1058         if (file_exists("$THEMEPATH/diabook-pink/style.css")){
1059                 echo file_get_contents("$THEMEPATH/diabook-pink/style.css");
1060         }
1061
1062    if($diabook_font_size == "15"){
1063                 echo "
1064                         .wall-item-container .wall-item-content {
1065                                         font-size: 15px;
1066                                         }
1067                                         
1068                         .wall-item-photo-container .wall-item-content {
1069                                         font-size: 15px;
1070                                         }
1071                 ";
1072         }       
1073         if($diabook_font_size == "14"){
1074                 echo "
1075                         .wall-item-container .wall-item-content {
1076                                         font-size: 14px;
1077                                         }
1078                                         
1079                         .wall-item-photo-container .wall-item-content {
1080                                         font-size: 14px;
1081                                         }
1082                 ";
1083         }
1084         if($diabook_font_size == "13.5"){
1085                 echo "
1086                         .wall-item-container .wall-item-content {
1087                                         font-size: 13.5px;
1088                                         }
1089                                         
1090                         .wall-item-photo-container .wall-item-content {
1091                                         font-size: 13.5px;
1092                                         }
1093                 ";
1094         }
1095         if($diabook_font_size == "13"){
1096                 echo "
1097                         .wall-item-container .wall-item-content {
1098                                         font-size: 13px;
1099                                         }
1100                                         
1101                         .wall-item-photo-container .wall-item-content {
1102                                         font-size: 13px;
1103                                         }
1104                 ";
1105         }
1106         if($diabook_font_size == "12.5"){
1107                 echo "
1108                         .wall-item-container .wall-item-content {
1109                                         font-size: 12.5px;
1110                                         }
1111                                         
1112                         .wall-item-photo-container .wall-item-content {
1113                                         font-size: 12.5px;
1114                                         }
1115                 ";
1116         }
1117         if($diabook_font_size == "12"){
1118                 echo "
1119                         .wall-item-container .wall-item-content {
1120                                         font-size: 12px;
1121                                         }
1122                                         
1123                         .wall-item-photo-container .wall-item-content {
1124                                         font-size: 12px;
1125                                         }
1126                 ";
1127         }
1128         if($line_height == "1.5"){
1129                 echo "
1130                         .wall-item-container .wall-item-content {
1131                                         line-height: 1.5;
1132                                         }
1133                                         
1134                         .wall-item-photo-container .wall-item-content {
1135                                         line-height: 1.5;
1136                                         }
1137                 ";
1138         }       
1139         if($line_height == "1.4"){
1140                 echo "
1141                         .wall-item-container .wall-item-content {
1142                                         line-height: 1.4;
1143                                         }
1144                                         
1145                         .wall-item-photo-container .wall-item-content {
1146                                         line-height: 1.4;
1147                                         }
1148                 ";
1149         }
1150         if($line_height == "1.3"){
1151                 echo "
1152                         .wall-item-container .wall-item-content {
1153                                         line-height: 1.3;
1154                                         }
1155                                         
1156                         .wall-item-photo-container .wall-item-content {
1157                                         line-height: 1.3;
1158                                         }
1159                 ";
1160         }
1161         if($line_height == "1.2"){
1162                 echo "
1163                         .wall-item-container .wall-item-content {
1164                                         line-height: 1.2;
1165                                         }
1166                                         
1167                         .wall-item-photo-container .wall-item-content {
1168                                         line-height: 1.2;
1169                                         }
1170                 ";
1171         }
1172         if($line_height == "1.1"){
1173                 echo "
1174                         .wall-item-container .wall-item-content {
1175                                         line-height: 1.1;
1176                                         }
1177                                         
1178                         .wall-item-photo-container .wall-item-content {
1179                                         line-height: 1.1;
1180                                         }
1181                 ";
1182         }
1183         }
1184         
1185         if($resolution == "wide") {     
1186         if (file_exists("$THEMEPATH/diabook-pink/style-wide.css")){
1187                 echo file_get_contents("$THEMEPATH/diabook-pink/style-wide.css");
1188         }
1189         if($diabook_font_size == "15"){
1190                 echo "
1191                         .wall-item-container .wall-item-content {
1192                                         font-size: 15px;
1193                                         }
1194                                         
1195                         .wall-item-photo-container .wall-item-content {
1196                                         font-size: 15px;
1197                                         }
1198                 ";
1199         }
1200         if($diabook_font_size == "14"){
1201                 echo "
1202                         .wall-item-container .wall-item-content {
1203                                         font-size: 14px;
1204                                         }
1205                                         
1206                         .wall-item-photo-container .wall-item-content {
1207                                         font-size: 14px;
1208                                         }
1209                 ";
1210         }
1211         if($diabook_font_size == "13.5"){
1212                 echo "
1213                         .wall-item-container .wall-item-content {
1214                                         font-size: 13.5px;
1215                                         }
1216                                         
1217                         .wall-item-photo-container .wall-item-content {
1218                                         font-size: 13.5px;
1219                                         }
1220                 ";
1221         }
1222         if($diabook_font_size == "13"){
1223                 echo "
1224                         .wall-item-container .wall-item-content {
1225                                         font-size: 13px;
1226                                         }
1227                                         
1228                         .wall-item-photo-container .wall-item-content {
1229                                         font-size: 13px;
1230                                         }
1231                 ";
1232         }
1233         if($diabook_font_size == "12.5"){
1234                 echo "
1235                         .wall-item-container .wall-item-content {
1236                                         font-size: 12.5px;
1237                                         }
1238                                         
1239                         .wall-item-photo-container .wall-item-content {
1240                                         font-size: 12.5px;
1241                                         }
1242                 ";
1243         }
1244         if($diabook_font_size == "12"){
1245                 echo "
1246                         .wall-item-container .wall-item-content {
1247                                         font-size: 12px;
1248                                         }
1249                                         
1250                         .wall-item-photo-container .wall-item-content {
1251                                         font-size: 12px;
1252                                         }
1253                 ";
1254         }
1255         if($line_height == "1.5"){
1256                 echo "
1257                         .wall-item-container .wall-item-content {
1258                                         line-height: 1.5;
1259                                         }
1260                                         
1261                         .wall-item-photo-container .wall-item-content {
1262                                         line-height: 1.5;
1263                                         }
1264                 ";
1265         }       
1266         if($line_height == "1.4"){
1267                 echo "
1268                         .wall-item-container .wall-item-content {
1269                                         line-height: 1.4;
1270                                         }
1271                                         
1272                         .wall-item-photo-container .wall-item-content {
1273                                         line-height: 1.4;
1274                                         }
1275                 ";
1276         }
1277         if($line_height == "1.3"){
1278                 echo "
1279                         .wall-item-container .wall-item-content {
1280                                         line-height: 1.3;
1281                                         }
1282                                         
1283                         .wall-item-photo-container .wall-item-content {
1284                                         line-height: 1.3;
1285                                         }
1286                 ";
1287         }
1288         if($line_height == "1.2"){
1289                 echo "
1290                         .wall-item-container .wall-item-content {
1291                                         line-height: 1.2;
1292                                         }
1293                                         
1294                         .wall-item-photo-container .wall-item-content {
1295                                         line-height: 1.2;
1296                                         }
1297                 ";
1298         }
1299         if($line_height == "1.1"){
1300                 echo "
1301                         .wall-item-container .wall-item-content {
1302                                         line-height: 1.1;
1303                                         }
1304                                         
1305                         .wall-item-photo-container .wall-item-content {
1306                                         line-height: 1.1;
1307                                         }
1308                 ";
1309         }
1310         }
1311         }