]> git.mxchange.org Git - friendica.git/blob - view/theme/cleanzero/style.php
Merge branch 'master' of git://github.com/friendica/friendica
[friendica.git] / view / theme / cleanzero / style.php
1 <?php
2         $color=false;
3         $cleanzero_font_size=false;
4
5         $site_color = get_config("cleanzero","color");
6         $site_cleanzero_font_size = get_config("cleanzero", "font_size" );
7
8         
9         if (local_user()) {
10                 $color = get_pconfig(local_user(), "cleanzero","color");
11                 $cleanzero_font_size = get_pconfig(local_user(), "cleanzero", "font_size");
12         
13         }
14         
15         if ($color===false) $color=$site_color;
16         if ($color===false) $color="cleanzero";
17         if ($cleanzero_font_size===false) $cleanzero_font_size=$site_cleanzero_font_size;
18
19         
20                 
21         if (file_exists("$THEMEPATH/$color/style.css")){
22                 echo file_get_contents("$THEMEPATH/$color/style.css");
23         }
24
25
26
27         if($cleanzero_font_size == "16"){
28                 echo "
29                         .wall-item-content-wrapper {
30                                         font-size: 16px;
31                                         }
32                                         
33                         .wall-item-content-wrapper.comment {
34                                         font-size: 16px;
35                                         }
36                 ";  
37        }
38        if($cleanzero_font_size == "14"){
39                 echo "
40                         .wall-item-content-wrapper {
41                                         font-size: 14px;
42                                         }
43                                         
44                         .wall-item-content-wrapper.comment {
45                                         font-size: 14px;
46                                         }
47                 ";
48         }       
49         if($cleanzero_font_size == "12"){
50                 echo "
51                         .wall-item-content-wrapper {
52                                         font-size: 12px;
53                                         }
54                                         
55                         .wall-item-content-wrapper.comment {
56                                         font-size: 12px;
57                                         }
58                 ";
59         }
60         if($cleanzero_font_size == "10"){
61                 echo "
62                         .wall-item-content-wrapper {
63                                         font-size: 10px;
64                                         }
65                                         
66                         .wall-item-content-wrapper.comment {
67                                         font-size: 10px;
68                                         }
69                 ";
70         }
71