-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
executable file
·62 lines (44 loc) · 1.77 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* Home Template
*
* This is the home template. Technically, it is the "posts page" template. It is used when a visitor is on the
* page assigned to show a site's latest blog posts.
*
* @package Catalog
* @subpackage Template
*/
get_header(); // Loads the header.php template. ?>
<?php do_atomic( 'before_content' ); // supreme_before_content ?>
<?php //if ( current_theme_supports( 'breadcrumb-trail' ) && !is_home()) breadcrumb_trail( array( 'separator' => '»' ) ); ?>
<?php
$val = hybrid_get_setting( 'templ_listing_view' );
if($val =='grid'){
$class ='templ-grid';
}else{
$class ='templ-list';
}
?>
<div class="content" id="content">
<?php do_atomic( 'open_content' ); // supreme_open_content ?>
<div class="hfeed <?php echo $class; ?>">
<?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
<?php get_sidebar( 'before-content' ); // Loads the sidebar-before-content.php template. ?>
<?php
if(is_home()){
dynamic_sidebar( 'catalog_home_content_widget_area' );
}else{
if( hybrid_get_setting( 'supreme_frontpage_display_excerpt' ) ) {
get_template_part( 'loop', 'excerpt' ); // Loads the loop-excerpt.php template.
} else {
get_template_part( 'loop' ); // Loads the loop.php template.
}
}
?>
<?php get_sidebar( 'after-content' ); // Loads the sidebar-after-content.php template. ?>
</div><!-- .hfeed -->
<?php do_atomic( 'close_content' ); // rainbow_close_content ?>
<?php //get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
</div><!-- #content -->
<?php do_atomic( 'after_content' ); // rainbow_after_content ?>
<?php get_footer(); // Loads the footer.php template. ?>