forked from zyml/project-ar2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
executable file
·47 lines (35 loc) · 1.08 KB
/
home.php
File metadata and controls
executable file
·47 lines (35 loc) · 1.08 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
<?php
/**
* AR2's home template.
*
* @package AR2
* @since 1.0
*/
?>
<?php get_header(); ?>
<div id="content" class="section" role="main">
<?php ar2_above_content() ?>
<?php if ( !$paged ) : ?>
<?php ar2_render_zone( 'home' ) ?>
<?php if ( is_active_sidebar( 'Bottom Content #1' ) ) : ?>
<div class="bottom-sidebar" id="bottom-content-1" role="complementary">
<?php if ( !dynamic_sidebar( 'Bottom Content #1' ) ) : ?>
<?php endif; ?>
</div>
<?php endif ?>
<?php if ( is_active_sidebar( 'Bottom Content #2' ) ) : ?>
<div class="bottom-sidebar" id="bottom-content-2" role="complementary">
<?php if ( !dynamic_sidebar( 'Bottom Content #2' ) ) : ?>
<?php endif; ?>
</div>
<?php endif ?>
<?php else: ?>
<h1 class="archive-title"><?php _e( 'Blog Archives', 'ar2' ) ?></h1>
<div id="archive-posts">
<?php ar2_render_posts( null, array ( 'type' => ar2_get_theme_option( 'archive_display' ) ), true ) ?>
</div><!-- #archive-posts -->
<?php endif; ?>
<?php ar2_below_content() ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>