PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
typography
/
dashboard
/
admin
<?php if ( ! function_exists( 'webon_core_add_h2_typography_options' ) ) { /** * Function that add general options for this module * * @param object $page */ function webon_core_add_h2_typography_options( $page ) { if ( $page ) { $h2_tab = $page->add_tab_element( array( 'name' => 'tab-h2', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'H2 Typography', 'webon-core' ), 'description' => esc_html__( 'Set values for Heading 2 HTML element', 'webon-core' ) ) ); $h2_typography_section = $h2_tab->add_section_element( array( 'name' => 'qodef_h2_typography_section', 'title' => esc_html__( 'General Typography', 'webon-core' ) ) ); $h2_typography_row = $h2_typography_section->add_row_element( array ( 'name' => 'qodef_h2_typography_row', ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_h2_color', 'title' => esc_html__( 'Color', 'webon-core' ), 'args' => array( 'col_width' => 3 ) ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'font', 'name' => 'qodef_h2_font_family', 'title' => esc_html__( 'Font Family', 'webon-core' ), 'args' => array( 'col_width' => 3 ) ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_font_size', 'title' => esc_html__( 'Font Size', 'webon-core' ), 'args' => array( 'col_width' => 3 ) ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_line_height', 'title' => esc_html__( 'Line Height', 'webon-core' ), 'args' => array( 'col_width' => 3 ) ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'webon-core' ), 'args' => array( 'col_width' => 3 ) ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_h2_font_weight', 'title' => esc_html__( 'Font Weight', 'webon-core' ), 'options' => webon_core_get_select_type_options_pool( 'font_weight' ), 'args' => array( 'col_width' => 3 ) ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_h2_text_transform', 'title' => esc_html__( 'Text Transform', 'webon-core' ), 'options' => webon_core_get_select_type_options_pool( 'text_transform' ), 'args' => array( 'col_width' => 3 ) ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_h2_font_style', 'title' => esc_html__( 'Font Style', 'webon-core' ), 'options' => webon_core_get_select_type_options_pool( 'font_style' ), 'args' => array( 'col_width' => 3 ) ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_margin_top', 'title' => esc_html__( 'Margin Top', 'webon-core' ), 'args' => array( 'col_width' => 3 ) ) ); $h2_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_margin_bottom', 'title' => esc_html__( 'Margin Bottom', 'webon-core' ), 'args' => array( 'col_width' => 3 ) ) ); /* 1024 styles */ $h2_1024_typography_section = $h2_tab->add_section_element( array( 'name' => 'qodef_responsive_1024_typography_h2', 'title' => esc_html__( 'Responsive 1024 Typography', 'webon-core' ) ) ); $responsive_1024_typography_h2_row = $h2_1024_typography_section->add_row_element( array( 'name' => 'qodef_responsive_1024_h2_typography_row' ) ); $responsive_1024_typography_h2_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_responsive_1024_font_size', 'title' => esc_html__( 'Font Size', 'webon-core' ), 'args' => array( 'col_width' => 4 ) ) ); $responsive_1024_typography_h2_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_responsive_1024_line_height', 'title' => esc_html__( 'Line Height', 'webon-core' ), 'args' => array( 'col_width' => 4 ) ) ); $responsive_1024_typography_h2_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_responsive_1024_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'webon-core' ), 'args' => array( 'col_width' => 4 ) ) ); /* 768 styles */ $h2_768_typography_section = $h2_tab->add_section_element( array( 'name' => 'qodef_responsive_768_typography_h2', 'title' => esc_html__( 'Responsive 768 Typography', 'webon-core' ) ) ); $responsive_768_typography_h2_row = $h2_768_typography_section->add_row_element( array( 'name' => 'qodef_responsive_768_h2_typography_row' ) ); $responsive_768_typography_h2_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_responsive_768_font_size', 'title' => esc_html__( 'Font Size', 'webon-core' ), 'args' => array( 'col_width' => 4 ) ) ); $responsive_768_typography_h2_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_responsive_768_line_height', 'title' => esc_html__( 'Line Height', 'webon-core' ), 'args' => array( 'col_width' => 4 ) ) ); $responsive_768_typography_h2_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_responsive_768_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'webon-core' ), 'args' => array( 'col_width' => 4 ) ) ); /* 680 styles */ $h2_680_typography_section = $h2_tab->add_section_element( array( 'name' => 'qodef_responsive_680_typography_h2', 'title' => esc_html__( 'Responsive 680 Typography', 'webon-core' ) ) ); $responsive_680_typography_h2_row = $h2_680_typography_section->add_row_element( array( 'name' => 'qodef_responsive_680_h2_typography_row' ) ); $responsive_680_typography_h2_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_responsive_680_font_size', 'title' => esc_html__( 'Font Size', 'webon-core' ), 'args' => array( 'col_width' => 4 ) ) ); $responsive_680_typography_h2_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_responsive_680_line_height', 'title' => esc_html__( 'Line Height', 'webon-core' ), 'args' => array( 'col_width' => 4 ) ) ); $responsive_680_typography_h2_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_h2_responsive_680_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'webon-core' ), 'args' => array( 'col_width' => 4 ) ) ); } } add_action( 'webon_core_action_after_typography_options_map', 'webon_core_add_h2_typography_options' ); }
[-] h2-options.php
[edit]
[+]
..
[-] typography-options.php
[edit]
[-] link-options.php
[edit]
[-] h1-options.php
[edit]
[-] h6-options.php
[edit]
[-] h5-options.php
[edit]
[-] h4-options.php
[edit]
[-] h3-options.php
[edit]
[-] p-options.php
[edit]