Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/search/options-map/
?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/search
<?php
if ( ! function_exists('edgtf_quadric_search_options_map') ) {
function edgtf_quadric_search_options_map() {
edgtf_quadric_add_admin_page(
array(
'slug' => '_search_page',
'title' => esc_html__( 'Search', 'quadric' ),
'icon' => 'fa fa-search'
)
);
$search_panel = edgtf_quadric_add_admin_panel(
array(
'title' => esc_html__( 'Search', 'quadric' ),
'name' => 'search',
'page' => '_search_page'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_panel,
'type' => 'select',
'name' => 'search_type',
'default_value' => 'fullscreen-search',
'label' => esc_html__( 'Select Search Type', 'quadric' ),
'description' => esc_html__( "Choose a type of Edge search bar (Note: Slide From Header Bottom search type doesn't work with transparent header)", 'quadric' ),
'options' => array(
'fullscreen-search' => esc_html__( 'Fullscreen Search', 'quadric' ),
'search-slides-from-window-top' => esc_html__( 'Slide from Window Top', 'quadric' )
),
'args' => array(
'dependence'=> true,
'hide' => array(
'search-slides-from-header-bottom' => '#edgtf_search_animation_container',
'search-covers-header' => '#edgtf_search_height_container, #edgtf_search_animation_container',
'fullscreen-search' => '#edgtf_search_height_container',
'search-slides-from-window-top' => '#edgtf_search_height_container, #edgtf_search_animation_container'
),
'show' => array(
'search-slides-from-header-bottom' => '#edgtf_search_height_container',
'search-covers-header' => '',
'fullscreen-search' => '#edgtf_search_animation_container',
'search-slides-from-window-top' => ''
)
)
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_panel,
'type' => 'select',
'name' => 'search_icon_pack',
'default_value' => 'font_awesome',
'label' => esc_html__( 'Search Icon Pack', 'quadric' ),
'description' => esc_html__( 'Choose icon pack for search icon', 'quadric' ),
'options' => edgtf_quadric_icon_collections()->getIconCollectionsExclude(array('linea_icons', 'simple_line_icons', 'dripicons'))
)
);
$search_height_container = edgtf_quadric_add_admin_container(
array(
'parent' => $search_panel,
'name' => 'search_height_container',
'hidden_property' => 'search_type',
'hidden_value' => '',
'hidden_values' => array(
'search-covers-header',
'fullscreen-search',
'search-slides-from-window-top'
)
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_height_container,
'type' => 'text',
'name' => 'search_height',
'default_value' => '',
'label' => esc_html__( 'Search bar height', 'quadric' ),
'description' => esc_html__( 'Set search bar height', 'quadric' ),
'args' => array(
'col_width' => 3,
'suffix' => 'px'
)
)
);
$search_animation_container = edgtf_quadric_add_admin_container(
array(
'parent' => $search_panel,
'name' => 'search_animation_container',
'hidden_property' => 'search_type',
'hidden_value' => '',
'hidden_values' => array(
'search-covers-header',
'search-slides-from-header-bottom',
'search-slides-from-window-top'
)
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_panel,
'type' => 'yesno',
'name' => 'search_in_grid',
'default_value' => 'yes',
'label' => esc_html__( 'Search area in grid', 'quadric' ),
'description' => esc_html__( 'Set search area to be in grid', 'quadric' ),
)
);
edgtf_quadric_add_admin_section_title(
array(
'parent' => $search_panel,
'name' => 'initial_header_icon_title',
'title' => esc_html__( 'Initial Search Icon in Header', 'quadric' )
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_panel,
'type' => 'text',
'name' => 'header_search_icon_size',
'default_value' => '',
'label' => esc_html__( 'Icon Size', 'quadric' ),
'description' => esc_html__( 'Set size for icon', 'quadric' ),
'args' => array(
'col_width' => 3,
'suffix' => 'px'
)
)
);
$search_icon_color_group = edgtf_quadric_add_admin_group(
array(
'parent' => $search_panel,
'title' => esc_html__( 'Icon Colors', 'quadric' ),
'description' => esc_html__( 'Define color style for icon', 'quadric' ),
'name' => 'search_icon_color_group'
)
);
$search_icon_color_row = edgtf_quadric_add_admin_row(
array(
'parent' => $search_icon_color_group,
'name' => 'search_icon_color_row'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_color_row,
'type' => 'colorsimple',
'name' => 'header_search_icon_color',
'label' => esc_html__( 'Color', 'quadric' )
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_color_row,
'type' => 'colorsimple',
'name' => 'header_search_icon_hover_color',
'label' => esc_html__( 'Hover Color', 'quadric' )
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_color_row,
'type' => 'colorsimple',
'name' => 'header_light_search_icon_color',
'label' => esc_html__( 'Light Header Icon Color', 'quadric' )
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_color_row,
'type' => 'colorsimple',
'name' => 'header_light_search_icon_hover_color',
'label' => esc_html__( 'Light Header Icon Hover Color', 'quadric' )
)
);
$search_icon_color_row2 = edgtf_quadric_add_admin_row(
array(
'parent' => $search_icon_color_group,
'name' => 'search_icon_color_row2',
'next' => true
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_color_row2,
'type' => 'colorsimple',
'name' => 'header_dark_search_icon_color',
'label' => esc_html__( 'Dark Header Icon Color', 'quadric' )
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_color_row2,
'type' => 'colorsimple',
'name' => 'header_dark_search_icon_hover_color',
'label' => esc_html__( 'Dark Header Icon Hover Color', 'quadric' )
)
);
$search_icon_background_group = edgtf_quadric_add_admin_group(
array(
'parent' => $search_panel,
'title' => esc_html__( 'Icon Background Style', 'quadric' ),
'description' => esc_html__( 'Define background style for icon', 'quadric' ),
'name' => 'search_icon_background_group'
)
);
$search_icon_background_row = edgtf_quadric_add_admin_row(
array(
'parent' => $search_icon_background_group,
'name' => 'search_icon_background_row'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_background_row,
'type' => 'colorsimple',
'name' => 'search_icon_background_color',
'default_value' => '',
'label' => esc_html__( 'Background Color', 'quadric' ),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_background_row,
'type' => 'colorsimple',
'name' => 'search_icon_background_hover_color',
'default_value' => '',
'label' => esc_html__( 'Background Hover Color', 'quadric' ),
)
);
edgtf_quadric_add_admin_section_title(
array(
'parent' => $search_panel,
'name' => 'search_form_title',
'title' => 'Search Bar'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_panel,
'type' => 'color',
'name' => 'search_background_color',
'default_value' => '',
'label' => esc_html__( 'Background Color', 'quadric' ),
'description' => esc_html__( 'Choose a background color for Select search bar', 'quadric' )
)
);
$search_input_text_group = edgtf_quadric_add_admin_group(
array(
'parent' => $search_panel,
'title' => esc_html__( 'Search Input Text', 'quadric' ),
'description' => esc_html__( 'Define style for search text', 'quadric' ),
'name' => 'search_input_text_group'
)
);
$search_input_text_row = edgtf_quadric_add_admin_row(
array(
'parent' => $search_input_text_group,
'name' => 'search_input_text_row'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_input_text_row,
'type' => 'colorsimple',
'name' => 'search_text_color',
'default_value' => '',
'label' => esc_html__( 'Text Color', 'quadric' ),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_input_text_row,
'type' => 'colorsimple',
'name' => 'search_text_disabled_color',
'default_value' => '',
'label' => esc_html__( 'Disabled Text Color', 'quadric' ),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_input_text_row,
'type' => 'textsimple',
'name' => 'search_text_fontsize',
'default_value' => '',
'label' => esc_html__( 'Font Size', 'quadric' ),
'args' => array(
'suffix' => 'px'
)
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_input_text_row,
'type' => 'selectblanksimple',
'name' => 'search_text_texttransform',
'default_value' => '',
'label' => esc_html__( 'Text Transform', 'quadric' ),
'options' => edgtf_quadric_get_text_transform_array()
)
);
$search_input_text_row2 = edgtf_quadric_add_admin_row(
array(
'parent' => $search_input_text_group,
'name' => 'search_input_text_row2'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_input_text_row2,
'type' => 'fontsimple',
'name' => 'search_text_google_fonts',
'default_value' => '-1',
'label' => esc_html__( 'Font Family', 'quadric' ),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_input_text_row2,
'type' => 'selectblanksimple',
'name' => 'search_text_fontstyle',
'default_value' => '',
'label' => esc_html__( 'Font Style', 'quadric' ),
'options' => edgtf_quadric_get_font_style_array(),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_input_text_row2,
'type' => 'selectblanksimple',
'name' => 'search_text_fontweight',
'default_value' => '',
'label' => esc_html__( 'Font Weight', 'quadric' ),
'options' => edgtf_quadric_get_font_weight_array()
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_input_text_row2,
'type' => 'textsimple',
'name' => 'search_text_letterspacing',
'default_value' => '',
'label' => esc_html__( 'Letter Spacing', 'quadric' ),
'args' => array(
'suffix' => 'px'
)
)
);
$search_label_text_group = edgtf_quadric_add_admin_group(
array(
'parent' => $search_panel,
'title' => 'Search Label Text',
'description' => esc_html__( 'Define style for search label text', 'quadric' ),
'name' => 'search_label_text_group'
)
);
$search_label_text_row = edgtf_quadric_add_admin_row(
array(
'parent' => $search_label_text_group,
'name' => 'search_label_text_row'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_label_text_row,
'type' => 'colorsimple',
'name' => 'search_label_text_color',
'default_value' => '',
'label' => esc_html__( 'Text Color', 'quadric' ),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_label_text_row,
'type' => 'textsimple',
'name' => 'search_label_text_fontsize',
'default_value' => '',
'label' => esc_html__( 'Font Size', 'quadric' ),
'args' => array(
'suffix' => 'px'
)
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_label_text_row,
'type' => 'selectblanksimple',
'name' => 'search_label_text_texttransform',
'default_value' => '',
'label' => esc_html__( 'Text Transform', 'quadric' ),
'options' => edgtf_quadric_get_text_transform_array()
)
);
$search_label_text_row2 = edgtf_quadric_add_admin_row(
array(
'parent' => $search_label_text_group,
'name' => 'search_label_text_row2',
'next' => true
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_label_text_row2,
'type' => 'fontsimple',
'name' => 'search_label_text_google_fonts',
'default_value' => '-1',
'label' => esc_html__( 'Font Family', 'quadric' ),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_label_text_row2,
'type' => 'selectblanksimple',
'name' => 'search_label_text_fontstyle',
'default_value' => '',
'label' => esc_html__( 'Font Style', 'quadric' ),
'options' => edgtf_quadric_get_font_style_array()
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_label_text_row2,
'type' => 'selectblanksimple',
'name' => 'search_label_text_fontweight',
'default_value' => '',
'label' => esc_html__( 'Font Weight', 'quadric' ),
'options' => edgtf_quadric_get_font_weight_array()
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_label_text_row2,
'type' => 'textsimple',
'name' => 'search_label_text_letterspacing',
'default_value' => '',
'label' => esc_html__( 'Letter Spacing', 'quadric' ),
'args' => array(
'suffix' => 'px'
)
)
);
$search_icon_group = edgtf_quadric_add_admin_group(
array(
'parent' => $search_panel,
'title' => esc_html__( 'Search Icon', 'quadric' ),
'description' => esc_html__( 'Define style for search icon', 'quadric' ),
'name' => 'search_icon_group'
)
);
$search_icon_row = edgtf_quadric_add_admin_row(
array(
'parent' => $search_icon_group,
'name' => 'search_icon_row'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_row,
'type' => 'colorsimple',
'name' => 'search_icon_color',
'default_value' => '',
'label' => esc_html__( 'Icon Color', 'quadric' ),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_row,
'type' => 'colorsimple',
'name' => 'search_icon_hover_color',
'default_value' => '',
'label' => esc_html__( 'Icon Hover Color', 'quadric' ),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_row,
'type' => 'colorsimple',
'name' => 'search_icon_disabled_color',
'default_value' => '',
'label' => esc_html__( 'Icon Disabled Color', 'quadric' ),
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_icon_row,
'type' => 'textsimple',
'name' => 'search_icon_size',
'default_value' => '',
'label' => esc_html__( 'Icon Size', 'quadric' ),
'args' => array(
'suffix' => 'px'
)
)
);
$search_close_icon_group = edgtf_quadric_add_admin_group(
array(
'parent' => $search_panel,
'title' => esc_html__( 'Search Close', 'quadric' ),
'description' => esc_html__( 'Define style for search close icon', 'quadric' ),
'name' => 'search_close_icon_group'
)
);
$search_close_icon_row = edgtf_quadric_add_admin_row(
array(
'parent' => $search_close_icon_group,
'name' => 'search_icon_row'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_close_icon_row,
'type' => 'colorsimple',
'name' => 'search_close_color',
'label' => esc_html__( 'Icon Color', 'quadric' ),
'default_value' => ''
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_close_icon_row,
'type' => 'colorsimple',
'name' => 'search_close_hover_color',
'label' => esc_html__( 'Icon Hover Color', 'quadric' ),
'default_value' => ''
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_close_icon_row,
'type' => 'textsimple',
'name' => 'search_close_size',
'label' => esc_html__( 'Icon Size', 'quadric' ),
'default_value' => '',
'args' => array(
'suffix' => 'px'
)
)
);
$search_bottom_border_group = edgtf_quadric_add_admin_group(
array(
'parent' => $search_panel,
'title' => esc_html__( 'Search Bottom Border', 'quadric' ),
'description' => esc_html__( 'Define style for Search text input bottom border (for Fullscreen search type)', 'quadric' ),
'name' => 'search_bottom_border_group'
)
);
$search_bottom_border_row = edgtf_quadric_add_admin_row(
array(
'parent' => $search_bottom_border_group,
'name' => 'search_icon_row'
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_bottom_border_row,
'type' => 'colorsimple',
'name' => 'search_border_color',
'label' => esc_html__( 'Border Color', 'quadric' ),
'default_value' => ''
)
);
edgtf_quadric_add_admin_field(
array(
'parent' => $search_bottom_border_row,
'type' => 'colorsimple',
'name' => 'search_border_focus_color',
'label' => esc_html__( 'Border Focus Color', 'quadric' ),
'default_value' => ''
)
);
}
add_action('edgtf_quadric_options_map', 'edgtf_quadric_search_options_map' ,14);
}