Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (get_the_ID() == '1103' || get_the_ID() == '158' || get_the_ID() == '73' || get_the_ID() == '298') { ?>
- <p class="in-text_ad"><?php include("in-text_ad.php"); ?></p>
- <?php
- $paragraph = 6;
- $content = apply_filters('the_content', get_the_content());
- $content = explode("</p>", $content);
- for ($i = 0; $i <count($content); $i++) {
- if ($i == $paragraph) {
- if (get_the_ID() == '1103' || get_the_ID() == '158' || get_the_ID() == '73' || get_the_ID() == '298') {
- include("in-text_ad3.php");
- } else {
- include("in-text_ad2.php");
- }
- }
- echo $content[$i] . "</p>";
- }
- ?>
- <div class="infolinks"><input type="hidden" name="IL_RELATED_TAGS" value="1"/></div>
- <?php } else { ?>
- <?php if (strtotime($post->post_date) < strtotime('4 January 2012')) { ?>
- <?php include("in-text_ad.php"); ?>
- <?php
- $paragraph = 4;
- $content = apply_filters('the_content', get_the_content());
- $content = explode("</p>", $content);
- for ($i = 0; $i <count($content); $i++) {
- if ($i == $paragraph) {
- include("in-text_ad2.php");
- }
- echo $content[$i] . "</p>";
- }
- ?>
- <div class="infolinks"><input type="hidden" name="IL_RELATED_TAGS" value="1"/></div>
- <?php } else { ?>
- <p class="in-text_ad"><?php include("in-text_ad.php"); ?></p>
- <?php
- $paragraph = 4;
- $content = apply_filters('the_content', get_the_content());
- $content = explode("</p>", $content);
- for ($i = 0; $i <count($content); $i++) {
- if ($i == $paragraph) {
- include("in-text_ad2.php");
- }
- echo $content[$i] . "</p>";
- }
- ?>
- <div class="infolinks"><input type="hidden" name="IL_RELATED_TAGS" value="1"/></div>
- <?php } ?>
- <?php } ?>
Add Comment
Please, Sign In to add comment