403Webshell
Server IP : 77.50.203.18  /  Your IP : 192.168.0.10
Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23
System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64
User : warsnews.ru ( 1001)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/ifwar.ru/www/wp-content/themes/newstwenty/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ifwar.ru/www/wp-content/themes/newstwenty/frontpage-options.php
<?php

/**
 * Option Panel
 *
 * @package NewsTwenty
 */


function newstwenty_customize_register($wp_customize) {

    $newsup_default = newstwenty_get_default_theme_options();

    $wp_customize->remove_control('newsup_select_slider_setting');
    $wp_customize->remove_control('popular_tab_title');
    $wp_customize->remove_control('newsup_center_logo_title');
    $wp_customize->remove_control('tabbed_section_title');
    $wp_customize->remove_control('latest_tab_title');
    $wp_customize->remove_control('trending_tab_title');
    // $wp_customize->remove_control('select_trending_tab_news_category');

    $wp_customize->remove_section('newsup_popular_tags_section_settings');
    $wp_customize->remove_section('frontpage_advertisement_settings');

    $wp_customize->get_setting('newsup_title_font_size')->default  = '46'; 
    $wp_customize->get_setting('newsup_header_overlay_color')->default  = '#f9f9f9';
	$wp_customize->get_setting('header_textcolor')->default = '171717';

    //section title
    $wp_customize->add_setting('trending_post_section_title',
        array(
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    $wp_customize->add_control(
        new newsup_Section_Title(
            $wp_customize,
            'trending_post_section_title',
            array(
                'label'             => esc_html__( 'Trending Post Section', 'newstwenty' ),
                'section'           => 'frontpage_main_banner_section_settings',
                'priority'          => 80,
                'active_callback' => 'newsup_main_banner_section_status'
            )
        )
    );
}
add_action('customize_register', 'newstwenty_customize_register');

Youez - 2016 - github.com/yon3zu
LinuXploit