HEX
Server: Apache
System: Linux uws7-179.cafe24.com 3.10.0-1160.119.1p.el7.x86_64 #1 SMP Thu Sep 11 14:15:01 KST 2025 x86_64
User: medikors (1589)
PHP: 7.3.1p1
Disabled: mysql_pconnect
Upload Files
File: /medikors/www/eng/wp-content/plugins/jupiterx-core/includes/customizer/settings/search/settings.php
<?php
/**
 * Add Jupiter settings for Pages > Search > Settings tab to the WordPress Customizer.
 *
 * @package JupiterX\Framework\Admin\Customizer
 *
 * @since   1.0.0
 */

$section = 'jupiterx_search';

// Label.
JupiterX_Customizer::add_field( [
	'type'     => 'jupiterx-label',
	'settings' => 'jupiterx_search_label_1',
	'section'  => $section,
	'label'    => __( 'Display section', 'jupiterx-core' ),
] );

$post_types = [
	'post'      => __( 'Post', 'jupiterx-core' ),
	'portfolio' => __( 'Portfolio', 'jupiterx-core' ),
	'page'      => __( 'Page', 'jupiterx-core' ),
	'product'   => __( 'Product', 'jupiterx-core' ),
];

$custom_post_types = [];

if ( function_exists( 'jupiterx_get_post_types' ) ) {
	$custom_post_types = jupiterx_get_post_types( 'labels', [
		'exclude_from_search' => false,
	] );
}

$post_types = array_merge( $post_types, $custom_post_types );

// Display content.
JupiterX_Customizer::add_field( [
	'type'     => 'jupiterx-multicheck',
	'settings' => 'jupiterx_search_post_types',
	'section'  => $section,
	'default'  => array_keys( $post_types ),
	'choices'  => $post_types,
] );

// Posts per page.
JupiterX_Customizer::add_field( [
	'type'        => 'jupiterx-text',
	'settings'    => 'jupiterx_search_posts_per_page',
	'section'     => $section,
	'label'       => __( 'Posts per page', 'jupiterx-core' ),
	'column'      => 6,
	'default'     => 5,
	'input_type'  => 'number',
	'input_attrs' => [
		'min' => 5,
	],
] );