Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Page with Custom Sidebar
- */
- ?>
- <?php get_header(); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <section class="page-title">
- <div class="double-separator"></div>
- <div class="breadcrumbs">
- <div class="two-third align-left">
- <?php if (function_exists('dt_breadcrumbs')) dt_breadcrumbs(); ?>
- </div>
- <div class="one-third column-last align-right">
- <?php
- //get meta
- $tagline = get_post_meta($post->ID, 'haze_tagline', TRUE);
- if(!empty($tagline)) { echo $tagline; }
- ?>
- </div>
- </div><!--end breadcrumbs-->
- <div class="double-separator"></div>
- </section>
- </div><!--end top-->
- <div class="centered-wrapper">
- <aside id="sidebar">
- <?php if ( !dynamic_sidebar('custom-sidebar') ) : ?>
- <p><?php _e('You need to drag a widget into your custom sidebar in the WordPress Admin', 'haze'); ?></p>
- <?php endif; ?>
- </aside><!--end navigation-->
- <section>
- <article id="page-<?php the_ID(); ?>">
- <section>
- <?php the_content(); ?>
- </section>
- </article>
- </section>
- <?php endwhile; ?>
- <?php endif; ?>
- </div><!--end centered-wrapper-->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement