<?php 
/* Trending news page template
 * Template Name: Page with Sidebar
 * Description: Adds sidebar to the page
 */
?>

<?php get_header(); ?>

<div id="main">
	<div id="primary">
        <div id="post-area">
          <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
          <h1>
            <?php the_title(); ?>
          </h1>
          <div id="content-area">
            <?php the_content(); ?>
            <?php wp_link_pages(); ?>
          </div>
          <?php endwhile; endif; ?>
        </div>
  	</div>
    <div id="secondary">
  <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Page Sidebar')): endif; ?>
  </div>
</div>
<?php get_footer(); ?>
