示例#1
0
 /**
  * Prints HTML with meta information for the categories, tags and comments.
  */
 function vtstheme_entry_footer()
 {
     // Hide category and tag text for pages.
     if ('post' === get_post_type()) {
         /* translators: used between list items, there is a space after the comma */
         // $categories_list = get_the_category_list( esc_html__( ', ', 'vtstheme' ) );
         // if ( $categories_list && vtstheme_categorized_blog() && strpos($categories_list,'Uncategorized') === false ) {
         // 	printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'vtstheme' ) . '</span>', $categories_list ); // WPCS: XSS OK.
         // }
         /* translators: used between list items, there is a space after the comma */
         // $tags_list = get_the_tag_list( '', esc_html__( ', ', 'vtstheme' ) );
         // if ( $tags_list ) {
         // 	printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', 'vtstheme' ) . '</span>', $tags_list ); // WPCS: XSS OK.
         // }
         the_post_navigation(['prev_text' => '<i class="fa fa-chevron-left"></i>Prev', 'next_text' => 'Next<i class="fa fa-chevron-right"></i>']);
         echo '<a id="share-toggle" class="button secondary share"><i class="fa fa-share"></i> Share</a>';
         naked_social_share_buttons();
     }
     // if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
     // 	echo '<span class="comments-link">';
     // 	comments_popup_link( esc_html__( 'Leave a comment', 'vtstheme' ), esc_html__( '1 Comment', 'vtstheme' ), esc_html__( '% Comments', 'vtstheme' ) );
     // 	echo '</span>';
     // }
     // edit_post_link( esc_html__( 'Edit', 'vtstheme' ), '<span class="edit-link">', '</span>' );
 }
示例#2
0
 /**
  * Prints HTML with meta information for the current post-date/time, author, comment count and categories.
  */
 function ultra_posted_on()
 {
     echo '<div class="entry-meta-inner">';
     if (is_sticky() && is_home() && !is_paged()) {
         echo '<span class="featured-post">' . __('Sticky', 'ultra') . '</span>';
     }
     if (is_home() && siteorigin_setting('blog_post_date') || is_archive() && siteorigin_setting('blog_post_date') || is_search() && siteorigin_setting('blog_post_date')) {
         echo '<span class="entry-date"><a href="' . esc_url(get_permalink()) . '" rel="bookmark"><time class="published" datetime="' . esc_attr(get_the_date('c')) . '">' . esc_html(get_the_date('j F Y')) . '</time><time class="updated" datetime="' . esc_attr(get_the_modified_date('c')) . '">' . esc_html(get_the_modified_date()) . '</time></span></a>';
     }
     if (is_single() && siteorigin_setting('blog_post_date')) {
         echo '<span class="entry-date"><time class="published" datetime="' . esc_attr(get_the_date('c')) . '">' . esc_html(get_the_date('j F Y')) . '</time><time class="updated" datetime="' . esc_attr(get_the_modified_date('c')) . '">' . esc_html(get_the_modified_date()) . '</time></span>';
     }
     if (siteorigin_setting('blog_post_author')) {
         echo '<span class="byline"><span class="author vcard"><a class="url fn n" href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '" rel="author">' . esc_html(get_the_author()) . '</a></span></span>';
     }
     if (comments_open() && siteorigin_setting('blog_post_comment_count')) {
         echo '<span class="comments-link">';
         comments_popup_link(__('Leave a comment', 'ultra'), __('1 Comment', 'ultra'), __('% Comments', 'ultra'));
         echo '</span>';
     }
     echo '</div>';
     if (is_single() && siteorigin_setting('navigation_post_nav')) {
         the_post_navigation($args = array('prev_text' => '', 'next_text' => ''));
     }
 }
function avocation_pagination()
{
    if (is_single()) {
        the_post_navigation(array('prev_text' => '<div class="avocation_previous_pagination alignleft">%title</div>', 'next_text' => '<div class="avocation_next_pagination alignright">%title</div>'));
    } else {
        the_posts_pagination(array('prev_text' => '<i class="fa fa-angle-double-left"></i>', 'next_text' => '<i class="fa fa-angle-double-right"></i>', 'before_page_number' => '<span class="meta-nav screen-reader-text"></span>'));
    }
}
function multishop_pagination()
{
    ?>
<div class="col-md-12 multishop-default-pagination ">
			<?php 
    if (is_single()) {
        the_post_navigation(array('next_text' => '<span class="multishop_next_pagination meta-nav" aria-hidden="true">%title</span>', 'prev_text' => '<span class="multishop_previous_pagination meta-nav" aria-hidden="true">%title</span>'));
    } else {
        the_posts_pagination(array('prev_text' => __('<<'), 'next_text' => __('>>'), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'multishop') . ' </span>'));
    }
    ?>
