Advertisement
Guest User

Untitled

a guest
Jun 4th, 2015
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.45 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template Name: Custom Page
  4.  */
  5. get_header(); ?>
  6.     <section id="main" class="<?php echo FULLWIDTH_CLASSES; ?>" role="main">
  7.         <?php if ( have_posts() ) : ?>
  8.             <?php while ( have_posts() ) : the_post(); ?>
  9.             <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  10.                 <div class="entry-page">
  11.                     <?php if ( po_breadcrumbs_need_to_show() || pojo_is_show_page_title() ) : ?>
  12.                         <header class="entry-header">
  13.                             <?php if ( pojo_is_show_page_title() ) : ?>
  14.                                 <div class="page-title">
  15.                                     <h1><?php the_title(); ?></h1>
  16.                                 </div>
  17.                             <?php endif; ?>
  18.                             <?php if ( po_breadcrumbs_need_to_show() ) : ?>
  19.                                 <?php pojo_breadcrumbs(); ?>
  20.                             <?php endif; ?>
  21.                         </header>
  22.                     <?php endif; ?>
  23.                     <div class="entry-content">
  24.                         <?php if ( ! Pojo_Core::instance()->builder->display_builder() ) : ?>
  25.                             <?php the_content(); ?>
  26.                             <?php pojo_link_pages(); ?>
  27.                         <?php endif; ?>
  28.                     </div>
  29.                     <footer class="entry-footer">
  30.                         <div class="entry-edit">
  31.                             <?php pojo_button_post_edit(); ?>
  32.                         </div>
  33.                     </footer>
  34.                 </div>
  35.             </article>
  36.             <?php endwhile; ?>
  37.         <?php else : ?>
  38.             <article id="post-0" class="post no-results not-found">
  39.                 <?php pojo_alert( __( 'Sorry, no results were found.', 'pojo' ), false, 'block' ); ?>
  40.                 <?php get_search_form(); ?>
  41.             </article><!-- #post-0 -->
  42.  
  43.         <?php endif; ?>
  44.     </section><!-- section#main -->
  45.  
  46. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement