File: /var/www/html/wpmuhibbah/wp-content/themes/goodwish/framework/modules/sidearea/options-map/map.php
<?php
if ( ! function_exists('goodwish_edge_sidearea_options_map') ) {
function goodwish_edge_sidearea_options_map() {
goodwish_edge_add_admin_page(
array(
'slug' => '_side_area_page',
'title' => esc_html__('Side Area','goodwish'),
'icon' => 'fa fa-bars'
)
);
$side_area_panel = goodwish_edge_add_admin_panel(
array(
'title' => esc_html__('Side Area','goodwish'),
'name' => 'side_area',
'page' => '_side_area_page'
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'select',
'name' => 'side_area_type',
'default_value' => 'side-menu-slide-from-right',
'label' => esc_html__('Side Area Type','goodwish'),
'description' => esc_html__('Choose a type of Side Area','goodwish'),
'options' => array(
'side-menu-slide-from-right' => esc_html__('Slide from Right Over Content','goodwish'),
'side-menu-slide-with-content' => esc_html__('Slide from Right With Content','goodwish'),
'side-area-uncovered-from-content' => esc_html__('Side Area Uncovered from Content','goodwish'),
),
'args' => array(
'dependence' => true,
'hide' => array(
'side-menu-slide-from-right' => '#edgtf_side_area_slide_with_content_container',
'side-menu-slide-with-content' => '#edgtf_side_area_width_container',
'side-area-uncovered-from-content' => '#edgtf_side_area_width_container, #edgtf_side_area_slide_with_content_container'
),
'show' => array(
'side-menu-slide-from-right' => '#edgtf_side_area_width_container',
'side-menu-slide-with-content' => '#edgtf_side_area_slide_with_content_container',
'side-area-uncovered-from-content' => ''
)
)
)
);
$side_area_width_container = goodwish_edge_add_admin_container(
array(
'parent' => $side_area_panel,
'name' => 'side_area_width_container',
'hidden_property' => 'side_area_type',
'hidden_value' => '',
'hidden_values' => array(
'side-menu-slide-with-content',
'side-area-uncovered-from-content'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_width_container,
'type' => 'text',
'name' => 'side_area_width',
'default_value' => '',
'label' => esc_html__('Side Area Width','goodwish'),
'description' => esc_html__('Enter a width for Side Area (in percentages, enter more than 20)','goodwish'),
'args' => array(
'col_width' => 3,
'suffix' => '%'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_width_container,
'type' => 'color',
'name' => 'side_area_content_overlay_color',
'default_value' => '',
'label' => esc_html__('Content Overlay Background Color','goodwish'),
'description' => esc_html__('Choose a background color for a content overlay','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_width_container,
'type' => 'text',
'name' => 'side_area_content_overlay_opacity',
'default_value' => '',
'label' => esc_html__('Content Overlay Background Transparency','goodwish'),
'description' => esc_html__('Choose a transparency for the content overlay background color (0 = fully transparent, 1 = opaque)','goodwish'),
'args' => array(
'col_width' => 3
)
)
);
$side_area_slide_with_content_container = goodwish_edge_add_admin_container(
array(
'parent' => $side_area_panel,
'name' => 'side_area_slide_with_content_container',
'hidden_property' => 'side_area_type',
'hidden_value' => '',
'hidden_values' => array(
'side-menu-slide-from-right',
'side-area-uncovered-from-content'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_slide_with_content_container,
'type' => 'select',
'name' => 'side_area_slide_with_content_width',
'default_value' => 'width-470',
'label' => esc_html__('Side Area Width','goodwish'),
'description' => esc_html__('Choose width for Side Area','goodwish'),
'options' => array(
'width-270' => '270px',
'width-370' => '370px',
'width-470' => '470px'
)
)
);
//init icon pack hide and show array. It will be populated dinamically from collections array
$side_area_icon_pack_hide_array = array();
$side_area_icon_pack_show_array = array();
//do we have some collection added in collections array?
if (is_array(goodwish_edge_icon_collections()->iconCollections) && count(goodwish_edge_icon_collections()->iconCollections)) {
//get collections params array. It will contain values of 'param' property for each collection
$side_area_icon_collections_params = goodwish_edge_icon_collections()->getIconCollectionsParams();
//foreach collection generate hide and show array
foreach (goodwish_edge_icon_collections()->iconCollections as $dep_collection_key => $dep_collection_object) {
$side_area_icon_pack_hide_array[$dep_collection_key] = '';
//we need to include only current collection in show string as it is the only one that needs to show
$side_area_icon_pack_show_array[$dep_collection_key] = '#edgtf_side_area_icon_' . $dep_collection_object->param . '_container';
//for all collections param generate hide string
foreach ($side_area_icon_collections_params as $side_area_icon_collections_param) {
//we don't need to include current one, because it needs to be shown, not hidden
if ($side_area_icon_collections_param !== $dep_collection_object->param) {
$side_area_icon_pack_hide_array[$dep_collection_key] .= '#edgtf_side_area_icon_' . $side_area_icon_collections_param . '_container,';
}
}
//remove remaining ',' character
$side_area_icon_pack_hide_array[$dep_collection_key] = rtrim($side_area_icon_pack_hide_array[$dep_collection_key], ',');
}
}
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'select',
'name' => 'side_area_button_icon_pack',
'default_value' => 'font_awesome',
'label' => esc_html__('Side Area Button Icon Pack','goodwish'),
'description' => esc_html__('Choose icon pack for side area button','goodwish'),
'options' => goodwish_edge_icon_collections()->getIconCollections(),
'args' => array(
'dependence' => true,
'hide' => $side_area_icon_pack_hide_array,
'show' => $side_area_icon_pack_show_array
)
)
);
if (is_array(goodwish_edge_icon_collections()->iconCollections) && count(goodwish_edge_icon_collections()->iconCollections)) {
//foreach icon collection we need to generate separate container that will have dependency set
//it will have one field inside with icons dropdown
foreach (goodwish_edge_icon_collections()->iconCollections as $collection_key => $collection_object) {
$icons_array = $collection_object->getIconsArray();
//get icon collection keys (keys from collections array, e.g 'font_awesome', 'font_elegant' etc.)
$icon_collections_keys = goodwish_edge_icon_collections()->getIconCollectionsKeys();
//unset current one, because it doesn't have to be included in dependency that hides icon container
unset($icon_collections_keys[array_search($collection_key, $icon_collections_keys)]);
$side_area_icon_hide_values = $icon_collections_keys;
$side_area_icon_container = goodwish_edge_add_admin_container(
array(
'parent' => $side_area_panel,
'name' => 'side_area_icon_' . $collection_object->param . '_container',
'hidden_property' => 'side_area_button_icon_pack',
'hidden_value' => '',
'hidden_values' => $side_area_icon_hide_values
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_icon_container,
'type' => 'select',
'name' => 'side_area_icon_' . $collection_object->param,
'default_value' => 'fa-bars',
'label' => esc_html__('Side Area Icon','goodwish'),
'description' => esc_html__('Choose Side Area Icon','goodwish'),
'options' => $icons_array,
)
);
}
}
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'text',
'name' => 'side_area_icon_font_size',
'default_value' => '',
'label' => esc_html__('Side Area Icon Size','goodwish'),
'description' => esc_html__('Choose a size for Side Area (px)','goodwish'),
'args' => array(
'col_width' => 3,
'suffix' => 'px'
),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'select',
'name' => 'side_area_predefined_icon_size',
'default_value' => 'normal',
'label' => esc_html__('Predefined Side Area Icon Size','goodwish'),
'description' => esc_html__('Choose predefined size for Side Area icons','goodwish'),
'options' => array(
'normal' => esc_html__('Normal','goodwish'),
'medium' => esc_html__('Medium','goodwish'),
'large' => esc_html__('Large','goodwish'),
),
)
);
$side_area_icon_style_group = goodwish_edge_add_admin_group(
array(
'parent' => $side_area_panel,
'name' => 'side_area_icon_style_group',
'title' => esc_html__('Side Area Icon Style','goodwish'),
'description' => esc_html__('Define styles for Side Area icon','goodwish'),
)
);
$side_area_icon_style_row1 = goodwish_edge_add_admin_row(
array(
'parent' => $side_area_icon_style_group,
'name' => 'side_area_icon_style_row1'
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_icon_style_row1,
'type' => 'colorsimple',
'name' => 'side_area_icon_color',
'default_value' => '',
'label' => esc_html__('Color','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_icon_style_row1,
'type' => 'colorsimple',
'name' => 'side_area_icon_hover_color',
'default_value' => '',
'label' => esc_html__('Hover Color','goodwish'),
)
);
$side_area_icon_style_row2 = goodwish_edge_add_admin_row(
array(
'parent' => $side_area_icon_style_group,
'name' => 'side_area_icon_style_row2',
'next' => true
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_icon_style_row2,
'type' => 'colorsimple',
'name' => 'side_area_light_icon_color',
'default_value' => '',
'label' => esc_html__('Light Menu Icon Color','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_icon_style_row2,
'type' => 'colorsimple',
'name' => 'side_area_light_icon_hover_color',
'default_value' => '',
'label' => esc_html__('Light Menu Icon Hover Color','goodwish'),
)
);
$side_area_icon_style_row3 = goodwish_edge_add_admin_row(
array(
'parent' => $side_area_icon_style_group,
'name' => 'side_area_icon_style_row3',
'next' => true
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_icon_style_row3,
'type' => 'colorsimple',
'name' => 'side_area_dark_icon_color',
'default_value' => '',
'label' => esc_html__('Dark Menu Icon Color','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_icon_style_row3,
'type' => 'colorsimple',
'name' => 'side_area_dark_icon_hover_color',
'default_value' => '',
'label' => esc_html__('Dark Menu Icon Hover Color','goodwish'),
)
);
$icon_spacing_group = goodwish_edge_add_admin_group(
array(
'parent' => $side_area_panel,
'name' => 'icon_spacing_group',
'title' => esc_html__('Side Area Icon Spacing','goodwish'),
'description' => esc_html__('Define padding and margin for side area icon','goodwish'),
)
);
$icon_spacing_row = goodwish_edge_add_admin_row(
array(
'parent' => $icon_spacing_group,
'name' => 'icon_spancing_row',
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $icon_spacing_row,
'type' => 'textsimple',
'name' => 'side_area_icon_padding_left',
'default_value' => '',
'label' => esc_html__('Padding Left','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $icon_spacing_row,
'type' => 'textsimple',
'name' => 'side_area_icon_padding_right',
'default_value' => '',
'label' => esc_html__('Padding Right','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $icon_spacing_row,
'type' => 'textsimple',
'name' => 'side_area_icon_margin_left',
'default_value' => '',
'label' => esc_html__('Margin Left','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $icon_spacing_row,
'type' => 'textsimple',
'name' => 'side_area_icon_margin_right',
'default_value' => '',
'label' => esc_html__('Margin Right','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'yesno',
'name' => 'side_area_icon_border_yesno',
'default_value' => 'no',
'label' => esc_html__('Icon Border','goodwish'),
'descritption' => esc_html__('Enable border around icon','goodwish'),
'args' => array(
'dependence' => true,
'dependence_hide_on_yes' => '',
'dependence_show_on_yes' => '#edgtf_side_area_icon_border_container'
)
)
);
$side_area_icon_border_container = goodwish_edge_add_admin_container(
array(
'parent' => $side_area_panel,
'name' => 'side_area_icon_border_container',
'hidden_property' => 'side_area_icon_border_yesno',
'hidden_value' => 'no'
)
);
$border_style_group = goodwish_edge_add_admin_group(
array(
'parent' => $side_area_icon_border_container,
'name' => 'border_style_group',
'title' => esc_html__('Border Style','goodwish'),
'description' => esc_html__('Define styling for border around icon','goodwish'),
)
);
$border_style_row_1 = goodwish_edge_add_admin_row(
array(
'parent' => $border_style_group,
'name' => 'border_style_row_1',
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $border_style_row_1,
'type' => 'colorsimple',
'name' => 'side_area_icon_border_color',
'default_value' => '',
'label' => esc_html__('Color','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $border_style_row_1,
'type' => 'colorsimple',
'name' => 'side_area_icon_border_hover_color',
'default_value' => '',
'label' => esc_html__('Hover Color','goodwish'),
)
);
$border_style_row_2 = goodwish_edge_add_admin_row(
array(
'parent' => $border_style_group,
'name' => 'border_style_row_2',
'next' => true
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $border_style_row_2,
'type' => 'textsimple',
'name' => 'side_area_icon_border_width',
'default_value' => '',
'label' => esc_html__('Width','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $border_style_row_2,
'type' => 'textsimple',
'name' => 'side_area_icon_border_radius',
'default_value' => '',
'label' => esc_html__('Radius','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $border_style_row_2,
'type' => 'selectsimple',
'name' => 'side_area_icon_border_style',
'default_value' => '',
'label' => esc_html__('Style','goodwish'),
'options' => array(
'solid' => esc_html__('Solid','goodwish'),
'dashed' => esc_html__('Dashed','goodwish'),
'dotted' => esc_html__('Dotted','goodwish'),
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'selectblank',
'name' => 'side_area_aligment',
'default_value' => '',
'label' => esc_html__('Text Aligment','goodwish'),
'description' => esc_html__('Choose text aligment for side area','goodwish'),
'options' => array(
'center' => esc_html__('Center','goodwish'),
'left' => esc_html__('Left','goodwish'),
'right' => esc_html__('Right','goodwish'),
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'text',
'name' => 'side_area_title',
'default_value' => '',
'label' => esc_html__('Side Area Title','goodwish'),
'description' => esc_html__('Enter a title to appear in Side Area','goodwish'),
'args' => array(
'col_width' => 3,
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'color',
'name' => 'side_area_background_color',
'default_value' => '',
'label' => esc_html__('Background Color','goodwish'),
'description' => esc_html__('Choose a background color for Side Area','goodwish'),
)
);
$padding_group = goodwish_edge_add_admin_group(
array(
'parent' => $side_area_panel,
'name' => 'padding_group',
'title' => esc_html__('Padding','goodwish'),
'description' => esc_html__('Define padding for Side Area','goodwish'),
)
);
$padding_row = goodwish_edge_add_admin_row(
array(
'parent' => $padding_group,
'name' => 'padding_row',
'next' => true
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $padding_row,
'type' => 'textsimple',
'name' => 'side_area_padding_top',
'default_value' => '',
'label' => esc_html__('Top Padding','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $padding_row,
'type' => 'textsimple',
'name' => 'side_area_padding_right',
'default_value' => '',
'label' => esc_html__('Right Padding','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $padding_row,
'type' => 'textsimple',
'name' => 'side_area_padding_bottom',
'default_value' => '',
'label' => esc_html__('Bottom Padding','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $padding_row,
'type' => 'textsimple',
'name' => 'side_area_padding_left',
'default_value' => '',
'label' => esc_html__('Left Padding','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'select',
'name' => 'side_area_close_icon',
'default_value' => 'light',
'label' => esc_html__('Close Icon Style','goodwish'),
'description' => esc_html__('Choose a type of close icon','goodwish'),
'options' => array(
'light' => esc_html__('Light','goodwish'),
'dark' => esc_html__('Dark','goodwish'),
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'text',
'name' => 'side_area_close_icon_size',
'default_value' => '',
'label' => esc_html__('Close Icon Size','goodwish'),
'description' => esc_html__('Define close icon size','goodwish'),
'args' => array(
'col_width' => 3,
'suffix' => 'px'
)
)
);
$title_group = goodwish_edge_add_admin_group(
array(
'parent' => $side_area_panel,
'name' => 'title_group',
'title' => esc_html__('Title','goodwish'),
'description' => esc_html__('Define Style for Side Area title','goodwish'),
)
);
$title_row_1 = goodwish_edge_add_admin_row(
array(
'parent' => $title_group,
'name' => 'title_row_1',
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $title_row_1,
'type' => 'colorsimple',
'name' => 'side_area_title_color',
'default_value' => '',
'label' => esc_html__('Text Color','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $title_row_1,
'type' => 'textsimple',
'name' => 'side_area_title_fontsize',
'default_value' => '',
'label' => esc_html__('Font Size','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $title_row_1,
'type' => 'textsimple',
'name' => 'side_area_title_lineheight',
'default_value' => '',
'label' => esc_html__('Line Height','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $title_row_1,
'type' => 'selectblanksimple',
'name' => 'side_area_title_texttransform',
'default_value' => '',
'label' => esc_html__('Text Transform','goodwish'),
'options' => goodwish_edge_get_text_transform_array()
)
);
$title_row_2 = goodwish_edge_add_admin_row(
array(
'parent' => $title_group,
'name' => 'title_row_2',
'next' => true
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $title_row_2,
'type' => 'fontsimple',
'name' => 'side_area_title_google_fonts',
'default_value' => '-1',
'label' => esc_html__('Font Family','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $title_row_2,
'type' => 'selectblanksimple',
'name' => 'side_area_title_fontstyle',
'default_value' => '',
'label' => esc_html__('Font Style','goodwish'),
'options' => goodwish_edge_get_font_style_array()
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $title_row_2,
'type' => 'selectblanksimple',
'name' => 'side_area_title_fontweight',
'default_value' => '',
'label' => esc_html__('Font Weight','goodwish'),
'options' => goodwish_edge_get_font_weight_array()
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $title_row_2,
'type' => 'textsimple',
'name' => 'side_area_title_letterspacing',
'default_value' => '',
'label' => esc_html__('Letter Spacing','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
$text_group = goodwish_edge_add_admin_group(
array(
'parent' => $side_area_panel,
'name' => 'text_group',
'title' => esc_html__('Text','goodwish'),
'description' => esc_html__('Define Style for Side Area text','goodwish')
)
);
$text_row_1 = goodwish_edge_add_admin_row(
array(
'parent' => $text_group,
'name' => 'text_row_1',
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $text_row_1,
'type' => 'colorsimple',
'name' => 'side_area_text_color',
'default_value' => '',
'label' => esc_html__('Text Color','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $text_row_1,
'type' => 'textsimple',
'name' => 'side_area_text_fontsize',
'default_value' => '',
'label' => esc_html__('Font Size','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $text_row_1,
'type' => 'textsimple',
'name' => 'side_area_text_lineheight',
'default_value' => '',
'label' => esc_html__('Line Height','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $text_row_1,
'type' => 'selectblanksimple',
'name' => 'side_area_text_texttransform',
'default_value' => '',
'label' => esc_html__('Text Transform','goodwish'),
'options' => goodwish_edge_get_text_transform_array()
)
);
$text_row_2 = goodwish_edge_add_admin_row(
array(
'parent' => $text_group,
'name' => 'text_row_2',
'next' => true
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $text_row_2,
'type' => 'fontsimple',
'name' => 'side_area_text_google_fonts',
'default_value' => '-1',
'label' => esc_html__('Font Family','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $text_row_2,
'type' => 'fontsimple',
'name' => 'side_area_text_google_fonts',
'default_value' => '-1',
'label' => esc_html__('Font Family','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $text_row_2,
'type' => 'selectblanksimple',
'name' => 'side_area_text_fontstyle',
'default_value' => '',
'label' => esc_html__('Font Style','goodwish'),
'options' => goodwish_edge_get_font_style_array()
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $text_row_2,
'type' => 'selectblanksimple',
'name' => 'side_area_text_fontweight',
'default_value' => '',
'label' => esc_html__('Font Weight','goodwish'),
'options' => goodwish_edge_get_font_weight_array()
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $text_row_2,
'type' => 'textsimple',
'name' => 'side_area_text_letterspacing',
'default_value' => '',
'label' => esc_html__('Letter Spacing','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
$widget_links_group = goodwish_edge_add_admin_group(
array(
'parent' => $side_area_panel,
'name' => 'widget_links_group',
'title' => esc_html__('Link Style','goodwish'),
'description' => esc_html__('Define styles for Side Area widget links','goodwish'),
)
);
$widget_links_row_1 = goodwish_edge_add_admin_row(
array(
'parent' => $widget_links_group,
'name' => 'widget_links_row_1',
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $widget_links_row_1,
'type' => 'colorsimple',
'name' => 'sidearea_link_color',
'default_value' => '',
'label' => esc_html__('Text Color','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $widget_links_row_1,
'type' => 'textsimple',
'name' => 'sidearea_link_font_size',
'default_value' => '',
'label' => esc_html__('Font Size','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $widget_links_row_1,
'type' => 'textsimple',
'name' => 'sidearea_link_line_height',
'default_value' => '',
'label' => esc_html__('Line Height','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $widget_links_row_1,
'type' => 'selectblanksimple',
'name' => 'sidearea_link_text_transform',
'default_value' => '',
'label' => esc_html__('Text Transform','goodwish'),
'options' => goodwish_edge_get_text_transform_array()
)
);
$widget_links_row_2 = goodwish_edge_add_admin_row(
array(
'parent' => $widget_links_group,
'name' => 'widget_links_row_2',
'next' => true
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $widget_links_row_2,
'type' => 'fontsimple',
'name' => 'sidearea_link_font_family',
'default_value' => '-1',
'label' => esc_html__('Font Family','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $widget_links_row_2,
'type' => 'selectblanksimple',
'name' => 'sidearea_link_font_style',
'default_value' => '',
'label' => esc_html__('Font Style','goodwish'),
'options' => goodwish_edge_get_font_style_array()
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $widget_links_row_2,
'type' => 'selectblanksimple',
'name' => 'sidearea_link_font_weight',
'default_value' => '',
'label' => esc_html__('Font Weight','goodwish'),
'options' => goodwish_edge_get_font_weight_array()
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $widget_links_row_2,
'type' => 'textsimple',
'name' => 'sidearea_link_letter_spacing',
'default_value' => '',
'label' => esc_html__('Letter Spacing','goodwish'),
'args' => array(
'suffix' => 'px'
)
)
);
$widget_links_row_3 = goodwish_edge_add_admin_row(
array(
'parent' => $widget_links_group,
'name' => 'widget_links_row_3',
'next' => true
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $widget_links_row_3,
'type' => 'colorsimple',
'name' => 'sidearea_link_hover_color',
'default_value' => '',
'label' => esc_html__('Hover Color','goodwish'),
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_panel,
'type' => 'yesno',
'name' => 'side_area_enable_bottom_border',
'default_value' => 'no',
'label' => esc_html__('Border Bottom on Elements','goodwish'),
'description' => esc_html__('Enable border bottom on elements in side area','goodwish'),
'args' => array(
'dependence' => true,
'dependence_hide_on_yes' => '',
'dependence_show_on_yes' => '#edgtf_side_area_bottom_border_container'
)
)
);
$side_area_bottom_border_container = goodwish_edge_add_admin_container(
array(
'parent' => $side_area_panel,
'name' => 'side_area_bottom_border_container',
'hidden_property' => 'side_area_enable_bottom_border',
'hidden_value' => 'no'
)
);
goodwish_edge_add_admin_field(
array(
'parent' => $side_area_bottom_border_container,
'type' => 'color',
'name' => 'side_area_bottom_border_color',
'default_value' => '',
'label' => esc_html__('Border Bottom Color','goodwish'),
'description' => esc_html__('Choose color for border bottom on elements in sidearea','goodwish'),
)
);
}
add_action('goodwish_edge_options_map', 'goodwish_edge_sidearea_options_map', 14);
}