Exemplo n.º 1
0
    get_template_part('content');
    ?>

		<?php 
    appthemes_after_blog_post();
    ?>

	<?php 
}
?>

	<?php 
appthemes_after_blog_loop();
?>

	<?php 
if ($wp_query->max_num_pages > 1) {
    ?>
		<nav class="pagination">
			<?php 
    appthemes_pagenavi();
    ?>
		</nav>
	<?php 
}
?>

</div>

<?php 
get_sidebar('post');
Exemplo n.º 2
0
/**
 * Generates and prints pagination links.
 *
 * @param string $before HTML code to be added before output
 * @param string $after HTML code to be added after output
 */
function appthemes_pagination($before = '', $after = '')
{
    if (is_single()) {
        return;
    }
    $args = array('echo' => false, 'pages_text' => true, 'prev_text' => '&lsaquo;&lsaquo;', 'next_text' => '&rsaquo;&rsaquo;');
    $paginate_links = appthemes_pagenavi(null, 'paged', $args);
    if ($paginate_links) {
        echo $before . '<div class="paging"><div class="pages">';
        echo $paginate_links;
        echo '</div><div class="clr"></div></div>' . $after;
    }
}
        post_class($featured);
        echo ' ' . va_post_coords_attr();
        ?>
 itemscope itemtype="http://schema.org/Organization">
			<?php 
        echo va_show_featured() && va_is_listing_featured(get_the_ID()) ? '<div class="featured-head"><h3>Featured</h3></div>' : '';
        get_template_part('content-listing');
        ?>
		</article>
	<?php 
    }
    // pagination
    ?>
	<nav class="pagination">
		<?php 
    appthemes_pagenavi($the_query, 'paged', $args);
    ?>
	</nav>

	<?php 
    wp_reset_postdata();
} else {
    //if no results
    ?>
	<h4>Click <a href="<?php 
    echo home_url();
    ?>
/listings/?clear=true">here</a> to reset all search parameters.</h4>

<?php 
}