File: /home/sarlight.ru/public_html/wp-content/themes/addison/footer.php
</div><!-- /boldthemes_content -->
<?php
if ( BoldThemesFramework::$has_sidebar ) {
include( get_template_directory() . '/sidebar.php' );
}
?>
</div><!-- /contentHolder -->
</div><!-- /contentWrap -->
<?php
if ( boldthemes_get_option( 'footer_dark_skin' ) ) {
echo '<div class="btDarkSkin btSiteFooter">';
} else {
echo '<div class="btSiteFooter">';
}
$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 );
$content = preg_replace( '/data-edit_url="(.*?)"/s', 'data-edit_url="' . get_edit_post_link( $page_id, '' ) . '"', $content );
echo str_replace( ']]>', ']]>', $content );
}
}
$custom_text_html = '';
$custom_text = boldthemes_get_option( 'custom_text' );
if ( $custom_text != '' ) {
$custom_text_html = '<p class="copyLine">' . $custom_text . '</p>';
}
?>
<footer>
<?php if ( is_active_sidebar( 'footer_widgets' ) ) {
echo '
<section class="btSiteFooterWidgets gutter">
<div class="port">
<div class="bt_bb_row" id="boldSiteFooterWidgetsRow">';
dynamic_sidebar( 'footer_widgets' );
echo '
</div>
</div>
</section>
';
}
?>
<?php if ( $custom_text_html != '' || has_nav_menu( 'footer' )) { ?>
<section class="gutter btSiteFooterCopyMenu">
<div class="port">
<div class="">
<div class="btFooterCopy">
<div class="bt_bb_column_content">
<?php echo wp_kses_post( $custom_text_html ); ?>
</div>
</div><!-- /copy -->
<div class="btFooterMenu">
<div class="bt_bb_column_content">
<?php boldthemes_nav_menu( false, 'footer'); ?>
</div>
</div>
</div><!-- /boldRow -->
</div><!-- /port -->
</section>
<?php } ?>
</footer>
</div><!-- /btSiteFooter -->
</div><!-- /pageWrap -->
<?php wp_footer(); ?>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(57279541, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/57279541" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>