Advertisement
Guest User

Untitled

a guest
May 4th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php if ( get_option( globaltheme_layoutside ) == "Right Sidebar") { ?>
  3. <div id="container"><!-- CONTAINER -->
  4. <div class="maincolumn"><!-- MAIN COLUMN -->
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <h1><?php the_title(); ?></h1>
  7. <?php the_content(__('Keep Reading'));?>
  8. <?php endwhile; else: ?>
  9. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  10. <?php endif; ?>
  11. </div><!-- /MAIN COLUMN -->
  12. <div class="sidecolumn"><!-- SIDEBAR -->
  13. <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar (Page)') ) : else : ?>
  14. <div class="nowidget"><b>NOTE:</b> This sidebar is empty, <a href="<?php echo get_settings('home'); ?>/wp-admin/widgets.php"><u>click here</u></a> and add widgets to the <b>Sidebar (Page)</b> widgetised area.</div>
  15. <?php endif; ?>
  16. </div><!-- /SIDEBAR -->
  17. </div><!-- /CONTAINER -->
  18. <?php } else { ?>
  19. <div id="containeralt"><!-- CONTAINER -->
  20. <div class="sidecolumnalt"><!-- SIDEBAR -->
  21. <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar (Page)') ) : else : ?>
  22. <div class="nowidget"><b>NOTE:</b> This sidebar is empty, <a href="<?php echo get_settings('home'); ?>/wp-admin/widgets.php"><u>click here</u></a> and add widgets to the <b>Sidebar (Page)</b> widgetised area.</div>
  23. <?php endif; ?>
  24. </div><!-- /SIDEBAR -->
  25. <div class="maincolumnalt"><!-- MAIN COLUMN -->
  26. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  27. <h1><?php the_title(); ?></h1>
  28. <?php the_content(__('Keep Reading'));?>
  29. <?php endwhile; else: ?>
  30. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  31. <?php endif; ?>
  32. </div><!-- /MAIN COLUMN -->
  33. </div><!-- /CONTAINER -->
  34. <?php } ?>
  35. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement