-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
46 lines (30 loc) · 959 Bytes
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php get_header(); ?>
<div id="content" class="row">
<div id="main" class="<?php simple_boostrap_main_classes(); ?>" role="main">
<div class="block block-title">
<h1 class="archive_title">
<?php echo get_the_archive_title() ?>
</h1>
</div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
if( $post->post_type == 'podcast' ){
$multiple_on_page = true;
include(get_stylesheet_directory() . '/podcast-episode.php');
} else {
simple_boostrap_display_post(true);
}
?>
<?php endwhile; ?>
<?php stp_page_navi(); ?>
<?php else : ?>
<article id="post-not-found" class="block">
<p><?php _e("No items found.", "simple-bootstrap"); ?></p>
</article>
<?php endif; ?>
</div>
<?php get_sidebar("left"); ?>
<?php get_sidebar("right"); ?>
</div>
<?php get_footer(); ?>