Advertisement
sandy786

Wrock.org Show ads in footer - single post

Sep 25th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.03 KB | None | 0 0
  1. <?php get_header(); ?><!-- BEGIN PAGE -->
  2. <div id="page"> <div id="page-inner" class="clearfix">
  3. <?php if (wrockmetro_get_option('wrockmetro_banner' ) =='1' ) {load_template(get_template_directory() . '/includes/banner-top.php'); } ?>
  4.         <div id="content"><?php wrockmetro_breadcrumbs(); ?>
  5.             <?php if(have_posts()) : ?>
  6.             <?php while(have_posts())  : the_post(); ?>
  7.             <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  8.             <header class="entry">
  9.             <h1 class="entry-title"><?php the_title(); ?></h1>
  10.             <?php if ( wrockmetro_get_option('wrockmetro_ad2') <> "" ) { echo stripslashes(wrockmetro_get_option('wrockmetro_ad2')); } ?>
  11.             <?php the_content(); ?> </header>
  12.             <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'wrockmetro' ), 'after' => '</div>' ) ); ?>
  13.         <span class="postmeta_box">
  14.         <?php get_template_part('/includes/postmeta'); ?><?php  if (get_the_tags()) :?> <span class="tags"><?php if("the_tags") the_tags(''); ?></span><?php endif;?><?php edit_post_link('Edit', ' &#124; ', ''); ?>
  15.     </span><!-- .entry-header -->
  16.     <div class="gap"></div><?php if (wrockmetro_get_option('wrockmetro_author' ) =='1' ) {load_template(get_template_directory() . '/includes/author.php'); } ?>
  17.  
  18.         <div id="single-nav" class="clearfix">
  19.         <div id="single-nav-left"><?php previous_post_link('&laquo;<strong>%link</strong>'); ?></div>
  20.         <div id="single-nav-right"><?php next_post_link('<strong>%link</strong>&raquo;'); ?></div>
  21.         </div>
  22.         <!-- END single-nav -->
  23.             <div class="comments">  <?php comments_template(); ?>   </div> <!-- end div .comments -->   </article> <!-- end div .post -->
  24.             <?php endwhile; ?>
  25.             <?php else : ?>
  26.                 <div class="post">
  27.                     <h3><?php _e('404 Error&#58; Not Found', 'wrockmetro' ); ?></h3>
  28.                 </div>
  29.             <?php endif; ?>
  30.             <div id="footerads">
  31. <?php if ( wrockmetro_get_option('wrockmetro_ad1') <> "" ) { echo stripslashes(wrockmetro_get_option('wrockmetro_ad1')); } ?>
  32. </div>
  33.         </div> <!-- end div #content -->
  34. <?php get_sidebar(); ?>
  35. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement