summaryrefslogtreecommitdiff
path: root/template-parts/header/builder/desktop-builder-layout.php
diff options
context:
space:
mode:
Diffstat (limited to 'template-parts/header/builder/desktop-builder-layout.php')
-rw-r--r--template-parts/header/builder/desktop-builder-layout.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/template-parts/header/builder/desktop-builder-layout.php b/template-parts/header/builder/desktop-builder-layout.php
new file mode 100644
index 0000000..f16bc97
--- /dev/null
+++ b/template-parts/header/builder/desktop-builder-layout.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * Template part for displaying header row.
+ *
+ * @package Astra Builder
+ */
+
+$mobile_header_type = astra_get_option( 'mobile-header-type' );
+
+if ( 'full-width' === $mobile_header_type ) {
+
+ $mobile_header_type = 'off-canvas';
+}
+?>
+<div id="ast-desktop-header" data-toggle-type="<?php echo esc_attr( $mobile_header_type ); ?>">
+ <?php
+ astra_main_header_bar_top();
+
+ /**
+ * Astra Top Header
+ */
+ do_action( 'astra_above_header' );
+
+ /**
+ * Astra Main Header
+ */
+ do_action( 'astra_primary_header' );
+
+ /**
+ * Astra Bottom Header
+ */
+ do_action( 'astra_below_header' );
+
+ astra_main_header_bar_bottom();
+ ?>
+<?php
+if ( 'dropdown' === $mobile_header_type || is_customize_preview() ) {
+ $content_alignment = astra_get_option( 'header-offcanvas-content-alignment', 'flex-start' );
+ $alignment_class = 'content-align-' . $content_alignment . ' ';
+ ?>
+ <div class="ast-desktop-header-content <?php echo esc_attr( $alignment_class ); ?>">
+ <?php do_action( 'astra_desktop_header_content', 'popup', 'content' ); ?>
+ </div>
+<?php } ?>
+</div> <!-- Main Header Bar Wrap -->
+<?php
+/**
+ * Astra Mobile Header
+ */
+do_action( 'astra_mobile_header' );
+?>