]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/quattro/style.php
Normalize App parameter declaration (view folder)
[friendica.git] / view / theme / quattro / style.php
index 33c8a246efef106fb37bf3acfcdfa418896a62d3..bf0b1e0428a2961fe8d3720541ba5ae432a82daa 100644 (file)
@@ -1,12 +1,14 @@
 <?php
+       $uid = get_theme_uid();
+
        $color=false;
        $quattro_align=false;
        $site_color = get_config("quattro","color");
        $site_quattro_align = get_config("quattro", "align" );
        
-       if (local_user()) {
-               $color = get_pconfig(local_user(), "quattro","color");
-               $quattro_align = get_pconfig(local_user(), 'quattro', 'align' );
+       if ($uid) {
+               $color = get_pconfig( $uid, "quattro","color");
+               $quattro_align = get_pconfig( $uid, 'quattro', 'align' );
        }
        
        if ($color===false) $color=$site_color;
                ";
        }
 
-    $textarea_font_size = "20";
+    
+
+    $textarea_font_size = false;
+    $post_font_size = false;
+    
+    $site_textarea_font_size = get_config("quattro","tfs");
+    $site_post_font_size = get_config("quattro","pfs");
+    if ($site_textarea_font_size===false) $site_textarea_font_size="20";
+    if ($site_post_font_size===false) $site_post_font_size="12";
+    
+       if ($uid) {
+        $textarea_font_size = get_pconfig( $uid, "quattro","tfs");
+        $post_font_size = get_pconfig( $uid, "quattro","pfs");    
+       } 
+    
+    if ($textarea_font_size===false) $textarea_font_size = $site_textarea_font_size;
+    if ($post_font_size===false) $post_font_size = $site_post_font_size;
 
     echo "
         textarea { font-size: ${textarea_font_size}px; }
         .wall-item-comment-wrapper .comment-edit-text-full { font-size: ${textarea_font_size}px; }
         #jot .profile-jot-text:focus { font-size: ${textarea_font_size}px; }
+        .wall-item-container .wall-item-content  { font-size: ${post_font_size}px; }
     ";
\ No newline at end of file