fbpx

<?php
/**
* Berserk Footer 14
*
* @package Berserk
* @version 1.0.0
*/

if ( ! defined( ‘ABSPATH’ ) ) {
exit; // Exit if accessed directly
}

/**
* Add Dependent Scripts and Styles
*/
if ( function_exists( ‘brk_add_libraries’ ) ) {
$libraries = array(
‘component__footer’,
‘component__accordions’,
‘component__title’,
‘component__services’,
);
brk_add_libraries( $libraries );
}

?>

<footer <?php brk_footer_attr( ‘position-relative’ ); ?>>
<div class=”<?php brk_footer_wrapper_class( ‘d-flex flex-column align-items-center border-bottom-3 brk-border-color-primary brk-bgi-1 brk-bg-pattern’ ); ?>”>

<span class=”brk-abs-bg-overlay brk-bg-gradient-40deg-92″></span>

<span class=”brk-svg-pattern-container brk-svg-pattern-container_top” style=”height: 750px;”>
<svg xmlns=”http://www.w3.org/2000/svg” xmlns:xlink=”http://www.w3.org/1999/xlink” viewBox=”0 0 2014 755″
style=”top: -10px; left: -65px; width: calc(100% + 100px);”>
<defs>
<path id=”footer-path-id-1″
d=”M-55 9101s-64.59 843.48 49.67 740.9c114.26-102.57 360.5-86.27 681.26-104.04 320.75-17.77 501.91-155.63 694.2-405.18C1562.42 9083.14 1940 9124.6 1940 9124.6V9096z”
/>
</defs>
<g>
<g transform=”translate(74 -9096)”>
<use fill=”#fff” xlink:href=”#footer-path-id-1″/>
</g>
</g>
</svg>
</span>

<div class=”position-relative z-index-3 mb-70 w-100″>

<?php if ( get_theme_mod( ‘brk_footer_header’ ) ) { ?>
<div class=”text-center”>
<h4 class=”font__family-montserrat font__weight-light font__size-28 line__height-30 mb-10 brk-base-font-color<?php brk_preview_class( ‘footer-header’ ); ?>”>
<?php echo esc_html(get_theme_mod( ‘brk_footer_header’, esc_html__( ‘Read FAQ or’, ‘berserk’ ) ) ); ?>
</h4>
<?php if ( get_theme_mod( ‘brk_footer_subheader’ ) ) { ?>
<h3 class=”font__family-montserrat font__size-42 font__weight-bold line__height-46 mb-100<?php brk_preview_class( ‘footer-subheader’ ); ?>”>
<?php echo esc_html(get_theme_mod( ‘brk_footer_subheader’, esc_html__( ‘Contact Us’, ‘berserk’ ) ) ); ?>
</h3>
<?php } ?>
</div>
<?php } ?>

<div class=”container”>
<div class=”row”>
<div class=”col-12 col-lg-7″>

<div class=”accordion accordion-rounded accordion-image accordion mb-50″ role=”tablist”
aria-multiselectable=”true”>

<?php

$faq_icons = array( ‘delicious’, ‘diamond’, ‘gg’ );
$faq_cat_id = intval( get_theme_mod( ‘brk_footer_faq_cat’, ‘0’ ) );
$faq_tax_query = ”;
if ( $faq_cat_id != 0 ) {
$faq_tax_query = array(
array(
‘taxonomy’ => ‘faq_cat’,
‘field’ => ‘id’,
‘terms’ => array( $faq_cat_id ),
),
);
}
$faq_args = array(
‘post_type’ => ‘brs_faq’,
‘posts_per_page’ => 5,
‘ignore_sticky_posts’ => true,
‘tax_query’ => $faq_tax_query,
);
$faq_query = new WP_Query( $faq_args );

?>
<?php if ( $faq_query->have_posts() ) : ?>
<?php while ( $faq_query->have_posts() ) : $faq_query->the_post(); ?>
<?php
$counter = $faq_query->current_post % 3;
$expanded = ”;
$show = ”;
if ( $faq_query->current_post == 0 ) {
$expanded = ‘ expanded’;
$show = ‘ show’;
}
$faq_icon = $faq_icons[ $counter ];
?>
<div class=”card<?php echo esc_attr( $expanded ); ?>”>
<div class=”card-header text-left” role=”tab”
id=”faq-heading-<?php the_ID(); ?>”>
<h5 class=”mb-0 font__family-montserrat font__weight-semibold letter-spacing-20 font__size-16 line__height-16 brk-base-font-color text-uppercase”>
<a class=”font__weight-medium card-title” data-toggle=”collapse”
data-parent=”.accordion-image”
href=”#faq-collapse-<?php the_ID(); ?>” aria-expanded=”true”
aria-controls=”faq-collapse-<?php the_ID(); ?>”>
<i class=”fab fa-<?php echo esc_attr( $faq_icon ); ?>”></i>
<?php echo esc_html( get_the_title() ); ?>
</a>
</h5>
<a class=”card-toggle-icon” data-toggle=”collapse”
data-parent=”.accordion-image” href=”#faq-collapse-<?php the_ID(); ?>”
aria-expanded=”true” aria-controls=”faq-collapse-<?php the_ID(); ?>”>
<span class=”arrow”></span>
</a>
</div>

