51 lines
2.1 KiB
PHP
51 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* Footer Layout 4
|
|
*
|
|
* @package Astra
|
|
* @since Astra 1.0.12
|
|
*/
|
|
|
|
/**
|
|
* Hide advanced footer markup if:
|
|
*
|
|
* - User is not logged in. [AND]
|
|
* - All widgets are not active.
|
|
*/
|
|
if ( ! is_user_logged_in() ) {
|
|
if (
|
|
! is_active_sidebar( 'advanced-footer-widget-1' ) &&
|
|
! is_active_sidebar( 'advanced-footer-widget-2' ) &&
|
|
! is_active_sidebar( 'advanced-footer-widget-3' ) &&
|
|
! is_active_sidebar( 'advanced-footer-widget-4' )
|
|
) {
|
|
return;
|
|
}
|
|
}
|
|
|
|
$astra_footer_classes = array();
|
|
$astra_footer_classes[] = 'footer-adv';
|
|
$astra_footer_classes[] = 'footer-adv-layout-4';
|
|
$astra_footer_classes = implode( ' ', $astra_footer_classes );
|
|
?>
|
|
|
|
<div class="<?php echo esc_attr( $astra_footer_classes ); ?>">
|
|
<div class="footer-adv-overlay">
|
|
<div class="ast-container">
|
|
<div class="ast-row">
|
|
<div class="<?php echo wp_kses_post( astra_attr( 'ast-layout-4-grid' ) ); ?> footer-adv-widget footer-adv-widget-1" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-1' ) ); ?>>
|
|
<?php astra_get_footer_widget( 'advanced-footer-widget-1' ); ?>
|
|
</div>
|
|
<div class="<?php echo wp_kses_post( astra_attr( 'ast-layout-4-grid' ) ); ?> footer-adv-widget footer-adv-widget-2" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-2' ) ); ?>>
|
|
<?php astra_get_footer_widget( 'advanced-footer-widget-2' ); ?>
|
|
</div>
|
|
<div class="<?php echo wp_kses_post( astra_attr( 'ast-layout-4-grid' ) ); ?> footer-adv-widget footer-adv-widget-3" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-3' ) ); ?>>
|
|
<?php astra_get_footer_widget( 'advanced-footer-widget-3' ); ?>
|
|
</div>
|
|
<div class="<?php echo wp_kses_post( astra_attr( 'ast-layout-4-grid' ) ); ?> footer-adv-widget footer-adv-widget-4" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-4' ) ); ?>>
|
|
<?php astra_get_footer_widget( 'advanced-footer-widget-4' ); ?>
|
|
</div>
|
|
</div><!-- .ast-row -->
|
|
</div><!-- .ast-container -->
|
|
</div><!-- .footer-adv-overlay-->
|
|
</div><!-- .ast-theme-footer .footer-adv-layout-4 -->
|