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