File: /home/lesanew/www/wp-content/plugins/neobeat-core/inc/typography/dashboard/admin/link-options.php
<?php
if ( ! function_exists( 'neobeat_core_add_link_typography_options' ) ) {
/**
* Function that add general options for this module
*/
function neobeat_core_add_link_typography_options( $page ) {
if ( $page ) {
$link_tab = $page->add_tab_element( array(
'name' => 'tab-link',
'icon' => 'fa fa-cog',
'title' => esc_html__( 'Link Typography', 'neobeat-core' ),
'description' => esc_html__( 'Set values for link', 'neobeat-core' )
) );
$link_typography_section = $link_tab->add_section_element(
array(
'name' => 'qodef_link_typography_section',
'title' => esc_html__( 'General Typography', 'neobeat-core' )
)
);
$link_typography_row = $link_typography_section->add_row_element(
array (
'name' => 'qodef_link_typography_row',
)
);
$link_typography_row->add_field_element(
array(
'field_type' => 'color',
'name' => 'qodef_link_color',
'title' => esc_html__( 'Color', 'neobeat-core' ),
'args' => array(
'col_width' => 4
)
)
);
$link_typography_row->add_field_element(
array(
'field_type' => 'color',
'name' => 'qodef_link_hover_color',
'title' => esc_html__( 'Hover Color', 'neobeat-core' ),
'args' => array(
'col_width' => 4
)
)
);
$link_typography_row->add_field_element(
array(
'field_type' => 'select',
'name' => 'qodef_link_font_weight',
'title' => esc_html__( 'Font Weight', 'neobeat-core' ),
'options' => neobeat_core_get_select_type_options_pool( 'font_weight' ),
'args' => array(
'col_width' => 4
)
)
);
$link_typography_row->add_field_element(
array(
'field_type' => 'select',
'name' => 'qodef_link_font_style',
'title' => esc_html__( 'Font Style', 'neobeat-core' ),
'options' => neobeat_core_get_select_type_options_pool( 'font_style' ),
'args' => array(
'col_width' => 4
)
)
);
$link_typography_row->add_field_element(
array(
'field_type' => 'select',
'name' => 'qodef_link_text_decoration',
'title' => esc_html__( 'Text Decoration', 'neobeat-core' ),
'options' => neobeat_core_get_select_type_options_pool( 'text_decoration' ),
'args' => array(
'col_width' => 4
)
)
);
$link_typography_row->add_field_element(
array(
'field_type' => 'select',
'name' => 'qodef_link_hover_text_decoration',
'title' => esc_html__( 'Hover Text Decoration', 'neobeat-core' ),
'options' => neobeat_core_get_select_type_options_pool( 'text_decoration' ),
'args' => array(
'col_width' => 4
)
)
);
}
}
add_action( 'neobeat_core_action_after_typography_options_map', 'neobeat_core_add_link_typography_options' );
}