* * @package Webcomic * @uses WebcomicTag::webcomic_print_form() * @uses WebcomicTag::webcomic_collection_link() * @uses WebcomicTag::get_the_webcomic_term_list() * @uses WebcomicTag::the_webcomic() * @uses WebcomicTag::webcomic_dropdown_transcript_terms() * @uses WebcomicTag::get_webcomic_transcript_authors() * @uses WebcomicTag::get_the_webcomic_transcript_term_list() * @uses is_webcomic() * @uses webcomic_prints_available() * @uses is_webcomic_archive() * @uses is_webcomic_storyline() * @uses is_webcomic_character() */ if (is_webcomic()) { global $post; if (webcomic_prints_available()) { $prints = array(); $prints[] = WebcomicTag::webcomic_print_form("domestic", sprintf(__('%1$s%2$s%%total Domestic', "webcomic"), __("%dec.", "webcomic"), __("%sep,", "webcomic"))); $prints[] = WebcomicTag::webcomic_print_form("international", sprintf(__('%1$s%2$s%%total International', "webcomic"), __("%dec.", "webcomic"), __("%sep,", "webcomic"))); if (webcomic_prints_available("original")) { $prints[] = WebcomicTag::webcomic_print_form("original", sprintf(__('%1$s%2$s%%total Original', "webcomic"), __("%dec.", "webcomic"), __("%sep,", "webcomic"))); } if ("_cart" === self::$config["collections"][$post->post_type]["commerce"]["method"]) { $prints[] = WebcomicTag::webcomic_print_form("cart"); } $append .= "<div class='webcomic-prints'><style scoped>.webcomic-prints form{display:inline}</style><h2>" . __("Prints", "webcomic") . "</h2><div>" . implode("\n", $prints) . "</div></div><!-- .webcomic-prints -->"; } $append .= WebcomicTag::webcomic_collection_link("<div class='webcomic-collection'>%link</div><!-- .webcomic-collection -->", "%title"); $append .= WebcomicTag::get_the_webcomic_term_list($post->ID, 'storyline', '<div class="webcomic-storylines"><b>' . __("Part of ", "webcomic") . "</b>", ", ", "</div><!-- .webcomic-storylines -->");
function jetpackme_no_related_posts($options) { $catObj = get_category_by_slug("produto"); $catID = $catObj->term_id; if (is_webcomic() || in_category($catID)) { $options['enabled'] = false; } return $options; }
<?php /** * Automagic integration for loop_end. * * @package Webcomic * @uses WebcomicTag::get_webcomic_transcript_authors() * @uses WebcomicTag::get_the_webcomic_transcript_term_list() * @uses is_webcomic() * @uses get_webcomic_transcripts() * @uses webcomic_transcripts_open() * @uses have_webcomic_transcripts() * @uses webcomic_transcript_form() */ if (!is_webcomic()) { return; } global $post; if ($transcripts = get_webcomic_transcripts()) { ?> <h3 id="webcomic-transcripts"><?php sprintf(__("%s Transcripts", "webcomic"), the_title("", "", false)); ?> </h3> <?php foreach ($transcripts as $post) { setup_postdata($post); ?>
comments_popup_link(); ?> </span> <?php } edit_post_link(__("Edit", "webcomic"), "<span class='edit-link'>", "</span>"); ?> </footer><!-- .entry-meta --> </article><!-- #post-<?php the_ID(); ?> --> </div> <?php } elseif (is_webcomic()) { ?> <div class="integrated-webcomic"> <nav class="webcomic-above"><?php first_webcomic_link(); previous_webcomic_link(); random_webcomic_link(); next_webcomic_link(); last_webcomic_link(); ?> </nav><!-- .webcomic-above --> <div class="webcomic-img"><?php the_webcomic("full", "next"); ?> </div><!-- .webcomic-img --> <nav class="webcomic-below"><?php