forked from AndorChen/V2Press
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
39 lines (32 loc) · 1.62 KB
/
home.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
<?php get_header(); ?>
<div id="main">
<section id="home-topics-box" class="box">
<div id="welome" class="heading clearfix">
<p class="f-left"><?php printf( __( 'Welcome to <strong>%s</strong>', 'v2press' ), get_bloginfo( 'name' ) ); ?></p>
<?php if ( get_bloginfo( 'description' ) ) : ?>
<p class="f-right fade"><?php bloginfo( 'description' ); ?></p>
<?php endif; ?>
</div>
<?php // Latest topics order by last comment date ?>
<div id="latest-topics" class="topics-list">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'topics-list' ); ?>
<?php endwhile; ?>
<?php else : // No topics yet ?>
<?php get_template_part( 'content', 'zero' ); ?>
<?php endif; // END if have_posts() ?>
</div>
<div class="footing no-border">
<p class="xsmall"><?php vp_page_link( array( 'slug' => 'recent', 'text' => __( '» More Recent Topics', 'v2press' ) ) ); ?></p>
</div>
</section>
<section id="home-node-navi" class="box">
<div class="heading clearfix">
<p class="f-left fade"><?php _e( 'Node Navigation', 'v2press' ); ?></p>
<p class="f-right"><?php vp_page_link( array( 'slug' => 'planes', 'text' => __( 'View All Nodes', 'v2press' ) ) ); ?></p>
</div>
<?php vp_node_navi(); ?>
</section>
</div><!--END #main-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>