<?php echo $header; ?>
<?php require( PAVO_THEME_DIR."/template/common/breadcrumb.tpl" );  ?>
<div id="group-content">
<div class="container">
    <?php require( PAVO_THEME_DIR."/template/common/config_layout.tpl" );  ?>
 
    <div class="row"><?php if( $SPAN[0] ): ?>
        <aside id="sidebar-left" class="col-md-<?php echo $SPAN[0];?>">
            <?php echo $column_left; ?>
        </aside>
        <?php endif; ?>

        <section id="sidebar-main" class="col-md-<?php echo $SPAN[1];?>">
        	
        	<div id="content">

		<?php echo $content_top; ?>
        		<header class="pav-header">
					<h1><?php echo $heading_title; ?></h1>
					<a class="rss-wrapper" href="<?php echo $latest_rss;?>"><span class="fa fa-feed"></span></a>	
				</header>   

                <div class="pav-filter-blogs">
                    <div class="pav-blogs">
                        <?php $cols = $cat_columns_leading_blogs;
                        if( count($leading_blogs) ) { ?>
                        <div class="leading-blogs">
						<div class="row">
							<?php foreach( $leading_blogs as $key => $blog ) { $key = $key + 1;?>
							<div class="col-lg-<?php echo floor(12/$cols);?> col-sm-<?php echo floor(12/$cols);?> col-xs-12">
							<?php require( '_item.tpl' ); ?>
							</div>
							<?php if( ( $key%$cols==0 || $cols == count($leading_blogs)) ){ ?>
								
							<?php } ?>
							<?php } ?>
						</div>
					</div>
                        <?php } ?>

                        <?php
                        $cols = $cat_columns_secondary_blogs;
                        $cols = !empty($cols)?$cols:1;
                        if ( count($secondary_blogs) ) { ?>
                        <div class="secondary clearfix">
						<div class="row">	
							<?php foreach( $secondary_blogs as $key => $blog ) {  $key = $key+1; ?>
							<div class="col-lg-<?php echo floor(12/$cols);?> col-sm-<?php echo floor(12/$cols);?> col-xs-12">
								<?php require( '_item.tpl' ); ?>
							</div>
							<?php if( ( $key%$cols==0 || $cols == count($leading_blogs)) ){ ?>
							
							<?php } ?>
							<?php } ?>
						</div>
					</div>
                        <?php } ?>

                        <div class="pav-pagination pagination"><?php echo $pagination;?></div>
                    </div>
                </div>




                <?php echo $content_bottom; ?>
            </div>
        </section>
        <?php if( $SPAN[2] ): ?>
        <aside id="sidebar-right">
            <?php echo $column_right; ?>
        </aside>
        <?php endif; ?></div>
</div></div>
<?php echo $footer; ?>

