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/logo-meta.php
<?php

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

		if ( $page ) {

			$logo_tab = $page->add_tab_element(
				array(
					'name'        => 'tab-logo',
					'icon'        => 'fa fa-cog',
					'title'       => esc_html__( 'Logo Settings', 'neobeat-core' ),
					'description' => esc_html__( 'Logo settings', 'neobeat-core' )
				)
			);

			$header_logo_section = $logo_tab->add_section_element(
				array(
					'name'  => 'qodef_header_logo_section',
					'title' => esc_html__( 'Header Logo Options', 'neobeat-core' ),
				)
			);

			$header_logo_section->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_logo_height',
					'title'       => esc_html__( 'Logo Height', 'neobeat-core' ),
					'description' => esc_html__( 'Enter logo height', 'neobeat-core' ),
					'args'        => array(
						'suffix' => esc_html__( 'px', 'neobeat-core' )
					)
				)
			);

			$header_logo_section->add_field_element(
				array(
					'field_type'  => 'image',
					'name'        => 'qodef_logo_main',
					'title'       => esc_html__( 'Logo - Main', 'neobeat-core' ),
					'description' => esc_html__( 'Choose main logo image', 'neobeat-core' ),
					'multiple'    => 'no'
				)
			);

			$header_logo_section->add_field_element(
				array(
					'field_type'  => 'image',
					'name'        => 'qodef_logo_dark',
					'title'       => esc_html__( 'Logo - Dark', 'neobeat-core' ),
					'description' => esc_html__( 'Choose dark logo image', 'neobeat-core' ),
					'multiple'    => 'no'
				)
			);

			$header_logo_section->add_field_element(
				array(
					'field_type'  => 'image',
					'name'        => 'qodef_logo_light',
					'title'       => esc_html__( 'Logo - Light', 'neobeat-core' ),
					'description' => esc_html__( 'Choose light logo image', 'neobeat-core' ),
					'multiple'    => 'no'
				)
			);

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

	add_action( 'neobeat_core_action_after_general_meta_box_map', 'neobeat_core_add_page_logo_meta_box' );
}

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