HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpbiancoarte/wp-content/plugins/hiroshi-core/inc/header/layouts/vertical/helper.php
<?php

if ( ! function_exists( 'hiroshi_core_add_vertical_header_global_option' ) ) {
	/**
	 * This function set header type value for global header option map
	 */
	function hiroshi_core_add_vertical_header_global_option( $header_layout_options ) {
		$header_layout_options['vertical'] = array(
			'image' => HIROSHI_CORE_HEADER_LAYOUTS_URL_PATH . '/vertical/assets/img/vertical-header.png',
			'label' => esc_html__( 'Vertical', 'hiroshi-core' ),
		);

		return $header_layout_options;
	}

	add_filter( 'hiroshi_core_filter_header_layout_option', 'hiroshi_core_add_vertical_header_global_option' );
}

if ( ! function_exists( 'hiroshi_core_register_vertical_header_layout' ) ) {
	/**
	 * Function which add header layout into global list
	 *
	 * @param array $header_layouts
	 *
	 * @return array
	 */
	function hiroshi_core_register_vertical_header_layout( $header_layouts ) {
		$header_layouts['vertical'] = 'HiroshiCore_Vertical_Header';

		return $header_layouts;
	}

	add_filter( 'hiroshi_core_filter_register_header_layouts', 'hiroshi_core_register_vertical_header_layout' );
}

if ( ! function_exists( 'hiroshi_core_vertical_header_nav_menu_grid' ) ) {
	/**
	 * Function which set grid class name for current header layout
	 *
	 * @param string $grid_class
	 *
	 * @return string
	 */
	function hiroshi_core_vertical_header_nav_menu_grid( $grid_class ) {
		$header = hiroshi_core_get_post_value_through_levels( 'qodef_header_layout' );

		if ( 'vertical' === $header ) {
			return false;
		}

		return $grid_class;
	}

	add_filter( 'hiroshi_core_filter_drop_down_grid', 'hiroshi_core_vertical_header_nav_menu_grid' );
}

if ( ! function_exists( 'hiroshi_core_register_vertical_menu' ) ) {
	/**
	 * Function which add additional main menu navigation into global list
	 *
	 * @param array $menus
	 *
	 * @return array
	 */
	function hiroshi_core_register_vertical_menu( $menus ) {
		$menus['vertical-menu-navigation'] = esc_html__( 'Vertical Navigation', 'hiroshi-core' );

		return $menus;
	}

	add_filter( 'hiroshi_filter_register_navigation_menus', 'hiroshi_core_register_vertical_menu' );
}

if ( ! function_exists( 'hiroshi_core_vertical_header_hide_top_area' ) ) {
	/**
	 * Function that set dependency option value for specific module layout
	 *
	 * @param array $options
	 *
	 * @return array
	 */
	function hiroshi_core_vertical_header_hide_top_area( $options ) {
		$options[] = 'vertical';

		return $options;
	}

	add_filter( 'hiroshi_core_filter_top_area_hide_option', 'hiroshi_core_vertical_header_hide_top_area' );
}

if ( ! function_exists( 'hiroshi_core_vertical_header_hide_scroll_appearance' ) ) {
	/**
	 * Function that set dependency option value for specific module layout
	 *
	 * @param array $options
	 *
	 * @return array
	 */
	function hiroshi_core_vertical_header_hide_scroll_appearance( $options ) {
		$options[] = 'vertical';

		return $options;
	}

	add_filter( 'hiroshi_core_filter_header_scroll_appearance_hide_option', 'hiroshi_core_vertical_header_hide_scroll_appearance' );
}