![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/hessa.corals.io/wp-content/themes/kicker/skins/writer/ |
<?php /** * Skin Setup * * @package KICKER * @since KICKER 1.76.0 */ //-------------------------------------------- // SKIN DEFAULTS //-------------------------------------------- // Return theme's (skin's) default value for the specified parameter if ( ! function_exists( 'kicker_theme_defaults' ) ) { function kicker_theme_defaults( $name = '', $value = '' ) { $defaults = array( 'page_width' => 1290, 'page_boxed_extra' => 60, 'page_fullwide_max' => 1920, 'page_fullwide_extra' => 130, 'sidebar_width' => 390, 'sidebar_gap' => 50, 'grid_gap' => 30, 'rad' => 30, ); if ( empty( $name ) ) { return $defaults; } else { if ( $value === '' && isset( $defaults[ $name ] ) ) { $value = $defaults[ $name ]; } return $value; } } } // 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( 'kicker_skin_setup' ) ) { add_action( 'after_setup_theme', 'kicker_skin_setup', 1 ); function kicker_skin_setup() { $GLOBALS['KICKER_STORAGE'] = array_merge( $GLOBALS['KICKER_STORAGE'], array( 'theme_pro_key' => 'env-axiom', 'theme_doc_url' => '//kicker.axiomthemes.com/doc', 'theme_demofiles_url' => '//demofiles.axiomthemes.com/kicker/', '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' => '//themeforest.net/user/axiomthemes/portfolio', 'theme_video_url' => '//www.youtube.com/channel/UCBjqhuwKj3MfE3B6Hg2oA8Q', 'theme_privacy_url' => '//axiomthemes.com/privacy-policy/', 'portfolio_url' => '//themeforest.net/user/axiomthemes/portfolio', // 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( 'kicker_skin_setup_settings' ) ) { add_action( 'after_setup_theme', 'kicker_skin_setup_settings', 1 ); function kicker_skin_setup_settings() { // Example: enable (true) / disable (false) thumbs in the prev/next navigation kicker_storage_set_array( 'settings', 'thumbs_in_navigation', true ); } } //-------------------------------------------- // SKIN FONTS //-------------------------------------------- if ( ! function_exists( 'kicker_skin_setup_fonts' ) ) { add_action( 'after_setup_theme', 'kicker_skin_setup_fonts', 1 ); function kicker_skin_setup_fonts() { // Fonts to load when theme start // It can be Google fonts or uploaded fonts, 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' $load_fonts = array( // Google font array( 'name' => 'Open Sans', 'family' => 'sans-serif', 'link' => '', 'styles' => 'wght@300;400;600;700;800', // Parameter 'style' used only for the Google fonts ), array( 'name' => 'Cormorant Garamond', 'family' => 'sans-serif', 'link' => '', 'styles' => 'wght@400;500;600;700', // Parameter 'style' used only for the Google fonts ), ); kicker_storage_set( 'load_fonts', $load_fonts ); // Characters subset for the Google fonts. Available values are: latin,latin-ext,cyrillic,cyrillic-ext,greek,greek-ext,vietnamese kicker_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' => kicker_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"', 'kicker' ); kicker_storage_set( 'theme_fonts', array( 'p' => array( 'title' => esc_html__( 'Main text', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'main text', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[0] ), // '"Open Sans", sans-serif', 'font-size' => '1.2142857rem', 'font-weight' => '400', 'font-style' => 'normal', 'line-height' => '1.9em', 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '0px', 'margin-top' => '0em', 'margin-bottom' => '1.8em', ), 'post' => array( 'title' => esc_html__( 'Article text', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'article text', 'kicker' ) ), 'font-family' => '', 'font-size' => '', 'font-weight' => '', 'font-style' => '', 'line-height' => '', 'text-decoration' => '', 'text-transform' => '', 'letter-spacing' => '', 'margin-top' => '', 'margin-bottom' => '', ), 'h1' => array( 'title' => esc_html__( 'Heading 1', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'tag H1', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Cormorant Garamond",sans-serif', 'font-size' => '50px', 'font-weight' => '700', 'font-style' => 'normal', 'line-height' => '50px', 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '0px', 'margin-top' => '1.01em', 'margin-bottom' => '0.3em', ), 'h2' => array( 'title' => esc_html__( 'Heading 2', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'tag H2', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Cormorant Garamond",sans-serif', 'font-size' => '35px', 'font-weight' => '700', 'font-style' => 'normal', 'line-height' => '38px', 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '0px', 'margin-top' => '1.15em', 'margin-bottom' => '0.6em', ), 'h3' => array( 'title' => esc_html__( 'Heading 3', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'tag H3', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Cormorant Garamond",sans-serif', 'font-size' => '32px', 'font-weight' => '700', 'font-style' => 'normal', 'line-height' => '32px', 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '0px', 'margin-top' => '1.25em', 'margin-bottom' => '0.6em', ), 'h4' => array( 'title' => esc_html__( 'Heading 4', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'tag H4', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Cormorant Garamond",sans-serif', 'font-size' => '26px', 'font-weight' => '700', 'font-style' => 'normal', 'line-height' => '28px', 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '0px', 'margin-top' => '1.3em', 'margin-bottom' => '0.65em', ), 'h5' => array( 'title' => esc_html__( 'Heading 5', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'tag H5', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Cormorant Garamond",sans-serif', 'font-size' => '21px', 'font-weight' => '700', 'font-style' => 'normal', 'line-height' => '26px', 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '0px', 'margin-top' => '1.5em', 'margin-bottom' => '0.8em', ), 'h6' => array( 'title' => esc_html__( 'Heading 6', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'tag H6', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Cormorant Garamond",sans-serif', 'font-size' => '18px', 'font-weight' => '700', 'font-style' => 'normal', 'line-height' => '22px', 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '0px', 'margin-top' => '1.3em', 'margin-bottom' => '0.8em', ), 'logo' => array( 'title' => esc_html__( 'Logo text', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'text of the logo', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Cormorant Garamond",sans-serif', 'font-size' => '1.8em', 'font-weight' => '700', 'font-style' => 'normal', 'line-height' => '1.25em', 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '-0.02em', ), 'button' => array( 'title' => esc_html__( 'Buttons', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'buttons', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Cormorant Garamond",sans-serif', 'font-size' => '13px', 'font-weight' => '700', 'font-style' => 'normal', 'line-height' => '19px', 'text-decoration' => 'none', 'text-transform' => 'uppercase', 'letter-spacing' => '0.12em', ), 'input' => array( 'title' => esc_html__( 'Input fields', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'input fields, dropdowns and textareas', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[0] ), // '"Open Sans",sans-serif', 'font-size' => '14px', 'font-weight' => '400', 'font-style' => 'normal', 'line-height' => '21px', // Attention! Firefox don't allow line-height less then 1.5em in the select 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '0px', ), 'info' => array( 'title' => esc_html__( 'Post meta', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'post meta (author, categories, publish date, counters, share, etc.)', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[0] ), // '"Open Sans",sans-serif', 'font-size' => '12px', // Old value '13px' don't allow using 'font zoom' in the custom blog items 'font-weight' => '500', 'font-style' => 'normal', 'line-height' => '18px', 'text-decoration' => 'none', 'text-transform' => 'uppercase', 'letter-spacing' => '0px', 'margin-top' => '0.75em', 'margin-bottom' => '', ), 'menu' => array( 'title' => esc_html__( 'Main menu', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'main menu items', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Cormorant Garamond",sans-serif', 'font-size' => '1.0715rem', 'font-weight' => '700', 'font-style' => 'normal', 'line-height' => '1.5em', 'text-decoration' => 'none', 'text-transform' => 'uppercase', 'letter-spacing' => '0.1em', ), 'submenu' => array( 'title' => esc_html__( 'Dropdown menu', 'kicker' ), 'description' => sprintf( $font_description, esc_html__( 'dropdown menu items', 'kicker' ) ), 'font-family' => kicker_get_load_fonts_family_string( $load_fonts[1] ), // '"Open Sans",sans-serif', 'font-size' => '1.0715rem', 'font-weight' => '600', 'font-style' => 'normal', 'line-height' => '1.5em', 'text-decoration' => 'none', 'text-transform' => 'none', 'letter-spacing' => '0px', ), ) ); // Store new fonts parameters $theme_slug = get_option( 'stylesheet' ); $mods = get_option( 'theme_mods_' . $theme_slug ); if ( $mods ) { $settings = kicker_unserialize($mods); if ( is_array($settings) ) { $updated = false; $fonts = kicker_get_theme_fonts(); foreach ( $fonts as $tag => $v ) { foreach ( $v as $css_prop => $css_value ) { if ( in_array( $css_prop, array( 'title', 'description' ) ) ) { continue; } if ( isset( $settings[ "{$tag}_{$css_prop}" ] ) ) { $fonts[ $tag ][ $css_prop ] = $settings[ "{$tag}_{$css_prop}" ]; $updated = true; } } } if ( $updated ) { kicker_storage_set( 'theme_fonts', $fonts ); } } } // Font presets kicker_storage_set( 'font_presets', array( 'default' => array( 'title' => esc_html__( 'Default', 'kicker' ), 'load_fonts' => $load_fonts, 'theme_fonts' => kicker_storage_get('theme_fonts'), ), ) ); } } //-------------------------------------------- // COLOR SCHEMES //-------------------------------------------- if ( ! function_exists( 'kicker_skin_setup_schemes' ) ) { add_action( 'after_setup_theme', 'kicker_skin_setup_schemes', 1 ); function kicker_skin_setup_schemes() { // Theme colors for customizer // Attention! Inner scheme must be last in the array below kicker_storage_set( 'scheme_color_groups', array( 'main' => array( 'title' => esc_html__( 'Main', 'kicker' ), 'description' => esc_html__( 'Colors of the main content area', 'kicker' ), ), 'alter' => array( 'title' => esc_html__( 'Alter', 'kicker' ), 'description' => esc_html__( 'Colors of the alternative blocks (sidebars, etc.)', 'kicker' ), ), 'extra' => array( 'title' => esc_html__( 'Extra', 'kicker' ), 'description' => esc_html__( 'Colors of the extra blocks (dropdowns, price blocks, table headers, etc.)', 'kicker' ), ), 'inverse' => array( 'title' => esc_html__( 'Inverse', 'kicker' ), 'description' => esc_html__( 'Colors of the inverse blocks - when link color used as background of the block (dropdowns, blockquotes, etc.)', 'kicker' ), ), 'input' => array( 'title' => esc_html__( 'Input', 'kicker' ), 'description' => esc_html__( 'Colors of the form fields (text field, textarea, select, etc.)', 'kicker' ), ), ) ); kicker_storage_set( 'scheme_color_names', array( 'bg_color' => array( 'title' => esc_html__( 'Background color', 'kicker' ), 'description' => esc_html__( 'Background color of this block in the normal state', 'kicker' ), ), 'bg_hover' => array( 'title' => esc_html__( 'Background hover', 'kicker' ), 'description' => esc_html__( 'Background color of this block in the hovered state', 'kicker' ), ), 'bd_color' => array( 'title' => esc_html__( 'Border color', 'kicker' ), 'description' => esc_html__( 'Border color of this block in the normal state', 'kicker' ), ), 'bd_hover' => array( 'title' => esc_html__( 'Border hover', 'kicker' ), 'description' => esc_html__( 'Border color of this block in the hovered state', 'kicker' ), ), 'text' => array( 'title' => esc_html__( 'Text', 'kicker' ), 'description' => esc_html__( 'Color of the text inside this block', 'kicker' ), ), 'text_dark' => array( 'title' => esc_html__( 'Text dark', 'kicker' ), 'description' => esc_html__( 'Color of the dark text (bold, header, etc.) inside this block', 'kicker' ), ), 'text_light' => array( 'title' => esc_html__( 'Text light', 'kicker' ), 'description' => esc_html__( 'Color of the light text (post meta, etc.) inside this block', 'kicker' ), ), 'text_link' => array( 'title' => esc_html__( 'Link', 'kicker' ), 'description' => esc_html__( 'Color of the links inside this block', 'kicker' ), ), 'text_hover' => array( 'title' => esc_html__( 'Link hover', 'kicker' ), 'description' => esc_html__( 'Color of the hovered state of links inside this block', 'kicker' ), ), 'text_link2' => array( 'title' => esc_html__( 'Accent 2', 'kicker' ), 'description' => esc_html__( 'Color of the accented texts (areas) inside this block', 'kicker' ), ), 'text_hover2' => array( 'title' => esc_html__( 'Accent 2 hover', 'kicker' ), 'description' => esc_html__( 'Color of the hovered state of accented texts (areas) inside this block', 'kicker' ), ), 'text_link3' => array( 'title' => esc_html__( 'Accent 3', 'kicker' ), 'description' => esc_html__( 'Color of the other accented texts (buttons) inside this block', 'kicker' ), ), 'text_hover3' => array( 'title' => esc_html__( 'Accent 3 hover', 'kicker' ), 'description' => esc_html__( 'Color of the hovered state of other accented texts (buttons) inside this block', 'kicker' ), ), ) ); // Default values for each color scheme $schemes = array( // Color scheme: 'default' 'default' => array( 'title' => esc_html__( 'Default', 'kicker' ), 'internal' => true, 'colors' => array( // Whole block border and background 'bg_color' => '#FBFBFB', 'bd_color' => '#EBE9E4', 'bd_hover' => '#D6CFBE', // Text and links colors 'text' => '#756F69', 'text_dark' => '#2D2517', 'text_light' => '#B4B1AF', 'text_link' => '#707123', 'text_hover' => '#5A5B18', 'text_link2' => '#A2AB60', 'text_hover2' => '#878E52', 'text_link3' => '#C5A48E', 'text_hover3' => '#AB8E7A', // Alternative blocks (sidebar, tabs, alternative blocks, etc.) 'alter_bg_color' => '#F5F3EF', 'alter_bg_hover' => '#EFEFEF', 'alter_bd_color' => '#EBE9E4', 'alter_bd_hover' => '#D6CFBE', 'alter_text' => '#756F69', 'alter_dark' => '#14110A', 'alter_light' => '#B4B1AF', 'alter_link' => '#707123', 'alter_hover' => '#5A5B18', 'alter_link2' => '#A2AB60', 'alter_hover2' => '#878E52', 'alter_link3' => '#C5A48E', 'alter_hover3' => '#AB8E7A', // Extra blocks (submenu, tabs, color blocks, etc.) 'extra_bg_color' => '#14110A', 'extra_bg_hover' => '#1D190F', 'extra_bd_color' => '#36322B', 'extra_bd_hover' => '#504E48', 'extra_text' => '#bfc2c9', 'extra_dark' => '#fcfcfc', 'extra_light' => '#96999f', 'extra_link' => '#fcfcfc', 'extra_hover' => '#707123', 'extra_hover2' => '#a2ab60', // Input fields (form's fields and textarea) 'input_bg_color' => '#FBFBFB', 'input_bg_hover' => '#F5F3EF', 'input_bd_color' => '#EBE9E4', 'input_bd_hover' => '#D6CFBE', 'input_text' => '#756F69', 'input_dark' => '#14110A', 'input_light' => '#9A948E', // Inverse blocks (text and links on the 'text_link' background) 'inverse_bg_color' => '#FFFFFF', 'inverse_bd_color' => '#FFFFFF', 'inverse_bd_hover' => '#FFFFFF', 'inverse_text' => '#FFFFFF', 'inverse_dark' => '#FCFCFC', 'inverse_light' => '#FFFFFF', 'inverse_link' => '#FFFFFF', 'inverse_hover' => '#FFFFFF', ), ), // Color scheme: 'dark' 'dark' => array( 'title' => esc_html__( 'Dark', 'kicker' ), 'internal' => true, 'colors' => array( // Whole block border and background 'bg_color' => '#14110A', 'bd_color' => '#36322B', 'bd_hover' => '#504E48', // Text and links colors 'text' => '#BFC2C9', 'text_dark' => '#FCFCFC', 'text_light' => '#96999F', 'text_link' => '#707123', 'text_hover' => '#5A5B18', 'text_link2' => '#A2AB60', 'text_hover2' => '#878E52', 'text_link3' => '#C5A48E', 'text_hover3' => '#AB8E7A', // Alternative blocks (sidebar, tabs, alternative blocks, etc.) 'alter_bg_color' => '#1D190F', 'alter_bg_hover' => '#353a2e', 'alter_bd_color' => '#36322B', 'alter_bd_hover' => '#504E48', 'alter_text' => '#BFC2C9', 'alter_dark' => '#FCFCFC', 'alter_light' => '#96999F', 'alter_link' => '#707123', 'alter_hover' => '#5A5B18', 'alter_link2' => '#A2AB60', 'alter_hover2' => '#878E52', 'alter_link3' => '#C5A48E', 'alter_hover3' => '#AB8E7A', /// Extra blocks (submenu, tabs, color blocks, etc.) 'extra_bg_color' => '#14110A', 'extra_bg_hover' => '#1D190F', 'extra_bd_color' => '#36322B', 'extra_bd_hover' => '#756f69', 'extra_text' => '#bfc2c9', 'extra_dark' => '#fcfcfc', 'extra_light' => '#96999f', 'extra_link' => '#fcfcfc', 'extra_hover' => '#707123', 'extra_hover2' => '#a2ab60', // Input fields (form's fields and textarea) 'input_bg_color' => '#14110A', 'input_bg_hover' => '#1D190F', 'input_bd_color' => '#36322B', 'input_bd_hover' => '#504E48', 'input_text' => '#BFC2C9', 'input_dark' => '#FCFCFC', 'input_light' => '#96999F', // Inverse blocks (text and links on the 'text_link' background) 'inverse_bg_color' => '#1d190f', 'inverse_bd_color' => '#FFFFFF', 'inverse_bd_hover' => '#FFFFFF', 'inverse_text' => '#FFFFFF', 'inverse_dark' => '#FFFFFF', 'inverse_light' => '#FFFFFF', 'inverse_link' => '#FFFFFF', 'inverse_hover' => '#FFFFFF', ), ), ); kicker_storage_set( 'schemes', $schemes ); kicker_storage_set( 'schemes_original', $schemes ); // 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 kicker_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, ), 'bd_color_05' => array( 'color' => 'bd_color', 'alpha' => 0.5, ), '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_075' => array( 'color' => 'alter_dark', 'alpha' => 0.75, ), 'alter_link_02' => array( 'color' => 'alter_link', 'alpha' => 0.2, ), 'alter_link_07' => array( 'color' => 'alter_link', 'alpha' => 0.7, ), 'extra_bg_color_002' => array( 'color' => 'extra_bg_color', 'alpha' => 0.02, ), 'extra_bg_color_015' => array( 'color' => 'extra_bg_color', 'alpha' => 0.15, ), '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_bg_hover_01' => array( 'color' => 'extra_bg_hover', 'alpha' => 0.1, ), 'extra_dark_07' => array( 'color' => 'extra_dark', 'alpha' => 0.7, ), 'extra_dark_092' => array( 'color' => 'extra_dark', 'alpha' => 0.92, ), 'extra_link_02' => array( 'color' => 'extra_link', 'alpha' => 0.2, ), 'extra_link_07' => array( 'color' => 'extra_link', 'alpha' => 0.7, ), 'text_dark_005' => array( 'color' => 'text_dark', 'alpha' => 0.05, ), 'text_dark_01' => array( 'color' => 'text_dark', 'alpha' => 0.1, ), 'text_dark_07' => array( 'color' => 'text_dark', 'alpha' => 0.7, ), 'text_dark_095' => array( 'color' => 'text_dark', 'alpha' => 0.95, ), 'text_link_01' => array( 'color' => 'text_link', 'alpha' => 0.1, ), 'text_link_02' => array( 'color' => 'text_link', 'alpha' => 0.2, ), 'text_link_07' => array( 'color' => 'text_link', 'alpha' => 0.7, ), 'text_hover_01' => array( 'color' => 'text_hover', 'alpha' => 0.1, ), 'text_link3_03' => array( 'color' => 'text_link3', 'alpha' => 0.3, ), 'text_hover3_03' => array( 'color' => 'text_hover3', 'alpha' => 0.3, ), 'input_dark_06' => array( 'color' => 'input_dark', 'alpha' => 0.6, ), '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 kicker_storage_set( 'schemes_simple', array( 'text_link' => array( 'alter_hover' => 1, 'extra_link' => 1, ), 'text_hover' => array( 'alter_link' => 1, 'extra_hover' => 1, ), 'text_link2' => array( 'alter_hover2' => 1, 'extra_link2' => 1, ), 'text_hover2' => array( 'alter_link2' => 1, 'extra_hover2' => 1, ), 'text_link3' => array( 'alter_hover3' => 1, 'extra_link3' => 1, ), 'text_hover3' => array( 'alter_link3' => 1, 'extra_hover3' => 1, ), '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 kicker_storage_set( 'schemes_sorted', array( 'color_scheme', 'header_scheme', 'menu_scheme', 'sidebar_scheme', 'footer_scheme', ) ); // Color presets kicker_storage_set( 'color_presets', array( 'autumn' => array( 'title' => esc_html__( 'Autumn', 'kicker' ), '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', 'kicker' ), 'colors' => array( 'default' => array( 'text_link' => '#75ac78', 'text_hover' => '#378e6d', ), 'dark' => array( 'text_link' => '#75ac78', 'text_hover' => '#378e6d', ) ) ), ) ); } } //-------------------------------------------- // THUMBS //-------------------------------------------- if ( ! function_exists( 'kicker_skin_setup_thumbs' ) ) { add_action( 'after_setup_theme', 'kicker_skin_setup_thumbs', 1 ); function kicker_skin_setup_thumbs() { kicker_storage_set( 'theme_thumbs', apply_filters( 'kicker_filter_add_thumb_sizes', array( // Width of the image is equal to the content area width (without sidebar) // Height is fixed 'kicker-thumb-huge' => array( 'size' => array( 1290, 616, true ), 'title' => esc_html__( 'Huge image', 'kicker' ), 'subst' => 'trx_addons-thumb-huge', ), // Image for Classic blog item // Height is fixed 'kicker-thumb-large' => array( 'size' => array( 1080, 590, true ), 'title' => esc_html__( 'Large image', 'kicker' ), 'subst' => 'trx_addons-thumb-large', ), // Width of the image is equal to the content area width (with sidebar) // Height is fixed 'kicker-thumb-big' => array( 'size' => array( 850, 541, true ), 'title' => esc_html__( 'Big image', 'kicker' ), 'subst' => 'trx_addons-thumb-big', ), // Width of the image is equal to the 1/2 of the content area width (without sidebar) // Height is fixed 'kicker-thumb-med' => array( 'size' => array( 642, 491, true ), 'title' => esc_html__( 'Medium 642x491', 'kicker' ), 'subst' => 'trx_addons-thumb-medium', ), // Width of the image is equal to the narrow content area width (without sidebar) // Height is fixed 'kicker-thumb-med-1' => array( 'size' => array( 630, 427, true ), 'title' => esc_html__( 'Medium 630x427', 'kicker' ), 'subst' => 'trx_addons-thumb-medium', ), // Width of the image is equal to the narrow content area width (without sidebar) // Height is fixed 'kicker-thumb-med-2' => array( 'size' => array( 533, 400, true ), 'title' => esc_html__( 'Medium 533x400', 'kicker' ), 'subst' => 'trx_addons-thumb-medium', ), // Long width image for shortcode Categories // Height is fixed 'kicker-thumb-med-3' => array( 'size' => array( 410, 290, true ), 'title' => esc_html__( 'Medium 410x290', 'kicker' ), 'subst' => 'trx_addons-thumb-medium', ), // Long width image for shortcode Categories // Height is fixed 'kicker-thumb-med-4' => array( 'size' => array( 410, 430, true ), 'title' => esc_html__( 'Medium 410x430', 'kicker' ), 'subst' => 'trx_addons-thumb-medium', ), // Long width image for shortcode Categories // Height is fixed 'kicker-thumb-med-5' => array( 'size' => array( 390, 110, true ), 'title' => esc_html__( 'Medium 390x110', 'kicker' ), 'subst' => 'trx_addons-thumb-medium', ), // Medium square image // Height is fixed 'kicker-thumb-med-square' => array( 'size' => array( 300, 300, true ), 'title' => esc_html__( 'Medium square', 'kicker' ), 'subst' => 'trx_addons-thumb-med-square', ), // Small square image (for avatars in comments, etc.) 'kicker-thumb-tiny' => array( 'size' => array( 120, 120, true ), 'title' => esc_html__( 'Small square avatar', 'kicker' ), 'subst' => 'trx_addons-thumb-tiny', ), // Image for Masonry blog item 'kicker-thumb-masonry-huge' => array( 'size' => array( 1290, 0, false ), // Only downscale, not crop 'title' => esc_html__( 'Masonry Huge (scaled)', 'kicker' ), 'subst' => 'trx_addons-thumb-masonry-huge', ), // Image for Masonry blog item 'kicker-thumb-masonry-large' => array( 'size' => array( 1080, 0, false ), // Only downscale, not crop 'title' => esc_html__( 'Masonry Large (scaled)', 'kicker' ), 'subst' => 'trx_addons-thumb-masonry-large', ), // Width of the image is equal to the content area width (with sidebar) // Height is proportional (only downscale, not crop) 'kicker-thumb-masonry-big' => array( 'size' => array( 865, 0, false ), // Only downscale, not crop 'title' => esc_html__( 'Masonry Big (scaled)', 'kicker' ), 'subst' => 'trx_addons-thumb-masonry-big', ), // Width of the image is equal to the 1/2 of the full content area width (without sidebar) // Height is proportional (only downscale, not crop) 'kicker-thumb-masonry' => array( 'size' => array( 642, 0, false ), // Only downscale, not crop 'title' => esc_html__( 'Masonry (scaled)', 'kicker' ), 'subst' => 'trx_addons-thumb-masonry', ), // Image for Widget Video List (Style "Default": main image) 'kicker-thumb-w-video-def-main' => array( 'size' => array( 915, 570, true ), 'title' => esc_html__( 'Video Main', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-def-main', ), // Image for Widget Video List (Style "Default": small image) 'kicker-thumb-w-video-def-small' => array( 'size' => array( 300, 225, true ), 'title' => esc_html__( 'Video Small', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-def-small', ), // Image for Widget Video List (Style "Alter": main image) 'kicker-thumb-w-video-alter-main' => array( 'size' => array( 883, 580, true ), 'title' => esc_html__( 'Video Main', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-alter-main' ), // Image for Widget Video List (Style "Wide": main image) 'kicker-thumb-w-video-wide-main' => array( 'size' => array( 870, 610, true ), 'title' => esc_html__( 'Video Main', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-wide-main' ), // Image for Widget Video List (Style "Wide": small image) 'kicker-thumb-w-video-wide-small' => array( 'size' => array( 405, 310, true ), 'title' => esc_html__( 'Video Small', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-wide-small' ), // Image for Widget Video List (Style "News": main image) 'kicker-thumb-w-video-news-main' => array( 'size' => array( 1335, 590, true ), 'title' => esc_html__( 'Video Main', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-news-main' ), // Image for Widget Video List (Style "News": small image) 'kicker-thumb-w-video-news-small' => array( 'size' => array( 344, 225, true ), 'title' => esc_html__( 'Video Small', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-news-small' ), // Image for Widget Video List (Style "Standard": main image) 'kicker-thumb-w-video-standard-main' => array( 'size' => array( 996, 550, true ), 'title' => esc_html__( 'Video Main', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-standard-main' ), // Image for Widget Video List (Style "Classic": main image) 'kicker-thumb-w-video-classic-main' => array( 'size' => array( 1347, 610, true ), 'title' => esc_html__( 'Video Main', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-classic-main' ), // Image for Widget Video List (Style "Classic": small image) 'kicker-thumb-w-video-classic-small' => array( 'size' => array( 326, 230, true ), 'title' => esc_html__( 'Video Small', 'kicker' ), 'subst' => 'trx_addons-thumb-w-video-classic-small' ), // Image for Widget About Us (Style "Default") 'kicker-thumb-about-us-def' => array( 'size' => array( 160, 160, true ), 'title' => esc_html__( 'About Us Default', 'kicker' ), 'subst' => 'trx_addons-thumb-about-us' ), // Image for Widget About Us (Style "Modern") 'kicker-thumb-about-us-modern' => array( 'size' => array( 446, 220, true ), 'title' => esc_html__( 'About Us Modern', 'kicker' ), 'subst' => 'trx_addons-thumb-about-us-modern' ), // Image for Product 'kicker-thumb-product-image' => array( 'size' => array( 433, 380, true ), 'title' => esc_html__( 'Products image', 'kicker' ), 'subst' => 'trx_addons-thumb-product' ), ) ) ); } } //-------------------------------------------- // BLOG STYLES //-------------------------------------------- if ( ! function_exists( 'kicker_skin_setup_blog_styles' ) ) { add_action( 'after_setup_theme', 'kicker_skin_setup_blog_styles', 1 ); function kicker_skin_setup_blog_styles() { $blog_styles = array( 'excerpt' => array( 'title' => esc_html__( 'Standard', 'kicker' ), 'archive' => 'index', 'item' => 'templates/content-excerpt', 'styles' => 'excerpt', 'icon' => "images/theme-options/blog-style/excerpt.png", ), 'band' => array( 'title' => esc_html__( 'Band', 'kicker' ), 'archive' => 'index', 'item' => 'templates/content-band', 'styles' => 'band', 'icon' => "images/theme-options/blog-style/band.png", ), ); if ( ! KICKER_THEME_FREE ) { $blog_styles['classic-masonry'] = array( 'title' => esc_html__( 'Classic Masonry', 'kicker' ), 'archive' => 'index', 'item' => 'templates/content-classic', 'columns' => array( 2, 3 ), 'styles' => array( 'classic', 'masonry' ), 'scripts' => 'masonry', 'icon' => "images/theme-options/blog-style/classic-masonry-%d.png", 'new_row' => true, ); $blog_styles['portfolio-masonry'] = array( 'title' => esc_html__( 'Portfolio Masonry', 'kicker' ), 'archive' => 'index', 'item' => 'templates/content-portfolio', 'columns' => array( 2, 3 ), 'styles' => array( 'portfolio', 'masonry' ), 'scripts' => 'masonry', 'icon' => "images/theme-options/blog-style/portfolio-masonry-%d.png", 'new_row' => true, ); } kicker_storage_set( 'blog_styles', apply_filters( 'kicker_filter_add_blog_styles', $blog_styles ) ); } } //-------------------------------------------- // SINGLE STYLES //-------------------------------------------- if ( ! function_exists( 'kicker_skin_setup_single_styles' ) ) { add_action( 'after_setup_theme', 'kicker_skin_setup_single_styles', 1 ); function kicker_skin_setup_single_styles() { kicker_storage_set( 'single_styles', apply_filters( 'kicker_filter_add_single_styles', array( 'style-1' => array( 'title' => esc_html__( 'Style 1', 'kicker' ), 'description' => esc_html__( 'Fullwidth image is above the content area, the title and meta are over the image', 'kicker' ), 'styles' => 'style-1', 'icon' => "images/theme-options/single-style/style-1.png", ), 'style-2' => array( 'title' => esc_html__( 'Style 2', 'kicker' ), 'description' => esc_html__( 'Fullwidth image is above the content area, the title and meta are over the image', 'kicker' ), 'styles' => 'style-2', 'icon' => "images/theme-options/single-style/style-2.png", ), 'style-3' => array( 'title' => esc_html__( 'Style 3', 'kicker' ), 'description' => esc_html__( 'Boxed image is above the content area, the title and meta are over the image', 'kicker' ), 'styles' => 'style-3', 'icon' => "images/theme-options/single-style/style-3.png", ), 'style-4' => array( 'title' => esc_html__( 'Style 4', 'kicker' ), 'description' => esc_html__( 'Fullwidth image is above the content area, the title and meta are inside the content area', 'kicker' ), 'styles' => 'style-4', 'icon' => "images/theme-options/single-style/style-4.png", ), 'style-5' => array( 'title' => esc_html__( 'Style 5', 'kicker' ), 'description' => esc_html__( 'Fullwidth image is above the content area, the title and meta are below the image', 'kicker' ), 'styles' => 'style-5', 'icon' => "images/theme-options/single-style/style-5.png", ), 'style-6' => array( 'title' => esc_html__( 'Style 6', 'kicker' ), 'description' => esc_html__( 'Fullwidth image is above the content area, the title and meta are above the image', 'kicker' ), 'styles' => 'style-6', 'icon' => "images/theme-options/single-style/style-6.png", ), 'style-7' => array( 'title' => esc_html__( 'Style 7', 'kicker' ), 'description' => esc_html__( 'Boxed image, the title and meta are above the content area like two big square areas', 'kicker' ), 'styles' => 'style-7', 'icon' => "images/theme-options/single-style/style-7.png", ), 'style-8' => array( 'title' => esc_html__( 'Style 8', 'kicker' ), 'description' => esc_html__( 'Boxed image is inside the content area, the title and meta are above the content area', 'kicker' ), 'styles' => 'style-8', 'icon' => "images/theme-options/single-style/style-8.png", ), 'style-9' => array( 'title' => esc_html__( 'Style 9', 'kicker' ), 'description' => esc_html__( 'Boxed image is above the content area, the title and meta are above the image', 'kicker' ), 'styles' => 'style-9', 'icon' => "images/theme-options/single-style/style-9.png", ), 'style-10' => array( 'title' => esc_html__( 'Style 10', 'kicker' ), 'description' => esc_html__( 'Boxed image is above the content area, the title and meta are inside the content area', 'kicker' ), 'styles' => 'style-10', 'icon' => "images/theme-options/single-style/style-10.png", ), 'style-11' => array( 'title' => esc_html__( 'Style 11', 'kicker' ), 'description' => esc_html__( 'Boxed image is above the content area, the title and meta are above the image', 'kicker' ), 'styles' => 'style-11', 'icon' => "images/theme-options/single-style/style-11.png", ), 'style-12' => array( 'title' => esc_html__( 'Style 12', 'kicker' ), 'description' => esc_html__( 'Boxed image is above the content area, the title and meta are above the image', 'kicker' ), 'styles' => 'style-12', 'icon' => "images/theme-options/single-style/style-12.png", ), 'style-13' => array( 'title' => esc_html__( 'Style 13', 'kicker' ), 'description' => esc_html__( 'Boxed image is above the content area, the title and meta are above the image', 'kicker' ), 'styles' => 'style-13', 'icon' => "images/theme-options/single-style/style-13.png", ), 'style-14' => array( 'title' => esc_html__( 'Style 14', 'kicker' ), 'description' => esc_html__( 'Fullwidth image is above the content area, the title and meta are above the image', 'kicker' ), 'styles' => 'style-14', 'icon' => "images/theme-options/single-style/style-14.png", ), 'style-15' => array( 'title' => esc_html__( 'Style 15', 'kicker' ), 'description' => esc_html__( 'Featured image is hidden', 'kicker' ), 'styles' => 'style-15', 'icon' => "images/theme-options/single-style/style-15.png", ) ) ) ); } }