<?php
/**
 *  * Template Name: IPR Measurement Commission Template
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages and that other
 * 'pages' on your WordPress site will use a different template.
 *
 * @package WordPress
 * @subpackage Twenty_Thirteen
 * @since IPR 1.0
 */

get_header(); ?>

 
   /*  <li><a href="#"></a></li>*/

 </ol>
	<div class="page-header">
    	<h1><?php the_title(); ?></h1>
    </div>
<div class="row">
	<aside class="col-sm-3">
      <div class="">
        <div class="sidebar-nav">
            <div class="list-group">
            	<?php dynamic_sidebar( 'sidebar-5' ); ?>
            </div>
        </div>
      </div>
    </aside>
    <div class="col-sm-9">
	<div id="primary" class="text-content">
		<div id="content" class="site-content" role="main">			
			<?php while ( have_posts() ) : the_post(); ?>
				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<header class="entry-header">
						<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
						<div class="entry-thumbnail">
							<?php the_post_thumbnail(); ?>
						</div>
						<?php endif; ?>
					</header>
					<div class="entry-content">
						<?php the_content(); ?>
						<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
					</div>
					<footer class="entry-meta">
						<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
					</footer>
				</article>
				<?php comments_template(); ?>
			<?php endwhile; ?>
            <?php 
				$query = new WP_Query( array( 'cat' => 1575 ) );				
				if( $query->have_posts() ):
					while ( $query->have_posts() ) : $query->the_post(); 						
					?>
					<div class="col-sm-12">
					<article class="article RelatedResearch MarginBottomNull">
						<div class="post-author clearfix">
							<div class="CustomResearchPanel">
                                <div class="post-img post-<?php echo get_the_ID(); ?>">
                                    <?php if ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() ) : ?>
                                        <div class="entry-thumbnail">
                                          <?php the_post_thumbnail('research', array('class' => 'alignright')); ?>
                                        </div>
                                    <?php endif; ?>
                                </div>
                                <div class="post-title"><a href="<?php the_permalink(); ?>"><h3><?php echo wp_trim_words( get_the_title(), 999 ); ?></h3></a></div>
                                <div class="SmallDesc">
									<?php echo $expert = substr(get_the_excerpt(),0, 200); ?>
                                    <a href="<?php the_permalink(); ?>"><?php echo "... more" ?></a>
								</div>
                            </div>
						</div>
					</article>
					</div>
				<?php endwhile; endif; wp_reset_query();?>
		</div>
	</div>
    </div>
    </div>
     <div class="col-sm-12 margin-top-50">&nbsp;</div>
</div>

<?php get_footer(); ?>