浏览代码

* Added color theme support for the reply colors

Tyler Akins 24 年之前
父节点
当前提交
2b6e8569f1
共有 1 个文件被更改,包括 10 次插入4 次删除
  1. 10 4
      functions/strings.php

+ 10 - 4
functions/strings.php

@@ -170,6 +170,7 @@
 
    function translateText(&$body, $wrap_at, $charset) {
       global $where, $what; // from searching
+      global $color; // color theme
 
       include '../functions/url_parser.php';
       
@@ -204,10 +205,15 @@
              }
          }
          
-         if ($Quotes > 1)
-            $line = '<FONT COLOR="FF0000">'.$line.'</FONT>';
-         elseif ($Quotes)
-            $line = '<FONT COLOR="800000">'.$line.'</FONT>';
+         if ($Quotes > 1) {
+	    if (! isset($color[13]))
+	       $color[13] = '#FF0000';
+            $line = '<FONT COLOR="' . $color[13] . '">' . $line . '</FONT>';
+	 } elseif ($Quotes) {
+	    if (! isset($color[14]))
+	       $color[14] = '#800000';
+            $line = '<FONT COLOR="' . $color[14] . '">' . $line . '</FONT>';
+	 }
 
          $body_ary[$i] = $line;
       }