Current Path : /var/www/mainsite/wp-content/themes/maxcoach/customizer/title-bar/ |
Current File : /var/www/mainsite/wp-content/themes/maxcoach/customizer/title-bar/style-02.php |
<?php $section = 'title_bar_02'; $priority = 1; $prefix = 'title_bar_02_'; Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => $prefix . 'background_type', 'label' => esc_html__( 'Background Type', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 'normal', 'choices' => array( 'normal' => esc_html__( 'Normal', 'maxcoach' ), 'gradient' => esc_html__( 'Gradient', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'background', 'settings' => $prefix . 'background', 'label' => esc_html__( 'Background', 'maxcoach' ), 'description' => esc_html__( 'Controls the background of title bar.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'no-repeat', 'background-size' => 'cover', 'background-attachment' => 'scroll', 'background-position' => 'center center', ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-bg', ), ), 'active_callback' => array( array( 'setting' => $prefix . 'background_type', 'operator' => '==', 'value' => 'normal', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'multicolor', 'settings' => $prefix . 'background_gradient', 'label' => esc_html__( 'Background Gradient', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'choices' => array( 'color_1' => esc_attr__( 'Color 1', 'maxcoach' ), 'color_2' => esc_attr__( 'Color 2', 'maxcoach' ), ), 'default' => array( 'color_1' => '#fff', 'color_2' => '#eceefa', ), 'active_callback' => array( array( 'setting' => $prefix . 'background_type', 'operator' => '==', 'value' => 'gradient', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'color-alpha', 'settings' => $prefix . 'bg_overlay_color', 'label' => esc_html__( 'Background Overlay Color', 'maxcoach' ), 'description' => esc_html__( 'Controls the background overlay color of title bar.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'default' => 'rgba(0, 0, 0, 0)', 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-bg:before', 'property' => 'background-color', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'border_width', 'label' => esc_html__( 'Border Bottom Width', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 0, 'transport' => 'auto', 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'border-bottom-width', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'color-alpha', 'settings' => $prefix . 'border_color', 'label' => esc_html__( 'Border Color', 'maxcoach' ), 'description' => esc_html__( 'Controls the border bottom color of the page title bar.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'default' => 'rgba(0, 0, 0, 0)', 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'border-bottom-color', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'padding_top', 'label' => esc_html__( 'Padding Bottom', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 12, 'transport' => 'auto', 'choices' => array( 'min' => 50, 'max' => 500, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'padding-top', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'padding_bottom', 'label' => esc_html__( 'Padding Bottom', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 12, 'transport' => 'auto', 'choices' => array( 'min' => 50, 'max' => 500, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'padding-bottom', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'margin_bottom', 'label' => esc_html__( 'Margin Bottom', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 74, 'transport' => 'auto', 'choices' => array( 'min' => 0, 'max' => 500, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02', 'property' => 'margin-bottom', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Breadcrumb', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'kirki_typography', 'settings' => $prefix . 'breadcrumb_typography', 'label' => esc_html__( 'Typography', 'maxcoach' ), 'description' => esc_html__( 'Controls the typography for the breadcrumb text.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'default' => array( 'font-family' => '', 'variant' => '400', 'line-height' => '1.67', 'letter-spacing' => '', 'text-transform' => '', 'font-size' => '14px', ), 'output' => array( array( 'element' => '.page-title-bar-02 .insight_core_breadcrumb li, .page-title-bar-02 .insight_core_breadcrumb li a', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'color-alpha', 'settings' => $prefix . 'breadcrumb_text_color', 'label' => esc_html__( 'Text Color', 'maxcoach' ), 'description' => esc_html__( 'Controls the color of text on breadcrumb.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'default' => Maxcoach::HEADING_COLOR, 'output' => array( array( 'element' => '.page-title-bar-02 .insight_core_breadcrumb li', 'property' => 'color', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'multicolor', 'settings' => $prefix . 'breadcrumb_link_color', 'label' => esc_html__( 'Link Color', 'maxcoach' ), 'description' => esc_html__( 'Controls the color of links on breadcrumb.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'choices' => array( 'normal' => esc_attr__( 'Normal', 'maxcoach' ), 'hover' => esc_attr__( 'Hover', 'maxcoach' ), ), 'default' => array( 'normal' => Maxcoach::TEXT_COLOR, 'hover' => Maxcoach::HEADING_COLOR, ), 'output' => array( array( 'choice' => 'normal', 'element' => '.page-title-bar-02 .insight_core_breadcrumb a', 'property' => 'color', ), array( 'choice' => 'hover', 'element' => '.page-title-bar-02 .insight_core_breadcrumb a:hover', 'property' => 'color', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'color-alpha', 'settings' => $prefix . 'breadcrumb_separator_color', 'label' => esc_html__( 'Separator Color', 'maxcoach' ), 'description' => esc_html__( 'Controls the color of separator on breadcrumb.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => Maxcoach::TEXT_COLOR, 'transport' => 'auto', 'output' => array( array( 'element' => '.page-title-bar-02 .insight_core_breadcrumb li + li:before', 'property' => 'color', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Responsive Options', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="group_title">' . esc_html__( 'Medium Device', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'md_padding_top', 'label' => esc_html__( 'Padding Bottom', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'choices' => array( 'min' => 50, 'max' => 500, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'padding-top', 'units' => 'px', 'media_query' => Maxcoach_Helper::get_md_media_query(), ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'md_padding_bottom', 'label' => esc_html__( 'Padding Bottom', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'choices' => array( 'min' => 50, 'max' => 500, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'padding-bottom', 'units' => 'px', 'media_query' => Maxcoach_Helper::get_md_media_query(), ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="group_title">' . esc_html__( 'Small Device', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'sm_padding_top', 'label' => esc_html__( 'Padding Bottom', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'choices' => array( 'min' => 50, 'max' => 500, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'padding-top', 'units' => 'px', 'media_query' => Maxcoach_Helper::get_sm_media_query(), ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'sm_padding_bottom', 'label' => esc_html__( 'Padding Bottom', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'choices' => array( 'min' => 50, 'max' => 500, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'padding-bottom', 'units' => 'px', 'media_query' => Maxcoach_Helper::get_sm_media_query(), ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="group_title">' . esc_html__( 'Extra Small Device', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'xs_padding_top', 'label' => esc_html__( 'Padding Bottom', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'choices' => array( 'min' => 50, 'max' => 500, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'padding-top', 'units' => 'px', 'media_query' => Maxcoach_Helper::get_xs_media_query(), ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => $prefix . 'xs_padding_bottom', 'label' => esc_html__( 'Padding Bottom', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'choices' => array( 'min' => 50, 'max' => 500, 'step' => 1, ), 'output' => array( array( 'element' => '.page-title-bar-02 .page-title-bar-inner', 'property' => 'padding-bottom', 'units' => 'px', 'media_query' => Maxcoach_Helper::get_xs_media_query(), ), ), ) );