<?php $options = get_option('kaveh_frame'); ?>
<?php
$page = get_page_by_path('klogin');
if (!empty($page)) {
  $page_id = $page->ID;
}
$account_page_id = get_option('woocommerce_myaccount_page_id');
?>
<?php if (!is_page($account_page_id) and !is_page($page_id)): ?>
  <?php if (function_exists('boostify_footer_active') && boostify_footer_active()): ?>
    <?php boostify_get_footer_template(); //Custom footer ?>
  <?php else: ?>
    <?php get_template_part('template-part/theme-default-footer'); ?>
  <?php endif; ?>
<?php endif; ?>

<?php if (wp_is_mobile() && !is_page($account_page_id) && !is_page($page_id)): ?>
  <?php if ($options['kaveh_footer_mobile_on'] === '1'): ?>
   <?php $mobile_footer_option = intval(preg_replace('/[^0-9]/', '', $options['kaveh_footer_mobile'])); ?>
   <?php get_template_part('template-part/footer-mobile-' . $mobile_footer_option); ?>
  <?php endif; ?>
<?php endif; ?>

<?php get_template_part('template-part/kaveh-quick-view-popup'); ?>
<?php get_template_part('template-part/kaveh-search-popup'); ?>
<?php get_template_part('template-part/kaveh-login-popup'); ?>
<?php get_template_part('template-part/kaveh-add-to-cart-fixed'); ?>

<?php wp_footer(); ?>
</div>
</body>
</html>