Advertisement
sgodar

Wikeasi Page

Apr 6th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.53 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Page Template
  4.  *
  5.  * This template is the default page template. It is used to display content when someone is viewing a
  6.  * singular view of a page ('page' post_type) unless another page template overrules this one.
  7.  * @link http://codex.wordpress.org/Pages
  8.  *
  9.  * @package WooFramework
  10.  * @subpackage Template
  11.  */
  12.     get_header();
  13.     global $woo_options;
  14. ?>
  15.  
  16.     <div id="content" class="page col-full">
  17.         <section id="main" class="col-right">
  18.         <?php
  19.                 get_template_part( 'includes/advanced-search-form' );
  20.  
  21.                 get_template_part( 'includes/filter-bar' );
  22.         ?>
  23.  
  24.                         <center>
  25.                         <script type="text/javascript"><!--
  26.                         google_ad_client = "ca-pub-0044915326038182";
  27.                         /* Leader board 728 x 90 */
  28.                         google_ad_slot = "6866417018";
  29.                         google_ad_width = 728;
  30.                         google_ad_height = 90;
  31.                         //-->
  32.                         </script>
  33.                         <script type="text/javascript"
  34.                         src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  35.                         </script>
  36.                         </center>
  37. <br>
  38.  
  39.         <?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?>
  40.             <section id="breadcrumbs">
  41.                 <?php woo_breadcrumbs(); ?>
  42.             </section><!--/#breadcrumbs -->
  43.         <?php } ?>
  44.  
  45.         <?php
  46.             if ( have_posts() ) { $count = 0;
  47.                 while ( have_posts() ) { the_post(); $count++;
  48.         ?>
  49.             <article <?php post_class(); ?>>
  50.  
  51.                 <header>
  52.                     <h1><?php the_title(); ?></h1>
  53.                 </header>
  54.  
  55.                 <section class="entry">
  56.                     <?php the_content(); ?>
  57.  
  58.                     <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
  59.                 </section><!-- /.entry -->
  60.  
  61.                 <?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>
  62.  
  63.             </article><!-- /.post -->
  64.  
  65.             <?php
  66.                 // Determine wether or not to display comments here, based on "Theme Options".
  67.                 if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'page', 'both' ) ) ) {
  68.                     comments_template();
  69.                 }
  70.  
  71.                 } // End WHILE Loop
  72.             } else {
  73.         ?>
  74.             <article <?php post_class(); ?>>
  75.                 <p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
  76.             </article><!-- /.post -->
  77.         <?php } // End IF Statement ?>
  78.  
  79.         </section><!-- /#main -->
  80.  
  81.         <?php get_sidebar(); ?>
  82.  
  83.     </div><!-- /#content -->
  84.  
  85. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement