Advertisement
karsten007

Google Ads index page blog posts

Apr 3rd, 2015
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.  
  4. <section class="content">
  5.  
  6.  
  7.  
  8.  
  9. <?php get_template_part('inc/page-title'); ?>
  10.  
  11. <div class="pad group">
  12.  
  13.  
  14.  
  15. <?php get_template_part('inc/featured'); ?>
  16.  
  17. <?php if ( have_posts() ) : ?>
  18.  
  19. <div class="post-list group">
  20. <?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?>
  21. <?php get_template_part('content'); ?>
  22.  
  23. <div class="ad-index-post">
  24. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  25. <!-- 340x50 eigenes Designa -->
  26. <ins class="adsbygoogle"
  27. style="display:inline-block;width:340px;height:50px"
  28. data-ad-client="ca-pub-5248969926404254"
  29. data-ad-slot="4346084800"></ins>
  30. <script>
  31. (adsbygoogle = window.adsbygoogle || []).push({});
  32. </script>
  33. </div>
  34.  
  35.  
  36. <?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>
  37. </div><!--/.post-list-->
  38.  
  39.  
  40.  
  41.  
  42.  
  43. <?php get_template_part('inc/pagination'); ?>
  44.  
  45. <?php endif; ?>
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. </div><!--/.pad-->
  53.  
  54. </section><!--/.content-->
  55.  
  56. <?php get_sidebar(); ?>
  57.  
  58. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement