-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
65 lines (47 loc) · 1.91 KB
/
index.php
File metadata and controls
65 lines (47 loc) · 1.91 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Index Template
*
* Here we setup all logic and XHTML that is required for the index template, used as both the homepage
* and as a fallback template, if a more appropriate template file doesn't exist for a specific context.
*
* @package WooFramework
* @subpackage Template
*/
get_header();
/**
* The Variables
*
* Setup default variables, overriding them if the "Theme Options" have been saved.
*/
$settings = array(
'blog_area' => 'true',
'feedback_area' => 'true',
'features_area' => 'true',
'portfolio_area' => 'true',
'shop_area' => 'true'
);
$settings = woo_get_dynamic_values( $settings );
if ( get_query_var( 'page' ) > 1) { $paged = get_query_var( 'page' ); } elseif ( get_query_var( 'paged' ) > 1) { $paged = get_query_var( 'paged' ); } else { $paged = 1; }
?>
<div id="content">
<?php woo_main_before(); ?>
<section id="main" class="fullwidth">
<?php
if ( ! dynamic_sidebar( 'homepage' ) ) {
// Output the Features Area
if ( ( $paged == 1 ) && $settings['features_area'] == 'true' ) { get_template_part( 'includes/homepage-mini-features' ); }
// Output the Porfolio Area
if ( ( $paged == 1 ) && $settings['portfolio_area'] == 'true') { get_template_part( 'includes/homepage-portfolio' ); }
// Output the Shop Area
if ( ( $paged == 1 ) && $settings['shop_area'] == 'true' && is_woocommerce_activated() ) { get_template_part( 'includes/homepage-shop-panel' ); }
// Output the Blog Area
if ( ( $paged == 1 ) && $settings['blog_area'] == 'true' ) { get_template_part( 'includes/homepage-blog' ); }
// Output the Feedback Area
if ( ( $paged == 1 ) && $settings['feedback_area'] == 'true' ) { get_template_part( 'includes/homepage-feedback' ); }
}
?>
</section><!-- /#main -->
<?php woo_main_after(); ?>
</div><!-- /#content -->
<?php get_footer(); ?>