HEX
Server: LiteSpeed
System: Linux server318.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: joyfejor (3859)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/joyfejor/www/wp-content/themes/onepress/inc/customize-configs/options-blog-posts.php
<?php
/**
 * Blog Post Settings
 * 
 * @package onepress
 *
 * @since 2.1.0
 * @since 2.2.1
 */

$wp_customize->add_section(
	'onepress_blog_posts',
	array(
		'priority'    => null,
		'title'       => esc_html__( 'Blog Posts', 'onepress' ),
		'description' => '',
		'panel'       => 'onepress_options',
	)
);

$wp_customize->add_setting(
	'onepress_disable_archive_prefix',
	array(
		'sanitize_callback' => 'onepress_sanitize_checkbox',
		'default'           => '',
	)
);
$wp_customize->add_control(
	'onepress_disable_archive_prefix',
	array(
		'type'        => 'checkbox',
		'label'       => esc_html__( 'Disable archive prefix', 'onepress' ),
		'section'     => 'onepress_blog_posts',
		'description' => esc_html__( 'Check this to disable archive prefix on category, date, tag page.', 'onepress' ),
	)
);

$wp_customize->add_setting(
	'onepress_hide_thumnail_if_not_exists',
	array(
		'sanitize_callback' => 'onepress_sanitize_checkbox',
		'default'           => '',
	)
);
$wp_customize->add_control(
	'onepress_hide_thumnail_if_not_exists',
	array(
		'type'        => 'checkbox',
		'label'       => esc_html__( 'Hide thumbnail placeholder', 'onepress' ),
		'section'     => 'onepress_blog_posts',
		'description' => esc_html__( 'Hide placeholder if the post thumbnail not exists.', 'onepress' ),
	)
);