Browse Source

Adding "lynch" bbcode for mafia games

ElectraHeart 7 years ago
parent
commit
5d15fbf00d
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      classes/text.class.php

+ 4
- 1
classes/text.class.php View File

@@ -4,7 +4,7 @@ class Text {
4 4
    * Array of valid tags; tag => max number of attributes
5 5
    * @var array $ValidTags
6 6
    */
7
-  private static $ValidTags = array('b'=>0, 'u'=>0, 'i'=>0, 's'=>0, '*'=>0, '#'=>0, 'ch'=>0, 'uch'=>0, 'artist'=>0, 'user'=>0, 'n'=>0, 'inlineurl'=>0, 'inlinesize'=>1, 'headline'=>1, 'align'=>1, 'color'=>1, 'colour'=>1, 'size'=>1, 'url'=>1, 'img'=>1, 'quote'=>1, 'pre'=>1, 'code'=>1, 'tex'=>0, 'hide'=>1, 'spoiler' => 1, 'plain'=>0, 'important'=>0, 'torrent'=>0, 'rule'=>0, 'embed'=>0,
7
+  private static $ValidTags = array('b'=>0, 'u'=>0, 'i'=>0, 's'=>0, '*'=>0, '#'=>0, 'ch'=>0, 'uch'=>0, 'artist'=>0, 'user'=>0, 'n'=>0, 'inlineurl'=>0, 'inlinesize'=>1, 'headline'=>1, 'align'=>1, 'color'=>1, 'colour'=>1, 'size'=>1, 'url'=>1, 'img'=>1, 'quote'=>1, 'pre'=>1, 'code'=>1, 'tex'=>0, 'hide'=>1, 'spoiler' => 1, 'plain'=>0, 'important'=>0, 'torrent'=>0, 'rule'=>0, 'embed'=>0, 'lynch'=>0
8 8
   );
9 9
 
10 10
   /**
@@ -692,6 +692,9 @@ class Text {
692 692
         case 'b':
693 693
           $Str .= '<strong>'.self::to_html($Block['Val']).'</strong>';
694 694
           break;
695
+        case 'lynch':
696
+          $Str .= '<span class="lynch">'.self::to_html($Block['Val']).'</span>';
697
+          break;
695 698
         case 'u':
696 699
           $Str .= '<span style="text-decoration: underline;">'.self::to_html($Block['Val']).'</span>';
697 700
           break;

Loading…
Cancel
Save