File: /home/clinicamaciel/www/site/wp-content/themes/bedentist/inc/customizer.php
<?php
/**
* Theme Customizer.
*
* @package Be_Dentist
*/
/**
* Retrieve a holder for Customizer options.
*
* @since 1.0.0
* @return array
*/
function be_dentist_get_customizer_options() {
/**
* Filter a holder for Customizer options (for theme/plugin developer customization).
*
* @since 1.0.0
*/
return apply_filters( 'be_dentist_get_customizer_options' , array(
'prefix' => 'be_dentist',
'capability' => 'edit_theme_options',
'type' => 'theme_mod',
'options' => array(
/** 'Site Indentity' section */
'show_tagline' => array(
'title' => esc_html__( 'Show tagline after logo', 'be_dentist' ),
'section' => 'title_tagline',
'priority' => 60,
'default' => false,
'field' => 'checkbox',
'type' => 'control',
),
'totop_visibility' => array(
'title' => esc_html__( 'Enable topTop button', 'be_dentist' ),
'section' => 'title_tagline',
'priority' => 61,
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'page_preloader' => array(
'title' => esc_html__( 'Show preloader when open a page', 'be_dentist' ),
'section' => 'title_tagline',
'priority' => 62,
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'general_settings' => array(
'title' => esc_html__( 'General Site settings', 'be_dentist' ),
'priority' => 40,
'type' => 'panel',
),
/** `Logo & Favicon` section */
'logo_favicon' => array(
'title' => esc_html__( 'Logo & Favicon', 'be_dentist' ),
'priority' => 25,
'panel' => 'general_settings',
'type' => 'section',
),
'header_logo_type' => array(
'title' => esc_html__( 'Logo Type', 'be_dentist' ),
'section' => 'logo_favicon',
'default' => 'image',
'field' => 'radio',
'choices' => array(
'image' => esc_html__( 'Image', 'be_dentist' ),
'text' => esc_html__( 'Text', 'be_dentist' ),
),
'type' => 'control',
),
'header_logo_url' => array(
'title' => esc_html__( 'Logo Upload', 'be_dentist' ),
'description' => esc_html__( 'Upload logo image', 'be_dentist' ),
'section' => 'logo_favicon',
'default' => get_stylesheet_directory_uri() . '/assets/images/logo.png',
'field' => 'image',
'type' => 'control',
'active_callback' => 'be_dentist_is_header_logo_image',
),
'retina_header_logo_url' => array(
'title' => esc_html__( 'Retina Logo Upload', 'be_dentist' ),
'description' => esc_html__( 'Upload logo for retina-ready devices', 'be_dentist' ),
'section' => 'logo_favicon',
'field' => 'image',
'type' => 'control',
'active_callback' => 'be_dentist_is_header_logo_image',
),
'header_logo_font_family' => array(
'title' => esc_html__( 'Font Family', 'be_dentist' ),
'section' => 'logo_favicon',
'default' => 'Alegria sans',
'field' => 'fonts',
'type' => 'control',
'active_callback' => 'be_dentist_is_header_logo_text',
),
'header_logo_font_style' => array(
'title' => esc_html__( 'Font Style', 'be_dentist' ),
'section' => 'logo_favicon',
'default' => 'normal',
'field' => 'select',
'choices' => be_dentist_get_font_styles(),
'type' => 'control',
'active_callback' => 'be_dentist_is_header_logo_text',
),
'header_logo_font_weight' => array(
'title' => esc_html__( 'Font Weight', 'be_dentist' ),
'section' => 'logo_favicon',
'default' => '700',
'field' => 'select',
'choices' => be_dentist_get_font_weight(),
'type' => 'control',
'active_callback' => 'be_dentist_is_header_logo_text',
),
'header_logo_font_size' => array(
'title' => esc_html__( 'Font Size, px', 'be_dentist' ),
'section' => 'logo_favicon',
'default' => '40',
'field' => 'number',
'input_attrs' => array(
'min' => 6,
'max' => 50,
'step' => 1,
),
'type' => 'control',
'active_callback' => 'be_dentist_is_header_logo_text',
),
'header_logo_character_set' => array(
'title' => esc_html__( 'Character Set', 'be_dentist' ),
'section' => 'logo_favicon',
'default' => 'latin',
'field' => 'select',
'choices' => be_dentist_get_character_sets(),
'type' => 'control',
'active_callback' => 'be_dentist_is_header_logo_text',
),
/** `Breadcrumbs` section */
'breadcrumbs' => array(
'title' => esc_html__( 'Breadcrumbs', 'be_dentist' ),
'priority' => 30,
'type' => 'section',
'panel' => 'general_settings',
),
'breadcrumbs_path_type' => array(
'title' => esc_html__( 'Show full/minified breadcrumbs path', 'be_dentist' ),
'section' => 'breadcrumbs',
'default' => 'minified',
'field' => 'select',
'choices' => array(
'full' => esc_html__( 'Full', 'be_dentist' ),
'minified' => esc_html__( 'Minified', 'be_dentist' ),
),
'type' => 'control',
),
'breadcrumbs_page_title' => array(
'title' => esc_html__( 'Enable page title in breadcrumbs area', 'be_dentist' ),
'section' => 'breadcrumbs',
'default' => false,
'field' => 'checkbox',
'type' => 'control',
),
'breadcrumbs_visibillity' => array(
'title' => esc_html__( 'Enable Breadcrumbs', 'be_dentist' ),
'section' => 'breadcrumbs',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'breadcrumbs_front_visibillity' => array(
'title' => esc_html__( 'Enable Breadcrumbs on front page', 'be_dentist' ),
'section' => 'breadcrumbs',
'default' => false,
'field' => 'checkbox',
'type' => 'control',
),
/** `Color Scheme` panel */
'color_scheme' => array(
'title' => esc_html__( 'Color Scheme', 'be_dentist' ),
'description' => esc_html__( 'Configure Color Scheme', 'be_dentist' ),
'priority' => 40,
'type' => 'panel',
),
/** `Regular scheme` section */
'regular_scheme' => array(
'title' => esc_html__( 'Regular scheme', 'be_dentist' ),
'priority' => 1,
'panel' => 'color_scheme',
'type' => 'section',
),
'regular_accent_color_1' => array(
'title' => esc_html__( 'Accent color (1)', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#0095e5',
'field' => 'hex_color',
'type' => 'control',
),
'regular_accent_color_2' => array(
'title' => esc_html__( 'Accent color (2)', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#f7f7f7',
'field' => 'hex_color',
'type' => 'control',
),
'regular_text_color' => array(
'title' => esc_html__( 'Text color', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#616262',
'field' => 'hex_color',
'type' => 'control',
),
'regular_link_color' => array(
'title' => esc_html__( 'Link color', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#949494',
'field' => 'hex_color',
'type' => 'control',
),
'regular_link_hover_color' => array(
'title' => esc_html__( 'Link hover color', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#0674d1',
'field' => 'hex_color',
'type' => 'control',
),
'regular_h1_color' => array(
'title' => esc_html__( 'H1 color', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#0095e5',
'field' => 'hex_color',
'type' => 'control',
),
'regular_h2_color' => array(
'title' => esc_html__( 'H2 color', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#0095e5',
'field' => 'hex_color',
'type' => 'control',
),
'regular_h3_color' => array(
'title' => esc_html__( 'H3 color', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#0095e5',
'field' => 'hex_color',
'type' => 'control',
),
'regular_h4_color' => array(
'title' => esc_html__( 'H4 color', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#0095e5',
'field' => 'hex_color',
'type' => 'control',
),
'regular_h5_color' => array(
'title' => esc_html__( 'H5 color', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#0095e5',
'field' => 'hex_color',
'type' => 'control',
),
'regular_h6_color' => array(
'title' => esc_html__( 'H6 color', 'be_dentist' ),
'section' => 'regular_scheme',
'default' => '#616262',
'field' => 'hex_color',
'type' => 'control',
),
/** `Invert scheme` section */
'invert_scheme' => array(
'title' => esc_html__( 'Invert scheme', 'be_dentist' ),
'priority' => 1,
'panel' => 'color_scheme',
'type' => 'section',
),
'invert_accent_color_1' => array(
'title' => esc_html__( 'Accent color (1)', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#ffffff',
'field' => 'hex_color',
'type' => 'control',
),
'invert_accent_color_2' => array(
'title' => esc_html__( 'Accent color (2)', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#303043',
'field' => 'hex_color',
'type' => 'control',
),
'invert_text_color' => array(
'title' => esc_html__( 'Text color', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#ffffff',
'field' => 'hex_color',
'type' => 'control',
),
'invert_link_color' => array(
'title' => esc_html__( 'Link color', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#ffffff',
'field' => 'hex_color',
'type' => 'control',
),
'invert_link_hover_color' => array(
'title' => esc_html__( 'Link hover color', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#0674d1',
'field' => 'hex_color',
'type' => 'control',
),
'invert_h1_color' => array(
'title' => esc_html__( 'H1 color', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#ffffff',
'field' => 'hex_color',
'type' => 'control',
),
'invert_h2_color' => array(
'title' => esc_html__( 'H2 color', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#ffffff',
'field' => 'hex_color',
'type' => 'control',
),
'invert_h3_color' => array(
'title' => esc_html__( 'H3 color', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#ffffff',
'field' => 'hex_color',
'type' => 'control',
),
'invert_h4_color' => array(
'title' => esc_html__( 'H4 color', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#ffffff',
'field' => 'hex_color',
'type' => 'control',
),
'invert_h5_color' => array(
'title' => esc_html__( 'H5 color', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#ffffff',
'field' => 'hex_color',
'type' => 'control',
),
'invert_h6_color' => array(
'title' => esc_html__( 'H6 color', 'be_dentist' ),
'section' => 'invert_scheme',
'default' => '#ffffff',
'field' => 'hex_color',
'type' => 'control',
),
/** `Typography Settings` panel */
'typography' => array(
'title' => esc_html__( 'Typography', 'be_dentist' ),
'description' => esc_html__( 'Configure typography settings', 'be_dentist' ),
'priority' => 45,
'type' => 'panel',
),
/** `Body text` section */
'body_typography' => array(
'title' => esc_html__( 'Body text', 'be_dentist' ),
'priority' => 5,
'panel' => 'typography',
'type' => 'section',
),
'body_font_family' => array(
'title' => esc_html__( 'Font Family', 'be_dentist' ),
'section' => 'body_typography',
'default' => 'Alegreya Sans',
'field' => 'fonts',
'type' => 'control',
),
'body_font_style' => array(
'title' => esc_html__( 'Font Style', 'be_dentist' ),
'section' => 'body_typography',
'default' => 'normal',
'field' => 'select',
'choices' => be_dentist_get_font_styles(),
'type' => 'control',
),
'body_font_weight' => array(
'title' => esc_html__( 'Font Weight', 'be_dentist' ),
'section' => 'body_typography',
'default' => '400',
'field' => 'select',
'choices' => be_dentist_get_font_weight(),
'type' => 'control',
),
'body_font_size' => array(
'title' => esc_html__( 'Font Size, px', 'be_dentist' ),
'section' => 'body_typography',
'default' => '20',
'field' => 'number',
'input_attrs' => array(
'min' => 6,
'max' => 50,
'step' => 1,
),
'type' => 'control',
),
'body_line_height' => array(
'title' => esc_html__( 'Line Height', 'be_dentist' ),
'description' => esc_html__( 'Relative to the font-size of the element', 'be_dentist' ),
'section' => 'body_typography',
'default' => '1.2',
'field' => 'number',
'input_attrs' => array(
'min' => 1.0,
'max' => 3.0,
'step' => 0.1,
),
'type' => 'control',
),
'body_letter_spacing' => array(
'title' => esc_html__( 'Letter Spacing, px', 'be_dentist' ),
'section' => 'body_typography',
'default' => '0',
'field' => 'number',
'input_attrs' => array(
'min' => -10,
'max' => 10,
'step' => 1,
),
'type' => 'control',
),
'body_character_set' => array(
'title' => esc_html__( 'Character Set', 'be_dentist' ),
'section' => 'body_typography',
'default' => 'latin',
'field' => 'select',
'choices' => be_dentist_get_character_sets(),
'type' => 'control',
),
'body_text_align' => array(
'title' => esc_html__( 'Text Align', 'be_dentist' ),
'section' => 'body_typography',
'default' => 'left',
'field' => 'select',
'choices' => be_dentist_get_text_aligns(),
'type' => 'control',
),
/** `H1 Heading` section */
'h1_typography' => array(
'title' => esc_html__( 'H1 Heading', 'be_dentist' ),
'priority' => 10,
'panel' => 'typography',
'type' => 'section',
),
'h1_font_family' => array(
'title' => esc_html__( 'Font Family', 'be_dentist' ),
'section' => 'h1_typography',
'default' => 'Alegreya Sans',
'field' => 'fonts',
'type' => 'control',
),
'h1_font_style' => array(
'title' => esc_html__( 'Font Style', 'be_dentist' ),
'section' => 'h1_typography',
'default' => 'normal',
'field' => 'select',
'choices' => be_dentist_get_font_styles(),
'type' => 'control',
),
'h1_font_weight' => array(
'title' => esc_html__( 'Font Weight', 'be_dentist' ),
'section' => 'h1_typography',
'default' => '800',
'field' => 'select',
'choices' => be_dentist_get_font_weight(),
'type' => 'control',
),
'h1_font_size' => array(
'title' => esc_html__( 'Font Size, px', 'be_dentist' ),
'section' => 'h1_typography',
'default' => '80',
'field' => 'number',
'input_attrs' => array(
'min' => 10,
'max' => 200,
'step' => 1,
),
'type' => 'control',
),
'h1_line_height' => array(
'title' => esc_html__( 'Line Height', 'be_dentist' ),
'description' => esc_html__( 'Relative to the font-size of the element', 'be_dentist' ),
'section' => 'h1_typography',
'default' => '1.1',
'field' => 'number',
'input_attrs' => array(
'min' => 1.0,
'max' => 3.0,
'step' => 0.1,
),
'type' => 'control',
),
'h1_letter_spacing' => array(
'title' => esc_html__( 'Letter Spacing, px', 'be_dentist' ),
'section' => 'h1_typography',
'default' => '0',
'field' => 'number',
'input_attrs' => array(
'min' => -10,
'max' => 10,
'step' => 1,
),
'type' => 'control',
),
'h1_character_set' => array(
'title' => esc_html__( 'Character Set', 'be_dentist' ),
'section' => 'h1_typography',
'default' => 'latin',
'field' => 'select',
'choices' => be_dentist_get_character_sets(),
'type' => 'control',
),
'h1_text_align' => array(
'title' => esc_html__( 'Text Align', 'be_dentist' ),
'section' => 'h1_typography',
'default' => 'inherit',
'field' => 'select',
'choices' => be_dentist_get_text_aligns(),
'type' => 'control',
),
/** `H2 Heading` section */
'h2_typography' => array(
'title' => esc_html__( 'H2 Heading', 'be_dentist' ),
'priority' => 15,
'panel' => 'typography',
'type' => 'section',
),
'h2_font_family' => array(
'title' => esc_html__( 'Font Family', 'be_dentist' ),
'section' => 'h2_typography',
'default' => 'Alegreya Sans',
'field' => 'fonts',
'type' => 'control',
),
'h2_font_style' => array(
'title' => esc_html__( 'Font Style', 'be_dentist' ),
'section' => 'h2_typography',
'default' => 'normal',
'field' => 'select',
'choices' => be_dentist_get_font_styles(),
'type' => 'control',
),
'h2_font_weight' => array(
'title' => esc_html__( 'Font Weight', 'be_dentist' ),
'section' => 'h2_typography',
'default' => '800',
'field' => 'select',
'choices' => be_dentist_get_font_weight(),
'type' => 'control',
),
'h2_font_size' => array(
'title' => esc_html__( 'Font Size, px', 'be_dentist' ),
'section' => 'h2_typography',
'default' => '70',
'field' => 'number',
'input_attrs' => array(
'min' => 10,
'max' => 200,
'step' => 1,
),
'type' => 'control',
),
'h2_line_height' => array(
'title' => esc_html__( 'Line Height', 'be_dentist' ),
'description' => esc_html__( 'Relative to the font-size of the element', 'be_dentist' ),
'section' => 'h2_typography',
'default' => '1.1',
'field' => 'number',
'input_attrs' => array(
'min' => 1.0,
'max' => 3.0,
'step' => 0.1,
),
'type' => 'control',
),
'h2_letter_spacing' => array(
'title' => esc_html__( 'Letter Spacing, px', 'be_dentist' ),
'section' => 'h2_typography',
'default' => '0',
'field' => 'number',
'input_attrs' => array(
'min' => -10,
'max' => 10,
'step' => 1,
),
'type' => 'control',
),
'h2_character_set' => array(
'title' => esc_html__( 'Character Set', 'be_dentist' ),
'section' => 'h2_typography',
'default' => 'latin',
'field' => 'select',
'choices' => be_dentist_get_character_sets(),
'type' => 'control',
),
'h2_text_align' => array(
'title' => esc_html__( 'Text Align', 'be_dentist' ),
'section' => 'h2_typography',
'default' => 'inherit',
'field' => 'select',
'choices' => be_dentist_get_text_aligns(),
'type' => 'control',
),
/** `H3 Heading` section */
'h3_typography' => array(
'title' => esc_html__( 'H3 Heading', 'be_dentist' ),
'priority' => 20,
'panel' => 'typography',
'type' => 'section',
),
'h3_font_family' => array(
'title' => esc_html__( 'Font Family', 'be_dentist' ),
'section' => 'h3_typography',
'default' => 'Alegreya Sans',
'field' => 'fonts',
'type' => 'control',
),
'h3_font_style' => array(
'title' => esc_html__( 'Font Style', 'be_dentist' ),
'section' => 'h3_typography',
'default' => 'normal',
'field' => 'select',
'choices' => be_dentist_get_font_styles(),
'type' => 'control',
),
'h3_font_weight' => array(
'title' => esc_html__( 'Font Weight', 'be_dentist' ),
'section' => 'h3_typography',
'default' => '700',
'field' => 'select',
'choices' => be_dentist_get_font_weight(),
'type' => 'control',
),
'h3_font_size' => array(
'title' => esc_html__( 'Font Size, px', 'be_dentist' ),
'section' => 'h3_typography',
'default' => '50',
'field' => 'number',
'input_attrs' => array(
'min' => 10,
'max' => 200,
'step' => 1,
),
'type' => 'control',
),
'h3_line_height' => array(
'title' => esc_html__( 'Line Height', 'be_dentist' ),
'description' => esc_html__( 'Relative to the font-size of the element', 'be_dentist' ),
'section' => 'h3_typography',
'default' => '1.1',
'field' => 'number',
'input_attrs' => array(
'min' => 1.0,
'max' => 3.0,
'step' => 0.1,
),
'type' => 'control',
),
'h3_letter_spacing' => array(
'title' => esc_html__( 'Letter Spacing, px', 'be_dentist' ),
'section' => 'h3_typography',
'default' => '0',
'field' => 'number',
'input_attrs' => array(
'min' => -10,
'max' => 10,
'step' => 1,
),
'type' => 'control',
),
'h3_character_set' => array(
'title' => esc_html__( 'Character Set', 'be_dentist' ),
'section' => 'h3_typography',
'default' => 'latin',
'field' => 'select',
'choices' => be_dentist_get_character_sets(),
'type' => 'control',
),
'h3_text_align' => array(
'title' => esc_html__( 'Text Align', 'be_dentist' ),
'section' => 'h3_typography',
'default' => 'inherit',
'field' => 'select',
'choices' => be_dentist_get_text_aligns(),
'type' => 'control',
),
/** `H4 Heading` section */
'h4_typography' => array(
'title' => esc_html__( 'H4 Heading', 'be_dentist' ),
'priority' => 25,
'panel' => 'typography',
'type' => 'section',
),
'h4_font_family' => array(
'title' => esc_html__( 'Font Family', 'be_dentist' ),
'section' => 'h4_typography',
'default' => 'Alegreya Sans',
'field' => 'fonts',
'type' => 'control',
),
'h4_font_style' => array(
'title' => esc_html__( 'Font Style', 'be_dentist' ),
'section' => 'h4_typography',
'default' => 'normal',
'field' => 'select',
'choices' => be_dentist_get_font_styles(),
'type' => 'control',
),
'h4_font_weight' => array(
'title' => esc_html__( 'Font Weight', 'be_dentist' ),
'section' => 'h4_typography',
'default' => '400',
'field' => 'select',
'choices' => be_dentist_get_font_weight(),
'type' => 'control',
),
'h4_font_size' => array(
'title' => esc_html__( 'Font Size, px', 'be_dentist' ),
'section' => 'h4_typography',
'default' => '30',
'field' => 'number',
'input_attrs' => array(
'min' => 10,
'max' => 200,
'step' => 1,
),
'type' => 'control',
),
'h4_line_height' => array(
'title' => esc_html__( 'Line Height', 'be_dentist' ),
'description' => esc_html__( 'Relative to the font-size of the element', 'be_dentist' ),
'section' => 'h4_typography',
'default' => '1.1',
'field' => 'number',
'input_attrs' => array(
'min' => 1.0,
'max' => 3.0,
'step' => 0.1,
),
'type' => 'control',
),
'h4_letter_spacing' => array(
'title' => esc_html__( 'Letter Spacing, px', 'be_dentist' ),
'section' => 'h4_typography',
'default' => '0',
'field' => 'number',
'input_attrs' => array(
'min' => -10,
'max' => 10,
'step' => 1,
),
'type' => 'control',
),
'h4_character_set' => array(
'title' => esc_html__( 'Character Set', 'be_dentist' ),
'section' => 'h4_typography',
'default' => 'latin',
'field' => 'select',
'choices' => be_dentist_get_character_sets(),
'type' => 'control',
),
'h4_text_align' => array(
'title' => esc_html__( 'Text Align', 'be_dentist' ),
'section' => 'h4_typography',
'default' => 'inherit',
'field' => 'select',
'choices' => be_dentist_get_text_aligns(),
'type' => 'control',
),
/** `H5 Heading` section */
'h5_typography' => array(
'title' => esc_html__( 'H5 Heading', 'be_dentist' ),
'priority' => 30,
'panel' => 'typography',
'type' => 'section',
),
'h5_font_family' => array(
'title' => esc_html__( 'Font Family', 'be_dentist' ),
'section' => 'h5_typography',
'default' => 'Alegreya Sans',
'field' => 'fonts',
'type' => 'control',
),
'h5_font_style' => array(
'title' => esc_html__( 'Font Style', 'be_dentist' ),
'section' => 'h5_typography',
'default' => 'italic',
'field' => 'select',
'choices' => be_dentist_get_font_styles(),
'type' => 'control',
),
'h5_font_weight' => array(
'title' => esc_html__( 'Font Weight', 'be_dentist' ),
'section' => 'h5_typography',
'default' => '400',
'field' => 'select',
'choices' => be_dentist_get_font_weight(),
'type' => 'control',
),
'h5_font_size' => array(
'title' => esc_html__( 'Font Size, px', 'be_dentist' ),
'section' => 'h5_typography',
'default' => '30',
'field' => 'number',
'input_attrs' => array(
'min' => 10,
'max' => 200,
'step' => 1,
),
'type' => 'control',
),
'h5_line_height' => array(
'title' => esc_html__( 'Line Height', 'be_dentist' ),
'description' => esc_html__( 'Relative to the font-size of the element', 'be_dentist' ),
'section' => 'h5_typography',
'default' => '1.1',
'field' => 'number',
'input_attrs' => array(
'min' => 1.0,
'max' => 3.0,
'step' => 0.1,
),
'type' => 'control',
),
'h5_letter_spacing' => array(
'title' => esc_html__( 'Letter Spacing, px', 'be_dentist' ),
'section' => 'h5_typography',
'default' => '0',
'field' => 'number',
'input_attrs' => array(
'min' => -10,
'max' => 10,
'step' => 1,
),
'type' => 'control',
),
'h5_character_set' => array(
'title' => esc_html__( 'Character Set', 'be_dentist' ),
'section' => 'h5_typography',
'default' => 'latin',
'field' => 'select',
'choices' => be_dentist_get_character_sets(),
'type' => 'control',
),
'h5_text_align' => array(
'title' => esc_html__( 'Text Align', 'be_dentist' ),
'section' => 'h5_typography',
'default' => 'inherit',
'field' => 'select',
'choices' => be_dentist_get_text_aligns(),
'type' => 'control',
),
/** `H6 Heading` section */
'h6_typography' => array(
'title' => esc_html__( 'H6 Heading', 'be_dentist' ),
'priority' => 35,
'panel' => 'typography',
'type' => 'section',
),
'h6_font_family' => array(
'title' => esc_html__( 'Font Family', 'be_dentist' ),
'section' => 'h6_typography',
'default' => 'Alegreya Sans',
'field' => 'fonts',
'type' => 'control',
),
'h6_font_style' => array(
'title' => esc_html__( 'Font Style', 'be_dentist' ),
'section' => 'h6_typography',
'default' => 'normal',
'field' => 'select',
'choices' => be_dentist_get_font_styles(),
'type' => 'control',
),
'h6_font_weight' => array(
'title' => esc_html__( 'Font Weight', 'be_dentist' ),
'section' => 'h6_typography',
'default' => '800',
'field' => 'select',
'choices' => be_dentist_get_font_weight(),
'type' => 'control',
),
'h6_font_size' => array(
'title' => esc_html__( 'Font Size, px', 'be_dentist' ),
'section' => 'h6_typography',
'default' => '20',
'field' => 'number',
'input_attrs' => array(
'min' => 10,
'max' => 200,
'step' => 1,
),
'type' => 'control',
),
'h6_line_height' => array(
'title' => esc_html__( 'Line Height', 'be_dentist' ),
'description' => esc_html__( 'Relative to the font-size of the element', 'be_dentist' ),
'section' => 'h6_typography',
'default' => '1.1',
'field' => 'number',
'input_attrs' => array(
'min' => 1.0,
'max' => 3.0,
'step' => 0.1,
),
'type' => 'control',
),
'h6_letter_spacing' => array(
'title' => esc_html__( 'Letter Spacing, px', 'be_dentist' ),
'section' => 'h6_typography',
'default' => '0',
'field' => 'number',
'input_attrs' => array(
'min' => -10,
'max' => 10,
'step' => 1,
),
'type' => 'control',
),
'h6_character_set' => array(
'title' => esc_html__( 'Character Set', 'be_dentist' ),
'section' => 'h6_typography',
'default' => 'latin',
'field' => 'select',
'choices' => be_dentist_get_character_sets(),
'type' => 'control',
),
'h6_text_align' => array(
'title' => esc_html__( 'Text Align', 'be_dentist' ),
'section' => 'h6_typography',
'default' => 'inherit',
'field' => 'select',
'choices' => be_dentist_get_text_aligns(),
'type' => 'control',
),
/** `Body text` section */
'breadcrumbs_typography' => array(
'title' => esc_html__( 'Breadcrumbs text', 'be_dentist' ),
'priority' => 45,
'panel' => 'typography',
'type' => 'section',
),
'breadcrumbs_font_family' => array(
'title' => esc_html__( 'Font Family', 'be_dentist' ),
'section' => 'breadcrumbs_typography',
'default' => 'Alegreya Sans',
'field' => 'fonts',
'type' => 'control',
),
'breadcrumbs_font_style' => array(
'title' => esc_html__( 'Font Style', 'be_dentist' ),
'section' => 'breadcrumbs_typography',
'default' => 'normal',
'field' => 'select',
'choices' => be_dentist_get_font_styles(),
'type' => 'control',
),
'breadcrumbs_font_weight' => array(
'title' => esc_html__( 'Font Weight', 'be_dentist' ),
'section' => 'breadcrumbs_typography',
'default' => '400',
'field' => 'select',
'choices' => be_dentist_get_font_weight(),
'type' => 'control',
),
'breadcrumbs_font_size' => array(
'title' => esc_html__( 'Font Size, px', 'be_dentist' ),
'section' => 'breadcrumbs_typography',
'default' => '16',
'field' => 'number',
'input_attrs' => array(
'min' => 6,
'max' => 50,
'step' => 1,
),
'type' => 'control',
),
'breadcrumbs_line_height' => array(
'title' => esc_html__( 'Line Height', 'be_dentist' ),
'description' => esc_html__( 'Relative to the font-size of the element', 'be_dentist' ),
'section' => 'breadcrumbs_typography',
'default' => '1.5',
'field' => 'number',
'input_attrs' => array(
'min' => 1.0,
'max' => 3.0,
'step' => 0.1,
),
'type' => 'control',
),
'breadcrumbs_letter_spacing' => array(
'title' => esc_html__( 'Letter Spacing, px', 'be_dentist' ),
'section' => 'breadcrumbs_typography',
'default' => '0',
'field' => 'number',
'input_attrs' => array(
'min' => -10,
'max' => 10,
'step' => 1,
),
'type' => 'control',
),
'breadcrumbs_character_set' => array(
'title' => esc_html__( 'Character Set', 'be_dentist' ),
'section' => 'breadcrumbs_typography',
'default' => 'latin',
'field' => 'select',
'choices' => be_dentist_get_character_sets(),
'type' => 'control',
),
/** `Social links` section */
'social_links' => array(
'title' => esc_html__( 'Social links', 'be_dentist' ),
'priority' => 50,
'type' => 'section',
'panel' => 'general_settings',
),
'footer_social_links' => array(
'title' => esc_html__( 'Show social links in footer', 'be_dentist' ),
'section' => 'social_links',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'blog_post_share_buttons' => array(
'title' => esc_html__( 'Show social sharing to blog posts', 'be_dentist' ),
'section' => 'social_links',
'default' => false,
'field' => 'checkbox',
'type' => 'control',
),
'single_post_share_buttons' => array(
'title' => esc_html__( 'Show social sharing to single blog post', 'be_dentist' ),
'section' => 'social_links',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
/** `Page Layout` section */
'page_layout' => array(
'title' => esc_html__( 'Page Layout', 'be_dentist' ),
'priority' => 55,
'type' => 'section',
'panel' => 'general_settings',
),
'header_container_type' => array(
'title' => esc_html__( 'Header type', 'be_dentist' ),
'section' => 'page_layout',
'default' => 'boxed',
'field' => 'select',
'choices' => array(
'boxed' => esc_html__( 'Boxed', 'be_dentist' ),
'fullwidth' => esc_html__( 'Fullwidth', 'be_dentist' ),
),
'type' => 'control',
),
'content_container_type' => array(
'title' => esc_html__( 'Content type', 'be_dentist' ),
'section' => 'page_layout',
'default' => 'boxed',
'field' => 'select',
'choices' => array(
'boxed' => esc_html__( 'Boxed', 'be_dentist' ),
'fullwidth' => esc_html__( 'Fullwidth', 'be_dentist' ),
),
'type' => 'control',
),
'footer_container_type' => array(
'title' => esc_html__( 'Footer type', 'be_dentist' ),
'section' => 'page_layout',
'default' => 'boxed',
'field' => 'select',
'choices' => array(
'boxed' => esc_html__( 'Boxed', 'be_dentist' ),
'fullwidth' => esc_html__( 'Fullwidth', 'be_dentist' ),
),
'type' => 'control',
),
'container_width' => array(
'title' => esc_html__( 'Container width (px)', 'be_dentist' ),
'section' => 'page_layout',
'default' => 1200,
'field' => 'number',
'input_attrs' => array(
'min' => 960,
'max' => 1920,
'step' => 1,
),
'type' => 'control',
),
'sidebar_width' => array(
'title' => esc_html__( 'Sidebar width', 'be_dentist' ),
'section' => 'page_layout',
'default' => '1/3',
'field' => 'select',
'choices' => array(
'1/3' => '1/3',
'1/4' => '1/4',
),
'sanitize_callback' => 'sanitize_text_field',
'type' => 'control',
),
/** `Header` panel */
'header_options' => array(
'title' => esc_html__( 'Header', 'be_dentist' ),
'priority' => 60,
'type' => 'panel',
),
/** `Header styles` section */
'header_styles' => array(
'title' => esc_html__( 'Header Styles', 'be_dentist' ),
'priority' => 5,
'panel' => 'header_options',
'type' => 'section',
),
'header_bg_color' => array(
'title' => esc_html__( 'Background Color', 'be_dentist' ),
'section' => 'header_styles',
'field' => 'hex_color',
'default' => '#ffffff',
'type' => 'control',
),
'header_bg_image' => array(
'title' => esc_html__( 'Background Image', 'be_dentist' ),
'section' => 'header_styles',
'field' => 'image',
'type' => 'control',
),
'header_bg_repeat' => array(
'title' => esc_html__( 'Background Repeat', 'be_dentist' ),
'section' => 'header_styles',
'default' => 'repeat',
'field' => 'select',
'choices' => array(
'no-repeat' => esc_html__( 'No Repeat', 'be_dentist' ),
'repeat' => esc_html__( 'Tile', 'be_dentist' ),
'repeat-x' => esc_html__( 'Tile Horizontally', 'be_dentist' ),
'repeat-y' => esc_html__( 'Tile Vertically', 'be_dentist' ),
),
'type' => 'control',
),
'header_bg_position_x' => array(
'title' => esc_html__( 'Background Position', 'be_dentist' ),
'section' => 'header_styles',
'default' => 'center',
'field' => 'select',
'choices' => array(
'left' => esc_html__( 'Left', 'be_dentist' ),
'center' => esc_html__( 'Center', 'be_dentist' ),
'right' => esc_html__( 'Right', 'be_dentist' ),
),
'type' => 'control',
),
'header_bg_attachment' => array(
'title' => esc_html__( 'Background Attachment', 'be_dentist' ),
'section' => 'header_styles',
'default' => 'scroll',
'field' => 'select',
'choices' => array(
'scroll' => esc_html__( 'Scroll', 'be_dentist' ),
'fixed' => esc_html__( 'Fixed', 'be_dentist' ),
),
'type' => 'control',
),
'header_layout_type' => array(
'title' => esc_html__( 'Layout', 'be_dentist' ),
'section' => 'header_styles',
'default' => 'default',
'field' => 'select',
'choices' => array(
'minimal' => esc_html__( 'Style 1', 'be_dentist' ),
'centered' => esc_html__( 'Style 2', 'be_dentist' ),
'default' => esc_html__( 'Style 3', 'be_dentist' ),
),
'type' => 'control',
),
'header_phone_text' => array(
'title' => esc_html__( 'Phone Text', 'be_dentist' ),
'section' => 'header_styles',
'default' => be_dentist_get_default_header_phone_text(),
'field' => 'textarea',
'type' => 'control',
'sanitize_callback' => 'be_dentist_esc_option',
),
'header_time_text' => array(
'title' => esc_html__( 'Time Text', 'be_dentist' ),
'section' => 'header_styles',
'default' => be_dentist_get_default_header_time_text(),
'field' => 'textarea',
'type' => 'control',
'sanitize_callback' => 'be_dentist_esc_option',
),
/** `Top Panel` section */
'header_top_panel' => array(
'title' => esc_html__( 'Top Panel', 'be_dentist' ),
'priority' => 10,
'panel' => 'header_options',
'type' => 'section',
),
'top_panel_text' => array(
'title' => esc_html__( 'Disclaimer Text', 'be_dentist' ),
'description' => esc_html__( 'HTML formatting support', 'be_dentist' ),
'section' => 'header_top_panel',
'default' => be_dentist_get_default_top_panel_text(),
'field' => 'textarea',
'type' => 'control',
),
'top_panel_bg' => array(
'title' => esc_html__( 'Background color', 'be_dentist' ),
'section' => 'header_top_panel',
'default' => '#0095e5',
'field' => 'hex_color',
'type' => 'control',
),
'top_panel_social_links' => array(
'title' => esc_html__( 'Show social links in top panel', 'be_dentist' ),
'section' => 'header_top_panel',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
/** `Main Menu` section */
'header_main_menu' => array(
'title' => esc_html__( 'Main Menu', 'be_dentist' ),
'priority' => 15,
'panel' => 'header_options',
'type' => 'section',
),
'header_menu_sticky' => array(
'title' => esc_html__( 'Enable sticky menu', 'be_dentist' ),
'section' => 'header_main_menu',
'default' => false,
'field' => 'checkbox',
'type' => 'control',
),
'header_search' => array(
'title' => esc_html__( 'Enable search', 'be_dentist' ),
'section' => 'header_main_menu',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'header_menu_attributes' => array(
'title' => esc_html__( 'Enable title attributes', 'be_dentist' ),
'section' => 'header_main_menu',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
/** `Sidebar` section */
'sidebar_settings' => array(
'title' => esc_html__( 'Sidebar', 'be_dentist' ),
'priority' => 105,
'type' => 'section',
),
'sidebar_position' => array(
'title' => esc_html__( 'Sidebar Position', 'be_dentist' ),
'section' => 'sidebar_settings',
'default' => 'one-right-sidebar',
'field' => 'select',
'choices' => array(
'one-left-sidebar' => esc_html__( 'Sidebar on left side', 'be_dentist' ),
'one-right-sidebar' => esc_html__( 'Sidebar on right side', 'be_dentist' ),
'fullwidth' => esc_html__( 'No sidebars', 'be_dentist' ),
),
'type' => 'control',
),
/** `Footer` panel */
'footer_options' => array(
'title' => esc_html__( 'Footer', 'be_dentist' ),
'priority' => 110,
'type' => 'section',
),
'footer_logo_url' => array(
'title' => esc_html__( 'Logo upload', 'be_dentist' ),
'section' => 'footer_options',
'field' => 'image',
'default' => get_stylesheet_directory_uri() . '/assets/images/footer-logo.png',
'type' => 'control',
),
'footer_copyright' => array(
'title' => esc_html__( 'Copyright text', 'be_dentist' ),
'section' => 'footer_options',
'default' => be_dentist_get_default_footer_copyright(),
'field' => 'textarea',
'type' => 'control',
),
'footer_widget_columns' => array(
'title' => esc_html__( 'Widget Area Columns', 'be_dentist' ),
'section' => 'footer_options',
'default' => '4',
'field' => 'select',
'choices' => array(
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
),
'type' => 'control'
),
'footer_layout_type' => array(
'title' => esc_html__( 'Layout', 'be_dentist' ),
'section' => 'footer_options',
'default' => 'default',
'field' => 'select',
'choices' => array(
'default' => esc_html__( 'Style 1', 'be_dentist' ),
'centered' => esc_html__( 'Style 2', 'be_dentist' ),
'minimal' => esc_html__( 'Style 3', 'be_dentist' ),
),
'type' => 'control'
),
'footer_widgets_bg' => array(
'title' => esc_html__( 'Footer Widgets Area color', 'be_dentist' ),
'section' => 'footer_options',
'default' => '#373838',
'field' => 'hex_color',
'type' => 'control',
),
'footer_bg' => array(
'title' => esc_html__( 'Footer Background color', 'be_dentist' ),
'section' => 'footer_options',
'default' => '#2c2d2d',
'field' => 'hex_color',
'type' => 'control',
),
/** `Blog Settings` panel */
'blog_settings' => array(
'title' => esc_html__( 'Blog Settings', 'be_dentist' ),
'priority' => 115,
'type' => 'panel',
),
/** `Blog` section */
'blog' => array(
'title' => esc_html__( 'Blog', 'be_dentist' ),
'panel' => 'blog_settings',
'priority' => 10,
'type' => 'section',
'active_callback' => 'is_home',
),
'blog_layout_type' => array(
'title' => esc_html__( 'Layout', 'be_dentist' ),
'section' => 'blog',
'default' => 'default',
'field' => 'select',
'choices' => array(
'default' => esc_html__( 'Default', 'be_dentist' ),
'grid-2-cols' => esc_html__( 'Grid (2 Columns)', 'be_dentist' ),
'grid-3-cols' => esc_html__( 'Grid (3 Columns)', 'be_dentist' ),
'masonry-2-cols' => esc_html__( 'Masonry (2 Columns)', 'be_dentist' ),
'masonry-3-cols' => esc_html__( 'Masonry (3 Columns)', 'be_dentist' ),
),
'type' => 'control'
),
'blog_sticky_label' => array(
'title' => esc_html__( 'Featured Post Label', 'be_dentist' ),
'description' => esc_html__( 'Label for sticky post.', 'be_dentist' ),
'section' => 'blog',
'default' => 'icon:material:star_border',
'field' => 'text',
'type' => 'control',
),
'blog_posts_content' => array(
'title' => esc_html__( 'Post content', 'be_dentist' ),
'section' => 'blog',
'default' => 'excerpt',
'field' => 'select',
'choices' => array(
'excerpt' => esc_html__( 'Only excerpt', 'be_dentist' ),
'full' => esc_html__( 'Full content', 'be_dentist' ),
),
'type' => 'control'
),
'blog_featured_image' => array(
'title' => esc_html__( 'Featured image', 'be_dentist' ),
'section' => 'blog',
'default' => 'fullwidth',
'field' => 'select',
'choices' => array(
'small' => esc_html__( 'Small', 'be_dentist' ),
'fullwidth' => esc_html__( 'Fullwidth', 'be_dentist' ),
),
'type' => 'control'
),
'blog_read_more_text' => array(
'title' => esc_html__( 'Read More button text', 'be_dentist' ),
'section' => 'blog',
'default' => esc_html__( 'Read more', 'be_dentist' ),
'field' => 'text',
'type' => 'control',
),
'blog_post_author' => array(
'title' => esc_html__( 'Show post author', 'be_dentist' ),
'section' => 'blog',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'blog_post_publish_date' => array(
'title' => esc_html__( 'Show publish date', 'be_dentist' ),
'section' => 'blog',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'blog_post_categories' => array(
'title' => esc_html__( 'Show categories', 'be_dentist' ),
'section' => 'blog',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'blog_post_tags' => array(
'title' => esc_html__( 'Show tags', 'be_dentist' ),
'section' => 'blog',
'default' => false,
'field' => 'checkbox',
'type' => 'control',
),
'blog_post_comments' => array(
'title' => esc_html__( 'Show comments', 'be_dentist' ),
'section' => 'blog',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
/** `Post` section */
'blog_post' => array(
'title' => esc_html__( 'Post', 'be_dentist' ),
'panel' => 'blog_settings',
'priority' => 20,
'type' => 'section',
'active_callback' => 'callback_single',
),
'single_post_author' => array(
'title' => esc_html__( 'Show post author', 'be_dentist' ),
'section' => 'blog_post',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'single_post_publish_date' => array(
'title' => esc_html__( 'Show publish date', 'be_dentist' ),
'section' => 'blog_post',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'single_post_categories' => array(
'title' => esc_html__( 'Show categories', 'be_dentist' ),
'section' => 'blog_post',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'single_post_tags' => array(
'title' => esc_html__( 'Show tags', 'be_dentist' ),
'section' => 'blog_post',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'single_post_comments' => array(
'title' => esc_html__( 'Show comments', 'be_dentist' ),
'section' => 'blog_post',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'single_author_block' => array(
'title' => esc_html__( 'Enable the author block after each post', 'be_dentist' ),
'section' => 'blog_post',
'default' => true,
'field' => 'checkbox',
'type' => 'control',
),
'mailchimp' => array(
'title' => esc_html__( 'MailChimp', 'be_dentist' ),
'description' => esc_html__( 'Setup MailChimp settings for subscribe widget', 'be_dentist' ),
'priority' => 109,
'type' => 'section',
),
'mailchimp_api_key' => array(
'title' => esc_html__( 'MailChimp API key', 'be_dentist' ),
'section' => 'mailchimp',
'field' => 'text',
'type' => 'control',
),
'mailchimp_list_id' => array(
'title' => esc_html__( 'MailChimp list ID', 'be_dentist' ),
'section' => 'mailchimp',
'field' => 'text',
'type' => 'control',
),
) ) );
}
/**
* Return true if logo in header has image type. Otherwise - return false.
*
* @param object $control
* @return bool
*/
function be_dentist_is_header_logo_image( $control ) {
if ( $control->manager->get_setting( 'header_logo_type' )->value() == 'image' ) {
return true;
}
return false;
}
/**
* Return true if logo in header has text type. Otherwise - return false.
*
* @param object $control
* @return bool
*/
function be_dentist_is_header_logo_text( $control ) {
if ( $control->manager->get_setting( 'header_logo_type' )->value() == 'text' ) {
return true;
}
return false;
}
// Move native `site_icon` control (based on WordPress core) in custom section.
add_action( 'customize_register', 'be_dentist_customizer_change_core_controls', 20 );
function be_dentist_customizer_change_core_controls( $wp_customize ) {
$wp_customize->get_control( 'site_icon' )->section = 'be_dentist_logo_favicon';
$wp_customize->get_control( 'background_color' )->label = esc_html__( 'Body Background Color', 'be_dentist' );
}
////////////////////////////////////
// Typography utility function //
////////////////////////////////////
function be_dentist_get_font_styles() {
return apply_filters( 'be_dentist_get_font_styles', array(
'normal' => esc_html__( 'Normal', 'be_dentist' ),
'italic' => esc_html__( 'Italic', 'be_dentist' ),
'oblique' => esc_html__( 'Oblique', 'be_dentist' ),
'inherit' => esc_html__( 'Inherit', 'be_dentist' ),
) );
}
function be_dentist_get_character_sets() {
return apply_filters( 'be_dentist_get_character_sets', array(
'latin' => esc_html__( 'Latin', 'be_dentist' ),
'greek' => esc_html__( 'Greek', 'be_dentist' ),
'greek-ext' => esc_html__( 'Greek Extended', 'be_dentist' ),
'vietnamese' => esc_html__( 'Vietnamese', 'be_dentist' ),
'cyrillic-ext' => esc_html__( 'Cyrillic Extended', 'be_dentist' ),
'latin-ext' => esc_html__( 'Latin Extended', 'be_dentist' ),
'cyrillic' => esc_html__( 'Cyrillic', 'be_dentist' ),
) );
}
function be_dentist_get_text_aligns() {
return apply_filters( 'be_dentist_get_text_aligns', array(
'inherit' => esc_html__( 'Inherit', 'be_dentist' ),
'center' => esc_html__( 'Center', 'be_dentist' ),
'justify' => esc_html__( 'Justify', 'be_dentist' ),
'left' => esc_html__( 'Left', 'be_dentist' ),
'right' => esc_html__( 'Right', 'be_dentist' ),
) );
}
function be_dentist_get_font_weight() {
return apply_filters( 'be_dentist_get_font_weight', array(
'normal' => esc_html__( 'Normal', 'be_dentist' ),
'bold' => esc_html__( 'Bold', 'be_dentist' ),
'100' => '100',
'200' => '200',
'300' => '300',
'400' => '400',
'500' => '500',
'600' => '600',
'700' => '700',
'800' => '800',
'900' => '900',
) );
}
/**
* Return array of arguments for dynamic CSS module
*
* @return array
*/
function be_dentist_get_dynamic_css_options() {
return apply_filters( 'be_dentist_get_dynamic_css_options', array(
'prefix' => 'be_dentist',
'type' => 'theme_mod',
'single' => true,
'css_files' => array(
BE_DENTIST_THEME_DIR . '/assets/css/dynamic.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/widgets/widget-default.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/widgets/taxonomy-tiles.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/widgets/image-grid.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/widgets/carousel.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/widgets/smart-slider.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/widgets/instagram.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/widgets/subscribe.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/widgets/track-kickstarter.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/widgets/donate.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/site/top-panel.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/site/search-form.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/site/social.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/site/main-navigation.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/site/footer.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/site/elements.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/site/post.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/site/pagination.css',
BE_DENTIST_THEME_DIR . '/assets/css/dynamic/site/misc.css',
),
'options' => array(
'header_logo_font_style',
'header_logo_font_weight',
'header_logo_font_size',
'header_logo_font_family',
'body_font_style',
'body_font_weight',
'body_font_size',
'body_line_height',
'body_font_family',
'body_letter_spacing',
'body_text_align',
'h1_font_style',
'h1_font_weight',
'h1_font_size',
'h1_line_height',
'h1_font_family',
'h1_letter_spacing',
'h1_text_align',
'h2_font_style',
'h2_font_weight',
'h2_font_size',
'h2_line_height',
'h2_font_family',
'h2_letter_spacing',
'h2_text_align',
'h3_font_style',
'h3_font_weight',
'h3_font_size',
'h3_line_height',
'h3_font_family',
'h3_letter_spacing',
'h3_text_align',
'h4_font_style',
'h4_font_weight',
'h4_font_size',
'h4_line_height',
'h4_font_family',
'h4_letter_spacing',
'h4_text_align',
'h5_font_style',
'h5_font_weight',
'h5_font_size',
'h5_line_height',
'h5_font_family',
'h5_letter_spacing',
'h5_text_align',
'h6_font_style',
'h6_font_weight',
'h6_font_size',
'h6_line_height',
'h6_font_family',
'h6_letter_spacing',
'h6_text_align',
'breadcrumbs_font_style',
'breadcrumbs_font_weight',
'breadcrumbs_font_size',
'breadcrumbs_line_height',
'breadcrumbs_font_family',
'breadcrumbs_letter_spacing',
'breadcrumbs_text_align',
'regular_accent_color_1',
'regular_accent_color_2',
'regular_text_color',
'regular_link_color',
'regular_link_hover_color',
'regular_h1_color',
'regular_h2_color',
'regular_h3_color',
'regular_h4_color',
'regular_h5_color',
'regular_h6_color',
'invert_accent_color_1',
'invert_accent_color_2',
'invert_text_color',
'invert_link_color',
'invert_link_hover_color',
'invert_h1_color',
'invert_h2_color',
'invert_h3_color',
'invert_h4_color',
'invert_h5_color',
'invert_h6_color',
'header_bg_color',
'header_bg_image',
'header_bg_repeat',
'header_bg_position_x',
'header_bg_attachment',
'top_panel_bg',
'container_width',
'footer_widgets_bg',
'footer_bg',
)
) );
}
/**
* Return array of arguments for Google Fonta loader module.
*
* @return array
*/
function be_dentist_get_fonts_options() {
return apply_filters( 'be_dentist_get_fonts_options', array(
'prefix' => 'be_dentist',
'type' => 'theme_mod',
'single' => true,
'options' => array(
'body' => array(
'family' => 'body_font_family',
'style' => 'body_font_style',
'weight' => 'body_font_weight',
'charset' => 'body_character_set',
),
'h1' => array(
'family' => 'h1_font_family',
'style' => 'h1_font_style',
'weight' => 'h1_font_weight',
'charset' => 'h1_character_set',
),
'h2' => array(
'family' => 'h2_font_family',
'style' => 'h2_font_style',
'weight' => 'h2_font_weight',
'charset' => 'h2_character_set',
),
'h3' => array(
'family' => 'h3_font_family',
'style' => 'h3_font_style',
'weight' => 'h3_font_weight',
'charset' => 'h3_character_set',
),
'h4' => array(
'family' => 'h4_font_family',
'style' => 'h4_font_style',
'weight' => 'h4_font_weight',
'charset' => 'h4_character_set',
),
'h5' => array(
'family' => 'h5_font_family',
'style' => 'h5_font_style',
'weight' => 'h5_font_weight',
'charset' => 'h5_character_set',
),
'h6' => array(
'family' => 'h6_font_family',
'style' => 'h6_font_style',
'weight' => 'h6_font_weight',
'charset' => 'h6_character_set',
),
'header_logo' => array(
'family' => 'header_logo_font_family',
'style' => 'header_logo_font_style',
'weight' => 'header_logo_font_weight',
'charset' => 'header_logo_character_set',
),
'breadcrumbs' => array(
'family' => 'breadcrumbs_font_family',
'style' => 'breadcrumbs_font_style',
'weight' => 'breadcrumbs_font_weight',
'charset' => 'breadcrumbs_character_set',
),
)
) );
}
/**
* Get default time text in header
*
* @since 1.0.0
* @return string
*/
function be_dentist_get_default_header_time_text() {
return sprintf(
__( '<h6>Opening Hours: </h6> <em>Mon–Fri: 9am–6pm; Sun: 10am–1pm</em>', 'be_dentist' )
);
}
/**
* Get default phone text in header
*
* @since 1.0.0
* @return string
*/
function be_dentist_get_default_header_phone_text() {
return sprintf(
__( '<h6>Call Today: </h6><a href="tell:#">555–123–2323</a>; <a href="tell:#">555–123–2323</a>', 'be_dentist' )
);
}
/**
* Get default top panel text
*
* @since 1.0.0
* @return string
*/
function be_dentist_get_default_top_panel_text() {
return __( '<em>Make an Appointment Now!</em><a href="%%home_url%%book-an-appointments/">Book an Appointment</a>', 'be_dentist' );
}
/**
* Get default footer copyright.
*
* @since 1.0.0
* @return string
*/
function be_dentist_get_default_footer_copyright() {
return '© %%year%% <span><em>Be</em>DENTIST</span>. All rights reserved.';
}
/**
* @param $input
* @return mixed
*/
function be_dentist_esc_option( $input ) {
return $input;
}