-
-
Save kristarella/82b2b649beda127e62b0f7c86437a9d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<!-- BEGIN PAGE --> | |
<div id="page"> | |
<?php if (of_get_option('promax_latest' ) =='1' ) {get_template_part('/includes/ltposts');} ?> | |
<div id="page-inner" class="clearfix"> | |
<div id="content"> | |
<div class="posthd"><?php promax_tiltechange(); ?></div> | |
<div class="three-columns group"> | |
<?php if(have_posts()) : ?> | |
<?php while(have_posts()) : the_post(); ?> | |
<?php | |
// count posts to insert ads before 5th, 14th, 33rd posts | |
$count = 1; | |
if ( 5 = $count || 14 = $count || 33 = $count ) : | |
?> | |
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<ins class="adsbygoogle" | |
style="display:block" | |
data-ad-format="fluid" | |
data-ad-layout-key="-8e+1o-dz+ef+iu" | |
data-ad-client="ca-pub-3795575402004008" | |
data-ad-slot="1839817325"></ins> | |
<script> | |
(adsbygoogle = window.adsbygoogle || []).push({}); | |
</script> | |
<?php endif; ?> | |
<div class="imag"><?php get_template_part('/includes/post'); ?></div> | |
<?php | |
//increase post counter | |
$count++; | |
?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<div class="post"> | |
<div class="posttitle"> | |
<h2><?php _e('404 Error: Not Found', 'promax' ); ?></h2> | |
<span class="posttime"></span> | |
</div> | |
</div> | |
<?php endif; ?> | |
</div> | |
<?php get_template_part('/includes/pagenav'); ?> | |
</div> <!-- end div #content --> | |
<?php get_sidebar(); ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment