Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

ad after more

By: a guest on Feb 26th, 2011  |  syntax: PHP  |  size: 0.61 KB  |  views: 210  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>