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

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

		if ( $page ) {
			$page->add_field_element(
				array(
					'field_type'  => 'color',
					'name'        => 'qodef_main_color',
					'title'       => esc_html__( 'Main Color', 'neobeat-core' ),
					'description' => esc_html__( 'Choose the most dominant theme color', 'neobeat-core' )
				)
			);

			$page->add_field_element(
				array(
					'field_type'  => 'color',
					'name'        => 'qodef_page_background_color',
					'title'       => esc_html__( 'Page Background Color', 'neobeat-core' ),
					'description' => esc_html__( 'Set background color', 'neobeat-core' )
				)
			);

			$page->add_field_element(
				array(
					'field_type'  => 'image',
					'name'        => 'qodef_page_background_image',
					'title'       => esc_html__( 'Page Background Image', 'neobeat-core' ),
					'description' => esc_html__( 'Set background image', 'neobeat-core' )
				)
			);

			$page->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_page_background_repeat',
					'title'       => esc_html__( 'Page Background Image Repeat', 'neobeat-core' ),
					'description' => esc_html__( 'Set background image repeat', 'neobeat-core' ),
					'options'     => array(
						''          => esc_html__( 'Default', 'neobeat-core' ),
						'no-repeat' => esc_html__( 'No Repeat', 'neobeat-core' ),
						'repeat'    => esc_html__( 'Repeat', 'neobeat-core' ),
						'repeat-x'  => esc_html__( 'Repeat-x', 'neobeat-core' ),
						'repeat-y'  => esc_html__( 'Repeat-y', 'neobeat-core' )
					)
				)
			);

			$page->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_page_background_size',
					'title'       => esc_html__( 'Page Background Image Size', 'neobeat-core' ),
					'description' => esc_html__( 'Set background image size', 'neobeat-core' ),
					'options'     => array(
						''        => esc_html__( 'Default', 'neobeat-core' ),
						'contain' => esc_html__( 'Contain', 'neobeat-core' ),
						'cover'   => esc_html__( 'Cover', 'neobeat-core' )
					)
				)
			);

			$page->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_page_background_attachment',
					'title'       => esc_html__( 'Page Background Image Attachment', 'neobeat-core' ),
					'description' => esc_html__( 'Set background image attachment', 'neobeat-core' ),
					'options'     => array(
						''       => esc_html__( 'Default', 'neobeat-core' ),
						'fixed'  => esc_html__( 'Fixed', 'neobeat-core' ),
						'scroll' => esc_html__( 'Scroll', 'neobeat-core' )
					)
				)
			);

			$page->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_page_content_padding',
					'title'       => esc_html__( 'Page Content Padding', 'neobeat-core' ),
					'description' => esc_html__( 'Set padding that will be applied for page content in format: top right bottom left (e.g. 10px 5px 10px 5px)', 'neobeat-core' )
				)
			);

			$page->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_page_content_padding_mobile',
					'title'       => esc_html__( 'Page Content Padding Mobile', 'neobeat-core' ),
					'description' => esc_html__( 'Set padding that will be applied for page content on mobile screens (1024px and below) in format: top right bottom left (e.g. 10px 5px 10px 5px)', 'neobeat-core' )
				)
			);

			$page->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_boxed',
					'title'         => esc_html__( 'Boxed Layout', 'neobeat-core' ),
					'description'   => esc_html__( 'Set boxed layout', 'neobeat-core' ),
					'default_value' => 'no'
				)
			);

			$boxed_section = $page->add_section_element(
				array(
					'name'       => 'qodef_boxed_section',
					'title'      => esc_html__( 'Boxed Layout Section', 'neobeat-core' ),
					'dependency' => array(
						'hide' => array(
							'qodef_boxed' => array(
								'values'        => 'no',
								'default_value' => ''
							)
						)
					)
				)
			);

			$boxed_section->add_field_element(
				array(
					'field_type'  => 'color',
					'name'        => 'qodef_boxed_background_color',
					'title'       => esc_html__( 'Boxed Background Color', 'neobeat-core' ),
					'description' => esc_html__( 'Set boxed background color', 'neobeat-core' )
				)
			);

			$page->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_passepartout',
					'title'         => esc_html__( 'Passepartout', 'neobeat-core' ),
					'description'   => esc_html__( 'Enabling this option will display a passepartout around website content', 'neobeat-core' ),
					'default_value' => 'no'
				)
			);

			$passepartout_section = $page->add_section_element(
				array(
					'name'       => 'qodef_passepartout_section',
					'title'      => esc_html__( 'Passepartout Section', 'neobeat-core' ),
					'dependency' => array(
						'hide' => array(
							'qodef_passepartout' => array(
								'values'        => 'no',
								'default_value' => ''
							)
						)
					)
				)
			);

			$passepartout_section->add_field_element(
				array(
					'field_type'  => 'color',
					'name'        => 'qodef_passepartout_color',
					'title'       => esc_html__( 'Passepartout Color', 'neobeat-core' ),
					'description' => esc_html__( 'Choose background color for passepartout', 'neobeat-core' )
				)
			);

			$passepartout_section->add_field_element(
				array(
					'field_type'  => 'image',
					'name'        => 'qodef_passepartout_image',
					'title'       => esc_html__( 'Passepartout Background Image', 'neobeat-core' ),
					'description' => esc_html__( 'Set background image for passepartout', 'neobeat-core' )
				)
			);

			$passepartout_section->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_passepartout_size',
					'title'       => esc_html__( 'Passepartout Size', 'neobeat-core' ),
					'description' => esc_html__( 'Enter size amount for passepartout', 'neobeat-core' ),
					'args'        => array(
						'suffix' => esc_html__( 'px or %', 'neobeat-core' )
					)
				)
			);

			$passepartout_section->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_passepartout_size_responsive',
					'title'       => esc_html__( 'Passepartout Responsive Size', 'neobeat-core' ),
					'description' => esc_html__( 'Enter size amount for passepartout for smaller screens (1024px and below)', 'neobeat-core' ),
					'args'        => array(
						'suffix' => esc_html__( 'px or %', 'neobeat-core' )
					)
				)
			);

			$page->add_field_element(
				array(
					'field_type'    => 'select',
					'name'          => 'qodef_content_width',
					'title'         => esc_html__( 'Initial Width of Content', 'neobeat-core' ),
					'description'   => esc_html__( 'Choose the initial width of content which is in grid (applies to pages set to "Default Template" and rows set to "In Grid")', 'neobeat-core' ),
					'options'       => neobeat_core_get_select_type_options_pool( 'content_width', false ),
					'default_value' => '1100'
				)
			);
			
			// Hook to include additional options after module options
			do_action( 'neobeat_core_action_after_general_options_map', $page );
			
			$page->add_field_element(
				array(
					'field_type'  => 'textarea',
					'name'        => 'qodef_custom_js',
					'title'       => esc_html__( 'Custom JS', 'neobeat-core' ),
					'description' => esc_html__( 'Enter your custom Javascript here', 'neobeat-core' )
				)
			);

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

	add_action( 'neobeat_core_action_default_options_init', 'neobeat_core_add_general_options', neobeat_core_get_admin_options_map_position( 'general' ) );
}