/
home.php
48 lines (48 loc) · 1.31 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
40
41
42
43
44
45
46
47
48
<?php if( function_exists('get_header') ): get_header(); else: die(42); endif;?>
<?php wpi_section_start('content-top');?>
<div id="main" class="start">
<?php if ( have_posts() ): ?>
<?php wpi_current_template(); ?>
<?php wpi_pagination();?>
<?php else:?>
<?php wpi_template_nopost(); ?>
<?php endif;?>
</div>
<div id="sidebar" class="fl">
<dl class="xoxo">
<dd id="sidebar-1" class="cf">
<?php wpi_dynamic_sidebar(1);?>
</dd>
</dl>
</div>
<?php wpi_section_end();?>
<?php if(wpiSidebar::hasWidget(2)): ?>
<?php wpi_section_start('content-mid');?>
<div id="sidebar-mid">
<dl class="xoxo w cf">
<dd id="sidebar-2" class="cf">
<?php wpi_dynamic_sidebar(2);?>
</dd>
</dl>
</div>
<?php wpi_section_end();?>
<?php endif;?>
<?php wpi_section_start('content-bottom');?>
<?php rewind_posts();?>
<?php if ( have_posts() ): ?>
<div id="main-bottom" class="start">
<?php wpi_template_content_bottom(); ?>
<?php wpi_pagination();?>
<?php else:?>
<?php wpi_template_nopost(); ?>
<?php endif;?>
</div>
<div id="sidebar-bottom" class="fl">
<dl class="xoxo">
<dd id="sidebar-3" class="cf">
<?php wpi_dynamic_sidebar(3);?>
</dd>
</dl>
</div>
<?php wpi_section_end();?>
<?php get_footer();?>