diff options
author | Zach van Rijn <me@zv.io> | 2021-07-21 14:54:07 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-07-21 14:54:07 -0500 |
commit | 9d4123cee1867ee7199b06bdc92d40611f547ecc (patch) | |
tree | 6d864e2725242863afed1f8ba12d9c7a9bc63a69 /template-parts/advanced-footer | |
download | blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.gz blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.bz2 blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.xz blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.zip |
Initial unmodified import from Astra (Version: 3.6.5) @ /wp-content/themes/astra/.
Diffstat (limited to 'template-parts/advanced-footer')
-rw-r--r-- | template-parts/advanced-footer/layout-4.php | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/template-parts/advanced-footer/layout-4.php b/template-parts/advanced-footer/layout-4.php new file mode 100644 index 0000000..91bf587 --- /dev/null +++ b/template-parts/advanced-footer/layout-4.php @@ -0,0 +1,50 @@ +<?php
+/**
+ * Footer Layout 4
+ *
+ * @package Astra Addon
+ * @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;
+ }
+}
+
+$classes[] = 'footer-adv';
+$classes[] = 'footer-adv-layout-4';
+$classes = implode( ' ', $classes );
+?>
+
+<div class="<?php echo esc_attr( $classes ); ?>">
+ <div class="footer-adv-overlay">
+ <div class="ast-container">
+ <div class="ast-row">
+ <div class="<?php echo 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 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 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 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 -->
|