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

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

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

		if ( $page ) {
			$page->add_field_element(
				array(
					'field_type'    => 'select',
					'name'          => 'qodef_page_sidebar_layout',
					'title'         => esc_html__( 'Sidebar Layout', 'neobeat-core' ),
					'description'   => esc_html__( 'Choose a default sidebar layout for pages', 'neobeat-core' ),
					'options'       => neobeat_core_get_select_type_options_pool( 'sidebar_layouts', false ),
					'default_value' => 'no-sidebar'
				)
			);

			$custom_sidebars = neobeat_core_get_custom_sidebars();
			if ( ! empty( $custom_sidebars ) && count( $custom_sidebars ) > 1 ) {
				$page->add_field_element(
					array(
						'field_type'  => 'select',
						'name'        => 'qodef_page_custom_sidebar',
						'title'       => esc_html__( 'Custom Sidebar', 'neobeat-core' ),
						'description' => esc_html__( 'Choose a custom sidebar to display on pages', 'neobeat-core' ),
						'options'     => $custom_sidebars
					)
				);
			}

			$page->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_page_sidebar_grid_gutter',
					'title'       => esc_html__( 'Set Grid Gutter', 'neobeat-core' ),
					'description' => esc_html__( 'Choose grid gutter size to set space between content and sidebar', 'neobeat-core' ),
					'options'     => neobeat_core_get_select_type_options_pool( 'items_space' )
				)
			);

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

	add_action( 'neobeat_core_action_default_options_init', 'neobeat_core_add_page_sidebar_options', neobeat_core_get_admin_options_map_position( 'sidebar' ) );
}