Advertisement
Guest User

ad after more

a guest
Feb 26th, 2011
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2. $content = get_extended($post->post_content);
  3. if(empty($content)) :  ?>
  4. <?php the_content(); ?>
  5. <?php else : ?>
  6. <?php
  7. $content['main'] = $content['main'] . '<span id="more-' . $post->ID . '"></span>';
  8. $first_content = apply_filters('the_content', $content['main']);
  9. $second_content = apply_filters('the_content', $content['extended']);
  10. echo $first_content;
  11. ?>
  12. <?php endif; ?>
  13.  
  14. <div style="display:block;float:left;margin-top:0px;margin-right:15px;">
  15. <script type="text/javascript">
  16.   GA_googleFillSlot("CI_Article_Top");
  17. </script>
  18. </div>
  19.  
  20. <?php
  21. if(!empty($content)) {
  22. echo $second_content;
  23. }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement