Advertisement
specht

loop-page adsense.php

Mar 8th, 2011
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <?php
  2. /**
  3. * The loop that displays a page.
  4. *
  5. * The loop displays the posts and the post content. See
  6. * http://codex.wordpress.org/The_Loop to understand it and
  7. * http://codex.wordpress.org/Template_Tags to understand
  8. * the tags used in it.
  9. *
  10. * This can be overridden in child themes with loop-page.php.
  11. *
  12. * @package WordPress
  13. * @subpackage Twenty_Ten
  14. * @since Twenty Ten 1.2
  15. */
  16. ?>
  17.  
  18. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  19.  
  20. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  21. <?php if ( is_front_page() ) { ?>
  22. <h2 class="entry-title"><?php the_title(); ?></h2>
  23.  
  24. <script type="text/javascript"><!--
  25. google_ad_client = "pub-8478747721998822";
  26. /* dog 300x250, left up */
  27. google_ad_slot = "8042309129";
  28. google_ad_width = 300;
  29. google_ad_height = 250;
  30. //-->
  31. </script>
  32. <script type="text/javascript"
  33. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  34. </script>
  35.  
  36. <?php } else { ?>
  37. <h1 class="entry-title"><?php the_title(); ?></h1>
  38. <?php } ?>
  39.  
  40. <div class="entry-content">
  41. <?php the_content(); ?>
  42. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  43. <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
  44. </div><!-- .entry-content -->
  45. </div><!-- #post-## -->
  46.  
  47. <?php comments_template( '', true ); ?>
  48.  
  49. <?php endwhile; // end of the loop. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement