whoami7 - Manager
:
/
home
/
dataiclx
/
vielorbe.com
/
wp-content
/
themes
/
botiga
/
inc
/
customizer
/
options
/
Upload File:
files >> //home/dataiclx/vielorbe.com/wp-content/themes/botiga/inc/customizer/options/layout.php
<?php /** * Layout Customizer options * * @package Botiga */ /** * Layout */ $wp_customize->add_section( 'botiga_section_layout', array( 'title' => esc_html__( 'Layout', 'botiga'), 'description' => esc_html__( 'Manage the overall layout of the website.', 'botiga'), 'priority' => 55, ) ); $wp_customize->add_setting( 'site_layout', array( 'default' => 'default', 'sanitize_callback' => 'sanitize_key', ) ); $wp_customize->add_control( new Botiga_Radio_Images( $wp_customize, 'site_layout', array( 'label' => esc_html__( 'Site Layout', 'botiga' ), 'section' => 'botiga_section_layout', 'cols' => 2, 'choices' => array( 'default' => array( 'label' => esc_html__( 'Default', 'botiga' ), 'url' => '%s/assets/img/site-layout-default.svg', ), 'boxed' => array( 'is_pro' => true, 'label' => esc_html__( 'Boxed', 'botiga' ), 'url' => '%s/assets/img/site-layout-boxed.svg', ), 'padded' => array( 'is_pro' => true, 'label' => esc_html__( 'Padded', 'botiga' ), 'url' => '%s/assets/img/site-layout-padded.svg', ), 'fluid' => array( 'is_pro' => true, 'label' => esc_html__( 'Fluid', 'botiga' ), 'url' => '%s/assets/img/site-layout-fluid.svg', ), ), 'priority' => 20, ) ) ); $wp_customize->add_setting( 'content_max_width', array( 'default' => 1140, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'content_max_width', array( 'label' => esc_html__( 'Content Width', 'botiga' ), 'section' => 'botiga_section_layout', 'active_callback' => 'botiga_callback_site_layout_default_boxed_padded', 'is_responsive' => 0, 'settings' => array( 'size_desktop' => 'content_max_width', ), 'input_attrs' => array( 'min' => 768, 'max' => 2000, ), 'priority' => 30, ) ) ); $wp_customize->add_setting( 'boxed_max_width', array( 'default' => 1000, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'boxed_max_width', array( 'label' => esc_html__( 'Boxed Layout Width', 'botiga' ), 'section' => 'botiga_section_layout', 'active_callback' => 'botiga_callback_site_layout_boxed', 'is_responsive' => 0, 'settings' => array( 'size_desktop' => 'boxed_max_width', ), 'input_attrs' => array( 'min' => 768, 'max' => 2000, ), 'priority' => 30, ) ) ); $wp_customize->add_setting( 'padded_layout_spacing_desktop', array( 'default' => 20, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'padded_layout_spacing_tablet', array( 'default' => 10, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'padded_layout_spacing_mobile', array( 'default' => 10, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'padded_layout_spacing', array( 'label' => esc_html__( 'Padded Layout Spacing', 'botiga' ), 'section' => 'botiga_section_layout', 'active_callback' => 'botiga_callback_site_layout_padded', 'is_responsive' => 1, 'settings' => array( 'size_desktop' => 'padded_layout_spacing_desktop', 'size_tablet' => 'padded_layout_spacing_tablet', 'size_mobile' => 'padded_layout_spacing_mobile', ), 'input_attrs' => array( 'min' => 0, 'max' => 100, ), 'priority' => 30, ) ) ); $wp_customize->add_setting( 'fluid_layout_spacing_desktop', array( 'default' => 15, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'fluid_layout_spacing_tablet', array( 'default' => 15, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'fluid_layout_spacing_mobile', array( 'default' => 15, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'fluid_layout_spacing', array( 'label' => esc_html__( 'Fluid Layout Spacing', 'botiga' ), 'section' => 'botiga_section_layout', 'active_callback' => 'botiga_callback_site_layout_fluid', 'is_responsive' => 1, 'settings' => array( 'size_desktop' => 'fluid_layout_spacing_desktop', 'size_tablet' => 'fluid_layout_spacing_tablet', 'size_mobile' => 'fluid_layout_spacing_mobile', ), 'input_attrs' => array( 'min' => 0, 'max' => 100, ), 'priority' => 30, ) ) );
Copyright ©2021 || Defacer Indonesia