-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
44 lines (35 loc) · 1.03 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
<?php get_header();?>
<div id="main-content">
<?php
global $last_id ;
global $next_id;
global $row_alt;
while( have_posts() ) : the_post();
if( empty( $last_id ) && ( !has_post_format( 'image' ) || is_search() ) ) {
if( !is_home() )
echo '<div class="first-post-spacer"></div>';
}
$next_post =get_adjacent_post( false, '', true );
if( !empty( $next_post ) )
$next_id =$next_post->ID;
$prev_post =get_adjacent_post( false, '', false );
if( !empty( $prev_post ) )
$last_id =$prev_post->ID;
if( has_post_format( 'image' ) && !is_search() ) {
get_template_part( 'content', 'image' );
}
else {
get_template_part( 'content', null );
}
$row_alt =!$row_alt;
endwhile;
if( is_single() )
muis_post_nav();
else {
muis_paging_nav(); ?>
<div id="infinite-loader"><i class="fa fa-refresh fa-spin fa-3x fa-fw"></i>
<span class="screen-reader-text">Loading...</span></div>
<?php
}?>
</div> <!-- #main-content -->
<?php get_footer(); ?>