</div>
<?php 
}
示例#5
0
						?>
					</div><!-- .entry-content -->

					<footer class="entry-footer">
						<?php twentyfifteen_entry_meta(); ?>
						<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
					</footer><!-- .entry-footer -->

				</article><!-- #post-## -->

				<?php
					// If comments are open or we have at least one comment, load up the comment template
					if ( comments_open() || get_comments_number() ) :
						comments_template();
					endif;

					// Previous/next post navigation.
					the_post_navigation( array(
						'prev_text' => _x( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen' ),
					) );

				// End the loop.
				endwhile;
			?>

		</main><!-- .site-main -->
	</div><!-- .content-area -->

<?php get_footer(); ?>
>>>>>>> b875702c9c06ab5012e52ff4337439b03918f453
示例#6
0
 function dynamicnews_display_post_navigation()
 {
     // Get Theme Options from Database
     $theme_options = dynamicnews_theme_options();
     if (true == $theme_options['post_navigation']) {
         the_post_navigation(array('prev_text' => '&laquo; %title', 'next_text' => '%title &raquo;'));
     }
 }
示例#7
0
 * The template for displaying all single posts and attachments
 *
 * @package WordPress
 * @subpackage Twenty_Fifteen
 * @since Twenty Fifteen 1.0
 */
get_header();
?>

		<?php 
// Start the loop.
while (have_posts()) {
    the_post();
    /*
     * Include the post format-specific template for the content. If you want to
     * use this in a child theme, then include a file called called content-___.php
     * (where ___ is the post format) and that will be used instead.
     */
    get_template_part('content', get_post_format());
    // If comments are open or we have at least one comment, load up the comment template.
    // if ( comments_open() || get_comments_number() ) :
    // 	comments_template();
    // endif;
    // Previous/next post navigation.
    the_post_navigation(array('next_text' => '<span class="meta-nav next" aria-hidden="true">' . __('NEXT', 'twentyfifteen') . '</span>', 'prev_text' => '<span class="meta-nav prev" aria-hidden="true">' . __('PREVIOUS', 'twentyfifteen') . '</span>'));
    // End the loop.
}
?>

<?php 
get_footer();
示例#8
0
					<h3><a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a><span><?php 
    the_date_xml();
    ?>
</span></h3>
					<p><?php 
    the_content();
    ?>
</p>
				</div>
			</div>
			<div class="row page_nav">
				<div class="col-xs-10">
					<?php 
    the_post_navigation(array('next_text' => '<div class="col-xs-4" style="float: right"><p>' . __('Наступна стаття:  ', 'example') . '<span class="post-title">%title</span></p></div>', 'prev_text' => '<div class="col-xs-4" style="float: left"><p>' . __('Попередня стаття:  ', 'example') . '<span class="post-title">%title</span></p></div>', 'screen_reader_text' => ' '));
}
?>
				</div>
			</div>
			<!--<?php 
/*get_sidebar(); */
?>
-->
		</div><!--/DIV CONTENT -->
	<?php 
get_footer();
示例#9
0
文件: single.php 项目: JYzor/Puma
    wp_link_pages(array('before' => '<div class="page-links u-textAlignCenter comment-navigation">', 'after' => '</div>', 'link_before' => '<span class="page-link-item">', 'link_after' => '</span>', 'pagelink' => '%', 'separator' => '<span class="screen-reader-text">, </span>'));
    ?>
                <div class="post--keywords" itemprop="keywords">
                    <?php 
    echo puma_get_the_term_list(get_the_ID(), 'post_tag');
    ?>
                </div>
                <div class="postFooterAction">
                    <?php 
    if (function_exists('wp_postlike')) {
        wp_postlike();
    }
    ?>
                </div>
                <?php 
    the_post_navigation(array('next_text' => '<span class="meta-nav">Next</span><span class="post-title">%title</span>', 'prev_text' => '<span class="meta-nav">Previous</span><span class="post-title">%title</span>'));
    ?>
                <div class="postFooterinfo u-textAlignCenter">
                    <?php 
    echo get_avatar(get_the_author_meta('email'), 64);
    ?>
                    <h3 class="author-name"><?php 
    the_author();
    ?>