<div id=”faq-collapse-<?php the_ID(); ?>”
class=”collapse<?php echo esc_attr( $show ); ?>” role=”tabpanel”
aria-labelledby=”faq-heading-<?php the_ID(); ?>”>
<div class=”card-block text-left all-light font__family-open-sans brk-bgi-1 brk-bg-pattern”>
<span class=”full__size-absolute brk-bg-grad opacity-90″></span>
<div class=”row”>
<div class=”col-12″>
<?php the_content(); ?>
</div>
</div>
</div>
</div>
</div>

<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>

</div>

</div>

<div class=”col-12 col-lg-5″>
<article class=”brk-form_footer-14″>
<?php if ( get_theme_mod( ‘brk_footer_form_header’ ) ) { ?>
<h6 class=”brk-white-font-color font__size-18 font__weight-bold line__height-18<?php brk_preview_class( ‘footer-form-header’ ); ?>”>
<?php echo esc_html(get_theme_mod( ‘brk_footer_form_header’ )); ?>
</h6>
<?php } ?>
<?php if ( get_theme_mod( ‘brk_footer_form_subheader’ ) ) { ?>
<h6 class=”brk-white-font-color font__family-montserrat font__size-36 font__weight-normal line__height-40 text-uppercase mb-10<?php brk_preview_class( ‘footer-form-subheader’ ); ?>”>
<?php echo esc_html(get_theme_mod( ‘brk_footer_form_subheader’ )); ?>
</h6>
<?php } ?>

<?php if ( get_theme_mod( ‘brk_footer_contact_form_14’ ) ) {
/** inc/tags/contact_form.php */
brk_contact_form( get_theme_mod( ‘brk_footer_contact_form_14’ ) );
} ?>

</article>
</div>
</div>
</div>
</div>

<div class=”text-align: center”>
<div class=”container”>
<div class=”row”>

<div class=”col-12 col-md-4″>
<?php if ( get_theme_mod( ‘brk_phone’ ) ) { ?>
<div class=”text-center te d-flex flex-column mb-50″>
<div class=”icon__cover”>
<a href=”#” class=”icon__btn icon__btn-sm icon__btn-anim icon__btn_clear”>
<i class=”fas fa-phone”></i>
<span class=”before”></span>
<span class=”after”></span>
</a>
</div>
<p class=”brk-white-font-color font__family-montserrat font__size-24 line__height-24 mb-15 font__weight-semibold”>
<?php esc_html_e( ‘Phone’, ‘berserk’ ); ?>
</p>
<a href=”tel:<?php echo brk_sanitize_phone( get_theme_mod( ‘brk_phone’ ) ); ?>”
class=”brk-white-font-color font__family-open-sans font__size-24 line__height-32″><?php echo esc_html(get_theme_mod( ‘brk_phone’ )); ?></a>
</div>
<?php } ?>
</div>

<div class=”col-12 col-md-4″>
<?php if ( get_theme_mod( ‘brk_address’ ) ) { ?>
<div class=”text-center d-flex flex-column mb-50″>
<div class=”icon__cover”>
<a href=”#” class=”icon__btn icon__btn-sm icon__btn-anim icon__btn_clear”>
<i class=”fas fa-map-marker”></i>
<span class=”before”></span>
<span class=”after”></span>
</a>
</div>
<p class=”brk-white-font-color font__family-montserrat font__size-24 line__height-24 mb-15 font__weight-semibold”>
<?php esc_html_e( ‘Address’, ‘berserk’ ); ?>
</p>
<p class=”brk-white-font-color font__family-open-sans font__size-24 line__height-32″>
<?php echo nl2br( get_theme_mod( ‘brk_address’ ) ); ?>
</p>
</div>
<?php } ?>
</div>

<div class=”col-12 col-md-4″>
<?php if ( get_theme_mod( ‘brk_email’ ) ) { ?>
<div class=”text-center d-flex flex-column mb-50″>
<div class=”icon__cover”>
<a href=”#” class=”icon__btn icon__btn-sm icon__btn-anim icon__btn_clear”>
<i class=”fas fa-envelope”></i>
<span class=”before”></span>
<span class=”after”></span>
</a>
</div>
<p class=”brk-white-font-color font__family-montserrat font__size-24 line__height-24 mb-15 font__weight-semibold”><?php esc_html_e( ‘Email’, ‘berserk’ ); ?></p>
<a href=”mailto:<?php echo esc_attr( antispambot( get_theme_mod( ‘brk_email’ ) ) ); ?>”
class=”brk-white-font-color font__family-open-sans font__size-24 line__height-32″><?php echo esc_html( antispambot( get_theme_mod( ‘brk_email’ ) ) ); ?></a>
</div>
<?php } ?>
</div>

<?php if ( get_theme_mod( ‘brk_footer_copyright’ ) ) { ?>
<hr class=”horiz-line mt-0 mb-20″>
<div class=”text-center mb-25 w-100″>
<p class=”brk-white-font-color font__family-open-sans font__size-14<?php brk_preview_class( ‘footer-copyright’ ); ?>”><?php echo brk_specialchars_decode( get_theme_mod( ‘brk_footer_copyright’ ) ); ?></p>
</div>
<?php } ?>

</div>
</div>
</div>
</div>
</footer>