コード例 #1
0
ファイル: helper.php プロジェクト: esorone/efcpw
 function title_out($row, $aroute)
 {
     $title_out = "";
     if ($this->params->get('show_title')) {
         $title = $row->title;
         $title = JFilterOutput::ampReplace($title);
         if ($this->params->get('filter_title')) {
             $title = modDisplayNewsHelper::dn_filter($title);
             modDisplayNewsHelper::dn_limit($title, $this->params->get('filter_title'), $this->params->get('length_limit_title', 20), $this->params->get('truncate_ending_title', 1) ? $this->params->get('truncate_ending_title_sign', '...') : '');
         }
         //  HTML for outputing of Title
         if ($this->params->get('link_titles') and $aroute) {
             $title_out .= modDisplayNewsHelper::create_link($aroute, $title, modDisplayNewsHelper::dn_hovertext($this->params->get('text_hover_title'), $row->title));
         } else {
             $title_out .= $title;
         }
         if ($this->params->get('use_row_styles', 1)) {
             $title_out = "<" . $this->params->get('title_tag', 'span class="title"') . ">" . $title_out . "</" . strtok($this->params->get('title_tag', 'span'), " ") . ">";
         }
     }
     return $title_out;
 }