</h3>
                    <div class="author-description"><?php 
    echo get_the_author_meta('description');
    ?>
</div>
                    <div class="author-meta">
                        <?php 
示例#10
0
 * @package bobderrico
 */
get_header();
?>

  <div id="primary" class="content-area">
    <main id="main" class="site-main" role="main">

      <?php 
while (have_posts()) {
    the_post();
    get_template_part('template-parts/hero', 'single-job');
    ?>
      <div class="content-wrap">
        <?php 
    get_template_part('template-parts/content', 'single-job');
    the_post_navigation(['prev_text' => '&leftarrow; ' . __('Previous Job', 'bobderrico'), 'next_text' => __('Next Job', 'bobderrico;') . ' &rightarrow;']);
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
}
// End of the loop.
?>

      </div>
    </main><!-- #main -->
  </div><!-- #primary -->

<?php 
get_footer();
示例#11
0
 /**
  * Display navigation to next/previous post when applicable.
  */
 function eighteen_tags_post_nav()
 {
     $args = array('next_text' => '%title &nbsp;<span class="meta-nav">&rarr;</span>', 'prev_text' => '<span class="meta-nav">&larr;</span>&nbsp;%title');
     the_post_navigation($args);
 }
示例#12
0
文件: single.php 项目: rewdy/peek
*/
get_header();
?>

							<?php 
/* Start the Loop */
?>
							<?php 
while (have_posts()) {
    the_post();
    ?>

							<?php 
    get_template_part('content/content', get_post_type());
    ?>
							
							<?php 
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
    // Previous/next post navigation.
    the_post_navigation(array('next_text' => '<span class="meta-nav nav-next">' . __('Next post', 'peek') . ': %title</span>', 'prev_text' => '<span class="meta-nav nav-previous">' . __('Previous post', 'peek') . ': %title</span>'));
    ?>
							
							<?php 
}
?>

<?php 
get_footer();
示例#13
0
文件: single.php 项目: mummybot/tpbc
<div id="primary" class="content-area">
	<main id="main" class="site-main" role="main">
		<?php 
// Start the loop.
while (have_posts()) {
    the_post();
    // Include the single post content template.
    get_template_part('template-parts/content', 'single');
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
    if (is_singular('attachment')) {
        // Parent post navigation.
        the_post_navigation(array('prev_text' => _x('<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'tpbc')));
    } elseif (is_singular('post')) {
        // Previous/next post navigation.
        the_post_navigation(array('next_text' => '<span class="screen-reader-text">' . __('Next post:', 'tpbc') . '</span> ' . '<span class="post-title">%title</span>', 'prev_text' => '<span class="screen-reader-text">' . __('Previous post:', 'tpbc') . '</span> ' . '<span class="post-title">%title</span>'));
    }
    // End of the loop.
}
?>

	</main><!-- .site-main -->

</div><!-- .content-area -->

<?php 
get_sidebar();
get_footer();
    if (has_post_thumbnail()) {
        the_post_thumbnail();
    }
    ?>

					<?php 
    the_content();
    ?>
					<?php 
    wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'wanderlist'), 'after' => '</div>'));
    ?>
				</div><!-- .entry-content -->

				<footer class="entry-footer">
					<?php 
    the_post_navigation(array('prev_text' => '<span>Previous</span> %title', 'next_text' => '<span>Next</span> %title'));
    ?>
				</footer><!-- .entry-footer -->
			</article><!-- #post-## -->

			<?php 
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
    ?>

		<?php 
}
// end of the loop.
?>
    if (comments_open() || get_comments_number()) {
        ?>
			<?php 
        comments_template();
        ?>
		<?php 
    }
    ?>

		<?php 
    if (is_singular('attachment')) {
        // Parent post navigation.
        the_post_navigation(array('prev_text' => _x('<span class="meta-nav">Published in</span>' . '<span class="post-title">%title</span>', 'Parent post link', 'AQUNTALLC_SITENAME')));
    } elseif (is_singular('post')) {
        // Previous/next post navigation.
        the_post_navigation(array('prev_text' => '<span class="meta-nav pull-left" aria-hidden="true">' . '<i class="fa fa-chevron-left"></i>' . '&nbsp;<span class="post-title">%title</span>' . '</span>', 'next_text' => '<span class="meta-nav pull-right" aria-hidden="true">' . '<span class="post-title">%title</span>' . '&nbsp;<i class="fa fa-chevron-right"></i>' . '</span>', 'screen_reader_text' => __('Other Articles')));
        echo "<div class=\"clearfix\">&nbsp;</div><hr/>";
    }
    ?>

	<?php 
}
// End of the loop.
?>

	<?php 
