		</div>
<?php

if ( MedicareTheme::$boldthemes_has_sidebar ) {
	echo '<aside class="btSidebar">';
		dynamic_sidebar( 'primary_widget_area' );
	echo '</aside>';					
}

?> 
	</div><!-- /contentHolder -->
</div><!-- /contentWrap -->

<?php

$page_slug = boldthemes_get_option( 'footer_page_slug' );

if ( $page_slug != '' ) {
	$page_id = boldthemes_get_id_by_slug( $page_slug );
	if ( ! is_null( $page_id ) ) {
		$page = get_post( $page_id );
		$content = $page->post_content;
		$content = apply_filters( 'the_content', $content );
		echo str_replace( ']]>', ']]&gt;', $content );
	}
}

if ( boldthemes_get_option( 'footer_dark_skin' ) ) {
	echo '<div class="btFooterWrap btDarkSkin">';
} else {
	echo '<div class="btFooterWrap">';
}

$custom_text_html = '';
$custom_text = boldthemes_get_option( 'custom_text' );
if ( $custom_text != '' ) {
	$custom_text_html = '<p class="copyLine">' . wp_kses_post( $custom_text ) . '</p>';
}

if ( is_active_sidebar( 'footer_widgets' ) ) {
	echo '
	<section class="boldSection btSiteFooterWidgets gutter topSpaced bottomSemiSpaced btDoubleRowPadding">
		<div class="port">
			<div class="boldRow" id="boldSiteFooterWidgetsRow">';
			dynamic_sidebar( 'footer_widgets' );
	echo '	
			</div>
		</div>
	</section>';
}

?>
<?php if ( $custom_text_html != '' || has_nav_menu( 'footer' )) { ?>
	<section class="boldSection gutter btSiteFooter btGutter">
		<div class="port">
			<div class="boldRow">
				<div class="rowItem btFooterCopy col-lg-6 btTextLeft">
					<?php echo wp_kses_post( $custom_text_html ); ?>
				</div><!-- /copy -->
				<div class="rowItem btFooterMenu col-lg-6 col-sm-12 btTextRight">
					<div class="fooWidgets"><?php dynamic_sidebar( 'header_right_widgets' ); ?></div>
					<?php wp_nav_menu( array( 'theme_location' => 'sub_footer', 'container' => 'ul', 'depth' => 1, 'fallback_cb' => false ) ); ?>
					
				</div>
			</div><!-- /boldRow -->
		</div><!-- /port -->
	</section>
<?php } ?>

</div>

</div><!-- /pageWrap -->

<style>
.btGridContainer {
    display: none !important;
}

.btIconImageRow.btCells-0 {
    text-align: center;
}

.btArticleListBodyContent {
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.header.large .btSuperTitle {
    text-align: right;
}

.btLightSkin .btSeparator hr, .btDarkSkin .btLightSkin .btSeparator hr {
    margin-top: 1em;
}
/* 
.bottomSpaced {
    display: none;
} */

.rtl .articleSideGutter {
    display: none;
}
</style>

<?php

wp_footer();

?>

</body>
</html>