Your IP : 3.149.230.241


Current Path : /home/ephorei/www/wp-includes/images/media/q2m9hb/
Upload File :
Current File : /home/ephorei/www/wp-includes/images/media/q2m9hb/header.tar

header-main-layout.php000064400000001543150061522740010747 0ustar00<?php
/**
 * Template for Primary Header
 *
 * The header layout 2 for Astra Theme. ( No of sections - 1 [ Section 1 limit - 3 )
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @see https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package     Astra
 * @link        https://wpastra.com/
 * @since       Astra 1.0.0
 */

?>

<div class="main-header-bar-wrap">
	<div <?php echo wp_kses_post( astra_attr( 'main-header-bar' ) ); ?>>
		<?php astra_main_header_bar_top(); ?>
		<div class="ast-container">

			<div class="ast-flex main-header-container">
				<?php astra_masthead_content(); ?>
			</div><!-- Main Header Container -->
		</div><!-- ast-row -->
		<?php astra_main_header_bar_bottom(); ?>
	</div> <!-- Main Header Bar -->
</div> <!-- Main Header Bar Wrap -->
index.php000064400000000157150061522740006371 0ustar00<?php
/**
 * Index file
 *
 * @package Astra
 * @since Astra 1.0.0
 */

/* Silence is golden, and we agree. */
builder/mobile-header-row.php000064400000007517150061522740012221 0ustar00<?php
/**
 * Template part for displaying a row of the mobile header
 *
 * @package Astra Builder
 */

$astra_row = get_query_var( 'row' );
if ( astra_wp_version_compare( '5.4.99', '>=' ) ) {
	$astra_row = wp_parse_args( $args, array( 'row' => '' ) );
	$astra_row = isset( $astra_row['row'] ) ? $astra_row['row'] : '';
}

if ( Astra_Builder_Helper::is_row_empty( $astra_row, 'header', 'mobile' ) ) {

	$astra_customizer_editor_row        = 'section-' . esc_attr( $astra_row ) . '-header-builder';
	$astra_is_transparent_header_enable = astra_get_option( 'transparent-header-enable' );

	if ( 'primary' === $astra_row && $astra_is_transparent_header_enable ) {
		$astra_customizer_editor_row = 'section-transparent-header';
	}

	$astra_row_label = ( 'primary' === $astra_row ) ? 'main' : $astra_row;
	?>
	<div class="ast-<?php echo esc_attr( $astra_row_label ); ?>-header-wrap <?php echo 'primary' === $astra_row ? 'main-header-bar-wrap' : ''; ?>" >
		<div class="<?php echo esc_attr( 'ast-' . $astra_row . '-header-bar ast-' . $astra_row . '-header ' ); ?><?php echo 'primary' === $astra_row ? 'main-header-bar ' : ''; ?>site-<?php echo esc_attr( $astra_row ); ?>-header-wrap site-header-focus-item ast-builder-grid-row-layout-default ast-builder-grid-row-tablet-layout-default ast-builder-grid-row-mobile-layout-default" data-section="<?php echo esc_attr( $astra_customizer_editor_row ); ?>">
				<?php
				if ( is_customize_preview() ) {
					Astra_Builder_UI_Controller::render_grid_row_customizer_edit_button( 'Header', $astra_row );
				}
				/**
				 * Astra Render before Site Content.
				 */
				do_action( "astra_header_{$astra_row}_container_before" );
				?>
					<div class="ast-builder-grid-row <?php echo Astra_Builder_Helper::has_mobile_side_columns( $astra_row ) ? 'ast-builder-grid-row-has-sides' : 'ast-grid-center-col-layout-only ast-flex'; ?> <?php echo Astra_Builder_Helper::has_mobile_center_column( $astra_row ) ? 'ast-grid-center-col-layout' : 'ast-builder-grid-row-no-center'; ?>">
						<?php if ( Astra_Builder_Helper::has_mobile_side_columns( $astra_row ) ) { ?>
							<div class="site-header-<?php echo esc_attr( $astra_row ); ?>-section-left site-header-section ast-flex site-header-section-left">
								<?php
								/**
								 * Astra Render Header Column
								 */
								do_action( 'astra_render_mobile_header_column', $astra_row, 'left' );

								if ( Astra_Builder_Helper::has_mobile_center_column( $astra_row ) ) {
									/**
									 * Astra Render Header Column
									 */
									do_action( 'astra_render_mobile_header_column', $astra_row, 'left_center' );
								}
								?>
							</div>
						<?php } ?>
						<?php if ( Astra_Builder_Helper::has_mobile_center_column( $astra_row ) ) { ?>
							<div class="site-header-<?php echo esc_attr( $astra_row ); ?>-section-center site-header-section ast-flex ast-grid-section-center">
								<?php
								/**
								 * Astra Render Header Column
								 */
								do_action( 'astra_render_mobile_header_column', $astra_row, 'center' );
								?>
							</div>
						<?php } ?>
						<?php if ( Astra_Builder_Helper::has_mobile_side_columns( $astra_row ) ) { ?>
							<div class="site-header-<?php echo esc_attr( $astra_row ); ?>-section-right site-header-section ast-flex ast-grid-right-section">
								<?php
								if ( Astra_Builder_Helper::has_mobile_center_column( $astra_row ) ) {
									/**
									 * Astra Render Header Column
									 */
									do_action( 'astra_render_mobile_header_column', $astra_row, 'right_center' );
								}
								/**
								 * Astra Render Header Column
								 */
								do_action( 'astra_render_mobile_header_column', $astra_row, 'right' );
								?>
							</div>
						<?php } ?>
					</div>
				<?php
				/**
				 * Astra Render after Site Content.
				 */
				do_action( "astra_header_{$astra_row}_container_after" );
				?>
		</div>
	</div>
	<?php
}
builder/mobile-builder-layout.php000064400000003236150061522740013117 0ustar00<?php
/**
 * Template part for displaying the Mobile Header
 *
 * @package Astra Builder
 */

