-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
82 lines (55 loc) · 1.94 KB
/
front-page.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/*
* the front page is controlled by custom taxonomies only
* it is also composed of a left and middle sidebar area
* which is filled by widgets
*
*/
get_header(); ?>
<!-- slider -->
<?php if ( is_sidebar_active('topstory-content') ) : ?>
<?php dynamic_sidebar('topstory-content'); ?>
<?php endif; ?>
<! -- end slider -->
<div class="clear"></div>
<!-- content -->
<div id="content" class="grid_16">
<!-- @@@ begin left bar @@@ -->
<div id="leftBar" class="grid_5">
<?php if ( is_sidebar_active('left-content') ) : ?>
<?php dynamic_sidebar('left-content'); ?>
<?php endif; ?>
</div><!-- end left bar -->
<!-- @@@ begin text featured stories @@@ -->
<div id="featured_text" class="grid_11">
<ul>
<!-- pulls a list of posts from category 'featured_text' into list items -->
<?php $post_num = 1; //var so we can give classes depending on li position
$vars = array(
'featured-location' => 'featured-text',
'showposts' => 3
);
?>
<?php query_posts($vars); ?>
<?php while ( have_posts() ) : the_post(); ?>
<li class="<?php if($post_num==3) { echo "last"; } else { echo "normal"; } ?>"><a href="<?php the_permalink(); ?>"><div class="text-hed"><?php the_title(); ?></div></a>
<div class="clear"></div>
</li>
<?php $post_num++; ?>
<?php endwhile; ?>
<?php rewind_posts(); ?>
<?php wp_reset_query(); ?>
</ul>
</div>
<!-- middle bar -->
<div id="middleBar" class="grid_7">
<?php
//the video element is hardcoded to be at the top of the area as a multiplayer.
//there is also a video widget that could be used instead.
?>
<?php if ( is_sidebar_active('middle-content') ) : ?>
<?php dynamic_sidebar('middle-content'); ?>
<?php endif; ?>
</div><!--end middleBar -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>