Guest User

Untitled

a guest
May 16th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.88 KB | None | 0 0
  1.                     <?php if (get_the_ID() == '1103' || get_the_ID() == '158' || get_the_ID() == '73' || get_the_ID() == '298') { ?>
  2.                         <p class="in-text_ad"><?php include("in-text_ad.php"); ?></p>
  3.                         <?php
  4.                             $paragraph = 6;
  5.                             $content = apply_filters('the_content', get_the_content());
  6.                             $content = explode("</p>", $content);
  7.                             for ($i = 0; $i <count($content); $i++) {
  8.                             if ($i == $paragraph) {
  9.                                 if (get_the_ID() == '1103' || get_the_ID() == '158' || get_the_ID() == '73' || get_the_ID() == '298') {
  10.                                     include("in-text_ad3.php");
  11.                                 } else {
  12.                                     include("in-text_ad2.php");
  13.                                 }
  14.                             }
  15.                             echo $content[$i] . "</p>";
  16.                         }
  17.                         ?>
  18.                         <div class="infolinks"><input type="hidden" name="IL_RELATED_TAGS" value="1"/></div>
  19.                     <?php } else { ?>
  20.                         <?php if (strtotime($post->post_date) < strtotime('4 January 2012')) { ?>
  21.                         <?php include("in-text_ad.php"); ?>
  22.                         <?php
  23.                             $paragraph = 4;
  24.                             $content = apply_filters('the_content', get_the_content());
  25.                             $content = explode("</p>", $content);
  26.                             for ($i = 0; $i <count($content); $i++) {
  27.                             if ($i == $paragraph) {
  28.                                 include("in-text_ad2.php");
  29.                             }
  30.                             echo $content[$i] . "</p>";
  31.                         }
  32.                         ?>
  33.                         <div class="infolinks"><input type="hidden" name="IL_RELATED_TAGS" value="1"/></div>
  34.                     <?php } else { ?>
  35.                         <p class="in-text_ad"><?php include("in-text_ad.php"); ?></p>
  36.                         <?php
  37.                             $paragraph = 4;
  38.                             $content = apply_filters('the_content', get_the_content());
  39.                             $content = explode("</p>", $content);
  40.                             for ($i = 0; $i <count($content); $i++) {
  41.                             if ($i == $paragraph) {
  42.                                 include("in-text_ad2.php");
  43.                             }
  44.                             echo $content[$i] . "</p>";
  45.                         }
  46.                         ?>
  47.                         <div class="infolinks"><input type="hidden" name="IL_RELATED_TAGS" value="1"/></div>
  48.                         <?php } ?>
  49.                     <?php } ?>
Add Comment
Please, Sign In to add comment