示例#1
0
文件: tags.php 项目: ecerta/webcomic
 /**
  * Start element output.
  * 
  * @param string $output Walker output string.
  * @param object $term Current term being handled by the walker.
  * @param integer $depth Depth the walker is currently at.
  * @param array $args Arguments passed to the walker.
  * @uses WebcomicTag::get_webcomic_transcripts_link()
  * @filter string webcomic_transcript_term_list_title Filters the term titles used by `webcomic_list_transcript_languages`.
  */
 public function start_el(&$output, $term, $depth = 0, $args = array(), $current = 0)
 {
     extract($args, $args['hierarchical'] ? EXTR_SKIP : EXTR_OVERWRITE);
     $term_title = apply_filters('webcomic_transcript_term_list_title', esc_attr($term->name), $term);
     $output .= '<li class="webcomic-transcript-term ' . $term->taxonomy . ' webcomic-transcript-term-' . $term->term_id . ($selected === $term->term_id ? ' current' : '') . '"><a href="' . WebcomicTag::get_webcomic_transcripts_link($term, $the_post) . '" class="webcomic-term-link">' . $term_title . '</a>';
 }