g class="smilies" src="'.htmlspecialchars($this->params['T_SMILIES_PATH'],2).'/icon_e_smile.gif" width="15" height="17" alt=":smile:" title="Smile">';break;case':twisted:':$this->out.=':twisted:';break;case':ugeek:':$this->out.=':ugeek:';break;case':wink:':$this->out.=':wink:';break;case':x':$this->out.=':x';break;case':|':$this->out.=':|';break;case';)':$this->out.=';)';break;case';-)':$this->out.=';-)';break;default:$this->out.=htmlspecialchars($node->textContent,0);}}break;case'EMAIL':$this->out.='';$this->at($node);$this->out.='';break;case'EMOJI':if(!empty($this->params['S_VIEWSMILIES']))$this->out.=''.htmlspecialchars($node->textContent,2).'';else$this->out.=htmlspecialchars($node->textContent,0);break;case'FLASH':if(!empty($this->params['S_VIEWFLASH']))$this->out.='';else$this->at($node);break;case'I':$this->out.='params['STYLE_ID']);else$this->out.=' class="text-italics"';$this->out.='>';$this->at($node);$this->out.='';break;case'IMG':if(!empty($this->params['S_VIEWIMG']))$this->out.=''.htmlspecialchars($this->params['L_IMAGE'],2).'';else$this->at($node);break;case'LI':$this->out.='
  • ';$this->at($node);$this->out.='
  • ';break;case'LINK_TEXT':$this->out.=htmlspecialchars($node->getAttribute('text'),0);break;case'LIST':if(!$node->hasAttribute('type')){$this->out.='';}elseif('upperlowerdecim'){$this->out.='
      ';$this->at($node);$this->out.='
    ';}else{$this->out.='';}break;case'QUOTE':$this->out.='params['STYLE_ID']){$this->out.=' class="blockquote bg-white border ml-2 mt-2 mb-2 p-2">';if($node->hasAttribute('author')){$this->out.='';if($node->hasAttribute('date'))$this->out.=''.htmlspecialchars($node->getAttribute('date'),0).'';if($node->hasAttribute('url'))$this->out.=''.htmlspecialchars($node->getAttribute('author'),0).'';elseif($node->hasAttribute('profile_url'))$this->out.=''.htmlspecialchars($node->getAttribute('author'),0).'';else$this->out.=htmlspecialchars($node->getAttribute('author'),0);$this->out.=' '.htmlspecialchars($this->params['L_WROTE'].$this->params['L_COLON'],0);if($node->hasAttribute('post_url'))$this->out.=' ';$this->out.='';}$this->out.='
    ';$this->at($node);}else{if(!$node->hasAttribute('author'))$this->out.=' class="uncited"';$this->out.='>
    ';if($node->hasAttribute('author')){$this->out.='';if($node->hasAttribute('url'))$this->out.=''.htmlspecialchars($node->getAttribute('author'),0).'';elseif($node->hasAttribute('profile_url'))$this->out.=''.htmlspecialchars($node->getAttribute('author'),0).'';else$this->out.=htmlspecialchars($node->getAttribute('author'),0);$this->out.=' '.htmlspecialchars($this->params['L_WROTE'].$this->params['L_COLON'],0);if($node->hasAttribute('post_url'))$this->out.=' ';if($node->hasAttribute('date'))$this->out.='
    '.htmlspecialchars($node->getAttribute('date'),0).'
    ';$this->out.='
    ';}$this->at($node);$this->out.='
    ';}$this->out.='';break;case'SIZE':$this->out.='';$this->at($node);$this->out.='';break;case'TABLE':$this->out.='';$this->at($node);$this->out.='
    ';break;case'TD':$this->out.='';$this->at($node);$this->out.='';break;case'TH':$this->out.='';$this->at($node);$this->out.='';break;case'TR':$this->out.='';$this->at($node);$this->out.='';break;case'U':$this->out.='';$this->at($node);$this->out.='';break;case'URL':$this->out.='';$this->at($node);$this->out.='';break;case'br':$this->out.='
    ';break;case'e':case'i':case's':break;case'p':$this->out.='

    ';$this->at($node);$this->out.='

    ';break;default:$this->at($node);} } /** {@inheritdoc} */ public $enableQuickRenderer=true; /** {@inheritdoc} */ protected $static=['/B'=>'','/COLOR'=>'','/EMAIL'=>'','/I'=>'','/LI'=>'','/SIZE'=>'','/TABLE'=>'','/TD'=>'','/TH'=>'','/TR'=>'','/U'=>'','/URL'=>'','LI'=>'
  • ','TABLE'=>'','TD'=>'','U'=>'']; /** {@inheritdoc} */ protected $dynamic=['COLOR'=>['(^[^ ]+(?> (?!color=)[^=]+="[^"]*")*(?> color="([^"]*)")?.*)s',''],'EMAIL'=>['(^[^ ]+(?> (?!email=)[^=]+="[^"]*")*(?> email="([^"]*)")?.*)s',''],'SIZE'=>['(^[^ ]+(?> (?!size=)[^=]+="[^"]*")*(?> size="([^"]*)")?.*)s',''],'URL'=>['(^[^ ]+(?> (?!url=)[^=]+="[^"]*")*(?> url="([^"]*)")?.*)s','']]; /** {@inheritdoc} */ protected $quickRegexp='(<(?:(?!/)((?:ATTACHMENT|E(?>MOJI)?|LINK_TEXT))(?: [^>]*)?>.*?)[^ />]+)[^>]*?(/)?)>)s'; /** {@inheritdoc} */ protected $quickRenderingTest='(<(?:[!?]|(?>FLASH|IMG)[ />]))'; /** {@inheritdoc} */ protected function renderQuickTemplate($id, $xml) { $attributes=$this->matchAttributes($xml); $html='';switch($id){case'/CODE':if($this->params['STYLE_ID']);else;$html.='';$html.='';break;case'/LIST':$attributes=array_pop($this->attributes);if(!isset($attributes['type']))$html.='';elseif('upperlowerdecim')$html.='';else$html.='';break;case'/QUOTE':if($this->params['STYLE_ID']);else$html.='';$html.='';break;case'ATTACHMENT':$attributes+=['index'=>null,'filename'=>null];$html.='
    '.str_replace('"','"',$attributes['filename']).'
    ';break;case'B':$html.='params['STYLE_ID']);else$html.=' class="text-strong"';$html.='>';break;case'CODE':$html.='params['STYLE_ID'])$html.=' class="codebox mt-2">'.htmlspecialchars($this->params['L_CODE'].$this->params['L_COLON'],0).'
    '.htmlspecialchars($this->params['L_SELECT_ALL_CODE'],0).'
    ';else$html.=' class="codebox">

    '.htmlspecialchars($this->params['L_CODE'].$this->params['L_COLON'],0).' '.htmlspecialchars($this->params['L_SELECT_ALL_CODE'],0).'

    ';break;case'E':$textContent=$this->getQuickTextContent($xml);if(empty($this->params['S_VIEWSMILIES']))$html.=htmlspecialchars($textContent,0);else{switch($textContent){case'8-)':$html.='8-)';break;case':!:':$html.=':!:';break;case':(':$html.=':(';break;case':)':$html.=':)';break;case':-(':$html.=':-(';break;case':-)':$html.=':-)';break;case':-?':$html.=':-?';break;case':-D':$html.=':-D';break;case':-P':$html.=':-P';break;case':-o':$html.=':-o';break;case':-x':$html.=':-x';break;case':-|':$html.=':-|';break;case':?':$html.=':?';break;case':?:':$html.=':?:';break;case':???:':$html.=':???:';break;case':D':$html.=':D';break;case':P':$html.=':P';break;case':arrow:':$html.=':arrow:';break;case':cool:':$html.=':cool:';break;case':cry:':$html.=':cry:';break;case':eek:':$html.=':eek:';break;case':evil:':$html.=':evil:';break;case':geek:':$html.=':geek:';break;case':grin:':$html.=':grin:';break;case':idea:':$html.=':idea:';break;case':lol:':$html.=':lol:';break;case':mad:':$html.=':mad:';break;case':mrgreen:':$html.=':mrgreen:';break;case':o':$html.=':o';break;case':oops:':$html.=':oops:';break;case':razz:':$html.=':razz:';break;case':roll:':$html.=':roll:';break;case':sad:':$html.=':sad:';break;case':shock:':$html.=':shock:';break;case':smile:':$html.=':smile:';break;case':twisted:':$html.=':twisted:';break;case':ugeek:':$html.=':ugeek:';break;case':wink:':$html.=':wink:';break;case':x':$html.=':x';break;case':|':$html.=':|';break;case';)':$html.=';)';break;case';-)':$html.=';-)';break;default:$html.=htmlspecialchars($textContent,0);}}break;case'EMOJI':$attributes+=['seq'=>null];$textContent=$this->getQuickTextContent($xml);if(!empty($this->params['S_VIEWSMILIES']))$html.=''.htmlspecialchars($textContent,2).'';else$html.=htmlspecialchars($textContent,0);break;case'I':$html.='params['STYLE_ID']);else$html.=' class="text-italics"';$html.='>';break;case'LINK_TEXT':$attributes+=['text'=>null];$html.=str_replace('"','"',$attributes['text']);break;case'LIST':$attributes+=['type'=>null];if(!isset($attributes['type']))$html.='
      ';elseif('upperlowerdecim')$html.='
        ';else$html.='
          ';$this->attributes[]=$attributes;break;case'QUOTE':$attributes+=['date'=>null,'author'=>null,'post_id'=>null,'url'=>null];$html.='params['STYLE_ID']){$html.=' class="blockquote bg-white border ml-2 mt-2 mb-2 p-2">';if(isset($attributes['author'])){$html.='';if(isset($attributes['date']))$html.=''.str_replace('"','"',$attributes['date']).'';if(isset($attributes['url']))$html.=''.str_replace('"','"',$attributes['author']).'';elseif(isset($attributes['profile_url']))$html.=''.str_replace('"','"',$attributes['author']).'';else$html.=str_replace('"','"',$attributes['author']);$html.=' '.htmlspecialchars($this->params['L_WROTE'].$this->params['L_COLON'],0);if(isset($attributes['post_url']))$html.=' ';$html.='';}$html.='
          ';}else{if(!isset($attributes['author']))$html.=' class="uncited"';$html.='>
          ';if(isset($attributes['author'])){$html.='';if(isset($attributes['url']))$html.=''.str_replace('"','"',$attributes['author']).'';elseif(isset($attributes['profile_url']))$html.=''.str_replace('"','"',$attributes['author']).'';else$html.=str_replace('"','"',$attributes['author']);$html.=' '.htmlspecialchars($this->params['L_WROTE'].$this->params['L_COLON'],0);if(isset($attributes['post_url']))$html.=' ';if(isset($attributes['date']))$html.='
          '.str_replace('"','"',$attributes['date']).'
          ';$html.='
          ';}}} return $html; } }
    ','TH'=>'','TR'=>'