/p>';break;default:$this->at($node);} } /** {@inheritdoc} */ public $enableQuickRenderer=true; /** {@inheritdoc} */ protected $static=['/B'=>'','/CODE'=>'','/COLOR'=>'','/EMAIL'=>'','/I'=>'','/LI'=>'','/QUOTE'=>'','/SIZE'=>'','/U'=>'','/URL'=>'','B'=>'','I'=>'','LI'=>'
  • ','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'/LIST':$attributes=array_pop($this->attributes);if(!isset($attributes['type']))$html.='';elseif((strpos('upperlowerdecim',mb_substr(htmlspecialchars_decode($attributes['type']),0,5,'utf-8'))!==false))$html.='';else$html.='';break;case'ATTACHMENT':$attributes+=['index'=>null,'filename'=>null];$html.='
    '.str_replace('"','"',$attributes['filename']).'
    ';break;case'CODE':$html.='

    '.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($this->params['S_VIEWSMILIES']==='')$html.=htmlspecialchars($textContent,0);else{switch($textContent){case':(':$html.=':(';break;case':)':$html.=':)';break;case':-(':$html.=':-(';break;case':-)':$html.=':-)';break;case':-D':$html.=':-D';break;case':-P':$html.=':-P';break;case':P':$html.=':P';break;case':grin:':$html.=':grin:';break;case':razz:':$html.=':razz:';break;case':smile:':$html.=':smile:';break;case':wink:':$html.=':wink:';break;case';)':$html.=';)';break;case';-)':$html.=';-)';break;default:$html.=htmlspecialchars($textContent,0);}}break;case'EMOJI':$attributes+=['seq'=>null];$textContent=$this->getQuickTextContent($xml);if($this->params['S_VIEWSMILIES']!==''){$html.=''.htmlspecialchars($textContent,2).'';}else$html.=htmlspecialchars($textContent,0);break;case'LINK_TEXT':$attributes+=['text'=>null];$html.=str_replace('"','"',$attributes['text']);break;case'LIST':$attributes+=['type'=>null];if(!isset($attributes['type']))$html.='
      ';elseif((strpos('upperlowerdecim',mb_substr(htmlspecialchars_decode($attributes['type']),0,5,'utf-8'))!==false))$html.='
        ';else$html.='
          ';$this->attributes[]=$attributes;break;case'QUOTE':$attributes+=['url'=>null,'author'=>null,'post_id'=>null];$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; } }