Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Posts[] posts;
- Var count=1; // If your code does not include a counter.
- define one
- While (count < posts.length) // Increase the value of.
- "count" by 1 until the final post in the database
- {
- If (count%3=0) //If the value of "count" equals 3 or 6 or
- 9 insert the ad
- {
- <script async.src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
- </script>
- <ins class="adsbygoogle" style="display:block"
- data-ad-format="fluid"
- data-ad-client="ca-pub-1234567891234567"
- data-ad-slot="1234567890"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>
- }
- <h3>{{ post.title }}</h3> // for all count values insert the content block title
- <p>{{ post.body }}<p> //Insert the content block body
- <img src="{{ post.thumbnail}}"> //Insert the content block image
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement