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

if ( ! function_exists( 'neobeat_core_add_page_title_options' ) ) {
	/**
	 * Function that add general options for this module
	 */
	function neobeat_core_add_page_title_options() {
		$qode_framework = qode_framework_get_framework_root();

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

		if ( $page ) {
			$page->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_enable_page_title',
					'title'         => esc_html__( 'Enable Page Title', 'neobeat-core' ),
					'description'   => esc_html__( 'Use this option to enable/disable page title', 'neobeat-core' ),
					'default_value' => 'yes'
				)
			);

			$page_title_section = $page->add_section_element(
				array(
					'name'       => 'qodef_page_title_section',
					'title'      => esc_html__( 'Title Area', 'neobeat-core' ),
					'dependency' => array(
						'hide' => array(
							'qodef_enable_page_title' => array(
								'values'        => 'no',
								'default_value' => ''
							)
						)
					)
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type'    => 'select',
					'name'          => 'qodef_title_layout',
					'title'         => esc_html__( 'Title Layout', 'neobeat-core' ),
					'description'   => esc_html__( 'Choose a title layout', 'neobeat-core' ),
					'options'       => apply_filters( 'neobeat_core_filter_title_layout_options', array() ),
					'default_value' => 'standard'
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_set_page_title_area_in_grid',
					'title'         => esc_html__( 'Page Title In Grid', 'neobeat-core' ),
					'description'   => esc_html__( 'Enabling this option will set page title area to be in grid', 'neobeat-core' ),
					'default_value' => 'yes'
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_page_title_height',
					'title'       => esc_html__( 'Height', 'neobeat-core' ),
					'description' => esc_html__( 'Enter title height', 'neobeat-core' ),
					'args'        => array(
						'suffix' => esc_html__( 'px', 'neobeat-core' )
					)
				)
			);
			
			$page_title_section->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_page_title_height_on_smaller_screens',
					'title'       => esc_html__( 'Height on Smaller Screens', 'neobeat-core' ),
					'description' => esc_html__( 'Enter title height to be displayed on smaller screens with active mobile header', 'neobeat-core' ),
					'args'        => array(
						'suffix' => esc_html__( 'px', 'neobeat-core' )
					)
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type'  => 'color',
					'name'        => 'qodef_page_title_background_color',
					'title'       => esc_html__( 'Background Color', 'neobeat-core' ),
					'description' => esc_html__( 'Enter page title area background color', 'neobeat-core' )
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type'  => 'image',
					'name'        => 'qodef_page_title_background_image',
					'title'       => esc_html__( 'Background Image', 'neobeat-core' ),
					'description' => esc_html__( 'Enter page title area background image', 'neobeat-core' )
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type' => 'select',
					'name'       => 'qodef_page_title_background_image_behavior',
					'title'      => esc_html__( 'Background Image Behavior', 'neobeat-core' ),
					'options'    => array(
						''           => esc_html__( 'Default', 'neobeat-core' ),
						'responsive' => esc_html__( 'Set Responsive Image', 'neobeat-core' ),
						'parallax'   => esc_html__( 'Set Parallax Image', 'neobeat-core' )
					)
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type' => 'color',
					'name'       => 'qodef_page_title_color',
					'title'      => esc_html__( 'Title Color', 'neobeat-core' )
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type'    => 'select',
					'name'          => 'qodef_page_title_tag',
					'title'         => esc_html__( 'Title Tag', 'neobeat-core' ),
					'description'   => esc_html__( 'Enabling this option will set title tag', 'neobeat-core' ),
					'options'       => neobeat_core_get_select_type_options_pool( 'title_tag', false ),
					'default_value' => 'h1'
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type'    => 'select',
					'name'          => 'qodef_page_title_text_alignment',
					'title'         => esc_html__( 'Text Alignment', 'neobeat-core' ),
					'options'       => array(
						'left'   => esc_html__( 'Left', 'neobeat-core' ),
						'center' => esc_html__( 'Center', 'neobeat-core' ),
						'right'  => esc_html__( 'Right', 'neobeat-core' )
					),
					'default_value' => 'left'
				)
			);

			$page_title_section->add_field_element(
				array(
					'field_type'    => 'select',
					'name'          => 'qodef_page_title_vertical_text_alignment',
					'title'         => esc_html__( 'Vertical Text Alignment', 'neobeat-core' ),
					'options'       => array(
						'header-bottom' => esc_html__( 'From Bottom of Header', 'neobeat-core' ),
						'window-top'    => esc_html__( 'From Window Top', 'neobeat-core' )
					),
					'default_value' => 'header-bottom'
				)
			);

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

	add_action( 'neobeat_core_action_default_options_init', 'neobeat_core_add_page_title_options', neobeat_core_get_admin_options_map_position( 'title' ) );
}