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

if ( ! function_exists( 'neobeat_core_add_logo_options' ) ) {
	function neobeat_core_add_logo_options() {
		$qode_framework = qode_framework_get_framework_root();

		$page = $qode_framework->add_options_page(
			array(
				'scope'       => NEOBEAT_CORE_OPTIONS_NAME,
				'type'        => 'admin',
				'slug'        => 'logo',
				'icon'        => 'fa fa-cog',
				'title'       => esc_html__( 'Logo', 'neobeat-core' ),
				'description' => esc_html__( 'Global Logo Options', 'neobeat-core' ),
				'layout'      => 'tabbed'
			)
		);

		if ( $page ) {

			$header_tab = $page->add_tab_element(
				array(
					'name'        => 'tab-header',
					'icon'        => 'fa fa-cog',
					'title'       => esc_html__( 'Header Logo Options', 'neobeat-core' ),
					'description' => esc_html__( 'Set options for initial headers', 'neobeat-core' )
				)
			);

			$header_tab->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_tab->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' ),
					'default_value' => defined( 'NEOBEAT_ASSETS_ROOT' ) ? NEOBEAT_ASSETS_ROOT . '/img/logo.png' : '',
					'multiple'      => 'no'
				)
			);

			$header_tab->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_tab->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_header_logo_options_map', $page, $header_tab );
		}
	}

	add_action( 'neobeat_core_action_default_options_init', 'neobeat_core_add_logo_options', neobeat_core_get_admin_options_map_position( 'logo' ) );
}