Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Posts[] posts;
  2. Var count=1; // If your code does not include a counter.
  3. define one
  4. While (count < posts.length) // Increase the value of.
  5. "count" by 1 until the final post in the database
  6. {
  7.  
  8. If (count%3=0) //If the value of "count" equals 3 or 6 or
  9. 9 insert the ad
  10. {
  11. <script async.src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
  12. </script>
  13. <ins class="adsbygoogle" style="display:block"
  14. data-ad-format="fluid"
  15. data-ad-client="ca-pub-1234567891234567"
  16. data-ad-slot="1234567890"></ins>
  17. <script>
  18. (adsbygoogle = window.adsbygoogle || []).push({});
  19. </script>
  20. }
  21.  
  22. <h3>{{ post.title }}</h3> // for all count values insert the content block title
  23. <p>{{ post.body }}<p> //Insert the content block body
  24. <img src="{{ post.thumbnail}}"> //Insert the content block image
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement