403Webshell
Server IP : 81.2.241.106  /  Your IP : 216.73.216.165
Web Server : Apache/2.4.67 (Debian)
System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : lisky ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/lisky/wp-content/themes/newspress-lite/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/lisky/wp-content/themes/newspress-lite/inc/customize.php
<?php

function newspress_customize_register($wp_customize){

    
    $wp_customize->add_section('newspress_options', array(
        'priority' 		=> 10,
		'capability'     => 'edit_theme_options',
		'title'    		=> esc_html__('NewsPress Options', 'newspress-lite'),
        'description'   => '<div class="infohead"><span class="donation">A Theme is an effort of many sleepless nights of the Developers.  If you like this FREEE Theme You can consider for a 5 star rating and honest review. Your review will inspire us. You can<a href="https://wordpress.org/support/view/theme-reviews/newspress-lite?filter=5" target="_blank"> <strong>Review Here</strong></a></span><br /><br /><span class="donation">Need Logo Inserter, Multilayer Slider, Unlimited Slide Items, Links from Featured Boxes, More Control, More Features and Options? Try <a href="'.esc_url('https://d5creation.com/theme/newspress/').'" target="_blank"><strong>NewsPress Extend Edition</strong></a> for Many Exciting Features with Dedicated Support from D5 Creation team. There are Promotional Offers. You can avail those promotions from <a href="'.esc_url('https://d5creation.com/').'" target="_blank">D5 Creation Site</a></span><br /><br /><span class="donation"><a href="'.esc_url('http://demo.d5creation.com/themes/?theme=NewsPress').'" target="_blank">Live Demo</a> of NewsPress Extend</span></div>'
    ));
	

//  News Style Layout
    $wp_customize->add_setting('newspress[fpostex]', array(
        'default'        	=> '0',
    	'sanitize_callback' => 'esc_html',
        'capability'     	=> 'edit_theme_options',
        'type'           	=> 'option'

    ));

    $wp_customize->add_control('newspress_fpostex', array(
        'label'      => esc_html__('Set News Style Front Page without considering the WP Reading Settings', 'newspress-lite'),
        'section'    => 'newspress_options',
        'settings'   => 'newspress[fpostex]',
		'description' => esc_html__('If you select This Options the WordPress Settings > Reading will not be considered and the News Style Front Page will be displayed. This is recommended for News Sites','newspress-lite'),
		'type' 		 => 'checkbox'
    ));
	
//  Social Links
	foreach (range(1, 5 ) as $numslinksn) {
    $wp_customize->add_setting('newspress[sl' . $numslinksn .']', array(
        'default'        	=> '',
    	'sanitize_callback' => 'esc_url',
        'capability'     	=> 'edit_theme_options',
        'type'           	=> 'option'

    ));

    $wp_customize->add_control('newspress_sl' . $numslinksn, array(
        'label'      => esc_html__('Social Link - ',  'newspress-lite'). $numslinksn,
        'section'    => 'newspress_options',
        'settings'   => 'newspress[sl' . $numslinksn .']',
		'description' => wp_kses_post(__('Input Your Social Page Link. Example: <b>https://facebook.com/d5creation/</b>', 'newspress-lite')),
    ));	
	}
	
	
//  Top Left Image
	$wp_customize->add_setting('newspress[adv03]', array(
        'default'           => '',
        'capability'        => 'edit_theme_options',
    	'sanitize_callback' => 'esc_url',
        'type'           	=> 'option'
		

    ));

    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'adv03', array(
        'label'    			=> esc_html__('Image: Left of Logo', 'newspress-lite'),
        'section'  			=> 'newspress_options',
        'settings' 			=> 'newspress[adv03]',
		'description'   	=> esc_html__('Upload/Select an Image. Recommended Size: 250px X 90px','newspress-lite')
		
    )));
	
//  Top Right Image
	$wp_customize->add_setting('newspress[adv04]', array(
        'default'           => '',
        'capability'        => 'edit_theme_options',
    	'sanitize_callback' => 'esc_url',
        'type'           	=> 'option'
		

    ));

    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'adv04', array(
        'label'    			=> esc_html__('Image: Right of Logo', 'newspress-lite'),
        'section'  			=> 'newspress_options',
        'settings' 			=> 'newspress[adv04]',
		'description'   	=> esc_html__('Upload/Select an Image. Recommended Size: 250px X 90px','newspress-lite')
		
    )));	
 

}


add_action('customize_register', 'newspress_customize_register');


	if ( ! function_exists( 'newspress_get_option' ) ) :
	function newspress_get_option( $newspress_name, $newspress_default = false ) {
	$newspress_config = get_option( 'newspress' );

	if ( ! isset( $newspress_config ) ) : return $newspress_default; else: $newspress_options = $newspress_config; endif;
	if ( isset( $newspress_options[$newspress_name] ) ):  return $newspress_options[$newspress_name]; else: return $newspress_default; endif;
	}
	endif;

Youez - 2016 - github.com/yon3zu
LinuXploit