| Server IP : 89.108.64.180 / Your IP : 216.73.217.92 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/hostelkey.ru/wp-content/themes/izo/inc/customizer/ |
Upload File : |
<?php /** * Pages Customizer options * * @package Izo */ $wp_customize->add_section( 'izo_pages_section', array( 'title' => esc_html__( 'Pages', 'izo' ), 'priority' => 15, ) ); $wp_customize->add_setting( 'single_page_layout', array( 'default' => 'layout-boxed', 'sanitize_callback' => 'izo_sanitize_select', ) ); $wp_customize->add_control( 'single_page_layout', array( 'type' => 'select', 'label' => esc_html__( 'Page layout', 'izo' ), 'section' => 'izo_pages_section', 'choices' => array( 'layout-boxed' => esc_html__( 'Boxed (default)', 'izo' ), 'layout-unboxed' => esc_html__( 'Unboxed', 'izo' ), 'layout-wide' => esc_html__( 'Wide (disables sidebar)', 'izo' ), 'layout-stretched' => esc_html__( 'Stretched', 'izo' ), ) ) ); $wp_customize->add_setting( 'single_page_header_alignment', array( 'default' => 'left', 'sanitize_callback' => 'izo_sanitize_select', ) ); $wp_customize->add_control( 'single_page_header_alignment', array( 'type' => 'select', 'label' => esc_html__( 'Page header alignment', 'izo' ), 'section' => 'izo_pages_section', 'choices' => array( 'left' => esc_html__( 'Left', 'izo' ), 'center' => esc_html__( 'Center', 'izo' ), 'right' => esc_html__( 'Right', 'izo' ), ) ) ); $wp_customize->add_setting( 'info_pages_section', array( 'sanitize_callback' => 'esc_html', ) ); $wp_customize->add_control( new Izo_Info( $wp_customize, 'info_pages_section', array( 'label' => '<span class="panel-info-toggle">i</span>' . wp_kses_post( __( 'For individual page settings, edit your page and find <strong>Izo Page Options</strong> on the lower right-hand side. ', 'izo' ) ), 'section' => 'izo_pages_section', ) ) ); //Styling $wp_customize->add_setting( 'title_single_page_styling', array( 'sanitize_callback' => 'esc_html', ) ); $wp_customize->add_control( new Izo_Title( $wp_customize, 'title_single_page_styling', array( 'label' => esc_html__( 'Styling', 'izo' ), 'section' => 'izo_pages_section', ) ) ); //Post title font size $wp_customize->add_setting( 'single_page_title_size_desktop', array( 'default' => 40, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'single_page_title_size_tablet', array( 'default' => 36, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'single_page_title_size_mobile', array( 'default' => 28, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Izo_Responsive_Number( $wp_customize, 'single_page_title_size', array( 'label' => esc_html__( 'Page title size', 'izo' ), 'section' => 'izo_pages_section', 'settings' => array ( 'single_page_title_size_desktop', 'single_page_title_size_tablet', 'single_page_title_size_mobile' ), 'input_attrs' => array( 'min' => 0, 'max' => 250, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'single_page_title_color', array( 'default' => '', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'single_page_title_color', array( 'label' => esc_html__( 'Page title color', 'izo' ), 'section' => 'izo_pages_section', 'settings' => 'single_page_title_color', ) ) );