Skip to content

Commit

Permalink
Cleaning up Page.php
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Jun 25, 2014
1 parent 3ecd506 commit 525138c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/

get_header(); ?>
<h1>page.php</h1>
<?php
// sidebar custom field check.
$sidebar = get_post_meta( get_the_ID(), 'uc_sidebar', true );
Expand All @@ -30,13 +29,7 @@
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<h1>Sidebar?</h1>
<?php
$side = dynamic_sidebar(apply_filters( 'ups_sidebar', 'default-sidebar-id' ) );
if ($side !=null)

echo '<h1>'.$side.' </h1>';
?>

<?php while ( have_posts() ) : the_post(); ?>

<?php get_template_part( 'content', 'page' ); ?>
Expand All @@ -59,5 +52,5 @@
dynamic_sidebar( $sidebar );
echo '</div>';
} ?>
</div>
<?php get_footer(); ?>
</div><!-- /row -->
<?php get_footer(); ?>

0 comments on commit 525138c

Please sign in to comment.