-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
86 lines (69 loc) · 2.07 KB
/
index.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php get_header(); ?>
<?php blade_grve_print_header_title( 'blog' ); ?>
<?php blade_grve_print_header_breadcrumbs( 'post' ); ?>
<!-- CONTENT -->
<div id="grve-content" class="clearfix <?php echo blade_grve_sidebar_class( 'blog' ); ?>">
<div class="grve-content-wrapper">
<!-- MAIN CONTENT -->
<div id="grve-main-content">
<div class="grve-main-content-wrapper clearfix">
<div class="grve-section" style="margin-bottom: 0px;">
<div class="grve-container">
<!-- ROW -->
<div class="grve-row">
<!-- COLUMN 1 -->
<div class="grve-column-1">
<!-- Blog FitRows -->
<?php
$grve_blog_style = blade_grve_option( 'blog_style', 'large' );
$grve_blog_class = blade_grve_get_blog_class();
?>
<div class="<?php echo esc_attr( $grve_blog_class ); ?>" <?php blade_grve_print_blog_data(); ?>>
<?php
if ( have_posts() ) :
if ( 'large' == $grve_blog_style || 'small' == $grve_blog_style ) {
?>
<div class="grve-standard-container">
<?php
} else {
?>
<div class="grve-isotope-container">
<?php
}
// Start the Loop.
while ( have_posts() ) : the_post();
//Get post template
get_template_part( 'content', get_post_format() );
endwhile;
?>
</div>
<?php
// Previous/next post navigation.
blade_grve_paginate_links();
else :
// If no content, include the "No posts found" template.
get_template_part( 'content', 'none' );
endif;
?>
</div>
<!-- End Element Blog -->
</div>
<!-- END COLUMN 1 -->
</div>
<!-- END ROW -->
</div>
</div>
</div>
</div>
<!-- End Content -->
<?php
blade_grve_set_current_view( 'blog' );
if ( is_front_page() ) {
//blade_grve_set_current_view( 'frontpage' );
}
?>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer();
//Omit closing PHP tag to avoid accidental whitespace output errors.