示例#1
0
}
?>
		</div>

		<div id="posts" class="archive">
			<?php 
if (er_have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
				<?php 
        apoc_single_post();
        ?>
			<?php 
    }
}
?>
		</div>

		<nav class="pagination">
			<div class="pagination-links">
				<?php 
echo paginate_links(array('prev_text' => '&larr;', 'next_text' => '&rarr;'));
?>
			</div>
		</nav>

	</div><!-- #content -->
	<?php 
apoc_primary_sidebar('er');
get_footer();
示例#2
0
    while (have_posts()) {
        the_post();
        apoc_single_post();
    }
    ?>

			<?php 
    // No posts found for author
} else {
    ?>
				<div class="warning">Sorry, no posts were found for this author.</div>
			<?php 
}
?>
		</div>

		<nav class="pagination">
			<div class="pagination-links">
				<?php 
echo paginate_links(array('prev_text' => '&larr;', 'next_text' => '&rarr;'));
?>
			</div>
		</nav>
	</div>

	<?php 
apoc_primary_sidebar();
?>

<?php 
get_footer();
		</header>
		
		<?php 
// Upcoming events found
if (calendar_have_events($slug)) {
    ?>
		<header class="forum-header">
			<div class="forum-content"><h2>Upcoming Events</h2></div>
		</header>
		<ol class="calendar">
			<?php 
    while (have_posts()) {
        the_post();
        apoc_single_event();
    }
    ?>
		</ol>

		<?php 
    // No posts found in category
} else {
    ?>
			<div class="warning">Sorry, no events are currently scheduled for this calendar.</div>
		<?php 
}
?>
	</div>

	<?php 
apoc_primary_sidebar($group);
get_footer();