get_sidebar('article-after');
?>

</div><!-- .single-content -->
示例#16
0
get_header();
get_template_part('template-parts/headline');
?>


    <section id="content">
        <div class="container">
            <div class="row">
                <div class="col-lg-8">

                    <?php 
while (have_posts()) {
    the_post();
    echo '<h2>' . get_the_title() . '</h2>';
    the_content();
    the_post_navigation(array('next_text' => '<span class="screen-reader-text">Следующая запись</span> ' . '<span class="post-title">%title</span>', 'prev_text' => '<span class="screen-reader-text">Предыдущая запись</span> ' . '<span class="post-title">%title</span>'));
    ?>


                        <?php 
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
}
// End of the loop.
?>

                </div>
                <div class="col-lg-4">
                    <aside class="right-sidebar">
示例#17
0
    wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'conversationsmp') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . __('Page', 'conversationsmp') . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>'));
    ?>
					</div><!-- .entry-content -->

					<footer class="entry-footer">
						<?php 
    conversationsmp_entry_meta();
    ?>
						<?php 
    edit_post_link(__('Edit', 'conversationsmp'), '<span class="edit-link">', '</span>');
    ?>
					</footer><!-- .entry-footer -->

				</article><!-- #post-## -->

				<?php 
    // If comments are open or we have at least one comment, load up the comment template
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
    // Previous/next post navigation.
    the_post_navigation(array('prev_text' => _x('<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'conversationsmp')));
    // End the loop.
}
?>

		</main><!-- .site-main -->
	</div><!-- .content-area -->

<?php 
get_footer();
示例#18
0
/**
 * The template for displaying all single posts.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package SIKO
 */
get_header();
?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

		<?php 
while (have_posts()) {
    the_post();
    get_template_part('template-parts/content', get_post_format());
    the_post_navigation(array('next_text' => '<span class="meta-nav" aria-hidden="true">' . __('Næste', 'sikosass') . '</span>' . '<br>' . '<span class="screen-reader-text">' . __('Næste post', 'sikosass') . '</span>' . '<span class="post-title">%title</span>', 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __('Forige', 'sikosass') . '</span>' . '<br>' . '<span class="screen-reader-text">' . __('Forige post', 'sikosass') . '</span>' . '<span class="post-title">%title</span>'));
    ?>

		<?php 
}
// End of the loop.
?>

		</main><!-- #main -->
	</div><!-- #primary -->

<?php 
get_footer();
 */
get_header();
?>

<div class="wrap">
	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

			<?php 
/* Start the Loop */
while (have_posts()) {
    the_post();
    get_template_part('template-parts/post/content', get_post_format());
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
    the_post_navigation(array('prev_text' => '<span class="screen-reader-text">' . __('Previous Post', 'twentyseventeen') . '</span><span aria-hidden="true" class="nav-subtitle">' . __('Previous', 'twentyseventeen') . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg(array('icon' => 'arrow-left')) . '</span>%title</span>', 'next_text' => '<span class="screen-reader-text">' . __('Next Post', 'twentyseventeen') . '</span><span aria-hidden="true" class="nav-subtitle">' . __('Next', 'twentyseventeen') . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg(array('icon' => 'arrow-right')) . '</span></span>'));
}
// End of the loop.
?>

		</main><!-- #main -->
	</div><!-- #primary -->
	<?php 
get_sidebar();
?>
</div><!-- .wrap -->

<?php 
get_footer();
示例#20
0
/**
 * The template for displaying all single posts.
 *
 * @package �
 */

get_header(); ?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

		<?php while ( have_posts() ) : the_post(); ?>

			<?php get_template_part( 'template-parts/content', 'single' ); ?>

			<?php the_post_navigation(); ?>

			<?php
				// If comments are open or we have at least one comment, load up the comment template.
				if ( comments_open() || get_comments_number() ) :
					comments_template();
				endif;
			?>

		<?php endwhile; // End of the loop. ?>

		</main><!-- #main -->
	</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
        ?>
        <div class="navigation">
            <div class="nav-previous"><?php 
        next_posts_link(__('<span class="meta-nav">&larr;</span> Older posts', 'clean-simple-white'));
        ?>
</div>
            <div class="nav-next"><?php 
        previous_posts_link(__('Newer posts <span class="meta-nav">&rarr;</span>', 'clean-simple-white'));
        ?>
</div>
        </div>
        <?php 
    }
}
if (function_exists('the_post_navigation')) {
    the_post_navigation(array('prev_text' => '%title', 'next_text' => '%title', 'screen_reader_text' => ''));
} else {
    function the_post_navigation()
    {
        ?>
        <div class="navigation">
            <div class="nav-previous"><?php 
        previous_post_link('%link', '<span class="meta-nav">' . __('&larr;', 'clean-simple-white') . '</span> %title');
        ?>
</div>
            <div class="nav-next"><?php 
        next_post_link('%link', '%title <span class="meta-nav">' . __('&rarr;', 'clean-simple-white') . '</span>');
        ?>
</div>
        </div><!-- #nav-below -->
        <?php 
    /**
     * Displays Single post Navigation
     *
     * @uses  the_post_navigation
     *
     * @action catchresponsive_after_post
     * 
     * @since Catch Responsive 1.6
     */
    function catchresponsive_post_navigation()
    {
        // Previous/next post navigation.
        if (function_exists('the_post_navigation')) {
            the_post_navigation(array('next_text' => '<span class="meta-nav" aria-hidden="true">' . __('Next &rarr;', 'catch-responsive') . '</span> ' . '<span class="screen-reader-text">' . __('Next post:', 'catch-responsive') . '</span> ' . '<span class="post-title">%title</span>', 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __('&larr; Previous', 'catch-responsive') . '</span> ' . '<span class="screen-reader-text">' . __('Previous post:', 'catch-responsive') . '</span> ' . '<span class="post-title">%title</span>'));
        } else {
            // Don't print empty markup if there's nowhere to navigate.
            $previous = is_attachment() ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true);
            $next = get_adjacent_post(false, '', false);
            if (!$next && !$previous) {
                return;
            }
            ?>
			<nav class="navigation post-navigation" role="navigation">
				<h2 class="screen-reader-text"><?php 
            esc_html_e('Post navigation', 'catch-responsive');
            ?>
</h2>
				<div class="nav-links">
					<?php 
            previous_post_link('<div class="nav-previous">%link</div>', '%title');
            next_post_link('<div class="nav-next">%link</div>', '%title');
            ?>
				</div><!-- .nav-links -->
			</nav><!-- .navigation -->
		<?php 
        }
    }
示例#23
0
	/**
	 * Display navigation to next/previous post when applicable.
	 */
	function storefront_post_nav() {
		$args = array(
			'next_text' => '%title &nbsp;<span class="meta-nav">&rarr;</span>',
			'prev_text' => '<span class="meta-nav">&larr;</span>&nbsp;%title',
			);
		the_post_navigation( $args );
	}
示例#24
0
<?php

/**
 * The template for displaying all single posts.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package FrenchPress
 */
get_header();
?>
<main id="primary" class="site-main fffi fffi-99">
<?php 
while (have_posts()) {
    the_post();
    get_template_part('template-parts/content', get_post_format());
    // filter the avigation args, for example to go to next post in same category:
    // add_filter( 'frenchpress_post_navigation_args', function() { return array( 'in_same_term' => true ); } );
    the_post_navigation(apply_filters('frenchpress_post_navigation_args', array()));
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
}
// End of the loop.
?>
</main>
<?php 
get_sidebar();
get_footer();
示例#25
0
 * The template for displaying all single posts.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package theme-atelier
 */
get_header();
?>

	<div id="primary" class="content-area container">
		<main id="main" class="site-main" role="main">

		<?php 
while (have_posts()) {
    the_post();
    get_template_part('template-parts/content', get_post_format());
    the_post_navigation(array('next_text' => '<i class="fa fa-chevron-left"></i>&nbsp %title', 'prev_text' => '%title &nbsp<i class="fa fa-chevron-right"></i>'));
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
}
// End of the loop.
?>

		</main><!-- #main -->
	</div><!-- #primary -->

<?php 
get_sidebar();
get_footer();
示例#26
0
						<div class="post-meta">
							<?php 
    niche_entry_meta();
    ?>
  
						</div>
						<?php 
    the_content();
    wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'niche') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
    ?>
					</div>
				</div>
				<!--pagination-->
				<div class="nex-pre-button col-md-12">
					<?php 
    the_post_navigation(array('next_text' => '<span class="page-numbers previous-post pre"> %title </span>', 'prev_text' => '<span class="page-numbers next-post nex"> %title </span>'));
    ?>
				</div>
			<?php 
}
?>
				<div class="comments-article">
					<div class="clearfix"></div> 
					<?php 
