Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="content">
- <?php
- /* Title for all views.. */
- do_action( 'mfields_title', '<h1 id="title">', '</h1>' );
- /* Description */
- do_action( 'mfields_description' );
- /* If there are no posts to display, such as an empty archive page */
- if ( !have_posts() && !is_search() ) {
- print '<div class="hentry">Sorry, no posts were found</div>';
- }
- /* Loop over posts. */
- while ( have_posts() ) {
- the_post();
- get_template_part( 'post', 'switchboard' );
- }
- comments_template( '', true );
- #do_action( 'mfields_ajax_append_posts_button', '%s more posts.' );
- if ( ! is_single() && ! is_page() ) {
- print '<div id="more-posts" class="post-footer">' . "\n";
- if ( $wp_query->max_num_pages > 1 ) {
- print '<div class="older-posts">'; next_posts_link( __( '<span>«</span> Older Posts', 'mfields' ) ); print '</div>';
- print '<div class="newer-posts">'; previous_posts_link( __( 'Newer Posts <span>»</span>', 'mfields' ) ); print '</div>';
- print '<div class="clear"></div>';
- }
- else {
- print ' <!-- You know you love it! -->';
- }
- print '</div>' . "\n";
- }
- ?>
- </div><!-- content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement