Current Path : /var/www/mainsite/wp-content/themes/maxcoach/customizer/ |
Current File : /var/www/mainsite/wp-content/themes/maxcoach/customizer/section-typography.php |
<?php $section = 'typography'; $priority = 1; $prefix = 'typography_'; $font_weights = array( '200', '200italic', '300', '300italic', 'regular', 'italic', '500', '500italic', '600', '600italic', '700', '700italic', '800', '800italic', '900', '900italic', ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="desc"><strong class="insight-label insight-label-info">' . esc_html__( 'IMPORTANT NOTE: ', 'maxcoach' ) . '</strong>' . esc_html__( 'This section contains general typography options. Additional typography options for specific areas can be found within other sections. Example: For breadcrumb typography options go to the breadcrumb section.', 'maxcoach' ) . '</div>', ) ); /*-------------------------------------------------------------- # Body Typography --------------------------------------------------------------*/ Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Body Typography', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'kirki_typography', 'settings' => $prefix . 'body', 'label' => esc_html__( 'Font family', 'maxcoach' ), 'description' => esc_html__( 'These settings control the typography for all body text.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'default' => array( 'font-family' => Maxcoach::PRIMARY_FONT, 'variant' => '400', 'font-size' => '15px', 'line-height' => '1.74', 'letter-spacing' => '0em', ), 'choices' => array( 'variant' => $font_weights, ), 'output' => array( array( 'element' => 'body, .gmap-marker-wrap', ), ), ) ); /*-------------------------------------------------------------- # Heading typography --------------------------------------------------------------*/ Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Heading Typography', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'kirki_typography', 'settings' => $prefix . 'heading', 'label' => esc_html__( 'Font family', 'maxcoach' ), 'description' => esc_html__( 'These settings control the typography for all heading text.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'default' => array( 'font-family' => '', 'variant' => 700, 'line-height' => '1.3', 'letter-spacing' => '0em', ), 'choices' => array( 'variant' => $font_weights, ), 'output' => array( array( 'element' => 'h1,h2,h3,h4,h5,h6,th,[class*="hint--"]:after, .heading, .heading-typography, .answer-options .answer-option .option-title .option-title-content, .elementor-accordion .elementor-tab-title a, .elementor-counter .elementor-counter-title, .entry-event-info .meta-label, .entry-course-info .meta-label ', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => 'h1_font_size', 'label' => esc_html__( 'Font size', 'maxcoach' ), 'description' => esc_html__( 'H1', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 38, 'transport' => 'auto', 'choices' => array( 'min' => 10, 'max' => 100, 'step' => 1, ), 'output' => array( array( 'element' => 'h1', 'property' => 'font-size', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => 'h2_font_size', 'description' => esc_html__( 'H2', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 34, 'transport' => 'auto', 'choices' => array( 'min' => 10, 'max' => 100, 'step' => 1, ), 'output' => array( array( 'element' => 'h2', 'property' => 'font-size', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => 'h3_font_size', 'description' => esc_html__( 'H3', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 30, 'transport' => 'auto', 'choices' => array( 'min' => 10, 'max' => 100, 'step' => 1, ), 'output' => array( array( 'element' => 'h3', 'property' => 'font-size', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => 'h4_font_size', 'description' => esc_html__( 'H4', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 26, 'transport' => 'auto', 'choices' => array( 'min' => 10, 'max' => 100, 'step' => 1, ), 'output' => array( array( 'element' => 'h4', 'property' => 'font-size', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => 'h5_font_size', 'description' => esc_html__( 'H5', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 22, 'transport' => 'auto', 'choices' => array( 'min' => 10, 'max' => 100, 'step' => 1, ), 'output' => array( array( 'element' => 'h5', 'property' => 'font-size', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => 'h6_font_size', 'description' => esc_html__( 'H6', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 18, 'transport' => 'auto', 'choices' => array( 'min' => 10, 'max' => 100, 'step' => 1, ), 'output' => array( array( 'element' => 'h6', 'property' => 'font-size', 'units' => 'px', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'select', 'settings' => 'strong_font_weight', 'label' => esc_html__( 'Strong Tag Weight', 'maxcoach' ), 'description' => esc_html__( 'Controls font weight of <strong>, <b> tags', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '700', 'transport' => 'auto', 'choices' => array( '400' => esc_html__( '400 - Regular', 'maxcoach' ), '500' => esc_html__( '500 - Medium', 'maxcoach' ), '600' => esc_html__( '600 - Semi Bold', 'maxcoach' ), '700' => esc_html__( '700 - Bold', 'maxcoach' ), '800' => esc_html__( '800 - Extra Bold', 'maxcoach' ), '900' => esc_html__( '900 - Ultra Bold (Black)', 'maxcoach' ), ), 'output' => array( array( 'element' => 'b, strong', 'property' => 'font-weight', ), ), ) ); /*-------------------------------------------------------------- # Button --------------------------------------------------------------*/ Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Buttons', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'kirki_typography', 'settings' => 'button_typography', 'label' => esc_html__( 'Font family', 'maxcoach' ), 'description' => esc_html__( 'These settings control the typography for buttons.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'default' => array( 'font-family' => 'inherit', 'variant' => '700', 'font-size' => '14px', 'text-transform' => 'none', 'letter-spacing' => '0em', ), 'choices' => array( 'variant' => $font_weights, ), 'output' => array( array( 'element' => Maxcoach_Helper::get_button_typography_css_selector(), ), ), ) ); /*-------------------------------------------------------------- # Form --------------------------------------------------------------*/ Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Form Inputs', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'kirki_typography', 'settings' => 'form_typography', 'label' => esc_html__( 'Font family', 'maxcoach' ), 'description' => esc_html__( 'These settings control the typography for form inputs.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'auto', 'default' => array( 'font-family' => '', 'variant' => 'regular', 'letter-spacing' => '0em', 'font-size' => '15px', ), 'choices' => array( 'variant' => $font_weights, ), 'output' => array( array( 'element' => Maxcoach_Helper::get_form_input_css_selector(), ), ), ) );