示例#1
0
    sprintf(__("%s Transcripts", "webcomic"), the_title("", "", false));
    ?>
</h3>
	
	<?php 
    foreach ($transcripts as $post) {
        setup_postdata($post);
        ?>
	
	<div class="webcomic-transcript-content"><?php 
        the_content();
        ?>
</div>
	<div class="webcomic-transcript-meta">
		<?php 
        printf(__('Transcribed by %1$s%2$s', "webcomic"), WebcomicTag::get_webcomic_transcript_authors(), WebcomicTag::get_the_webcomic_transcript_term_list(0, "webcomic_language", __(" in ", "webcomic"), __(", ", "webcomic"), __("", "webcomic")));
        ?>
	</div>
	
	<?php 
        wp_reset_postdata();
    }
}
if (webcomic_transcripts_open()) {
    if (have_webcomic_transcripts(true) and $transcripts = get_webcomic_transcripts(true)) {
        foreach ($transcripts as $transcript) {
            webcomic_transcript_form(array(), $transcript);
        }
    }
    webcomic_transcript_form();
}
示例#2
0
文件: tags.php 项目: ecerta/webcomic
 /**
  * Render a formatted list of languages related to the current webcomic transcript.
  * 
  * <code class="php">
  * // render any languages associated with the current transcript
  * the_webcomic_transcript_languages();
  * 
  * // render a list of languages associated with the current transcript
  * the_webcomic_transcript_languages( '<ul class="webcomic-transcript-languages"><li>', '</li><li>', '</li></ul>' );
  * </code>
  * 
  * @package Webcomic
  * @param string $before Before list.
  * @param string $sep Separate items using this.
  * @param string $after After list.
  * @uses WebcomicTag::get_the_webcomic_transcript_term_list()
  */
 function the_webcomic_transcript_languages($before = '', $sep = ', ', $after = '')
 {
     echo WebcomicTag::get_the_webcomic_transcript_term_list(0, 'webcomic_language', $before, $sep, $after);
 }