/** * mangapress_comic_insert_navigation() * Inserts navigation on single comic pages when Insert Navigation is enabled. * * @since 2.8 * * @global object $post WordPress post object. * @param string $content Post content * @return string */ function mangapress_comic_insert_navigation($content) { global $post; if (!(get_post_type($post) == 'mangapress_comic' && is_single())) { return $content; } else { $navigation = mangapress_comic_navigation(null, null, false); $content = $navigation . $content; return apply_filters('the_comic_content', $content); } }
twentythirteen_entry_meta(); ?> <?php edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>'); ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> <nav id="comic-navigation" class="navigation post-navigation" role="navigation"> <h1 class="screen-reader-text"><?php _e('Post navigation', 'twentythirteen'); ?> </h1> <div class="nav-links"> <?php mangapress_comic_navigation(null, array('container' => '')); ?> </div> </nav> <div class="entry-content"> <p> <?php the_post_thumbnail(get_the_ID(), array('class' => 'mangapress-comic-img')); ?> </p> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'twentytwelve'), 'after' => '</div>'));
<?php /** * MangaPress * * @package Manga_Press * @subpackage Manga_Press_Templates\Single_Comic * @version $Id$ * @author Jess Green <*****@*****.**> */ mangapress_comic_navigation(); ?> <div class="mangapress-media-img"> <?php echo wp_get_attachment_image(get_post_thumbnail_id(), $thumbnail_size, false); ?> </div> <?php mangapress_comic_navigation();
<?php global $thumbnail_size, $single_comic_query; mangapress_comic_navigation($single_comic_query); ?> <h2><?php the_title(); ?> </h2> <p> <?php the_post_thumbnail(get_the_ID(), $thumbnail_size); ?> </p> <?php the_content();
<article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?> </h1> </header><!-- .entry-header --> <?php mangapress_comic_navigation(array('container_attr' => array('class' => 'latest-comic-nav comic-nav-hlist-wrapper'))); ?> <div class="entry-content"> <p> <?php the_post_thumbnail(get_the_ID()); ?> </p> <?php the_content(); ?> </div><!-- .entry-content --> <footer class="entry-meta"> <?php
twentythirteen_entry_meta(); ?> <?php edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>'); ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> <nav id="comic-navigation" class="navigation post-navigation" role="navigation"> <h1 class="screen-reader-text"><?php _e('Post navigation', 'twentythirteen'); ?> </h1> <div class="nav-links"> <?php mangapress_comic_navigation($wp_query, array('container' => '')); ?> </div> </nav> <div class="entry-content"> <p> <?php the_post_thumbnail(get_the_ID(), array('class' => 'mangapress-comic-img')); ?> </p> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'twentytwelve'), 'after' => '</div>'));
<article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?> </h1> </header><!-- .entry-header --> <?php mangapress_comic_navigation($latest_comic); ?> <div class="entry-content"> <p> <?php the_post_thumbnail(get_the_ID()); ?> </p> <?php the_content(); ?> </div><!-- .entry-content --> <footer class="entry-meta"> <?php