-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
executable file
·83 lines (51 loc) · 1.99 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
83
<?php
/*
Template Name: Front Page
*/
?>
<?php get_header(); ?>
<section class="featured">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</section>
<section class="content">
<div class="nine columns alpha">
<aside class="bio nine columns alpha">
<?php echo get_avatar( 'meagan.amelia@gmail.com', $size = '96' ); ?>
<h3>About the Author</h3>
<p><?php the_author_meta('description', 5); ?></p>
<p class="contact"><a href="http://eepurl.com/wGz6D" class="button">Sign up for her newsletter for contests and sneak peeks!</a></p>
</aside>
<aside class="recent-posts sidebar">
<?php if(function_exists(dynamic_sidebar('Home Sidebar'))): ?>
<?php dynamic_sidebar('Home Sidebar'); ?>
<?php endif; ?>
</aside>
</div>
<aside class="news sidebar three columns omega">
<h3>News</h3>
<ul>
<?php
// The Query
query_posts( array ( 'category_name' => 'News', 'posts_per_page' => 3 ) );
// The Loop
while ( have_posts() ) : the_post();
echo '<li>';
echo '<span class="date">';
the_date();
echo '</span>';
the_content();
echo '</li>';
endwhile;
// Reset Query
wp_reset_query();
?>
</ul>
<?php $newsID = get_cat_ID( 'News' ); ?>
<p><a href="<?php echo get_category_link( $newsID ); ?>">View News Archive</a></p>
</aside>
</section>
<?php get_footer(); ?>