HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/themes/newsbulk/frontpage-options.php
<?php

/**
 * Option Panel
 *
 * @package Newsbulk
 */


function newsbulk_customize_register($wp_customize) {

$newsup_default = newsbulk_get_default_theme_options();


//section title
$wp_customize->add_setting('recent_post_section_title',
    array(
        'sanitize_callback' => 'sanitize_text_field',
    )
);

$wp_customize->add_control(
    new newsup_Section_Title(
        $wp_customize,
        'recent_post_section_title',
        array(
            'label'             => esc_html__( 'Recent Post Section', 'newsbulk' ),
            'section'           => 'frontpage_main_banner_section_settings',
            'priority'          => 100,
            'active_callback' => 'newsup_main_banner_section_status'
        )
    )
);


// Setting - drop down category for slider.
$wp_customize->add_setting('select_recent_news_category',
    array(
        'default' => $newsup_default['select_recent_news_category'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'absint',
    )
);


$wp_customize->add_control(new Newsup_Dropdown_Taxonomies_Control($wp_customize, 'select_recent_news_category',
    array(
        'label' => esc_html__('Category', 'newsbulk'),
        'description' => esc_html__('Posts to be shown on recent 4 Post', 'newsbulk'),
        'section' => 'frontpage_main_banner_section_settings',
        'type' => 'dropdown-taxonomies',
        'taxonomy' => 'category',
        'priority' => 100,
        'active_callback' => 'newsup_main_banner_section_status'
    )));
}
add_action('customize_register', 'newsbulk_customize_register');