<?php get_header(); ?>
<?php $mt_practice_item_top_img = get_theme_mod( 'mt_practice_item_top_img'); ?>
<section class="topSingleBkg topPageBkg <?php if(!empty($mt_practice_item_top_img)):?> topSingleBkgImg <?php endif;?>">
   <?php if(!empty($mt_practice_item_top_img)):?>
   <div class="item-img" style="background-image:url('<?php echo esc_url($mt_practice_item_top_img); ?>');"></div>
   <?php endif;?>
   <div class="inner-desc">
      <h1 class="post-title single-post-title"><?php if(!empty($mt_page_title)): echo esc_html($mt_page_title); else: the_title(); endif;?></h1>
   </div>
</section>
<section id="wrap-content" class="page-content blog-post-single">
   <div class="container">
      <div class="row">
         <div class="col-md-9 posts-holder">
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <div id="post-<?php the_ID(); ?>" class="page-holder single-post-content custom-page-template">
               <?php the_content(); ?>
            </div>
            <?php  endwhile;
               else: ?>
            <p class="alignc"><?php esc_html_e( 'Sorry, but it seems we can&rsquo;t find what you&rsquo;re looking for. Try the menu above.', 'liberis' ); ?></p>
            <?php endif; ?>
         </div>
         <!--col-md-9-->
         <div class="col-md-3">
            <div class="practice-side">
               <?php
                  wp_reset_postdata();
                  	  
                  global $post;
                  $do_not_duplicate = $post->ID;
                  
                  $query = array('post_type' => 'mt_practice_areas');
                  $wp_query = new WP_Query($query);
                  
                  ?>
               <?php if (have_posts()) : ?>
               <h5 class="widgettitle"><span><?php esc_html_e('Practice Areas', 'liberis');?></span></h5>
               <div class="widget_recent_entries">
                  <ul>
                     <?php  while(have_posts()) : the_post();
                        if ($do_not_duplicate != $post->ID):  ?>
                     <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
                     <?php endif; endwhile; endif;?>
                  </ul>
               </div>
            </div>
         </div>
         <!--col-md-3-->
      </div>
      <!--row-->
   </div>
   <!--container-->
</section>
<?php get_footer(); ?>