?> 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; } }