comments_template('', true);
?>
				</div>
			</div>
		<?php 
get_sidebar();
?>
示例#27
0
        switch ($key) {
            case 'calsteams_office_location':
                echo "Office Location: " . $value[0];
                break;
            default:
                continue;
        }
        //echo $key . '';
        //echo $key[$value] . '<br>';
    }
    /*
     * Include the post format-specific template for the content. If you want to
     * use this in a child theme, then include a file called called content-___.php
     * (where ___ is the post format) and that will be used instead.
     */
    get_template_part('content', get_post_format());
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
    // Previous/next post navigation.
    the_post_navigation(array('next_text' => '<span class="meta-nav" aria-hidden="true">' . __('Next', 'twentyfifteen') . '</span> ' . '<span class="screen-reader-text">' . __('Next post:', 'twentyfifteen') . '</span> ' . '<span class="post-title">%title</span>', 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __('Previous', 'twentyfifteen') . '</span> ' . '<span class="screen-reader-text">' . __('Previous post:', 'twentyfifteen') . '</span> ' . '<span class="post-title">%title</span>'));
    // End the loop.
}
?>

		</main><!-- .site-main -->
	</div><!-- .content-area -->
	
<?php 
get_footer();
示例#28
0
	<div class="entry-content">
		<?php 
if (is_single()) {
    the_content(sprintf(__('', 'quidus'), the_title('<span class="screen-reader-text">', '</span>', false)));
} else {
    the_excerpt();
    ?>
 <p><a href="<?php 
    echo esc_url(get_permalink());
    ?>
"><?php 
    _e('Read More', 'quidus');
    ?>
</a></p><?php 
}
wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'quidus') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . __('Page', 'quidus') . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>'));
// Author bio.
if (is_single() && get_the_author_meta('description')) {
    get_template_part('author-bio');
}
if (comments_open() || get_comments_number()) {
    comments_template();
}
if (is_single()) {
    the_post_navigation(array('next_text' => '<span class="post-title">%title</span>', 'prev_text' => '<span class="post-title">%title</span>'));
}
?>
	</div><!-- .entry-content -->

