Advertisement
jamesmcbennett

page.php

Feb 29th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <?php
  2. global $wp_query, $product_page_width, $product_sidebar, $product_sidebar_width;
  3.  
  4. $product_sidebar = false;
  5. if (prima_get_option('themelayout') == 'boxed') { $product_page_width = 665; }
  6. else { $product_page_width = 720; }
  7.  
  8. get_header(); ?>
  9.  
  10. <div id="header-wrapper">
  11. <?php get_template_part( 'flexi-header' ); ?>
  12. <div id="leader" class="container">
  13. <div class="margin clearfix">
  14. <?php if (class_exists('WP_eCommerce') && prima_get_option('searchformpage')) prima_product_search(); ?>
  15. <?php $post_id = $wp_query->get_queried_object_id();
  16. $title = get_post_field( 'post_title', $post_id ); ?>
  17. <h1><?php echo $title; ?></h1>
  18. </div>
  19. </div>
  20. </div>
  21.  
  22. <div id="content-wrapper">
  23. <div id="main-content" class="container">
  24. <div class="margin">
  25. <div id="main-col">
  26. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  27. <?php the_content(); ?>
  28. <?php wp_link_pages( array( 'before' => '' . __( 'Pages:', PRIMA_DOMAIN ), 'after' => '' ) ); ?>
  29. <?php edit_post_link( __( 'Edit', PRIMA_DOMAIN ), '', '' ); ?>
  30. <?php endwhile; ?>
  31. <?php else : ?>
  32. <p><strong><?php _e( 'Not Found', PRIMA_DOMAIN ); ?></strong></p>
  33. <p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', PRIMA_DOMAIN ); ?></p>
  34. <?php get_search_form(); ?>
  35. <?php endif; ?>
  36. </div>
  37. <div id="sidebar">
  38. <div class="sidebar-inner">
  39. <?php get_sidebar(); ?>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45.  
  46. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement