HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/www/wp-content/plugins/neobeat-core/inc/header/dashboard/meta/header-meta.php
<?php

if ( ! function_exists( 'neobeat_core_add_page_header_meta_box' ) ) {
	/**
	 * Function that add general options for this module
	 */
	function neobeat_core_add_page_header_meta_box( $page ) {

		if ( $page ) {

			$header_tab = $page->add_tab_element(
				array(
					'name'        => 'tab-header',
					'icon'        => 'fa fa-cog',
					'title'       => esc_html__( 'Header Settings', 'neobeat-core' ),
					'description' => esc_html__( 'Header layout settings', 'neobeat-core' )
				)
			);

			$header_tab->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_header_layout',
					'title'       => esc_html__( 'Header Layout', 'neobeat-core' ),
					'description' => esc_html__( 'Choose a header layout to set for your website', 'neobeat-core' ),
					'args'        => array( 'images' => true ),
					'options'     => neobeat_core_header_radio_to_select_options( apply_filters( 'neobeat_core_filter_header_layout_option', $header_layout_options = array() ) )
				)
			);

			$header_tab->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_header_skin',
					'title'       => esc_html__( 'Header Skin', 'neobeat-core' ),
					'description' => esc_html__( 'Choose a predefined header style for header elements', 'neobeat-core' ),
					'options'     => array(
						''      => esc_html__( 'Default', 'neobeat-core' ),
						'none'  => esc_html__( 'None', 'neobeat-core' ),
						'light' => esc_html__( 'Light', 'neobeat-core' ),
						'dark'  => esc_html__( 'Dark', 'neobeat-core' )
					)
				)
			);

			$header_tab->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_header_scroll_appearance',
					'title'       => esc_html__( 'Header Scroll Appearance', 'neobeat-core' ),
					'description' => esc_html__( 'Choose how header will act on scroll', 'neobeat-core' ),
					'options'     => apply_filters( 'neobeat_core_filter_header_scroll_appearance_option', $header_scroll_appearance_options = array(
						''     => esc_html__( 'Default', 'neobeat-core' ),
						'none' => esc_html__( 'None', 'neobeat-core' )
					) )
				)
			);

			$header_tab->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_show_header_widget_areas',
					'title'         => esc_html__( 'Show Header Widget Areas', 'neobeat-core' ),
					'description'   => esc_html__( 'Choose if you want to show or hide header widget areas', 'neobeat-core' ),
					'default_value' => 'yes'
				)
			);

			$custom_sidebars = neobeat_core_get_custom_sidebars();
			if ( ! empty( $custom_sidebars ) && count( $custom_sidebars ) > 1 ) {

				$section = $header_tab->add_section_element(
					array(
						'name'       => 'qodef_header_custom_widget_area_section',
						'dependency' => array(
							'show' => array(
								'qodef_show_header_widget_areas' => array(
									'values'        => 'yes',
									'default_value' => 'yes'
								)
							)
						)
					)
				);
				$section->add_field_element(
					array(
						'field_type'  => 'select',
						'name'        => 'qodef_header_custom_widget_area_one',
						'title'       => esc_html__( 'Choose Custom Header Widget Area One', 'neobeat-core' ),
						'description' => esc_html__( 'Choose custom widget area to display in header widget area one', 'neobeat-core' ),
						'options'     => $custom_sidebars
					)
				);
				$section->add_field_element(
					array(
						'field_type'  => 'select',
						'name'        => 'qodef_header_custom_widget_area_two',
						'title'       => esc_html__( 'Choose Custom Header Widget Area Two', 'neobeat-core' ),
						'description' => esc_html__( 'Choose custom widget area to display in header widget area two', 'neobeat-core' ),
						'options'     => $custom_sidebars
					)
				);

				// Hook to include additional options after module options
				do_action( 'neobeat_core_action_after_custom_widget_area_header_meta_map', $section, $custom_sidebars );
			}

			// Hook to include additional options after module options
			do_action( 'neobeat_core_action_after_page_header_meta_map', $header_tab );
		}
	}

	add_action( 'neobeat_core_action_after_general_meta_box_map', 'neobeat_core_add_page_header_meta_box' );
	add_action( 'neobeat_core_action_after_portfolio_meta_box_map', 'neobeat_core_add_page_header_meta_box' );
}

if ( ! function_exists( 'neobeat_core_add_general_header_meta_box_callback' ) ) {
	/**
	 * Function that set current meta box callback as general callback functions
	 *
	 * @param array $callbacks
	 *
	 * @return array
	 */
	function neobeat_core_add_general_header_meta_box_callback( $callbacks ) {
		$callbacks['header'] = 'neobeat_core_add_page_header_meta_box';
		
		return $callbacks;
	}
	
	add_filter( 'neobeat_core_filter_general_meta_box_callbacks', 'neobeat_core_add_general_header_meta_box_callback' );
}