<?php get_header(); ?>

<div class="page-container-bg">
    <div class="page-container-content">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="blog-page-content">
                        <h1 id="post_title"></h1>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="blog-right-cont">
                        <form action="<?php echo esc_url( home_url( '/' ) ); ?>" class="searchform" id="searchform" method="get" role="search">
                            <div class="form-group">
                                <input type="text" name="s" class="form-control" placeholder="Search">
                            </div>
                        </form>
                        <div class="blog-link-list">
                            <ul>
                                <?php while ( have_posts() ) : the_post(); ?>
                                    <li>
                                        <a href="<?php echo get_permalink( $post->ID ); ?>"><?php the_title(); ?></a>
                                        <div class="post-date">Posted 14/01/2014 <?php the_date('d/m/Y'); ?></div>
                                    </li>
                                <?php endwhile; ?>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="col-md-9">
                    <?php while ( have_posts() ) : the_post(); ?>
                        <div class="blog-left-cont">
                            <h3><a href="<?php echo get_permalink( $post->ID ); ?>"><?php the_title(); ?></a></h3>
                            <div class="blog-detail">
                                <?php the_content(); ?>
                            </div>

                            <script type="text/javascript">
                                jQuery('#post_title').html('<?php the_title(); ?>');
                            </script>
                        </div>
                    <?php endwhile; ?>
                </div>
            </div>
        </div>
    </div>

<?php get_footer(); ?>