-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
99 lines (95 loc) · 2.56 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
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* Freelance Theme index.php
*
* PHP version 5
*
* @category Theme Template File
* @package WordPress
* @author ArsTropica <info@arstropica.com>
* @copyright 2014 ArsTropica
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version 1.0
* @link http://pear.php.net/package/ArsTropica Reponsive Framework
* @subpackage Freelance Theme
* @see References to other sections (if any)...
*/
?>
<?php
get_header();
?>
<!-- Beginning of main content -->
<?php
/**
* Description for global
* @global object
*/
global $wp_query;
?>
<div class="container">
<div class="row widgets-row widget-area loop-start">
<?php
do_action('at_responsive_loop_start');
?>
</div>
</div><!--!#container - loop start-->
<?php
$post_count = 0;
$grid_column_count = at_responsive_grid_column_count();
if (have_posts()) :
?>
<div class="container main">
<?php
// Start the Loop.
while (have_posts()) : the_post();
if ($post_count % $grid_column_count === 0) {
echo '<div class="row content-row eq-parent post-wrapper">' . "\n";
}
/*
* Include the post template for the content.
*/
at_responsive_get_template_part('templates/content', $post->post_name);
if (($post_count % $grid_column_count === ($grid_column_count - 1)) || ($wp_query->post_count == ($post_count + 1))) {
echo '</div>' . "\n";
}
$post_count ++;
endwhile;
?>
<!--Previous/next post navigation.-->
</div><!--!#container - main-->
<div class="container main">
<div class="row content-row">
<?php
do_action('at_responsive_after_entry');
?>
</div>
<?php
at_responsive_pagination();
?>
</div><!--!#container - main-->
<?php
else :
// If no content, include the "No posts found" template.
?>
<div class="container main">
<div class="row content-row post-wrapper">
<?php
get_template_part('templates/content', 'none');
?>
</div>
</div><!--!#container - main-->
<?php
endif;
?>
<div class="container">
<div class="row widgets-row widget-area loop-end">
<?php
do_action('at_responsive_loop_end');
?>
</div>
</div><!--!#container-->
<!-- End of main content -->
<!-- Beginning of sidebar content -->
<?php get_sidebar(); ?>
<!-- End of sidebar content -->
<?php get_footer(); ?>