forked from awesomemotive/edd-quota
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·41 lines (29 loc) · 854 Bytes
/
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
<?php
/**
* the main template file
*
* This is the most generic template file in Quota. It is used to display
* a page when nothing more specific matches a query.
*/
get_header(); ?>
<div class="content clear">
<?php
if ( have_posts() ) :
$count = 0;
// start the Loop
while ( have_posts() ) : the_post();
get_template_part( 'templates/content', get_post_format() );
// display contents of quota_after_first_post hook below first post
if ( $count == 0 && !is_paged() ) :
do_action( 'quota_after_first_post' );
endif;
$count++;
endwhile; // end the loop
quota_content_nav( 'nav-below' );
else :
get_template_part( 'templates/no-results', 'index' );
endif;
?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>