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

Page - Right Sidebar A

By: a guest on Sep 30th, 2012  |  syntax: PHP  |  size: 1.03 KB  |  views: 35  |  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. /*
  3. Template Name: Page - Right Sidebar A
  4. */
  5.  
  6. /* Fetch admin options. */
  7. global $options;
  8. foreach ($options as $value) {
  9. if(isset($value['id']) && isset ($value['std']))
  10.         if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] );}
  11. }
  12. get_header(); ?>
  13. <div class="content_medium">
  14. <?php get_template_part( 'featured' );
  15. if (have_posts()) :
  16.                 while (have_posts()) : the_post(); ?>
  17.                                 <?php the_content( __( 'More &rarr;', 'volt' ) );
  18.                                 wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'volt' ), 'after' => '</div>' ) );
  19.                 endwhile;
  20.                 else : ?>
  21.                 <h2><?php _e( 'Not Found', 'volt' ); ?></h2>
  22.                 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'volt' ); ?></p>
  23.             <?php endif;?>
  24.         </div><!-- .content -->
  25. <?php get_sidebar('a'); ?>
  26.     </div><!-- .primary_wrap -->
  27. </div><!-- .primary -->
  28. <?php get_footer(); ?>