</article><!-- #post-## -->
示例#29
0
?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

		<?php 
while (have_posts()) {
    the_post();
    ?>

			<?php 
    get_template_part('template-parts/content', 'single');
    ?>

			<?php 
    the_post_navigation();
    ?>

			<?php 
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
    ?>

		<?php 
}
// End of the loop.
?>

		</main><!-- #main -->
示例#30
0
?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

		<?php 
while (have_posts()) {
    the_post();
    ?>

			<?php 
    get_template_part('content', 'single');
    ?>
			
			<?php 
    the_post_navigation(array('next_text' => '<div class="meta-nav" aria-hidden="true">' . __('Next Post', 'fortunato') . '</div> <i class="fa fa-lg fa-angle-right"></i>' . '<span class="screen-reader-text">' . __('Next post:', 'fortunato') . '</span> ' . '<span class="smallPart">%title</span>', 'prev_text' => '<i class="fa fa-lg fa-angle-left"></i><div class="meta-nav" aria-hidden="true">' . __('Previous Post', 'fortunato') . '</div> ' . '<span class="screen-reader-text">' . __('Previous post:', 'fortunato') . '</span> ' . '<span class="smallPart">%title</span>'));
    ?>

			<?php 
    // If comments are open or we have at least one comment, load up the comment template
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
    ?>

		<?php 
}
// end of the loop.
?>

		</main><!-- #main -->