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

Untitled

By: a guest on Feb 26th, 2011  |  syntax: PHP  |  size: 0.76 KB  |  views: 389  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. 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($content['extended'] == '') :  ?>
  4.  
  5. <?php the_content(); ?>
  6. <div style="display:block;float:left;margin-top:0px;margin-right:15px;">
  7. <script type="text/javascript">
  8.   GA_googleFillSlot("CI_Article_Top");
  9. </script>
  10. </div>
  11.  
  12. <?php else : ?>
  13. <?php
  14. $content['main'] = $content['main'] . '<span id="more-' . $post->ID . '"></span>';
  15. $first_content = apply_filters('the_content', $content['main']);
  16. $second_content = apply_filters('the_content', $content['extended']);
  17.  
  18. echo $first_content;
  19. ?>
  20.  
  21. <div style="display:block;float:left;margin-top:0px;margin-right:15px;">
  22. <script type="text/javascript">
  23.   GA_googleFillSlot("CI_Article_Top");
  24. </script>
  25. </div>
  26.  
  27. <?php
  28. echo $second_content;
  29. ?>
  30. <?php endif; ?>