コード例 #1
0
ファイル: td_module_slide.php プロジェクト: Vatia13/tofido
 function get_title_main()
 {
     $cut_parms = array('char_per_line' => 26, 'excerpt' => 13, 'line_wrap_start' => '<span class="td-sbig-title">', 'line_wrap_end' => '</span><span class="td-sbig-sep"></span>');
     $buffy = '';
     $buffy .= '<div class="td-sbig-title-wrap">';
     $buffy .= '<a class="noSwipe" itemprop="url" href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">';
     $buffy .= td_util::cut_title($cut_parms, $this->title);
     $buffy .= '</a>';
     $buffy .= '</div>';
     return $buffy;
 }
コード例 #2
0
 function get_title_main()
 {
     $cut_parms = array('char_per_line' => 26, 'excerpt' => 13, 'line_wrap_start' => '<span class="td-sbig-title">', 'line_wrap_end' => '</span><span class="td-sbig-sep"></span>');
     //get the excerpt from panel
     $tds_big_slide_big_image_title_excerpt = td_util::get_option('tds_big_slide_big_image_title_excerpt');
     //if set, in the theme panel, get the excerpt length from there
     if (intval($tds_big_slide_big_image_title_excerpt) > 0) {
         $cut_parms['excerpt'] = intval($tds_big_slide_big_image_title_excerpt);
     }
     $buffy = '';
     $buffy .= '<div class="td-sbig-title-wrap">';
     $buffy .= '<a class="noSwipe" itemprop="url" href="' . $this->current_post->href . '" rel="bookmark" title="' . $this->current_post->title_attribute . '">';
     $buffy .= td_util::cut_title($cut_parms, $this->current_post->title);
     $buffy .= '</a>';
     $buffy .= '</div>';
     return $buffy;
 }