403Webshell
Server IP : 104.21.90.98  /  Your IP : 162.159.115.10
Web Server : nginx/1.26.1
System : Linux ecc7dbd2befa 5.15.0-122-generic #132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024 x86_64
User : www-data ( 82)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/izo/inc/customizer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/izo/inc/customizer/sidebar.php
<?php
/**
 * Sidebar Customizer options
 *
 * @package Izo
 */

$wp_customize->add_section(
	'izo_sidebar_section',
	array(
		'title'         => esc_html__( 'Sidebar', 'izo' ),
		'priority'      => 21,
	)
); 

$wp_customize->add_setting(
	'sidebar_position',
	array(
		'default'           => 'sidebar-right',
		'sanitize_callback' => 'izo_sanitize_select',
	)
);
$wp_customize->add_control(
	'sidebar_position',
	array(
		'type'      		=> 'select',
		'label'     		=> esc_html__( 'Sidebar position', 'izo' ),
		'section'   		=> 'izo_sidebar_section',
		'choices'   		=> array(
			'sidebar-left'	=> esc_html__( 'Left', 'izo' ),
			'sidebar-right'	=> esc_html__( 'Right', 'izo' ),
			'no-sidebar'	=> esc_html__( 'No sidebar', 'izo' ),
		)
	)
);

$wp_customize->add_setting( 'sidebar_width',
	array(
		'default' 			=> 25,
		'transport' 		=> 'postMessage',
		'sanitize_callback' => 'absint'
	)
);
$wp_customize->add_control( new Izo_Slider_Control( $wp_customize, 'sidebar_width',
	array(
		'label' => esc_html__( 'Sidebar width [%]', 'izo' ),
		'section' => 'izo_sidebar_section',
		'input_attrs' => array(
			'min' => 20,
			'max' => 50,
			'step' => 1,
		),
	)
) );

Youez - 2016 - github.com/yon3zu
LinuXploit