From 9d4123cee1867ee7199b06bdc92d40611f547ecc Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 21 Jul 2021 14:54:07 -0500 Subject: Initial unmodified import from Astra (Version: 3.6.5) @ /wp-content/themes/astra/. --- template-parts/footer/builder/components.php | 166 +++++++++++++++++++++ .../footer/builder/desktop-builder-layout.php | 46 ++++++ template-parts/footer/builder/footer-row.php | 77 ++++++++++ template-parts/footer/footer-sml-layout-2.php | 64 ++++++++ template-parts/footer/footer-sml-layout.php | 40 +++++ template-parts/footer/index.php | 9 ++ 6 files changed, 402 insertions(+) create mode 100644 template-parts/footer/builder/components.php create mode 100644 template-parts/footer/builder/desktop-builder-layout.php create mode 100644 template-parts/footer/builder/footer-row.php create mode 100644 template-parts/footer/footer-sml-layout-2.php create mode 100644 template-parts/footer/footer-sml-layout.php create mode 100644 template-parts/footer/index.php (limited to 'template-parts/footer') diff --git a/template-parts/footer/builder/components.php b/template-parts/footer/builder/components.php new file mode 100644 index 0000000..87d0778 --- /dev/null +++ b/template-parts/footer/builder/components.php @@ -0,0 +1,166 @@ +=' ) ) { + + $component_slug = wp_parse_args( $args, array( 'type' => '' ) ); + $component_slug = $component_slug['type']; +} else { + + $component_slug = get_query_var( 'type' ); +} + +switch ( $component_slug ) { + + case 'copyright': + ?> + + + + + + + + + + + + + + + + + + + + diff --git a/template-parts/footer/builder/desktop-builder-layout.php b/template-parts/footer/builder/desktop-builder-layout.php new file mode 100644 index 0000000..ef93064 --- /dev/null +++ b/template-parts/footer/builder/desktop-builder-layout.php @@ -0,0 +1,46 @@ + + diff --git a/template-parts/footer/builder/footer-row.php b/template-parts/footer/builder/footer-row.php new file mode 100644 index 0000000..de0198b --- /dev/null +++ b/template-parts/footer/builder/footer-row.php @@ -0,0 +1,77 @@ +=' ) ) { + + $row = wp_parse_args( $args, array( 'row' => '' ) ); + $row = $row['row']; +} else { + + $row = get_query_var( 'row' ); +} + +if ( Astra_Builder_Helper::is_footer_row_empty( $row ) ) { + + $option = ( 'above' === $row ) ? 'hba' : ( ( 'below' === $row ) ? 'hbb' : 'hb' ); + $columns = astra_get_option( $option . '-footer-column' ); + $layout = astra_get_option( $option . '-footer-layout' ); + $stack_layout = astra_get_option( $option . '-stack' ); + + $desk_layout = ( isset( $layout['desktop'] ) ) ? $layout['desktop'] : 'full'; + $tab_layout = ( isset( $layout['tablet'] ) ) ? $layout['tablet'] : 'full'; + $mob_layout = ( isset( $layout['mobile'] ) ) ? $layout['mobile'] : 'full'; + + $desk_stack_layout = ( isset( $stack_layout['desktop'] ) ) ? $stack_layout['desktop'] : 'stack'; + $tab_stack_layout = ( isset( $stack_layout['tablet'] ) ) ? $stack_layout['tablet'] : 'stack'; + $mob_stack_layout = ( isset( $stack_layout['mobile'] ) ) ? $stack_layout['mobile'] : 'stack'; + + $classes = array( + 'site-' . esc_attr( $row ) . '-footer-wrap', + 'ast-builder-grid-row-container', + 'site-footer-focus-item', + 'ast-builder-grid-row-' . esc_attr( $desk_layout ), + 'ast-builder-grid-row-tablet-' . esc_attr( $tab_layout ), + 'ast-builder-grid-row-mobile-' . esc_attr( $mob_layout ), + 'ast-footer-row-' . esc_attr( $desk_stack_layout ), + 'ast-footer-row-tablet-' . esc_attr( $tab_stack_layout ), + 'ast-footer-row-mobile-' . esc_attr( $mob_stack_layout ), + ); + ?> +
+
+ + + +
+ +
+ diff --git a/template-parts/footer/footer-sml-layout-2.php b/template-parts/footer/footer-sml-layout-2.php new file mode 100644 index 0000000..65916e3 --- /dev/null +++ b/template-parts/footer/footer-sml-layout-2.php @@ -0,0 +1,64 @@ + + + diff --git a/template-parts/footer/footer-sml-layout.php b/template-parts/footer/footer-sml-layout.php new file mode 100644 index 0000000..0fb6592 --- /dev/null +++ b/template-parts/footer/footer-sml-layout.php @@ -0,0 +1,40 @@ + + + diff --git a/template-parts/footer/index.php b/template-parts/footer/index.php new file mode 100644 index 0000000..8b96815 --- /dev/null +++ b/template-parts/footer/index.php @@ -0,0 +1,9 @@ +