/home/arranoyd/energyclinic.com.hr/wp-content/themes/bonbon/skins/default/skin-setup.php
<?php
/**
* Skin Setup
*
* @package BONBON
* @since BONBON 1.76.0
*/
//--------------------------------------------
// SKIN DEFAULTS
//--------------------------------------------
// Return theme's (skin's) default value for the specified parameter
if ( ! function_exists( 'bonbon_theme_defaults' ) ) {
function bonbon_theme_defaults( $name='', $value='' ) {
$defaults = array(
'page_width' => 1290,
'page_boxed_extra' => 60,
'page_fullwide_max' => 1920,
'page_fullwide_extra' => 60,
'sidebar_width' => 410,
'sidebar_gap' => 40,
'grid_gap' => 30,
'rad' => 0
);
if ( empty( $name ) ) {
return $defaults;
} else {
if ( $value === '' && isset( $defaults[ $name ] ) ) {
$value = $defaults[ $name ];
}
return $value;
}
}
}
// WOOCOMMERCE SETUP
//--------------------------------------------------
// Allow extended layouts for WooCommerce
if ( ! function_exists( 'bonbon_skin_woocommerce_allow_extensions' ) ) {
add_filter( 'bonbon_filter_load_woocommerce_extensions', 'bonbon_skin_woocommerce_allow_extensions' );
function bonbon_skin_woocommerce_allow_extensions( $allow ) {
return true;
}
}
// Theme init priorities:
// Action 'after_setup_theme'
// 1 - register filters to add/remove lists items in the Theme Options
// 2 - create Theme Options
// 3 - add/remove Theme Options elements
// 5 - load Theme Options. Attention! After this step you can use only basic options (not overriden)
// 9 - register other filters (for installer, etc.)
//10 - standard Theme init procedures (not ordered)
// Action 'wp_loaded'
// 1 - detect override mode. Attention! Only after this step you can use overriden options (separate values for the shop, courses, etc.)
//--------------------------------------------
// SKIN SETTINGS
//--------------------------------------------
if ( ! function_exists( 'bonbon_skin_setup' ) ) {
add_action( 'after_setup_theme', 'bonbon_skin_setup', 1 );
function bonbon_skin_setup() {
$GLOBALS['BONBON_STORAGE'] = array_merge( $GLOBALS['BONBON_STORAGE'], array(
// Key validator: market[env|loc]-vendor[axiom|ancora|themerex]
'theme_pro_key' => 'env-themerex',
'theme_doc_url' => '//bonbon.themerex.net/doc',
'theme_demofiles_url' => '//demofiles.themerex.net/bonbon/',
'theme_rate_url' => '//themeforest.net/downloads',
'theme_custom_url' => '//themerex.net/offers/?utm_source=offers&utm_medium=click&utm_campaign=themeinstall',
'theme_support_url' => '//themerex.net/support/',
'theme_download_url' => '//1.envato.market/6e1MVm', // ThemeREX
'theme_video_url' => '//www.youtube.com/channel/UCdIjRh7-lPVHqTTKpaf8PLA', // ThemeREX
'theme_privacy_url' => '//themerex.net/privacy-policy/', // ThemeREX
'portfolio_url' => '//themeforest.net/user/themerex/portfolio', // ThemeREX
// Comma separated slugs of theme-specific categories (for get relevant news in the dashboard widget)
// (i.e. 'children,kindergarten')
'theme_categories' => '',
) );
}
}
// Add/remove/change Theme Settings
if ( ! function_exists( 'bonbon_skin_setup_settings' ) ) {
add_action( 'after_setup_theme', 'bonbon_skin_setup_settings', 1 );
function bonbon_skin_setup_settings() {
// Example: enable (true) / disable (false) thumbs in the prev/next navigation
bonbon_storage_set_array( 'settings', 'thumbs_in_navigation', false );
bonbon_storage_set_array2( 'required_plugins', 'quickcal', 'install', false );
}
}
//--------------------------------------------
// SKIN FONTS
//--------------------------------------------
if ( ! function_exists( 'bonbon_skin_setup_fonts' ) ) {
add_action( 'after_setup_theme', 'bonbon_skin_setup_fonts', 1 );
function bonbon_skin_setup_fonts() {
// Fonts to load when theme start
// It can be:
// - Google fonts (specify name, family and styles)
// - Adobe fonts (specify name, family and link URL)
// - uploaded fonts (specify name, family), placed in the folder css/font-face/font-name inside the skin folder
// Attention! Font's folder must have name equal to the font's name, with spaces replaced on the dash '-'
// example: font name 'TeX Gyre Termes', folder 'TeX-Gyre-Termes'
bonbon_storage_set(
'load_fonts', array(
array(
'name' => 'ivypresto-display',
'family' => 'serif',
'link' => 'https://use.typekit.net/uyr3aws.css',
'styles' => ''
),
// Google font
array(
'name' => 'Open Sans',
'family' => 'sans-serif',
'link' => '',
'styles' => 'ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800', // Parameter 'style' used only for the Google fonts
),
)
);
// Characters subset for the Google fonts. Available values are: latin,latin-ext,cyrillic,cyrillic-ext,greek,greek-ext,vietnamese
bonbon_storage_set( 'load_fonts_subset', 'latin,latin-ext' );
// Settings of the main tags.
// Default value of 'font-family' may be specified as reference to the array $load_fonts (see above)
// or as comma-separated string.
// In the second case (if 'font-family' is specified manually as comma-separated string):
// 1) Font name with spaces in the parameter 'font-family' will be enclosed in the quotes and no spaces after comma!
// 2) If font-family inherit a value from the 'Main text' - specify 'inherit' as a value
// example:
// Correct: 'font-family' => bonbon_get_load_fonts_family_string( $load_fonts[0] )
// Correct: 'font-family' => 'Roboto,sans-serif'
// Correct: 'font-family' => '"PT Serif",sans-serif'
// Incorrect: 'font-family' => 'Roboto, sans-serif'
// Incorrect: 'font-family' => 'PT Serif,sans-serif'
$font_description = esc_html__( 'Font settings for the %s of the site. To ensure that the elements scale properly on mobile devices, please use only the following units: "rem", "em" or "ex"', 'bonbon' );
bonbon_storage_set(
'theme_fonts', array(
'p' => array(
'title' => esc_html__( 'Main text', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'main text', 'bonbon' ) ),
'font-family' => '"Open Sans",sans-serif',
'font-size' => '1rem',
'font-weight' => '400',
'font-style' => 'normal',
'line-height' => '1.8em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
'margin-top' => '0em',
'margin-bottom' => '1.8em',
),
'post' => array(
'title' => esc_html__( 'Article text', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'article text', 'bonbon' ) ),
'font-family' => '', // Example: '"PR Serif",serif',
'font-size' => '', // Example: '1.286rem',
'font-weight' => '', // Example: '400',
'font-style' => '', // Example: 'normal',
'line-height' => '', // Example: '1.75em',
'text-decoration' => '', // Example: 'none',
'text-transform' => '', // Example: 'none',
'letter-spacing' => '', // Example: '',
'margin-top' => '', // Example: '0em',
'margin-bottom' => '', // Example: '1.4em',
),
'h1' => array(
'title' => esc_html__( 'Heading 1', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'tag H1', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
'font-size' => '3.563em',
'font-weight' => '300',
'font-style' => 'normal',
'line-height' => '1em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
'margin-top' => '1.04em',
'margin-bottom' => '0.46em',
),
'h2' => array(
'title' => esc_html__( 'Heading 2', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'tag H2', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
'font-size' => '2.938em',
'font-weight' => '300',
'font-style' => 'normal',
'line-height' => '1.021em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
'margin-top' => '0.67em',
'margin-bottom' => '0.56em',
),
'h3' => array(
'title' => esc_html__( 'Heading 3', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'tag H3', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
'font-size' => '2.188em',
'font-weight' => '300',
'font-style' => 'normal',
'line-height' => '1.086em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
'margin-top' => '0.94em',
'margin-bottom' => '0.72em',
),
'h4' => array(
'title' => esc_html__( 'Heading 4', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'tag H4', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
'font-size' => '1.750em',
'font-weight' => '300',
'font-style' => 'normal',
'line-height' => '1.214em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
'margin-top' => '1.15em',
'margin-bottom' => '0.83em',
),
'h5' => array(
'title' => esc_html__( 'Heading 5', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'tag H5', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
'font-size' => '1.500em',
'font-weight' => '300',
'font-style' => 'normal',
'line-height' => '1.208em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
'margin-top' => '1.3em',
'margin-bottom' => '0.84em',
),
'h6' => array(
'title' => esc_html__( 'Heading 6', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'tag H6', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
'font-size' => '1.188em',
'font-weight' => '300',
'font-style' => 'normal',
'line-height' => '1.474em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
'margin-top' => '1.75em',
'margin-bottom' => '1em',
),
'logo' => array(
'title' => esc_html__( 'Logo text', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'text of the logo', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
'font-size' => '1.8em',
'font-weight' => '400',
'font-style' => 'normal',
'line-height' => '1.25em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
),
'button' => array(
'title' => esc_html__( 'Buttons', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'buttons', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
'font-size' => '17px',
'font-weight' => '400',
'font-style' => 'normal',
'line-height' => '21px',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
),
'input' => array(
'title' => esc_html__( 'Input fields', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'input fields, dropdowns and textareas', 'bonbon' ) ),
'font-family' => 'inherit',
'font-size' => '15px',
'font-weight' => '400',
'font-style' => 'normal',
'line-height' => '1.5em', // Attention! Firefox don't allow line-height less then 1.5em in the select
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0.1px',
),
'info' => array(
'title' => esc_html__( 'Post meta', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'post meta (author, categories, publish date, counters, share, etc.)', 'bonbon' ) ),
'font-family' => 'inherit',
'font-size' => '14px', // Old value '13px' don't allow using 'font zoom' in the custom blog items
'font-weight' => '400',
'font-style' => 'normal',
'line-height' => '1.5em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
'margin-top' => '0.4em',
'margin-bottom' => '',
),
'menu' => array(
'title' => esc_html__( 'Main menu', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'main menu items', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
'font-size' => '17px',
'font-weight' => '400',
'font-style' => 'normal',
'line-height' => '1.5em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
),
'submenu' => array(
'title' => esc_html__( 'Dropdown menu', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'dropdown menu items', 'bonbon' ) ),
'font-family' => '"Open Sans",sans-serif',
'font-size' => '14px',
'font-weight' => '400',
'font-style' => 'normal',
'line-height' => '1.5em',
'text-decoration' => 'none',
'text-transform' => 'none',
'letter-spacing' => '0px',
),
'other' => array(
'title' => esc_html__( 'Other', 'bonbon' ),
'description' => sprintf( $font_description, esc_html__( 'specific elements', 'bonbon' ) ),
'font-family' => 'ivypresto-display,serif',
),
)
);
// Font presets
bonbon_storage_set(
'font_presets', array(
'karla' => array(
'title' => esc_html__( 'Karla', 'bonbon' ),
'load_fonts' => array(
// Google font
array(
'name' => 'Dancing Script',
'family' => 'fantasy',
'link' => '',
'styles' => '300,400,700',
),
// Google font
array(
'name' => 'Sansita Swashed',
'family' => 'fantasy',
'link' => '',
'styles' => '300,400,700',
),
),
'theme_fonts' => array(
'p' => array(
'font-family' => '"Dancing Script",fantasy',
'font-size' => '1.25rem',
),
'post' => array(
'font-family' => '',
),
'h1' => array(
'font-family' => '"Sansita Swashed",fantasy',
'font-size' => '4em',
),
'h2' => array(
'font-family' => '"Sansita Swashed",fantasy',
),
'h3' => array(
'font-family' => '"Sansita Swashed",fantasy',
),
'h4' => array(
'font-family' => '"Sansita Swashed",fantasy',
),
'h5' => array(
'font-family' => '"Sansita Swashed",fantasy',
),
'h6' => array(
'font-family' => '"Sansita Swashed",fantasy',
),
'logo' => array(
'font-family' => '"Sansita Swashed",fantasy',
),
'button' => array(
'font-family' => '"Sansita Swashed",fantasy',
),
'input' => array(
'font-family' => 'inherit',
),
'info' => array(
'font-family' => 'inherit',
),
'menu' => array(
'font-family' => '"Sansita Swashed",fantasy',
),
'submenu' => array(
'font-family' => '"Sansita Swashed",fantasy',
),
),
),
'roboto' => array(
'title' => esc_html__( 'Roboto', 'bonbon' ),
'load_fonts' => array(
// Google font
array(
'name' => 'Noto Sans JP',
'family' => 'serif',
'link' => '',
'styles' => '300,300italic,400,400italic,700,700italic',
),
// Google font
array(
'name' => 'Merriweather',
'family' => 'sans-serif',
'link' => '',
'styles' => '300,300italic,400,400italic,700,700italic',
),
),
'theme_fonts' => array(
'p' => array(
'font-family' => '"Noto Sans JP",serif',
),
'post' => array(
'font-family' => '',
),
'h1' => array(
'font-family' => 'Merriweather,sans-serif',
),
'h2' => array(
'font-family' => 'Merriweather,sans-serif',
),
'h3' => array(
'font-family' => 'Merriweather,sans-serif',
),
'h4' => array(
'font-family' => 'Merriweather,sans-serif',
),
'h5' => array(
'font-family' => 'Merriweather,sans-serif',
),
'h6' => array(
'font-family' => 'Merriweather,sans-serif',
),
'logo' => array(
'font-family' => 'Merriweather,sans-serif',
),
'button' => array(
'font-family' => 'Merriweather,sans-serif',
),
'input' => array(
'font-family' => 'inherit',
),
'info' => array(
'font-family' => 'inherit',
),
'menu' => array(
'font-family' => 'Merriweather,sans-serif',
),
'submenu' => array(
'font-family' => 'Merriweather,sans-serif',
),
),
),
'garamond' => array(
'title' => esc_html__( 'Garamond', 'bonbon' ),
'load_fonts' => array(
// Adobe font
array(
'name' => 'Europe',
'family' => 'sans-serif',
'link' => 'https://use.typekit.net/qmj1tmx.css',
'styles' => '',
),
// Adobe font
array(
'name' => 'Sofia Pro',
'family' => 'sans-serif',
'link' => 'https://use.typekit.net/qmj1tmx.css',
'styles' => '',
),
),
'theme_fonts' => array(
'p' => array(
'font-family' => '"Sofia Pro",sans-serif',
),
'post' => array(
'font-family' => '',
),
'h1' => array(
'font-family' => 'Europe,sans-serif',
),
'h2' => array(
'font-family' => 'Europe,sans-serif',
),
'h3' => array(
'font-family' => 'Europe,sans-serif',
),
'h4' => array(
'font-family' => 'Europe,sans-serif',
),
'h5' => array(
'font-family' => 'Europe,sans-serif',
),
'h6' => array(
'font-family' => 'Europe,sans-serif',
),
'logo' => array(
'font-family' => 'Europe,sans-serif',
),
'button' => array(
'font-family' => 'Europe,sans-serif',
),
'input' => array(
'font-family' => 'inherit',
),
'info' => array(
'font-family' => 'inherit',
),
'menu' => array(
'font-family' => 'Europe,sans-serif',
),
'submenu' => array(
'font-family' => 'Europe,sans-serif',
),
),
),
)
);
}
}
//--------------------------------------------
// COLOR SCHEMES
//--------------------------------------------
if ( ! function_exists( 'bonbon_skin_setup_schemes' ) ) {
add_action( 'after_setup_theme', 'bonbon_skin_setup_schemes', 1 );
function bonbon_skin_setup_schemes() {
// Theme colors for customizer
// Attention! Inner scheme must be last in the array below
bonbon_storage_set(
'scheme_color_groups', array(
'main' => array(
'title' => esc_html__( 'Main', 'bonbon' ),
'description' => esc_html__( 'Colors of the main content area', 'bonbon' ),
),
'alter' => array(
'title' => esc_html__( 'Alter', 'bonbon' ),
'description' => esc_html__( 'Colors of the alternative blocks (sidebars, etc.)', 'bonbon' ),
),
'extra' => array(
'title' => esc_html__( 'Extra', 'bonbon' ),
'description' => esc_html__( 'Colors of the extra blocks (dropdowns, price blocks, table headers, etc.)', 'bonbon' ),
),
'inverse' => array(
'title' => esc_html__( 'Inverse', 'bonbon' ),
'description' => esc_html__( 'Colors of the inverse blocks - when link color used as background of the block (dropdowns, blockquotes, etc.)', 'bonbon' ),
),
'input' => array(
'title' => esc_html__( 'Input', 'bonbon' ),
'description' => esc_html__( 'Colors of the form fields (text field, textarea, select, etc.)', 'bonbon' ),
),
)
);
bonbon_storage_set(
'scheme_color_names', array(
'bg_color' => array(
'title' => esc_html__( 'Background color', 'bonbon' ),
'description' => esc_html__( 'Background color of this block in the normal state', 'bonbon' ),
),
'bg_hover' => array(
'title' => esc_html__( 'Background hover', 'bonbon' ),
'description' => esc_html__( 'Background color of this block in the hovered state', 'bonbon' ),
),
'bd_color' => array(
'title' => esc_html__( 'Border color', 'bonbon' ),
'description' => esc_html__( 'Border color of this block in the normal state', 'bonbon' ),
),
'bd_hover' => array(
'title' => esc_html__( 'Border hover', 'bonbon' ),
'description' => esc_html__( 'Border color of this block in the hovered state', 'bonbon' ),
),
'text' => array(
'title' => esc_html__( 'Text', 'bonbon' ),
'description' => esc_html__( 'Color of the text inside this block', 'bonbon' ),
),
'text_dark' => array(
'title' => esc_html__( 'Text dark', 'bonbon' ),
'description' => esc_html__( 'Color of the dark text (bold, header, etc.) inside this block', 'bonbon' ),
),
'text_light' => array(
'title' => esc_html__( 'Text light', 'bonbon' ),
'description' => esc_html__( 'Color of the light text (post meta, etc.) inside this block', 'bonbon' ),
),
'text_link' => array(
'title' => esc_html__( 'Link', 'bonbon' ),
'description' => esc_html__( 'Color of the links inside this block', 'bonbon' ),
),
'text_hover' => array(
'title' => esc_html__( 'Link hover', 'bonbon' ),
'description' => esc_html__( 'Color of the hovered state of links inside this block', 'bonbon' ),
),
'text_link2' => array(
'title' => esc_html__( 'Accent 2', 'bonbon' ),
'description' => esc_html__( 'Color of the accented texts (areas) inside this block', 'bonbon' ),
),
'text_hover2' => array(
'title' => esc_html__( 'Accent 2 hover', 'bonbon' ),
'description' => esc_html__( 'Color of the hovered state of accented texts (areas) inside this block', 'bonbon' ),
),
'text_link3' => array(
'title' => esc_html__( 'Accent 3', 'bonbon' ),
'description' => esc_html__( 'Color of the other accented texts (buttons) inside this block', 'bonbon' ),
),
'text_hover3' => array(
'title' => esc_html__( 'Accent 3 hover', 'bonbon' ),
'description' => esc_html__( 'Color of the hovered state of other accented texts (buttons) inside this block', 'bonbon' ),
),
)
);
// Default values for each color scheme
$schemes = array(
// Color scheme: 'default'
'default' => array(
'title' => esc_html__( 'Default', 'bonbon' ),
'internal' => true,
'colors' => array(
// Whole block border and background
'bg_color' => '#FFFFFF',
'bd_color' => '#E6E1DC',
// Text and links colors
'text' => '#6A5952',
'text_light' => '#9D9690',
'text_dark' => '#241C10',
'text_link' => '#E0908D',
'text_hover' => '#D57874',
'text_link2' => '#C8A98C',
'text_hover2' => '#BB9776',
'text_link3' => '#90C7CA',
'text_hover3' => '#75B7BB',
// Alternative blocks (sidebar, tabs, alternative blocks, etc.)
'alter_bg_color' => '#FBF6F2',
'alter_bg_hover' => '#EFE6DE',
'alter_bd_color' => '#E6E1DC',
'alter_bd_hover' => '#DCDCDC',
'alter_text' => '#6A5952',
'alter_light' => '#9D9690',
'alter_dark' => '#241C10',
'alter_link' => '#E0908D',
'alter_hover' => '#D57874',
'alter_link2' => '#C8A98C',
'alter_hover2' => '#BB9776',
'alter_link3' => '#90C7CA',
'alter_hover3' => '#75B7BB',
// Extra blocks (submenu, tabs, color blocks, etc.)
'extra_bg_color' => '#241C10',
'extra_bg_hover' => '#3f3d47',
'extra_bd_color' => '#413B35',
'extra_bd_hover' => '#575757',
'extra_text' => '#817A73',
'extra_light' => '#9D9690',
'extra_dark' => '#FCFCFC',
'extra_link' => '#E0908D',
'extra_hover' => '#FCFCFC',
'extra_link2' => '#80d572',
'extra_hover2' => '#8be77c',
'extra_link3' => '#ddb837',
'extra_hover3' => '#eec432',
// Input fields (form's fields and textarea)
'input_bg_color' => 'transparent',
'input_bg_hover' => 'transparent',
'input_bd_color' => '#E6E1DC',
'input_bd_hover' => '#241C10',
'input_text' => '#9D9690',
'input_light' => '#9D9690',
'input_dark' => '#241C10',
// Inverse blocks (text and links on the 'text_link' background)
'inverse_bd_color' => '#1F1207',
'inverse_bd_hover' => '#5aa4a9',
'inverse_text' => '#1d1d1d',
'inverse_light' => '#333333',
'inverse_dark' => '#241C10',
'inverse_link' => '#FCFCFC',
'inverse_hover' => '#FCFCFC',
// Additional (skin-specific) colors.
// Attention! Set of colors must be equal in all color schemes.
//---> For example:
//---> 'new_color1' => '#rrggbb',
//---> 'alter_new_color1' => '#rrggbb',
//---> 'inverse_new_color1' => '#rrggbb',
),
),
// Color scheme: 'dark'
'dark' => array(
'title' => esc_html__( 'Dark', 'bonbon' ),
'internal' => true,
'colors' => array(
// Whole block border and background
'bg_color' => '#1F1207',
'bd_color' => '#413B35',
// Text and links colors
'text' => '#AFA8A2',
'text_light' => '#817A73',
'text_dark' => '#FCFCFC',
'text_link' => '#E0908D',
'text_hover' => '#D57874',
'text_link2' => '#C8A98C',
'text_hover2' => '#BB9776',
'text_link3' => '#90C7CA',
'text_hover3' => '#75B7BB',
// Alternative blocks (sidebar, tabs, alternative blocks, etc.)
'alter_bg_color' => '#241C10',
'alter_bg_hover' => '#2F1E0F',
'alter_bd_color' => '#413B35',
'alter_bd_hover' => '#53535C',
'alter_text' => '#AFA8A2',
'alter_light' => '#817A73',
'alter_dark' => '#FCFCFC',
'alter_link' => '#E0908D',
'alter_hover' => '#D57874',
'alter_link2' => '#C8A98C',
'alter_hover2' => '#BB9776',
'alter_link3' => '#90C7CA',
'alter_hover3' => '#75B7BB',
// Extra blocks (submenu, tabs, color blocks, etc.)
'extra_bg_color' => '#241C10',
'extra_bg_hover' => '#3f3d47',
'extra_bd_color' => '#413B35',
'extra_bd_hover' => '#575757',
'extra_text' => '#817A73',
'extra_light' => '#9D9690',
'extra_dark' => '#FCFCFC',
'extra_link' => '#E0908D',
'extra_hover' => '#FCFCFC',
'extra_link2' => '#80d572',
'extra_hover2' => '#8be77c',
'extra_link3' => '#ddb837',
'extra_hover3' => '#eec432',
// Input fields (form's fields and textarea)
'input_bg_color' => 'transparent',
'input_bg_hover' => 'transparent',
'input_bd_color' => '#413B35',
'input_bd_hover' => '#413B35',
'input_text' => '#AFA8A2',
'input_light' => '#AFA8A2',
'input_dark' => '#FCFCFC',
// Inverse blocks (text and links on the 'text_link' background)
'inverse_bd_color' => '#1F1207',
'inverse_bd_hover' => '#cb5b47',
'inverse_text' => '#FCFCFC',
'inverse_light' => '#6f6f6f',
'inverse_dark' => '#241C10',
'inverse_link' => '#FCFCFC',
'inverse_hover' => '#241C10',
// Additional (skin-specific) colors.
// Attention! Set of colors must be equal in all color schemes.
//---> For example:
//---> 'new_color1' => '#rrggbb',
//---> 'alter_new_color1' => '#rrggbb',
//---> 'inverse_new_color1' => '#rrggbb',
),
),
// Color scheme: 'light'
'light' => array(
'title' => esc_html__( 'Light', 'bonbon' ),
'internal' => true,
'colors' => array(
// Whole block border and background
'bg_color' => '#FBF6F2',
'bd_color' => '#E6E1DC',
// Text and links colors
'text' => '#6A5952',
'text_light' => '#9D9690',
'text_dark' => '#241C10',
'text_link' => '#E0908D',
'text_hover' => '#D57874',
'text_link2' => '#C8A98C',
'text_hover2' => '#BB9776',
'text_link3' => '#90C7CA',
'text_hover3' => '#75B7BB',
// Alternative blocks (sidebar, tabs, alternative blocks, etc.)
'alter_bg_color' => '#FFFFFF',
'alter_bg_hover' => '#EFE6DE',
'alter_bd_color' => '#E6E1DC',
'alter_bd_hover' => '#DCDCDC',
'alter_text' => '#6A5952',
'alter_light' => '#9D9690',
'alter_dark' => '#241C10',
'alter_link' => '#E0908D',
'alter_hover' => '#D57874',
'alter_link2' => '#C8A98C',
'alter_hover2' => '#BB9776',
'alter_link3' => '#90C7CA',
'alter_hover3' => '#75B7BB',
// Extra blocks (submenu, tabs, color blocks, etc.)
'extra_bg_color' => '#241C10',
'extra_bg_hover' => '#3f3d47',
'extra_bd_color' => '#413B35',
'extra_bd_hover' => '#575757',
'extra_text' => '#817A73',
'extra_light' => '#9D9690',
'extra_dark' => '#FCFCFC',
'extra_link' => '#E0908D',
'extra_hover' => '#FCFCFC',
'extra_link2' => '#80d572',
'extra_hover2' => '#8be77c',
'extra_link3' => '#ddb837',
'extra_hover3' => '#eec432',
// Input fields (form's fields and textarea)
'input_bg_color' => 'transparent',
'input_bg_hover' => 'transparent',
'input_bd_color' => '#E6E1DC',
'input_bd_hover' => '#241C10',
'input_text' => '#9D9690',
'input_light' => '#9D9690',
'input_dark' => '#241C10',
// Inverse blocks (text and links on the 'text_link' background)
'inverse_bd_color' => '#1F1207',
'inverse_bd_hover' => '#5aa4a9',
'inverse_text' => '#1d1d1d',
'inverse_light' => '#333333',
'inverse_dark' => '#241C10',
'inverse_link' => '#FCFCFC',
'inverse_hover' => '#FCFCFC',
// Additional (skin-specific) colors.
// Attention! Set of colors must be equal in all color schemes.
//---> For example:
//---> 'new_color1' => '#rrggbb',
//---> 'alter_new_color1' => '#rrggbb',
//---> 'inverse_new_color1' => '#rrggbb',
),
),
// Color scheme: 'green_default'
'green_default' => array(
'title' => esc_html__( 'Green Default', 'bonbon' ),
'internal' => true,
'colors' => array(
// Whole block border and background
'bg_color' => '#FAF6EF',
'bd_color' => '#DED8CD',
// Text and links colors
'text' => '#796B66',
'text_light' => '#9D9690',
'text_dark' => '#241810',
'text_link' => '#E58467',
'text_hover' => '#CB7257',
'text_link2' => '#AA8A7D',
'text_hover2' => '#8D7065',
'text_link3' => '#90C7CA',
'text_hover3' => '#75B7BB',
// Alternative blocks (sidebar, tabs, alternative blocks, etc.)
'alter_bg_color' => '#FFFFFF',
'alter_bg_hover' => '#F2EDE4',
'alter_bd_color' => '#DED8CD',
'alter_bd_hover' => '#DCDCDC',
'alter_text' => '#796B66',
'alter_light' => '#9D9690',
'alter_dark' => '#241810',
'alter_link' => '#E58467',
'alter_hover' => '#CB7257',
'alter_link2' => '#AA8A7D',
'alter_hover2' => '#8D7065',
'alter_link3' => '#90C7CA',
'alter_hover3' => '#75B7BB',
// Extra blocks (submenu, tabs, color blocks, etc.)
'extra_bg_color' => '#133837',
'extra_bg_hover' => '#3f3d47',
'extra_bd_color' => '#315150',
'extra_bd_hover' => '#575757',
'extra_text' => '#A2AFA7',
'extra_light' => '#738887',
'extra_dark' => '#FCFCFC',
'extra_link' => '#E58467',
'extra_hover' => '#FCFCFC',
'extra_link2' => '#80d572',
'extra_hover2' => '#8be77c',
'extra_link3' => '#ddb837',
'extra_hover3' => '#eec432',
// Input fields (form's fields and textarea)
'input_bg_color' => 'transparent',
'input_bg_hover' => 'transparent',
'input_bd_color' => '#DED8CD',
'input_bd_hover' => '#241810',
'input_text' => '#9D9690',
'input_light' => '#9D9690',
'input_dark' => '#241810',
// Inverse blocks (text and links on the 'text_link' background)
'inverse_bd_color' => '#1F1207',
'inverse_bd_hover' => '#5aa4a9',
'inverse_text' => '#1d1d1d',
'inverse_light' => '#333333',
'inverse_dark' => '#241810',
'inverse_link' => '#FCFCFC',
'inverse_hover' => '#FCFCFC',
// Additional (skin-specific) colors.
// Attention! Set of colors must be equal in all color schemes.
//---> For example:
//---> 'new_color1' => '#rrggbb',
//---> 'alter_new_color1' => '#rrggbb',
//---> 'inverse_new_color1' => '#rrggbb',
),
),
// Color scheme: 'green_dark'
'green_dark' => array(
'title' => esc_html__( 'Green Dark', 'bonbon' ),
'internal' => true,
'colors' => array(
// Whole block border and background
'bg_color' => '#133837',
'bd_color' => '#315150',
// Text and links colors
'text' => '#A2AFA7',
'text_light' => '#738887',
'text_dark' => '#FCFCFC',
'text_link' => '#E58467',
'text_hover' => '#CB7257',
'text_link2' => '#AA8A7D',
'text_hover2' => '#8D7065',
'text_link3' => '#90C7CA',
'text_hover3' => '#75B7BB',
// Alternative blocks (sidebar, tabs, alternative blocks, etc.)
'alter_bg_color' => '#113332',
'alter_bg_hover' => '#0F2E2D',
'alter_bd_color' => '#315150',
'alter_bd_hover' => '#53535C',
'alter_text' => '#A2AFA7',
'alter_light' => '#738887',
'alter_dark' => '#FCFCFC',
'alter_link' => '#E58467',
'alter_hover' => '#CB7257',
'alter_link2' => '#AA8A7D',
'alter_hover2' => '#8D7065',
'alter_link3' => '#90C7CA',
'alter_hover3' => '#75B7BB',
// Extra blocks (submenu, tabs, color blocks, etc.)
'extra_bg_color' => '#241810',
'extra_bg_hover' => '#3f3d47',
'extra_bd_color' => '#315150',
'extra_bd_hover' => '#575757',
'extra_text' => '#A2AFA7',
'extra_light' => '#738887',
'extra_dark' => '#FCFCFC',
'extra_link' => '#E58467',
'extra_hover' => '#FCFCFC',
'extra_link2' => '#80d572',
'extra_hover2' => '#8be77c',
'extra_link3' => '#ddb837',
'extra_hover3' => '#eec432',
// Input fields (form's fields and textarea)
'input_bg_color' => 'transparent',
'input_bg_hover' => 'transparent',
'input_bd_color' => '#315150',
'input_bd_hover' => '#315150',
'input_text' => '#A2AFA7',
'input_light' => '#A2AFA7',
'input_dark' => '#FCFCFC',
// Inverse blocks (text and links on the 'text_link' background)
'inverse_bd_color' => '#1F1207',
'inverse_bd_hover' => '#cb5b47',
'inverse_text' => '#FCFCFC',
'inverse_light' => '#6f6f6f',
'inverse_dark' => '#241810',
'inverse_link' => '#FCFCFC',
'inverse_hover' => '#241810',
// Additional (skin-specific) colors.
// Attention! Set of colors must be equal in all color schemes.
//---> For example:
//---> 'new_color1' => '#rrggbb',
//---> 'alter_new_color1' => '#rrggbb',
//---> 'inverse_new_color1' => '#rrggbb',
),
),
// Color scheme: 'green_light'
'green_light' => array(
'title' => esc_html__( 'Green Light', 'bonbon' ),
'internal' => true,
'colors' => array(
// Whole block border and background
'bg_color' => '#FFFFFF',
'bd_color' => '#DED8CD',
// Text and links colors
'text' => '#796B66',
'text_light' => '#9D9690',
'text_dark' => '#241810',
'text_link' => '#E58467',
'text_hover' => '#CB7257',
'text_link2' => '#AA8A7D',
'text_hover2' => '#8D7065',
'text_link3' => '#90C7CA',
'text_hover3' => '#75B7BB',
// Alternative blocks (sidebar, tabs, alternative blocks, etc.)
'alter_bg_color' => '#FAF6EF',
'alter_bg_hover' => '#F2EDE4',
'alter_bd_color' => '#DED8CD',
'alter_bd_hover' => '#DCDCDC',
'alter_text' => '#796B66',
'alter_light' => '#9D9690',
'alter_dark' => '#241810',
'alter_link' => '#E58467',
'alter_hover' => '#CB7257',
'alter_link2' => '#AA8A7D',
'alter_hover2' => '#8D7065',
'alter_link3' => '#90C7CA',
'alter_hover3' => '#75B7BB',
// Extra blocks (submenu, tabs, color blocks, etc.)
'extra_bg_color' => '#133837',
'extra_bg_hover' => '#3f3d47',
'extra_bd_color' => '#315150',
'extra_bd_hover' => '#575757',
'extra_text' => '#A2AFA7',
'extra_light' => '#738887',
'extra_dark' => '#FCFCFC',
'extra_link' => '#E58467',
'extra_hover' => '#FCFCFC',
'extra_link2' => '#80d572',
'extra_hover2' => '#8be77c',
'extra_link3' => '#ddb837',
'extra_hover3' => '#eec432',
// Input fields (form's fields and textarea)
'input_bg_color' => 'transparent',
'input_bg_hover' => 'transparent',
'input_bd_color' => '#DED8CD',
'input_bd_hover' => '#241810',
'input_text' => '#9D9690',
'input_light' => '#9D9690',
'input_dark' => '#241810',
// Inverse blocks (text and links on the 'text_link' background)
'inverse_bd_color' => '#1F1207',
'inverse_bd_hover' => '#5aa4a9',
'inverse_text' => '#1d1d1d',
'inverse_light' => '#333333',
'inverse_dark' => '#241810',
'inverse_link' => '#FCFCFC',
'inverse_hover' => '#FCFCFC',
// Additional (skin-specific) colors.
// Attention! Set of colors must be equal in all color schemes.
//---> For example:
//---> 'new_color1' => '#rrggbb',
//---> 'alter_new_color1' => '#rrggbb',
//---> 'inverse_new_color1' => '#rrggbb',
),
),
);
bonbon_storage_set( 'schemes', $schemes );
bonbon_storage_set( 'schemes_original', $schemes );
// Add names of additional colors
//---> For example:
//---> bonbon_storage_set_array( 'scheme_color_names', 'new_color1', array(
//---> 'title' => __( 'New color 1', 'bonbon' ),
//---> 'description' => __( 'Description of the new color 1', 'bonbon' ),
//---> ) );
// Additional colors for each scheme
// Parameters: 'color' - name of the color from the scheme that should be used as source for the transformation
// 'alpha' - to make color transparent (0.0 - 1.0)
// 'hue', 'saturation', 'brightness' - inc/dec value for each color's component
bonbon_storage_set(
'scheme_colors_add', array(
'bg_color_0' => array(
'color' => 'bg_color',
'alpha' => 0,
),
'bg_color_02' => array(
'color' => 'bg_color',
'alpha' => 0.2,
),
'bg_color_07' => array(
'color' => 'bg_color',
'alpha' => 0.7,
),
'bg_color_08' => array(
'color' => 'bg_color',
'alpha' => 0.8,
),
'bg_color_09' => array(
'color' => 'bg_color',
'alpha' => 0.9,
),
'alter_bg_color_07' => array(
'color' => 'alter_bg_color',
'alpha' => 0.7,
),
'alter_bg_color_04' => array(
'color' => 'alter_bg_color',
'alpha' => 0.4,
),
'alter_bg_color_00' => array(
'color' => 'alter_bg_color',
'alpha' => 0,
),
'alter_bg_color_02' => array(
'color' => 'alter_bg_color',
'alpha' => 0.2,
),
'alter_bd_color_02' => array(
'color' => 'alter_bd_color',
'alpha' => 0.2,
),
'alter_dark_015' => array(
'color' => 'alter_dark',
'alpha' => 0.15,
),
'alter_dark_02' => array(
'color' => 'alter_dark',
'alpha' => 0.2,
),
'alter_dark_05' => array(
'color' => 'alter_dark',
'alpha' => 0.5,
),
'alter_dark_08' => array(
'color' => 'alter_dark',
'alpha' => 0.8,
),
'alter_link_02' => array(
'color' => 'alter_link',
'alpha' => 0.2,
),
'alter_link_07' => array(
'color' => 'alter_link',
'alpha' => 0.7,
),
'extra_bg_color_05' => array(
'color' => 'extra_bg_color',
'alpha' => 0.5,
),
'extra_bg_color_07' => array(
'color' => 'extra_bg_color',
'alpha' => 0.7,
),
'extra_link_02' => array(
'color' => 'extra_link',
'alpha' => 0.2,
),
'extra_link_07' => array(
'color' => 'extra_link',
'alpha' => 0.7,
),
'text_dark_003' => array(
'color' => 'text_dark',
'alpha' => 0.03,
),
'text_dark_005' => array(
'color' => 'text_dark',
'alpha' => 0.05,
),
'text_dark_008' => array(
'color' => 'text_dark',
'alpha' => 0.08,
),
'text_dark_015' => array(
'color' => 'text_dark',
'alpha' => 0.15,
),
'text_dark_02' => array(
'color' => 'text_dark',
'alpha' => 0.2,
),
'text_dark_03' => array(
'color' => 'text_dark',
'alpha' => 0.3,
),
'text_dark_05' => array(
'color' => 'text_dark',
'alpha' => 0.5,
),
'text_dark_07' => array(
'color' => 'text_dark',
'alpha' => 0.7,
),
'text_dark_08' => array(
'color' => 'text_dark',
'alpha' => 0.8,
),
'text_link_007' => array(
'color' => 'text_link',
'alpha' => 0.07,
),
'text_link_02' => array(
'color' => 'text_link',
'alpha' => 0.2,
),
'text_link_03' => array(
'color' => 'text_link',
'alpha' => 0.3,
),
'text_link_04' => array(
'color' => 'text_link',
'alpha' => 0.4,
),
'text_link_05' => array(
'color' => 'text_link',
'alpha' => 0.5,
),
'text_link_07' => array(
'color' => 'text_link',
'alpha' => 0.7,
),
'text_link2_08' => array(
'color' => 'text_link2',
'alpha' => 0.8,
),
'text_link2_007' => array(
'color' => 'text_link2',
'alpha' => 0.07,
),
'text_link2_02' => array(
'color' => 'text_link2',
'alpha' => 0.2,
),
'text_link2_03' => array(
'color' => 'text_link2',
'alpha' => 0.3,
),
'text_link2_05' => array(
'color' => 'text_link2',
'alpha' => 0.5,
),
'text_link3_007' => array(
'color' => 'text_link3',
'alpha' => 0.07,
),
'text_link3_02' => array(
'color' => 'text_link3',
'alpha' => 0.2,
),
'text_link3_03' => array(
'color' => 'text_link3',
'alpha' => 0.3,
),
'inverse_text_03' => array(
'color' => 'inverse_text',
'alpha' => 0.3,
),
'inverse_link_08' => array(
'color' => 'inverse_link',
'alpha' => 0.8,
),
'inverse_hover_08' => array(
'color' => 'inverse_hover',
'alpha' => 0.8,
),
'text_dark_blend' => array(
'color' => 'text_dark',
'hue' => 2,
'saturation' => -5,
'brightness' => 5,
),
'text_link_blend' => array(
'color' => 'text_link',
'hue' => 2,
'saturation' => -5,
'brightness' => 5,
),
'alter_link_blend' => array(
'color' => 'alter_link',
'hue' => 2,
'saturation' => -5,
'brightness' => 5,
),
)
);
// Simple scheme editor: lists the colors to edit in the "Simple" mode.
// For each color you can set the array of 'slave' colors and brightness factors that are used to generate new values,
// when 'main' color is changed
// Leave 'slave' arrays empty if your scheme does not have a color dependency
bonbon_storage_set(
'schemes_simple', array(
'text_link' => array(),
'text_hover' => array(),
'text_link2' => array(),
'text_hover2' => array(),
'text_link3' => array(),
'text_hover3' => array(),
'alter_link' => array(),
'alter_hover' => array(),
'alter_link2' => array(),
'alter_hover2' => array(),
'alter_link3' => array(),
'alter_hover3' => array(),
'extra_link' => array(),
'extra_hover' => array(),
'extra_link2' => array(),
'extra_hover2' => array(),
'extra_link3' => array(),
'extra_hover3' => array(),
)
);
// Parameters to set order of schemes in the css
bonbon_storage_set(
'schemes_sorted', array(
'color_scheme',
'header_scheme',
'menu_scheme',
'sidebar_scheme',
'footer_scheme',
)
);
// Color presets
bonbon_storage_set(
'color_presets', array(
'autumn' => array(
'title' => esc_html__( 'Autumn', 'bonbon' ),
'colors' => array(
'default' => array(
'text_link' => '#d83938',
'text_hover' => '#f2b232',
),
'dark' => array(
'text_link' => '#d83938',
'text_hover' => '#f2b232',
)
)
),
'green' => array(
'title' => esc_html__( 'Natural Green', 'bonbon' ),
'colors' => array(
'default' => array(
'text_link' => '#75ac78',
'text_hover' => '#378e6d',
),
'dark' => array(
'text_link' => '#75ac78',
'text_hover' => '#378e6d',
)
)
),
)
);
}
}
// Activation methods
if ( ! function_exists( 'bonbon_skin_filter_activation_methods2' ) ) {
add_filter( 'trx_addons_filter_activation_methods', 'bonbon_skin_filter_activation_methods2', 11, 1 );
function bonbon_skin_filter_activation_methods2( $args ) {
$args['elements_key'] = true;
return $args;
}
}
//Enqueue skin-specific scripts
if ( ! function_exists( 'bonbon_skin_upgrade_style' ) ) {
add_action( 'wp_enqueue_scripts', 'bonbon_skin_upgrade_style', 2060 );
function bonbon_skin_upgrade_style() {
$bonbon_url = bonbon_get_file_url( bonbon_skins_get_current_skin_dir() . 'skin-upgrade-style.css' );
if ( '' != $bonbon_url ) {
wp_enqueue_style( 'bonbon-skin-upgrade-style' . esc_attr( bonbon_skins_get_current_skin_name() ), $bonbon_url, array(), null );
}
}
}
// Enqueue styles
$bonbon_clone_style_path = bonbon_get_file_dir( bonbon_skins_get_current_skin_dir() . 'skin-upgrade-style.php' );
if ( ! empty( $bonbon_clone_style_path ) ) {
require_once $bonbon_clone_style_path;
}