$astra_mobile_header_type = astra_get_option( 'mobile-header-type' );

if ( 'full-width' === $astra_mobile_header_type ) {

	$astra_mobile_header_type = 'off-canvas';
}

?>
<div id="ast-mobile-header" class="ast-mobile-header-wrap " data-type="<?php echo esc_attr( $astra_mobile_header_type ); ?>">
	<?php
	do_action( 'astra_mobile_header_bar_top' );

	/**
	 * Astra Top Header
	 */
	do_action( 'astra_mobile_above_header' );

	/**
	 * Astra Main Header
	 */
	do_action( 'astra_mobile_primary_header' );

	/**
	 * Astra Mobile Bottom Header
	 */
	do_action( 'astra_mobile_below_header' );

	astra_main_header_bar_bottom();
		
	// Disable toggle menu if the toggle menu button is not exists in the mobile header items.	
	$header_mobile_items = astra_get_option( 'header-mobile-items', array() );
	array_walk_recursive(
		$header_mobile_items,
		function( string $value ) use ( &$show_mobile_toggle_menu ) {
			if ( 'mobile-trigger' === $value ) {
				$show_mobile_toggle_menu = true;
			}
		}
	);

	if ( $show_mobile_toggle_menu ) {
		if ( ( 'dropdown' === astra_get_option( 'mobile-header-type' ) && Astra_Builder_Helper::is_component_loaded( 'mobile-trigger', 'header' ) ) || is_customize_preview() ) {
			$astra_content_alignment = astra_get_option( 'header-offcanvas-content-alignment', 'flex-start' );
			$astra_alignment_class   = 'content-align-' . $astra_content_alignment . ' ';
			?>
			<div class="ast-mobile-header-content <?php echo esc_attr( $astra_alignment_class ); ?>">
				<?php do_action( 'astra_mobile_header_content', 'popup', 'content' ); ?>
			</div>
			<?php
		}
	}
	?>
</div>
builder/header-row.php000064400000010345150061522740010745 0ustar00<?php
/**
 * Template part for displaying the a row of the header
 *
 * @package Astra Builder
 */

