-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
51 lines (38 loc) · 1.58 KB
/
index.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
47
48
49
50
<?php get_header(); ?>
<div id="wrapper">
<div class="ajaxcol">
<div id="maincol">
<?php if ( isset ( $GLOBALS['bisons_flash_message'] ) ) : ?>
<p id="flashmessage"><?php echo $GLOBALS['bisons_flash_message'] ?></p>
<?php endif ?>
<header class="mobileonly">
<?php $options = get_option('club-info-settings-page'); ?>
<h2><?php echo $options['welcome-title'] ?></h2>
</header>
<section class="mobileonly"><?php echo wpautop( $options['welcome-text'] ) ?></section>
<?php if ( have_posts() ) : ?>
<?php while (have_posts() ) : the_post(); ?>
<?php
if( file_exists( dirname( __FILE__ ) . '/post-layouts/' . get_post_type( ) . '.php' ) ) :
get_template_part( 'post-layouts/' . get_post_type( ) );
else :
get_template_part( 'post-layouts/post' );
endif;
?>
<?php endwhile; ?>
<section class="pagination">
<ul>
<li class="newer"><?php if ($prev_url = get_previous_posts_link('Newer')) { echo $prev_url; } else { echo "Newer"; } ?></li>
<li class="older"><?php if ($next_url = get_next_posts_link('Older')) { echo $next_url; } else { echo "Older"; } ?></li>
</ul>
</section>
<?php else : ?>
<h2>Nothing Found</h2>
<p>Sorry, but the content you are looking for isn't here...</p>
<p><a href="<?php echo get_option('home'); ?>">Return to the homepage</a></p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>