-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·60 lines (51 loc) · 1.66 KB
/
index.php
File metadata and controls
executable file
·60 lines (51 loc) · 1.66 KB
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
51
52
53
54
55
56
57
58
59
60
<?php
get_header();
?>
<?php if (have_posts()) : ?>
<?php query_posts('category_name=topbar&posts_per_page=1'); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'post-topbar', get_post_format() ); ?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
<?php endif; ?>
<ul class="large-block-grid-3 medium-block-grid-3 top-panels">
<?php if ( have_posts() ) : ?>
<?php query_posts('category_name=homepage&numberposts=3'); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php $position = $wp_query->current_post+1; ?>
<!-- <?php if ( $position == 2) : ?>
<li>
<ul class="large-block-grid-2">
<?php endif; ?> -->
<li class="panel-<?php echo $wp_query->current_post+1; ?>">
<?php get_template_part( 'content', get_post_format() ); ?>
</li>
<!-- <?php if ( $position == 3) : ?>
</ul>
</li>
<?php endif; ?> -->
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php do_action('foundationPress_before_pagination'); ?>
<?php endif;?>
</ul>
<?php wp_reset_query(); ?>
<div class="row">
<div class="large-8 medium-6 columns">
<h4 class="news-header">FGTC News</h4>
<?php if ( have_posts() ) : ?>
<?php query_posts('category_name=news&numberposts=3'); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="news-post panel-<?php echo $wp_query->current_post+1; ?>">
<?php get_template_part( 'content', get_post_format() ); ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php do_action('foundationPress_before_pagination'); ?>
<?php endif;?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>