Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Custom Page
- */
- get_header(); ?>
- <section id="main" class="<?php echo FULLWIDTH_CLASSES; ?>" role="main">
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="entry-page">
- <?php if ( po_breadcrumbs_need_to_show() || pojo_is_show_page_title() ) : ?>
- <header class="entry-header">
- <?php if ( pojo_is_show_page_title() ) : ?>
- <div class="page-title">
- <h1><?php the_title(); ?></h1>
- </div>
- <?php endif; ?>
- <?php if ( po_breadcrumbs_need_to_show() ) : ?>
- <?php pojo_breadcrumbs(); ?>
- <?php endif; ?>
- </header>
- <?php endif; ?>
- <div class="entry-content">
- <?php if ( ! Pojo_Core::instance()->builder->display_builder() ) : ?>
- <?php the_content(); ?>
- <?php pojo_link_pages(); ?>
- <?php endif; ?>
- </div>
- <footer class="entry-footer">
- <div class="entry-edit">
- <?php pojo_button_post_edit(); ?>
- </div>
- </footer>
- </div>
- </article>
- <?php endwhile; ?>
- <?php else : ?>
- <article id="post-0" class="post no-results not-found">
- <?php pojo_alert( __( 'Sorry, no results were found.', 'pojo' ), false, 'block' ); ?>
- <?php get_search_form(); ?>
- </article><!-- #post-0 -->
- <?php endif; ?>
- </section><!-- section#main -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement