<?php
/**
* WordPress customizer settings
*/
add_action( 'customize_register', 'lsvr_beautyspot_customize_register' );
if ( ! function_exists( 'lsvr_beautyspot_customize_register' ) ) {
function lsvr_beautyspot_customize_register( $wp_customize ) {
// Init the LSVR Customizer object
if ( class_exists( 'Lsvr_Customizer' ) ) {
$lsvr_customizer = new Lsvr_Customizer( $wp_customize, 'lsvr_beautyspot_' );
// Change order of default sections
$wp_customize->get_section( 'static_front_page' )->priority = 117;
$wp_customize->get_section( 'custom_css' )->priority = 300;
// Header settings
$lsvr_customizer->add_section( 'header_settings', array(
'title' => esc_html__( 'Header', 'beautyspot' ),
'priority' => 101,
));
// Background Image
$lsvr_customizer->add_field( 'header_background_image', array(
'section' => 'header_settings',
'label' => esc_html__( 'Default Background Image', 'beautyspot' ),
'description' => esc_html__( 'Optimal resolution is about 1200x1400px.', 'beautyspot' ),
'type' => 'image',
'priority' => 1010,
));
// Background Overlay Opacity
$lsvr_customizer->add_field( 'header_background_overlay_opacity', array(
'section' => 'header_settings',
'label' => esc_html__( 'Background Overlay Opacity', 'beautyspot' ),
'description' => esc_html__( 'Set to 0 for invisible overlay.', 'beautyspot' ),
'type' => 'lsvr-slider',
'choices' => array(
'min' => 0,
'max' => 100,
'step' => 5,
),
'default' => 90,
'priority' => 1020,
));
// Separator
$lsvr_customizer->add_separator( 'header_separator_2', array(
'section' => 'header_settings',
'priority' => 2000,
));
// Max logo width
$lsvr_customizer->add_field( 'header_logo_max_width', array(
'section' => 'header_settings',
'label' => esc_html__( 'Logo Max Width', 'beautyspot' ),
'description' => esc_html__( 'Set maximum width of your header logo. You can upload your site logo under Customizer / Site Identity.', 'beautyspot' ),
'type' => 'lsvr-slider',
'choices' => array(
'min' => 50,
'max' => 300,
'step' => 1,
),
'default' => 200,
'priority' => 2010,
));
// Site title enable
$lsvr_customizer->add_field( 'header_site_title_enable', array(
'section' => 'header_settings',
'label' => esc_html__( 'Display Site Title', 'beautyspot' ),
'description' => esc_html__( 'Display your site title under logo. It can be changed under Customizer / Site Identity.', 'beautyspot' ),
'type' => 'checkbox',
'default' => true,
'priority' => 2040,
));
// Site description enable
$lsvr_customizer->add_field( 'header_site_tagline_enable', array(
'section' => 'header_settings',
'label' => esc_html__( 'Display Site Tagline', 'beautyspot' ),
'description' => esc_html__( 'Display your site description under logo. It can be changed under Customizer / Site Identity.', 'beautyspot' ),
'type' => 'checkbox',
'default' => true,
'priority' => 2050,
));
// Separator
$lsvr_customizer->add_separator( 'header_separator_3', array(
'section' => 'header_settings',
'priority' => 3000,
));
// Show search
$lsvr_customizer->add_field( 'header_search_enable', array(
'section' => 'header_settings',
'label' => esc_html__( 'Display Search', 'beautyspot' ),
'description' => esc_html__( 'Enable search form in the header.', 'beautyspot' ),
'type' => 'checkbox',
'default' => true,
'priority' => 3010,
));
// Separator
$lsvr_customizer->add_separator( 'header_separator_4', array(
'section' => 'header_settings',
'priority' => 4000,
));
// CTA button label
$lsvr_customizer->add_field( 'header_cta_button_label', array(
'section' => 'header_settings',
'label' => esc_html__( 'CTA Button Label', 'beautyspot' ),
'description' => esc_html__( 'Short text for the CTA button.', 'beautyspot' ),
'type' => 'text',
'priority' => 4010,
));
// CTA button link
$lsvr_customizer->add_field( 'header_cta_button_link', array(
'section' => 'header_settings',
'label' => esc_html__( 'CTA Button Link', 'beautyspot' ),
'description' => esc_html__( 'Use absolute URL, for example https://www.example.com.', 'beautyspot' ),
'type' => 'text',
'priority' => 4020,
));
// CTA button open in new window
$lsvr_customizer->add_field( 'header_cta_button_link_open_in_new_window', array(
'section' => 'header_settings',
'label' => esc_html__( 'Open CTA Link In New Window', 'beautyspot' ),
'type' => 'checkbox',
'default' => false,
'priority' => 4030,
));
// Separator
$lsvr_customizer->add_separator( 'header_separator_5', array(
'section' => 'header_settings',
'priority' => 5000,
));
// Enable quick contact
$lsvr_customizer->add_field( 'header_contact_enable', array(
'section' => 'header_settings',
'label' => esc_html__( 'Enable Quick Contact', 'beautyspot' ),
'type' => 'checkbox',
'default' => false,
'priority' => 5010,
));
// Quick contact 1 icon
$lsvr_customizer->add_field( 'header_contact_custom1_icon', array(
'section' => 'header_settings',
'label' => esc_html__( 'Contact Info 1 Icon', 'beautyspot' ),
'description' => esc_html__( 'Insert icon class name. For example "icon-phone". Please refer to the documentation to learn more about icons.', 'beautyspot' ),
'type' => 'text',
'priority' => 5110,
'required' => array(
'setting' => 'header_contact_enable',
'operator' => '==',
'value' => true,
),
));
// Quick contact 1 text
$lsvr_customizer->add_field( 'header_contact_custom1_text', array(
'section' => 'header_settings',
'label' => esc_html__( 'Contact Info 1 Text', 'beautyspot' ),
'description' => esc_html__( 'You can use STRONG, BR, A, DL, DT and DD tags here.', 'beautyspot' ),
'type' => 'textarea',
'priority' => 5120,
'required' => array(
'setting' => 'header_contact_enable',
'operator' => '==',
'value' => true,
),
));
// Quick contact 2 icon
$lsvr_customizer->add_field( 'header_contact_custom2_icon', array(
'section' => 'header_settings',
'label' => esc_html__( 'Contact Info 2 Icon', 'beautyspot' ),
'type' => 'text',
'priority' => 5210,
'required' => array(
'setting' => 'header_contact_enable',
'operator' => '==',
'value' => true,
),
));
// Quick contact 2 text
$lsvr_customizer->add_field( 'header_contact_custom2_text', array(
'section' => 'header_settings',
'label' => esc_html__( 'Contact Info 2 Text', 'beautyspot' ),
'type' => 'textarea',
'priority' => 5220,
'required' => array(
'setting' => 'header_contact_enable',
'operator' => '==',
'value' => true,
),
));
// Quick contact 3 icon
$lsvr_customizer->add_field( 'header_contact_custom3_icon', array(
'section' => 'header_settings',
'label' => esc_html__( 'Contact Info 3 Icon', 'beautyspot' ),
'type' => 'text',
'priority' => 5310,
'required' => array(
'setting' => 'header_contact_enable',
'operator' => '==',
'value' => true,
),
));
// Quick contact 3 text
$lsvr_customizer->add_field( 'header_contact_custom3_text', array(
'section' => 'header_settings',
'label' => esc_html__( 'Contact Info 3 Text', 'beautyspot' ),
'type' => 'textarea',
'priority' => 5320,
'required' => array(
'setting' => 'header_contact_enable',
'operator' => '==',
'value' => true,
),
));
// Quick contact 4 icon
$lsvr_customizer->add_field( 'header_contact_custom4_icon', array(
'section' => 'header_settings',
'label' => esc_html__( 'Contact Info 4 Icon', 'beautyspot' ),
'type' => 'text',
'priority' => 5410,
'required' => array(
'setting' => 'header_contact_enable',
'operator' => '==',
'value' => true,
),
));
// Quick contact 4 text
$lsvr_customizer->add_field( 'header_contact_custom4_text', array(
'section' => 'header_settings',
'label' => esc_html__( 'Contact Info 4 Text', 'beautyspot' ),
'type' => 'textarea',
'priority' => 5420,
'required' => array(
'setting' => 'header_contact_enable',
'operator' => '==',
'value' => true,
),
));
// Collapsible panel
$lsvr_customizer->add_field( 'header_panel_collapsible_enable', array(
'section' => 'header_settings',
'label' => esc_html__( 'Collapsible Panel on Desktop', 'beautyspot' ),
'description' => esc_html__( 'If you are using the quick contact, you can make it collapsible (together with the CTA) on desktop devices (it is always collapsible on smaller screens). If enabled, the panel will be automatically collapsed if there is a detected collision with the menu or branding.', 'beautyspot' ),
'type' => 'radio',
'choices' => array(
'disable' => esc_html__( 'Disable', 'beautyspot' ),
'auto' => esc_html__( 'Auto', 'beautyspot' ),
'expanded' => esc_html__( 'Collapsible (expanded by default)', 'beautyspot' ),
'collapsed' => esc_html__( 'Collapsible (collapsed by default)', 'beautyspot' ),
),
'default' => 'auto',
'priority' => 5500,
'required' => array(
'setting' => 'header_contact_enable',
'operator' => '==',
'value' => true,
),
));
// Separator
$lsvr_customizer->add_separator( 'header_separator_6', array(
'section' => 'header_settings',
'priority' => 6000,
));
// Show social links
$lsvr_customizer->add_field( 'header_social_links_enable', array(
'section' => 'header_settings',
'label' => esc_html__( 'Display Social Links in Header', 'beautyspot' ),
'description' => esc_html__( 'You can manage them under Customizer / Social Links.', 'beautyspot' ),
'type' => 'checkbox',
'default' => true,
'priority' => 6010,
));
// Footer settings
$lsvr_customizer->add_section( 'footer_settings', array(
'title' => esc_html__( 'Footer', 'beautyspot' ),
'priority' => 102,
));
// Background Image
$lsvr_customizer->add_field( 'footer_widgets_background_image', array(
'section' => 'footer_settings',
'label' => esc_html__( 'Background Image', 'beautyspot' ),
'description' => esc_html__( 'Background image for Footer Widgets section. Optimal resolution is about 2000x1600px.', 'beautyspot' ),
'type' => 'image',
'priority' => 1010,
));
// Background Overlay Opacity
$lsvr_customizer->add_field( 'footer_widgets_background_overlay_opacity', array(
'section' => 'footer_settings',
'label' => esc_html__( 'Background Overlay Opacity', 'beautyspot' ),
'description' => esc_html__( 'Overlay opacity for Footer Widgets section. Set to 0 for invisible overlay or to 100 for solid color.', 'beautyspot' ),
'type' => 'lsvr-slider',
'choices' => array(
'min' => 0,
'max' => 100,
'step' => 5,
),
'default' => 80,
'priority' => 1020,
));
// Footer widgets columns
$lsvr_customizer->add_field( 'footer_widgets_columns', array(
'section' => 'footer_settings',
'label' => esc_html__( 'Widget Columns', 'beautyspot' ),
'description' => esc_html__( 'How many columns should be used to display widgets in the footer. You can populate the footer with widgets under Appearance / Widgets.', 'beautyspot' ),
'type' => 'lsvr-slider',
'choices' => array(
'min' => 1,
'max' => 3,
'step' => 1,
),
'default' => 2,
'priority' => 1030,
));
// Separator
$lsvr_customizer->add_separator( 'footer_separator_4', array(
'section' => 'footer_settings',
'priority' => 4000,
));
// Footer text
$lsvr_customizer->add_field( 'footer_text', array(
'section' => 'footer_settings',
'label' => esc_html__( 'Footer Text', 'beautyspot' ),
'description' => esc_html__( 'Ideal for copyright info. You can use A, BR, EM, P and STRONG tags and CURRENT_YEAR variable to display the current year. For example: &copy; CURRENT_YEAR <a href="http://mysite.com">MySite</a>', 'beautyspot' ),
'type' => 'textarea',
'default' => '© CURRENT_YEAR ' . get_bloginfo( 'name' ),
'priority' => 4010,
));
// Sidebar settings
$lsvr_customizer->add_section( 'sidebar_settings', array(
'title' => esc_html__( 'Custom Sidebars', 'beautyspot' ),
'priority' => 115,
));
// Custom sidebars
$lsvr_customizer->add_field( 'custom_sidebars', array(
'section' => 'sidebar_settings',
'label' => esc_html__( 'Manage Custom Sidebars', 'beautyspot' ),
'description' => esc_html__( 'Here you can manage your custom sidebars. You can populate them with widgets under Appearance / Widgets. You can assign a sidebar to a page under Page Settings of that page. You can assign sidebars to post type pages (blog, galleries, etc.) in the Customizer.', 'beautyspot' ),
'type' => 'lsvr-sidebars',
'priority' => 1010,
));
// Blog settings
$lsvr_customizer->add_section( 'blog_settings', array(
'title' => esc_html__( 'Standard Posts', 'beautyspot' ),
'priority' => 120,
));
// Archive settings
$lsvr_customizer->add_info( 'blog_archive_info', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Archive Settings', 'beautyspot' ),
'description' => esc_html__( 'The following settings apply to post archive page. You can change your default post archive page under Settings / Reading. Scroll down for post detail page settings.', 'beautyspot' ),
'priority' => 1000,
));
// Archive layout
$lsvr_customizer->add_field( 'blog_archive_layout', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Archive Layout', 'beautyspot' ),
'description' => esc_html__( 'Change layout for the post archive page.', 'beautyspot' ),
'type' => 'select',
'choices' => array(
'default' => esc_html__( 'Default', 'beautyspot' ),
'grid' => esc_html__( 'Grid', 'beautyspot' ),
),
'default' => 'default',
'priority' => 1010,
));
// Archive grid columns
$lsvr_customizer->add_field( 'blog_archive_grid_columns', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Number of Columns', 'beautyspot' ),
'description' => esc_html__( 'Divide layout into several columns.', 'beautyspot' ),
'type' => 'lsvr-slider',
'choices' => array(
'min' => 1,
'max' => 3,
'step' => 1,
),
'default' => 3,
'priority' => 1020,
'required' => array(
'setting' => 'blog_archive_layout',
'operator' => '==',
'value' => 'grid',
),
));
// Enable categories
$lsvr_customizer->add_field( 'blog_archive_categories_enable', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Display Archive Categories', 'beautyspot' ),
'description' => esc_html__( 'Display links to categories at the top of the archive page.', 'beautyspot' ),
'type' => 'checkbox',
'default' => false,
'priority' => 1030,
));
// Enable masonry on archive
$lsvr_customizer->add_field( 'blog_archive_masonry_enable', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Enable Masonry On Archive', 'beautyspot' ),
'description' => esc_html__( 'Display posts grid using the masonry layout.', 'beautyspot' ),
'type' => 'checkbox',
'default' => false,
'priority' => 1040,
'required' => array(
'setting' => 'blog_archive_layout',
'operator' => '==',
'value' => 'grid',
),
));
// Archive sidebar position
$lsvr_customizer->add_field( 'blog_archive_sidebar_position', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Archive Sidebar Position', 'beautyspot' ),
'description' => esc_html__( 'Change the post archive sidebar position.', 'beautyspot' ),
'type' => 'select',
'choices' => array(
'disable' => esc_html__( 'Disable', 'beautyspot' ),
'left' => esc_html__( 'Left', 'beautyspot' ),
'right' => esc_html__( 'Right', 'beautyspot' ),
),
'default' => 'right',
'priority' => 1110,
));
// Archive sidebar ID
$lsvr_customizer->add_field( 'blog_archive_sidebar_id', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Archive Sidebar', 'beautyspot' ),
'description' => esc_html__( 'Choose sidebar to display.', 'beautyspot' ),
'type' => 'select',
'choices' => lsvr_beautyspot_get_sidebars(),
'priority' => 1120,
'default' => 'lsvr-beautyspot-default-sidebar',
'required' => array(
'setting' => 'blog_archive_sidebar_position',
'operator' => '==',
'value' => 'left,right',
),
));
// Separator
$lsvr_customizer->add_separator( 'blog_separator_1', array(
'section' => 'blog_settings',
'priority' => 2000,
));
// Detail settings
$lsvr_customizer->add_info( 'blog_single_info', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Detail Settings', 'beautyspot' ),
'description' => esc_html__( 'The following settings apply to post detail pages.', 'beautyspot' ),
'priority' => 2005,
));
// Enable author
$lsvr_customizer->add_field( 'blog_single_author_enable', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Display Author on Detail', 'beautyspot' ),
'description' => esc_html__( 'Display post author on post detail.', 'beautyspot' ),
'type' => 'checkbox',
'default' => true,
'priority' => 2010,
));
// Enable post detail navigation
$lsvr_customizer->add_field( 'blog_single_post_navigation_enable', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Enable Post Detail Navigation', 'beautyspot' ),
'description' => esc_html__( 'Display links to previous and next posts at the bottom of the current post.', 'beautyspot' ),
'type' => 'checkbox',
'default' => true,
'priority' => 2020,
));
// Single sidebar position
$lsvr_customizer->add_field( 'blog_single_sidebar_position', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Detail Sidebar Position', 'beautyspot' ),
'description' => esc_html__( 'Change the post detail sidebar position.', 'beautyspot' ),
'type' => 'select',
'choices' => array(
'disable' => esc_html__( 'Disable', 'beautyspot' ),
'left' => esc_html__( 'Left', 'beautyspot' ),
'right' => esc_html__( 'Right', 'beautyspot' ),
),
'default' => 'right',
'priority' => 2030,
));
// Single sidebar ID
$lsvr_customizer->add_field( 'blog_single_sidebar_id', array(
'section' => 'blog_settings',
'label' => esc_html__( 'Detail Sidebar', 'beautyspot' ),
'description' => esc_html__( 'Choose sidebar to display.', 'beautyspot' ),
'type' => 'select',
'choices' => lsvr_beautyspot_get_sidebars(),
'priority' => 2040,
'default' => 'lsvr-beautyspot-default-sidebar',
'required' => array(
'setting' => 'blog_single_sidebar_position',
'operator' => '==',
'value' => 'left,right',
),
));
// Typography
$lsvr_customizer->add_section( 'typography_settings', array(
'title' => esc_html__( 'Typography', 'beautyspot' ),
'priority' => 210,
));
// Enable Google Fonts
$lsvr_customizer->add_field( 'typography_google_fonts_enable', array(
'section' => 'typography_settings',
'label' => esc_html__( 'Enable Google Fonts', 'beautyspot' ),
'description' => esc_html__( 'If you disable Google Fonts, default sans-serif font will be used for all text.', 'beautyspot' ),
'type' => 'checkbox',
'default' => true,
'priority' => 1010,
));
// Primary font
$lsvr_customizer->add_field( 'typography_primary_font', array(
'section' => 'typography_settings',
'label' => esc_html__( 'Primary Font', 'beautyspot' ),
'description' => esc_html__( 'This font will be used for almost all text except some headlines and titles.', 'beautyspot' ),
'type' => 'select',
'choices' => array(
'Alegreya' => 'Alegreya',
'Alegreya+Sans' => 'Alegreya Sans',
'Archivo+Narrow' => 'Archivo Narrow',
'Assistant' => 'Assistant',
'Fira+Sans' => 'Fira Sans',
'Hind' => 'Hind',
'Inconsolata' => 'Inconsolata',
'Karla' => 'Karla',
'Lato' => 'Lato',
'Libre+Baskerville' => 'Libre Baskerville',
'Lora' => 'Lora',
'Merriweather' => 'Merriweather',
'Montserrat' => 'Montserrat',
'Nunito+Sans' => 'Nunito Sans',
'Open+Sans' => 'Open Sans',
'PT+Serif' => 'PT Serif',
'Playfair+Display' => 'Playfair Display',
'Roboto' => 'Roboto',
'Roboto+Slab' => 'Roboto Slab',
'Source+Sans+Pro' => 'Source Sans Pro',
'Source+Serif+Pro' => 'Source Serif Pro',
'Work+Sans' => 'Work Sans',
),
'default' => 'Source+Sans+Pro',
'priority' => 1020,
'required' => array(
'setting' => 'typography_google_fonts_enable',
'operator' => '==',
'value' => true,
),
));
// Secondary font
$lsvr_customizer->add_field( 'typography_secondary_font', array(
'section' => 'typography_settings',
'label' => esc_html__( 'Secondary Font', 'beautyspot' ),
'description' => esc_html__( 'This font will be used for most headlines.', 'beautyspot' ),
'type' => 'select',
'choices' => array(
'Alegreya' => 'Alegreya',
'Alegreya+Sans' => 'Alegreya Sans',
'Archivo+Narrow' => 'Archivo Narrow',
'Assistant' => 'Assistant',
'Fira+Sans' => 'Fira Sans',
'Hind' => 'Hind',
'Inconsolata' => 'Inconsolata',
'Karla' => 'Karla',
'Lato' => 'Lato',
'Libre+Baskerville' => 'Libre Baskerville',
'Lora' => 'Lora',
'Merriweather' => 'Merriweather',
'Montserrat' => 'Montserrat',
'Nunito+Sans' => 'Nunito Sans',
'Open+Sans' => 'Open Sans',
'PT+Serif' => 'PT Serif',
'Playfair+Display' => 'Playfair Display',
'Roboto' => 'Roboto',
'Roboto+Slab' => 'Roboto Slab',
'Source+Sans+Pro' => 'Source Sans Pro',
'Source+Serif+Pro' => 'Source Serif Pro',
'Work+Sans' => 'Work Sans',
),
'default' => 'Montserrat',
'priority' => 1030,
'required' => array(
'setting' => 'typography_google_fonts_enable',
'operator' => '==',
'value' => true,
),
));
// Base font size
$lsvr_customizer->add_field( 'typography_base_font_size', array(
'section' => 'typography_settings',
'label' => esc_html__( 'Base Font Size', 'beautyspot' ),
'description' => esc_html__( 'Font size of basic content text. All other font sizes will also be calculated from this value. Default font size is 16px.', 'beautyspot' ),
'type' => 'select',
'choices' => array(
'12' => esc_html__( '12px', 'beautyspot' ),
'13' => esc_html__( '13px', 'beautyspot' ),
'14' => esc_html__( '14px', 'beautyspot' ),
'15' => esc_html__( '15px', 'beautyspot' ),
'16' => esc_html__( '16px', 'beautyspot' ),
'17' => esc_html__( '17px', 'beautyspot' ),
'18' => esc_html__( '18px', 'beautyspot' ),
),
'default' => '16',
'priority' => 1040,
));
// Font subsets
$lsvr_customizer->add_field( 'typography_font_subsets', array(
'section' => 'typography_settings',
'label' => esc_html__( 'Font Subsets', 'beautyspot' ),
'description' => esc_html__( 'Only the Latin subset is loaded by default. If your site is in any other language than English, you may need to load an additional font subset. Please note that not all font families support all font subsets.', 'beautyspot' ),
'type' => 'lsvr-multicheck',
'choices' => array(
'latin-ext' => esc_html__( 'Latin Extended', 'beautyspot' ),
'greek' => esc_html__( 'Greek', 'beautyspot' ),
'greek-ext' => esc_html__( 'Greek Extended', 'beautyspot' ),
'vietnamese' => esc_html__( 'Vietnamese', 'beautyspot' ),
'cyrillic' => esc_html__( 'Cyrillic', 'beautyspot' ),
'cyrillic-ext' => esc_html__( 'Cyrillic Extended', 'beautyspot' ),
),
'priority' => 1050,
'required' => array(
'setting' => 'typography_google_fonts_enable',
'operator' => '==',
'value' => true,
),
));
// Colors
$lsvr_customizer->add_section( 'colors_settings', array(
'title' => esc_html__( 'Colors', 'beautyspot' ),
'priority' => 210,
));
// Colors method
$lsvr_customizer->add_field( 'colors_method', array(
'section' => 'colors_settings',
'label' => esc_html__( 'Set Colors By', 'beautyspot' ),
'type' => 'radio',
'choices' => array(
'predefined' => esc_html__( 'Predefined Scheme', 'beautyspot' ),
'custom-colors' => esc_html__( 'Custom Colors', 'beautyspot' ),
'custom-skin' => esc_html__( 'Custom Scheme', 'beautyspot' ),
),
'default' => 'predefined',
'priority' => 1010,
));
// Predefined skin
$lsvr_customizer->add_field( 'colors_predefined_skin', array(
'section' => 'colors_settings',
'label' => esc_html__( 'Choose Predefined Skin', 'beautyspot' ),
'type' => 'select',
'choices' => array(
'default' => esc_html__( 'Default', 'beautyspot' ),
'mavericks' => esc_html__( 'Mavericks', 'beautyspot' ),
'red-sunset' => esc_html__( 'Red Sunset', 'beautyspot' ),
'lavender' => esc_html__( 'Lavender', 'beautyspot' ),
),
'default' => 'default',
'priority' => 2010,
'required' => array(
'setting' => 'colors_method',
'operator' => '==',
'value' => 'predefined',
),
));
// Accent 1
$lsvr_customizer->add_field( 'colors_custom_accent1', array(
'section' => 'colors_settings',
'label' => esc_html__( 'Accent 1', 'beautyspot' ),
'type' => 'color',
'default' => '#ff007c',
'priority' => 3010,
'required' => array(
'setting' => 'colors_method',
'operator' => '==',
'value' => 'custom-colors',
),
));
// Accent 2
$lsvr_customizer->add_field( 'colors_custom_accent2', array(
'section' => 'colors_settings',
'label' => esc_html__( 'Accent 2', 'beautyspot' ),
'type' => 'color',
'default' => '#099db3',
'priority' => 3020,
'required' => array(
'setting' => 'colors_method',
'operator' => '==',
'value' => 'custom-colors',
),
));
// Accent 3
$lsvr_customizer->add_field( 'colors_custom_accent3', array(
'section' => 'colors_settings',
'label' => esc_html__( 'Accent 3', 'beautyspot' ),
'type' => 'color',
'default' => '#edcf56',
'priority' => 3030,
'required' => array(
'setting' => 'colors_method',
'operator' => '==',
'value' => 'custom-colors',
),
));
// Link
$lsvr_customizer->add_field( 'colors_custom_link', array(
'section' => 'colors_settings',
'label' => esc_html__( 'Link', 'beautyspot' ),
'type' => 'color',
'default' => '#ff007c',
'priority' => 3040,
'required' => array(
'setting' => 'colors_method',
'operator' => '==',
'value' => 'custom-colors',
),
));
// Text
$lsvr_customizer->add_field( 'colors_custom_text', array(
'section' => 'colors_settings',
'label' => esc_html__( 'Text', 'beautyspot' ),
'type' => 'color',
'default' => '#585858',
'priority' => 3050,
'required' => array(
'setting' => 'colors_method',
'operator' => '==',
'value' => 'custom-colors',
),
));
// Child style.csss
$lsvr_customizer->add_info( 'colors_info_skin', array(
'section' => 'colors_settings',
'label' => esc_html( 'About Custom Scheme', 'beautyspot' ),
'description' => esc_html__( 'Please refer to the documentation on how to generate your custom color scheme. Put your generated code into child theme\'s style.css file (you can access it via Appearance / Editor).', 'beautyspot' ),
'priority' => 4010,
'required' => array(
'setting' => 'colors_method',
'operator' => '==',
'value' => 'custom-skin',
),
));
// Social settings
$lsvr_customizer->add_section( 'social_settings', array(
'title' => esc_html__( 'Social Links', 'beautyspot' ),
'priority' => 220,
));
// About
$lsvr_customizer->add_info( 'social_links_info', array(
'section' => 'social_settings',
'label' => esc_html( 'Info', 'beautyspot' ),
'description' => esc_html__( 'You can add your social links either by using custom fields, predefined fields or combination of both.', 'beautyspot' ),
'priority' => 1000,
));
// Custom Social Link 1 Icon
$lsvr_customizer->add_field( 'custom_social_link1_icon', array(
'section' => 'social_settings',
'label' => esc_html__( 'Custom Social Link 1 Icon', 'beautyspot' ),
'description' => esc_html__( 'Add icon class here. Please refer to the documentation to learn more about icons.', 'beautyspot' ),
'type' => 'text',
'priority' => 1110,
));
// Custom Social Link 1 URL
$lsvr_customizer->add_field( 'custom_social_link1_url', array(
'section' => 'social_settings',
'label' => esc_html__( 'Custom Social Link 1 URL', 'beautyspot' ),
'description' => esc_html__( 'Absolute URL to your social profile.', 'beautyspot' ),
'type' => 'text',
'priority' => 1120,
));
// Custom Social Link 1 Label
$lsvr_customizer->add_field( 'custom_social_link1_label', array(
'section' => 'social_settings',
'label' => esc_html__( 'Custom Social Link 1 Label', 'beautyspot' ),
'description' => esc_html__( 'This label will appear when you hover over the icon.', 'beautyspot' ),
'type' => 'text',
'priority' => 1130,
));
// Custom Social Link 2 Icon
$lsvr_customizer->add_field( 'custom_social_link2_icon', array(
'section' => 'social_settings',
'label' => esc_html__( 'Custom Social Link 2 Icon', 'beautyspot' ),
'type' => 'text',
'priority' => 1210,
));
// Custom Social Link 2 URL
$lsvr_customizer->add_field( 'custom_social_link2_url', array(
'section' => 'social_settings',
'label' => esc_html__( 'Custom Social Link 2 URL', 'beautyspot' ),
'type' => 'text',
'priority' => 1220,
));
// Custom Social Link 2 Label
$lsvr_customizer->add_field( 'custom_social_link2_label', array(
'section' => 'social_settings',
'label' => esc_html__( 'Custom Social Link 2 Label', 'beautyspot' ),
'type' => 'text',
'priority' => 1230,
));
// Custom Social Link 3 Icon
$lsvr_customizer->add_field( 'custom_social_link3_icon', array(
'section' => 'social_settings',
'label' => esc_html__( 'Custom Social Link 3 Icon', 'beautyspot' ),
'type' => 'text',
'priority' => 1310,
));
// Custom Social Link 3 URL
$lsvr_customizer->add_field( 'custom_social_link3_url', array(
'section' => 'social_settings',
'label' => esc_html__( 'Custom Social Link 3 URL', 'beautyspot' ),
'type' => 'text',
'priority' => 1320,
));
// Custom Social Link 3 Label
$lsvr_customizer->add_field( 'custom_social_link3_label', array(
'section' => 'social_settings',
'label' => esc_html__( 'Custom Social Link 3 Label', 'beautyspot' ),
'type' => 'text',
'priority' => 1330,
));
// Separator
$lsvr_customizer->add_separator( 'social_links_separator_1', array(
'section' => 'social_settings',
'priority' => 2000,
));
// Predefined Social Links
$lsvr_customizer->add_field( 'social_links', array(
'section' => 'social_settings',
'label' => esc_html__( 'Predefined Social Links', 'beautyspot' ),
'description' => esc_html__( 'Insert URLs into inputs of social networks which you want to display. You can drag and drop items to change the order.', 'beautyspot' ),
'type' => 'lsvr-social-links',
'choices' => array(
'email' => array(
'label' => esc_html__( 'Email', 'beautyspot' ),
'icon' => 'icon-envelope-o',
),
'500px' => array(
'label' => esc_html__( '500px', 'beautyspot' ),
'icon' => 'icon-500px',
),
'bandcamp' => array(
'label' => esc_html__( 'Bandcamp', 'beautyspot' ),
'icon' => 'icon-bandcamp',
),
'behance' => array(
'label' => esc_html__( 'Behance', 'beautyspot' ),
'icon' => 'icon-behance',
),
'codepen' => array(
'label' => esc_html__( 'CodePen', 'beautyspot' ),
'icon' => 'icon-codepen',
),
'deviantart' => array(
'label' => esc_html__( 'DeviantArt', 'beautyspot' ),
'icon' => 'icon-deviantart',
),
'dribbble' => array(
'label' => esc_html__( 'Dribbble', 'beautyspot' ),
'icon' => 'icon-dribbble',
),
'dropbox' => array(
'label' => esc_html__( 'Dropbox', 'beautyspot' ),
'icon' => 'icon-dropbox',
),
'etsy' => array(
'label' => esc_html__( 'Etsy', 'beautyspot' ),
'icon' => 'icon-etsy',
),
'facebook' => array(
'label' => esc_html__( 'Facebook', 'beautyspot' ),
'icon' => 'icon-facebook',
),
'flickr' => array(
'label' => esc_html__( 'Flickr', 'beautyspot' ),
'icon' => 'icon-flickr',
),
'foursquare' => array(
'label' => esc_html__( 'Foursquare', 'beautyspot' ),
'icon' => 'icon-foursquare',
),
'github' => array(
'label' => esc_html__( 'Github', 'beautyspot' ),
'icon' => 'icon-github',
),
'google-plus' => array(
'label' => esc_html__( 'Google+', 'beautyspot' ),
'icon' => 'icon-google-plus',
),
'instagram' => array(
'label' => esc_html__( 'Instagram', 'beautyspot' ),
'icon' => 'icon-instagram',
),
'lastfm' => array(
'label' => esc_html__( 'last.fm', 'beautyspot' ),
'icon' => 'icon-lastfm',
),
'linkedin' => array(
'label' => esc_html__( 'LinkedIn', 'beautyspot' ),
'icon' => 'icon-linkedin',
),
'odnoklassniki' => array(
'label' => esc_html__( 'Odnoklassniki', 'beautyspot' ),
'icon' => 'icon-odnoklassniki',
),
'pinterest' => array(
'label' => esc_html__( 'Pinterest', 'beautyspot' ),
'icon' => 'icon-pinterest',
),
'qq' => array(
'label' => esc_html__( 'QQ', 'beautyspot' ),
'icon' => 'icon-qq',
),
'reddit' => array(
'label' => esc_html__( 'Reddit', 'beautyspot' ),
'icon' => 'icon-reddit',
),
'skype' => array(
'label' => esc_html__( 'Skype', 'beautyspot' ),
'icon' => 'icon-skype',
),
'slack' => array(
'label' => esc_html__( 'Slack', 'beautyspot' ),
'icon' => 'icon-slack',
),
'snapchat' => array(
'label' => esc_html__( 'Snapchat', 'beautyspot' ),
'icon' => 'icon-snapchat',
),
'tripadvisor' => array(
'label' => esc_html__( 'TripAdvisor', 'beautyspot' ),
'icon' => 'icon-tripadvisor',
),
'tumblr' => array(
'label' => esc_html__( 'Tumblr', 'beautyspot' ),
'icon' => 'icon-tumblr',
),
'twitch' => array(
'label' => esc_html__( 'Twitch', 'beautyspot' ),
'icon' => 'icon-twitch',
),
'twitter' => array(
'label' => esc_html__( 'Twitter', 'beautyspot' ),
'icon' => 'icon-twitter',
),
'vimeo' => array(
'label' => esc_html__( 'Vimeo', 'beautyspot' ),
'icon' => 'icon-vimeo',
),
'vk' => array(
'label' => esc_html__( 'VK', 'beautyspot' ),
'icon' => 'icon-vk',
),
'yahoo' => array(
'label' => esc_html__( 'Yahoo', 'beautyspot' ),
'icon' => 'icon-yahoo',
),
'yelp' => array(
'label' => esc_html__( 'Yelp', 'beautyspot' ),
'icon' => 'icon-yelp',
),
'youtube' => array(
'label' => esc_html__( 'YouTube', 'beautyspot' ),
'icon' => 'icon-youtube',
),
),
'priority' => 2010,
));
// Language settings
$lsvr_customizer->add_section( 'language_settings', array(
'title' => esc_html__( 'Languages', 'beautyspot' ),
'priority' => 230,
));
// About
$lsvr_customizer->add_info( 'language_info', array(
'section' => 'language_settings',
'label' => esc_html( 'Info', 'beautyspot' ),
'description' => esc_html__( 'The following settings are useful if you want to run your site in more than one language. If you just want to translate the theme to a single language, please check out the documentation on how to do that.', 'beautyspot' ),
'priority' => 1000,
));
// Language switcher
$lsvr_customizer->add_field( 'language_switcher', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language Switcher', 'beautyspot' ),
'description' => esc_html__( 'Display links to other language versions. WPML plugin is required for "WPML Generated" option to work.', 'beautyspot' ),
'type' => 'radio',
'choices' => array(
'disable' => esc_html__( 'Disable', 'beautyspot' ),
'wpml' => esc_html__( 'WPML Generated', 'beautyspot' ),
'custom' => esc_html__( 'Custom Links', 'beautyspot' ),
),
'default' => 'disable',
'priority' => 1010,
));
// Custom lang 1 label
$lsvr_customizer->add_field( 'language_custom1_label', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 1 Label', 'beautyspot' ),
'description' => esc_html__( 'For example "EN", "DE" or "ES".', 'beautyspot' ),
'type' => 'text',
'priority' => 1020,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 1 code
$lsvr_customizer->add_field( 'language_custom1_code', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 1 Code', 'beautyspot' ),
'description' => esc_html__( 'It will be used to determine the active language. For example "en_US", "de_DE" or "es_ES".', 'beautyspot' ),
'type' => 'text',
'priority' => 1030,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 1 URL
$lsvr_customizer->add_field( 'language_custom1_url', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 1 URL', 'beautyspot' ),
'description' => esc_html__( 'For example "http://mysite.com/en".', 'beautyspot' ),
'type' => 'text',
'priority' => 1040,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 2 label
$lsvr_customizer->add_field( 'language_custom2_label', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 2 Label', 'beautyspot' ),
'type' => 'text',
'priority' => 1050,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 2 code
$lsvr_customizer->add_field( 'language_custom2_code', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 2 Code', 'beautyspot' ),
'type' => 'text',
'priority' => 1060,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 2 URL
$lsvr_customizer->add_field( 'language_custom2_url', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 2 URL', 'beautyspot' ),
'type' => 'text',
'priority' => 1070,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 3 label
$lsvr_customizer->add_field( 'language_custom3_label', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 3 Label', 'beautyspot' ),
'type' => 'text',
'priority' => 1080,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 3 code
$lsvr_customizer->add_field( 'language_custom3_code', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 3 Code', 'beautyspot' ),
'type' => 'text',
'priority' => 1090,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 3 URL
$lsvr_customizer->add_field( 'language_custom3_url', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 3 URL', 'beautyspot' ),
'type' => 'text',
'priority' => 1100,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 4 label
$lsvr_customizer->add_field( 'language_custom4_label', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 4 Label', 'beautyspot' ),
'type' => 'text',
'priority' => 1100,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 4 code
$lsvr_customizer->add_field( 'language_custom4_code', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 4 Code', 'beautyspot' ),
'type' => 'text',
'priority' => 1120,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Custom lang 4 URL
$lsvr_customizer->add_field( 'language_custom4_url', array(
'section' => 'language_settings',
'label' => esc_html__( 'Language 4 URL', 'beautyspot' ),
'type' => 'text',
'priority' => 1130,
'required' => array(
'setting' => 'language_switcher',
'operator' => '==',
'value' => 'custom',
),
));
// Misc settings
$lsvr_customizer->add_section( 'misc_settings', array(
'title' => esc_html__( 'Misc', 'beautyspot' ),
'priority' => 240,
));
// Search input placeholder
$lsvr_customizer->add_field( 'search_input_placeholder', array(
'section' => 'misc_settings',
'label' => __( 'Search Input Placeholder', 'beautyspot' ),
'description' => esc_html__( 'Placeholder text for search input.', 'beautyspot' ),
'type' => 'text',
'default' => esc_html__( 'Search...', 'beautyspot' ),
'priority' => 1020,
));
// Search results excerpt
$lsvr_customizer->add_field( 'search_results_excerpt_enable', array(
'section' => 'misc_settings',
'label' => __( 'Search Results Excerpt', 'beautyspot' ),
'description' => esc_html__( 'Display post excerpt on search results page.', 'beautyspot' ),
'type' => 'checkbox',
'default' => false,
'priority' => 1020,
));
}
}
}
?> |