$astra_header_row = get_query_var( 'row' );
if ( astra_wp_version_compare( '5.4.99', '>=' ) ) {
	$astra_header_row = wp_parse_args( $args, array( 'row' => '' ) );
	$astra_header_row = isset( $astra_header_row['row'] ) ? $astra_header_row['row'] : '';
}

if ( Astra_Builder_Helper::is_row_empty( $astra_header_row, 'header', 'desktop' ) ) {

	$astra_customizer_editor_row = 'section-' . esc_attr( $astra_header_row ) . '-header-builder';

	$astra_row_label = ( 'primary' === $astra_header_row ) ? 'main' : $astra_header_row;

	?>
	<div class="ast-<?php echo esc_attr( $astra_row_label ); ?>-header-wrap <?php echo 'primary' === $astra_header_row ? 'main-header-bar-wrap' : ''; ?> ">
		<div class="<?php echo esc_attr( 'ast-' . $astra_header_row . '-header-bar ast-' . $astra_header_row . '-header' ); ?> <?php echo 'primary' === $astra_header_row ? 'main-header-bar' : ''; ?> site-header-focus-item" data-section="<?php echo esc_attr( $astra_customizer_editor_row ); ?>">
			<?php
			if ( is_customize_preview() ) {
				Astra_Builder_UI_Controller::render_grid_row_customizer_edit_button( 'Header', $astra_header_row );
			}
			/**
			 * Astra Render before Site Content.
			 */
			do_action( "astra_header_{$astra_header_row}_container_before" );
			?>
			<div class="site-<?php echo esc_attr( $astra_header_row ); ?>-header-wrap ast-builder-grid-row-container site-header-focus-item ast-container" data-section="<?php echo esc_attr( $astra_customizer_editor_row ); ?>">
				<div class="ast-builder-grid-row <?php echo Astra_Builder_Helper::has_side_columns( $astra_header_row ) ? 'ast-builder-grid-row-has-sides' : 'ast-grid-center-col-layout-only ast-flex'; ?> <?php echo Astra_Builder_Helper::has_center_column( $astra_header_row ) ? 'ast-grid-center-col-layout' : 'ast-builder-grid-row-no-center'; ?>">
					<?php if ( Astra_Builder_Helper::has_side_columns( $astra_header_row ) ) { ?>
						<div class="site-header-<?php echo esc_attr( $astra_header_row ); ?>-section-left site-header-section ast-flex site-header-section-left">
							<?php
								/**
								 * Astra Render Header Column
								 */
								do_action( 'astra_render_header_column', $astra_header_row, 'left' );
							if ( Astra_Builder_Helper::has_center_column( $astra_header_row ) ) {
								?>
										<div class="site-header-<?php echo esc_attr( $astra_header_row ); ?>-section-left-center site-header-section ast-flex ast-grid-left-center-section">
									<?php
									/**
									 * Astra Render Header Column
									 */
									do_action( 'astra_render_header_column', $astra_header_row, 'left_center' );
									?>
										</div>
									<?php
							}
							?>
						</div>
						<?php } ?>
						<?php if ( Astra_Builder_Helper::has_center_column( $astra_header_row ) ) { ?>
							<div class="site-header-<?php echo esc_attr( $astra_header_row ); ?>-section-center site-header-section ast-flex ast-grid-section-center">
								<?php
								/**
								 * Astra Render Header Column
								 */
								do_action( 'astra_render_header_column', $astra_header_row, 'center' );
								?>
							</div>
						<?php } ?>
						<?php if ( Astra_Builder_Helper::has_side_columns( $astra_header_row ) ) { ?>
							<div class="site-header-<?php echo esc_attr( $astra_header_row ); ?>-section-right site-header-section ast-flex ast-grid-right-section">
								<?php
								if ( Astra_Builder_Helper::has_center_column( $astra_header_row ) ) {
									?>
									<div class="site-header-<?php echo esc_attr( $astra_header_row ); ?>-section-right-center site-header-section ast-flex ast-grid-right-center-section">
										<?php
										/**
										 * Astra Render Header Column
										 */
										do_action( 'astra_render_header_column', $astra_header_row, 'right_center' );
										?>
									</div>
									<?php
								}
								/**
								 * Astra Render Header Column
								 */
								do_action( 'astra_render_header_column', $astra_header_row, 'right' );
								?>
							</div>
						<?php } ?>
						</div>
					</div>
					<?php
					/**
					 * Astra Render after Site Content.
					 */
					do_action( "astra_header_{$astra_header_row}_container_after" );
					?>
			</div>
			</div>
	<?php
}
builder/desktop-builder-layout.php000064400000003271150061522740013320 0ustar00<?php
/**
 * Template part for displaying header row.
 *
 * @package Astra Builder
 */

