Advertisement
wabbidida

deliciousmagazine

Sep 29th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. @@@@ theme page.php @@@@
  2.  
  3.  
  4.  
  5.  
  6.  
  7. <?php get_header(); ?>
  8.  
  9.  
  10. <?php global $woo_options; ?>
  11.  
  12.  
  13. <div id="content" class="page col-full">
  14.  
  15.  
  16. <div id="main" class="col-left">
  17.  
  18.  
  19. <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<div id="breadcrumb"><p>','</p></div>'); } ?>
  20.  
  21.  
  22. <?php if (have_posts()) : $count = 0; ?>
  23.  
  24.  
  25. <?php while (have_posts()) : the_post(); $count++; ?>
  26.  
  27.  
  28. <div class="post">
  29.  
  30.  
  31. <h1 class="title"><?php the_title(); ?></h1>
  32.  
  33.  
  34. <div class="entry">
  35.  
  36.  
  37. <?php the_content(); ?>
  38.  
  39.  
  40. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
  41.  
  42.  
  43. </div><!-- /.entry -->
  44.  
  45.  
  46. <?php edit_post_link( __('{ Edit }', 'woothemes'), '<span class="small">', '</span>' ); ?>
  47.  
  48.  
  49. </div><!-- /.post -->
  50.  
  51.  
  52. <?php $comm = $woo_options['woo_comments']; if ( ($comm == "page" || $comm == "both") ) : ?>
  53.  
  54.  
  55. <?php comments_template(); ?>
  56.  
  57.  
  58. <?php endif; ?>
  59.  
  60.  
  61. <?php endwhile; else: ?>
  62.  
  63.  
  64. <div class="post">
  65.  
  66.  
  67. <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
  68.  
  69.  
  70. </div><!-- /.post -->
  71.  
  72.  
  73. <?php endif; ?>
  74.  
  75.  
  76. </div><!-- /#main -->
  77.  
  78.  
  79. <?php get_sidebar(); ?>
  80.  
  81.  
  82. </div><!-- /#content -->
  83.  
  84.  
  85. <?php get_footer(); ?>
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98. @@@@@@@@@@@@@@@@@@@@@@
  99.  
  100.  
  101. @@@@@@ Buddypress page.php @@@
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110. <?php get_header() ?>
  111.  
  112.  
  113. <div id="content">
  114.  
  115.  
  116. <div class="padder">
  117.  
  118.  
  119. <?php do_action( 'bp_before_blog_page' ) ?>
  120.  
  121.  
  122. <div class="page" id="blog-page" role="main">
  123.  
  124.  
  125. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  126.  
  127.  
  128. <h2 class="pagetitle"><?php the_title(); ?></h2>
  129.  
  130.  
  131. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  132.  
  133.  
  134. <div class="entry">
  135.  
  136.  
  137. <?php the_content( __( '<p class="serif">Read the rest of this page &rarr;</p>', 'buddypress' ) ); ?>
  138.  
  139.  
  140. <?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( 'Pages: ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
  141.  
  142.  
  143. <?php edit_post_link( __( 'Edit this page.', 'buddypress' ), '<p class="edit-link">', '</p>'); ?>
  144.  
  145.  
  146. </div>
  147.  
  148.  
  149. </div>
  150.  
  151.  
  152. <?php comments_template(); ?>
  153.  
  154.  
  155. <?php endwhile; endif; ?>
  156.  
  157.  
  158. </div><!-- .page -->
  159.  
  160.  
  161. <?php do_action( 'bp_after_blog_page' ) ?>
  162.  
  163.  
  164. </div><!-- .padder -->
  165.  
  166.  
  167. </div><!-- #content -->
  168.  
  169.  
  170. <?php get_sidebar() ?>
  171.  
  172.  
  173. <?php get_footer(); ?>
  174.  
  175.  
  176.  
  177.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement