AlkantarClanX12

Your IP : 18.223.125.236


Current Path : /home/thanudqk/siamfreetour.com/wp-content/themes/minimalpress/inc/customizer/
Upload File :
Current File : /home/thanudqk/siamfreetour.com/wp-content/themes/minimalpress/inc/customizer/theme-options.php

<?php
/**
 * Theme Options.
 *
 * @package minimalpress
 */

// Add Panel.
$wp_customize->add_panel( 'theme_option_panel',
	array(
	'title'      => __( 'Theme Options', 'minimalpress' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	)
);

// Sidebar section
$wp_customize->add_section('section_sidebar', array(    
	'title'       => __('Sidebar Options', 'minimalpress'),
	'panel'       => 'theme_option_panel'    
));

// Blog Sidebar Option
$wp_customize->add_setting('blog_sidebar', 
	array(
	'default' 			=> 'no-sidebar',
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'minimalpress_sanitize_select',
	'transport'         => 'refresh',
	)
);

$wp_customize->add_control('blog_sidebar', 
	array(		
	'label' 	=> __('Blog Sidebar', 'minimalpress'),
	'section' 	=> 'section_sidebar',
	'settings'  => 'blog_sidebar',
	'type' 		=> 'radio',
	'choices' 	=> array(		
		'left-sidebar' 	=> __( 'Left Sidebar', 'minimalpress'),						
		'right-sidebar' => __( 'Right Sidebar', 'minimalpress'),	
		'no-sidebar' 	=> __( 'No Sidebar', 'minimalpress'),	
		),	
	)
);

// Single Post Sidebar Option
$wp_customize->add_setting('single_post_sidebar', 
	array(
	'default' 			=> 'right-sidebar',
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'minimalpress_sanitize_select',
	'transport'         => 'refresh',
	)
);

$wp_customize->add_control('single_post_sidebar', 
	array(		
	'label' 	=> __('Single Post Sidebar', 'minimalpress'),
	'section' 	=> 'section_sidebar',
	'settings'  => 'single_post_sidebar',
	'type' 		=> 'radio',
	'choices' 	=> array(		
		'left-sidebar' 	=> __( 'Left Sidebar', 'minimalpress'),						
		'right-sidebar' => __( 'Right Sidebar', 'minimalpress'),	
		'no-sidebar' 	=> __( 'No Sidebar', 'minimalpress'),	
		),	
	)
);

// Archive Sidebar Option
$wp_customize->add_setting('archive_sidebar', 
	array(
	'default' 			=> 'no-sidebar',
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'minimalpress_sanitize_select',
	'transport'         => 'refresh',
	)
);

$wp_customize->add_control('archive_sidebar', 
	array(		
	'label' 	=> __('Archive Sidebar', 'minimalpress'),
	'section' 	=> 'section_sidebar',
	'settings'  => 'archive_sidebar',
	'type' 		=> 'radio',
	'choices' 	=> array(		
		'left-sidebar' 	=> __( 'Left Sidebar', 'minimalpress'),						
		'right-sidebar' => __( 'Right Sidebar', 'minimalpress'),	
		'no-sidebar' 	=> __( 'No Sidebar', 'minimalpress'),	
		),	
	)
);

// Page Sidebar Option
$wp_customize->add_setting('page_sidebar', 
	array(
	'default' 			=> 'no-sidebar',
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'minimalpress_sanitize_select',
	'transport'         => 'refresh',
	)
);

$wp_customize->add_control('page_sidebar', 
	array(		
	'label' 	=> __('Page Sidebar', 'minimalpress'),
	'section' 	=> 'section_sidebar',
	'settings'  => 'page_sidebar',
	'type' 		=> 'radio',
	'choices' 	=> array(		
		'left-sidebar' 	=> __( 'Left Sidebar', 'minimalpress'),						
		'right-sidebar' => __( 'Right Sidebar', 'minimalpress'),	
		'no-sidebar' 	=> __( 'No Sidebar', 'minimalpress'),	
		),	
	)
);

// Excerpt Length
$wp_customize->add_section('section_excerpt_length', 
	array(    
	'title'       => __('Excerpt Length', 'minimalpress'),
	'panel'       => 'theme_option_panel'    
	)
);

$wp_customize->add_setting( 'excerpt_length', array(
	'default'           => '28',
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'minimalpress_sanitize_number_range',
	'transport'         => 'refresh',
) );

$wp_customize->add_control( 'excerpt_length', array(
	'label'       => __( 'Excerpt Length', 'minimalpress' ),
	'description' => __( 'Note: Min 5 & Max 100.', 'minimalpress' ),
	'section'     => 'section_excerpt_length',
	'type'        => 'number',
	'input_attrs' => array( 'min' => 5, 'max' => 100, 'style' => 'width: 55px;' ),
) );

// MinimalPress Pro
    $wp_customize->add_section( 'minimalpress_pro', array(
        'title' => esc_html__( 'View PRO Version', 'minimalpress' ),
        'priority'     => 300,
    ) );

    $wp_customize->add_setting( 'minimalpress_pro' , array(
        'sanitize_callback' => 'sanitize_text_field',
        'default'     => '',
    ) );

    $wp_customize->add_control( new MinimalPress_Message_Control( $wp_customize, 'minimalpress_pro', array(
        'label'        => '',
        'description'  => '',
        'section'      => 'minimalpress_pro',
        'priority'     => 190,
        'type'         => 'list',
        'list'         => array(
            esc_html__( 'Featured Slider', 'minimalpress' ),
            esc_html__( 'Featured Links', 'minimalpress' ),
            esc_html__( '900+ GOOGLE FONTS', 'minimalpress' ),
            esc_html__( '6 Different Blog Layouts', 'minimalpress' ),
            esc_html__( '3 Single Post Layouts', 'minimalpress' ),
            esc_html__( 'Blazing speed, Highload ready', 'minimalpress' ),
            esc_html__( 'Share Blog Posts', 'minimalpress' ),
            esc_html__( '2 Custom Widgets', 'minimalpress' ),
            esc_html__( 'Footer Copyright Text', 'minimalpress' ),
            esc_html__( 'Social icons', 'minimalpress' ),
            esc_html__( 'You Missed Section', 'minimalpress' ),
            esc_html__( 'Colors settings', 'minimalpress' ),
            esc_html__( 'Page, Post Settings', 'minimalpress' ),
            esc_html__( 'And more...', 'minimalpress' ),
        ),
        'button' => array(
            'link' => minimalpress_get_premium_url(),
            'label' => esc_html__( 'Upgrade to MinimalPress Pro', 'minimalpress' ),
        )
    ) ) );