$astra_mobile_header_type = astra_get_option( 'mobile-header-type' );

if ( 'full-width' === $astra_mobile_header_type ) {

	$astra_mobile_header_type = 'off-canvas';
}
?>
<div id="ast-desktop-header" data-toggle-type="<?php echo esc_attr( $astra_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();

	
	// Disable toggle menu if the toggle menu button is not exists in the desktop header items.	
	$header_desktop_items = astra_get_option( 'header-desktop-items', array() );
	array_walk_recursive(
		$header_desktop_items,
		function( string $value ) use ( &$show_desktop_toggle_menu ) {
			if ( 'mobile-trigger' === $value ) {
				$show_desktop_toggle_menu = true;
			}
		}
	);
	
	if ( $show_desktop_toggle_menu ) {
		if ( ( 'dropdown' === $astra_mobile_header_type && Astra_Builder_Helper::is_component_loaded( 'mobile-trigger', 'header' ) ) || is_customize_preview() ) {
			$astra_content_alignment = astra_get_option( 'header-offcanvas-content-alignment', 'flex-start' );
			$astra_alignment_class   = 'content-align-' . $astra_content_alignment . ' ';
			?>
			<div class="ast-desktop-header-content <?php echo esc_attr( $astra_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' );
?>
builder/components.php000064400000012556150061522740011103 0ustar00<?php
/**
 * Template part for header component.
 *
 * @package Astra
 */

$astra_header_component_args = array();
$astra_header_component_slug = get_query_var( 'type' );
if ( astra_wp_version_compare( '5.4.99', '>=' ) ) {
	$astra_header_component_args = wp_parse_args(
		$args,
		array(
			'type'   => '',
			'device' => '',
		)
	);
	$astra_header_component_slug = isset( $astra_header_component_args['type'] ) ? $astra_header_component_args['type'] : '';
}

$astra_active_device = isset( $astra_header_component_args['device'] ) ? $astra_header_component_args['device'] : '';

switch ( $astra_header_component_slug ) {

	case 'logo':
		?>
		<div class="ast-builder-layout-element ast-flex site-header-focus-item" data-section="title_tagline">
			<?php do_action( 'astra_site_identity', $astra_active_device ); ?>
		</div>
		<?php
		break;

	case 'button-1':
		?>
		<div class="ast-builder-layout-element ast-flex site-header-focus-item ast-header-button-1" data-section="section-hb-button-1">
			<?php do_action( 'astra_header_button_1' ); ?>
		</div>
		<?php
		break;

	case 'menu-1':
		?>
		<div class="ast-builder-menu-1 ast-builder-menu ast-flex ast-builder-menu-1-focus-item ast-builder-layout-element site-header-focus-item" data-section="section-hb-menu-1">
			<?php do_action( 'astra_header_menu_1', $astra_active_device ); ?>
		</div>
		<?php
		break;

	case 'menu-2':
		?>
		<div class="ast-builder-menu-2 ast-builder-menu ast-flex ast-builder-menu-2-focus-item ast-builder-layout-element site-header-focus-item" data-section="section-hb-menu-2">
			<?php do_action( 'astra_header_menu_2', $astra_active_device ); ?>
		</div>
		<?php
		break;

	case 'mobile-menu':
		?>
		<div class="ast-builder-menu-mobile ast-builder-menu ast-builder-menu-mobile-focus-item ast-builder-layout-element site-header-focus-item" data-section="section-header-mobile-menu">
			<?php do_action( 'astra_header_menu_mobile', $astra_active_device ); ?>
		</div>
		<?php
		break;

	case 'html-1':
		?>
		<div class="ast-builder-layout-element ast-flex site-header-focus-item ast-header-html-1" data-section="section-hb-html-1">
			<?php do_action( 'astra_header_html_1' ); ?>
		</div>
		<?php
		break;

	case 'html-2':
		?>
			<div class="ast-builder-layout-element ast-flex site-header-focus-item ast-header-html-2" data-section="section-hb-html-2">
				<?php do_action( 'astra_header_html_2' ); ?>
			</div>
			<?php
		break;

	case 'search':
		?>
		<div class="ast-builder-layout-element ast-flex site-header-focus-item ast-header-search" data-section="section-header-search">
			<?php do_action( 'astra_header_search', $args['device'] ); ?>
		</div>
		<?php
		break;

	case 'social-icons-1':
		?>
		<div class="ast-builder-layout-element ast-flex site-header-focus-item" data-section="section-hb-social-icons-1">
			<?php do_action( 'astra_header_social_1' ); ?>
		</div>
		<?php
		break;

	case 'mobile-trigger':
		if ( 'desktop' === $astra_active_device && ! defined( 'ASTRA_EXT_VER' ) ) {
			break;
		}
		?>
		<div class="ast-builder-layout-element ast-flex site-header-focus-item" data-section="section-header-mobile-trigger">
			<?php do_action( 'astra_header_mobile_trigger' ); ?>
		</div>
		<?php
		break;

	case 'account':
		?>
		<div class="ast-builder-layout-element site-header-focus-item ast-header-account" data-section="section-header-account">
			<?php do_action( 'astra_header_account' ); ?>
		</div>
		<?php
		break;

	case 'woo-cart':
		if ( class_exists( 'Astra_Woocommerce' ) ) {
			?>
			<div class="ast-builder-layout-element site-header-focus-item ast-header-woo-cart" data-section="section-header-woo-cart">
				<?php do_action( 'astra_header_woo_cart', $astra_active_device ); ?>
			</div>
			<?php
		}
		break;

	case 'edd-cart':
		if ( class_exists( 'Easy_Digital_Downloads' ) ) {
			?>
			<div class="ast-builder-layout-element site-header-focus-item ast-header-edd-cart" data-section="section-header-edd-cart">
				<?php do_action( 'astra_header_edd_cart' ); ?>
			</div>
			<?php
		}
		break;
	case 'widget-1':
		?>
		<aside
		<?php
		echo wp_kses_post(
			astra_attr(
				'header-widget-area-inner',
				array(
					'class'        => 'header-widget-area widget-area site-header-focus-item',
					'data-section' => 'sidebar-widgets-header-widget-1',
					'aria-label'   => 'Header Widget 1',
				)
			) 
		);
		?>
		>
			<?php
			if ( is_customize_preview() && class_exists( 'Astra_Builder_UI_Controller' ) ) {
				Astra_Builder_UI_Controller::render_customizer_edit_button();
			}
			?>
			<?php
			astra_markup_open( 'header-widget-div' );
			astra_get_sidebar( 'header-widget-1' );
			astra_markup_close( 'header-widget-div' );
			?>
		</aside>
			<?php
		break;
	case 'widget-2':
		?>
		<aside
		<?php
		echo wp_kses_post(
			astra_attr(
				'header-widget-area-inner',
				array(
					'class'        => 'header-widget-area widget-area site-header-focus-item',
					'data-section' => 'sidebar-widgets-header-widget-2',
					'aria-label'   => 'Header Widget 2',
				)
			) 
		);
		?>
		>
			<?php
			if ( is_customize_preview() && class_exists( 'Astra_Builder_UI_Controller' ) ) {
				Astra_Builder_UI_Controller::render_customizer_edit_button();
			}
			?>
			<?php
			astra_markup_open( 'header-widget-div' );
			astra_get_sidebar( 'header-widget-2' );
			astra_markup_close( 'header-widget-div' );
			?>
		</aside>
		<?php
		break;

	default:
		do_action( 'astra_render_header_components', $astra_header_component_slug, $astra_active_device );
		break;

}
?>