Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/title/options-map/
?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/title
<?php
if ( ! function_exists('edgtf_quadric_title_options_map') ) {
function edgtf_quadric_title_options_map() {
edgtf_quadric_add_admin_page(
array(
'slug' => '_title_page',
'title' => esc_html__( 'Title', 'quadric' ),
'icon' => 'fa fa-list-alt'
)
);
$panel_title = edgtf_quadric_add_admin_panel(
array(
'page' => '_title_page',
'name' => 'panel_title',
'title' => esc_html__( 'Title Settings', 'quadric' )
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'show_title_area',
'type' => 'yesno',
'default_value' => 'yes',
'label' => esc_html__( 'Show Title Area', 'quadric' ),
'description' => esc_html__( 'This option will enable/disable Title Area', 'quadric' ),
'parent' => $panel_title,
'args' => array(
"dependence" => true,
"dependence_hide_on_yes" => "",
"dependence_show_on_yes" => "#edgtf_show_title_area_container"
)
)
);
$show_title_area_container = edgtf_quadric_add_admin_container(
array(
'parent' => $panel_title,
'name' => 'show_title_area_container',
'hidden_property' => 'show_title_area',
'hidden_value' => 'no'
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_type',
'type' => 'select',
'default_value' => 'standard',
'label' => esc_html__( 'Title Area Type', 'quadric' ),
'description' => esc_html__( 'Choose title type', 'quadric' ),
'parent' => $show_title_area_container,
'options' => array(
'standard' => esc_html__( 'Standard', 'quadric' ),
'breadcrumb' => esc_html__( 'Breadcrumb', 'quadric' )
),
'args' => array(
"dependence" => true,
"hide" => array(
"standard" => "",
"breadcrumb" => "#edgtf_title_area_type_container"
),
"show" => array(
"standard" => "#edgtf_title_area_type_container",
"breadcrumb" => ""
)
)
)
);
$title_area_type_container = edgtf_quadric_add_admin_container(
array(
'parent' => $show_title_area_container,
'name' => 'title_area_type_container',
'hidden_property' => 'title_area_type',
'hidden_value' => '',
'hidden_values' => array('breadcrumb'),
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_enable_breadcrumbs',
'type' => 'yesno',
'default_value' => 'yes',
'label' => esc_html__( 'Enable Breadcrumbs', 'quadric' ),
'description' => esc_html__( 'This option will display Breadcrumbs in Title Area', 'quadric' ),
'parent' => $title_area_type_container,
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_enable_separator',
'type' => 'yesno',
'default_value' => 'yes',
'label' => esc_html__( 'Enable Separator', 'quadric' ),
'description' => esc_html__( 'This option will display Separator in Title Area', 'quadric' ),
'parent' => $title_area_type_container,
'args' => array(
'dependence' => true,
'dependence_hide_on_yes' => '',
'dependence_show_on_yes' => '#edgtf_title_area_separator_container'
)
)
);
$title_area_separator_container = edgtf_quadric_add_admin_container(
array(
'parent' => $title_area_type_container,
'name' => 'title_area_separator_container',
'hidden_property' => 'title_area_enable_separator',
'hidden_value' => 'no'
)
);
edgtf_quadric_add_admin_field(
array(
'type' => 'select',
'name' => 'title_area_separator_size',
'default_value' => 'medium',
'label' => esc_html__( 'Choose separator size', 'quadric' ),
'description' => '',
'parent' => $title_area_separator_container,
'options' => array(
'small' => esc_html__( 'Small', 'quadric' ),
'medium' => esc_html__( 'Medium', 'quadric' ),
'large' => esc_html__( 'Large', 'quadric' ),
'extra-large' => esc_html__( 'Extra Large', 'quadric' )
),
'args' => array(
'col_width' => 3
)
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_animation',
'type' => 'select',
'default_value' => 'no',
'label' => esc_html__( 'Animations', 'quadric' ),
'description' => esc_html__( 'Choose an animation for Title Area', 'quadric' ),
'parent' => $show_title_area_container,
'options' => array(
'no' => esc_html__( 'No Animation', 'quadric' ),
'right-left' => esc_html__( 'Text right to left', 'quadric' ),
'left-right' => esc_html__( 'Text left to right', 'quadric' )
)
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_content_grid',
'type' => 'yesno',
'default_value' => 'yes',
'label' => esc_html__( 'Content in Grid', 'quadric' ),
'description' => esc_html__( 'Content in grid', 'quadric' ),
'parent' => $show_title_area_container,
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_vertial_alignment',
'type' => 'select',
'default_value' => 'header_bottom',
'label' => esc_html__( 'Vertical Alignment', 'quadric' ),
'description' => esc_html__( 'Specify title vertical alignment', 'quadric' ),
'parent' => $show_title_area_container,
'options' => array(
'header_bottom' => esc_html__( 'From Bottom of Header', 'quadric' ),
'window_top' => esc_html__( 'From Window Top', 'quadric' )
)
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_content_alignment',
'type' => 'select',
'default_value' => 'left',
'label' => esc_html__( 'Horizontal Alignment', 'quadric' ),
'description' => esc_html__( 'Specify title content alignment', 'quadric' ),
'parent' => $show_title_area_container,
'options' => array(
'left' => esc_html__( 'Left', 'quadric' ),
'center' => esc_html__( 'Center', 'quadric' ),
'right' => esc_html__( 'Right', 'quadric' )
)
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_text_size',
'type' => 'select',
'default_value' => 'small',
'label' => esc_html__( 'Text Size', 'quadric' ),
'description' => esc_html__( 'Choose a default Title size', 'quadric' ),
'parent' => $show_title_area_container,
'options' => array(
'small' => esc_html__( 'Small', 'quadric' ),
'medium' => esc_html__( 'Medium', 'quadric' ),
'large' => esc_html__( 'Large', 'quadric' )
)
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_background_color',
'type' => 'color',
'label' => esc_html__( 'Background Color', 'quadric' ),
'description' => esc_html__( 'Choose a background color for Title Area', 'quadric' ),
'parent' => $show_title_area_container
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_background_pattern',
'type' => 'image',
'label' => esc_html__( 'Background Pattern', 'quadric' ),
'description' => esc_html__( 'Choose a background pattern for Title Area', 'quadric' ),
'default_value' => EDGE_ASSETS_ROOT.'/img/title-pattern.png',
'parent' => $show_title_area_container
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_background_image',
'type' => 'image',
'label' => esc_html__( 'Background Image', 'quadric' ),
'description' => esc_html__( 'Choose an Image for Title Area', 'quadric' ),
'parent' => $show_title_area_container
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_background_image_responsive',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Background Responsive Image', 'quadric' ),
'description' => esc_html__( 'Enabling this option will make Title background image responsive', 'quadric' ),
'parent' => $show_title_area_container,
'args' => array(
"dependence" => true,
"dependence_hide_on_yes" => "#edgtf_title_area_background_image_responsive_container",
"dependence_show_on_yes" => ""
)
)
);
$title_area_background_image_responsive_container = edgtf_quadric_add_admin_container(
array(
'parent' => $show_title_area_container,
'name' => 'title_area_background_image_responsive_container',
'hidden_property' => 'title_area_background_image_responsive',
'hidden_value' => 'yes'
)
);
edgtf_quadric_add_admin_field(
array(
'name' => 'title_area_background_image_parallax',
'type' => 'select',
'default_value' => 'no',
'label' => esc_html__( 'Background Image in Parallax', 'quadric' ),
'description' => esc_html__( 'Enabling this option will make Title background image parallax', 'quadric' ),
'parent' => $title_area_background_image_responsive_container,
'options' => array(
'no' => esc_html__( 'No', 'quadric' ),
'yes' => esc_html__( 'Yes', 'quadric' ),
'yes_zoom' => esc_html__( 'Yes, with zoom out', 'quadric' )
)
)
);
edgtf_quadric_add_admin_field(array(
'name' => 'title_area_height',
'type' => 'text',
'label' => esc_html__( 'Height', 'quadric' ),
'description' => esc_html__( 'Set a height for Title Area', 'quadric' ),
'parent' => $title_area_background_image_responsive_container,
'args' => array(
'col_width' => 2,
'suffix' => 'px'
)
));
$panel_typography = edgtf_quadric_add_admin_panel(
array(
'page' => '_title_page',
'name' => 'panel_title_typography',
'title' => esc_html__( 'Typography', 'quadric' )
)
);
$group_page_title_styles = edgtf_quadric_add_admin_group(array(
'name' => 'group_page_title_styles',
'title' => esc_html__( 'Title', 'quadric' ),
'description' => esc_html__( 'Define styles for page title', 'quadric' ),
'parent' => $panel_typography
));
$row_page_title_styles_1 = edgtf_quadric_add_admin_row(array(
'name' => 'row_page_title_styles_1',
'parent' => $group_page_title_styles
));
edgtf_quadric_add_admin_field(array(
'type' => 'colorsimple',
'name' => 'page_title_color',
'default_value' => '',
'label' => esc_html__( 'Text Color', 'quadric' ),
'parent' => $row_page_title_styles_1
));
edgtf_quadric_add_admin_field(array(
'type' => 'textsimple',
'name' => 'page_title_fontsize',
'default_value' => '',
'label' => esc_html__( 'Font Size', 'quadric' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_title_styles_1
));
edgtf_quadric_add_admin_field(array(
'type' => 'textsimple',
'name' => 'page_title_lineheight',
'default_value' => '',
'label' => esc_html__( 'Line Height', 'quadric' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_title_styles_1
));
edgtf_quadric_add_admin_field(array(
'type' => 'selectblanksimple',
'name' => 'page_title_texttransform',
'default_value' => '',
'label' => esc_html__( 'Text Transform', 'quadric' ),
'options' => edgtf_quadric_get_text_transform_array(),
'parent' => $row_page_title_styles_1
));
$row_page_title_styles_2 = edgtf_quadric_add_admin_row(array(
'name' => 'row_page_title_styles_2',
'parent' => $group_page_title_styles,
'next' => true
));
edgtf_quadric_add_admin_field(array(
'type' => 'fontsimple',
'name' => 'page_title_google_fonts',
'default_value' => '-1',
'label' => esc_html__( 'Font Family', 'quadric' ),
'parent' => $row_page_title_styles_2
));
edgtf_quadric_add_admin_field(array(
'type' => 'selectblanksimple',
'name' => 'page_title_fontstyle',
'default_value' => '',
'label' => esc_html__( 'Font Style', 'quadric' ),
'options' => edgtf_quadric_get_font_style_array(),
'parent' => $row_page_title_styles_2
));
edgtf_quadric_add_admin_field(array(
'type' => 'selectblanksimple',
'name' => 'page_title_fontweight',
'default_value' => '',
'label' => esc_html__( 'Font Weight', 'quadric' ),
'options' => edgtf_quadric_get_font_weight_array(),
'parent' => $row_page_title_styles_2
));
edgtf_quadric_add_admin_field(array(
'type' => 'textsimple',
'name' => 'page_title_letter_spacing',
'default_value' => '',
'label' => esc_html__( 'Letter Spacing', 'quadric' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_title_styles_2
));
$group_page_subtitle_styles = edgtf_quadric_add_admin_group(array(
'name' => 'group_page_subtitle_styles',
'title' => esc_html__( 'Subtitle', 'quadric' ),
'description' => esc_html__( 'Define styles for page subtitle', 'quadric' ),
'parent' => $panel_typography
));
$row_page_subtitle_styles_1 = edgtf_quadric_add_admin_row(array(
'name' => 'row_page_subtitle_styles_1',
'parent' => $group_page_subtitle_styles
));
edgtf_quadric_add_admin_field(array(
'type' => 'colorsimple',
'name' => 'page_subtitle_color',
'default_value' => '',
'label' => esc_html__( 'Text Color', 'quadric' ),
'parent' => $row_page_subtitle_styles_1
));
edgtf_quadric_add_admin_field(array(
'type' => 'textsimple',
'name' => 'page_subtitle_fontsize',
'default_value' => '',
'label' => esc_html__( 'Font Size', 'quadric' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_subtitle_styles_1
));
edgtf_quadric_add_admin_field(array(
'type' => 'textsimple',
'name' => 'page_subtitle_lineheight',
'default_value' => '',
'label' => esc_html__( 'Line Height', 'quadric' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_subtitle_styles_1
));
edgtf_quadric_add_admin_field(array(
'type' => 'selectblanksimple',
'name' => 'page_subtitle_texttransform',
'default_value' => '',
'label' => esc_html__( 'Text Transform', 'quadric' ),
'options' => edgtf_quadric_get_text_transform_array(),
'parent' => $row_page_subtitle_styles_1
));
$row_page_subtitle_styles_2 = edgtf_quadric_add_admin_row(array(
'name' => 'row_page_subtitle_styles_2',
'parent' => $group_page_subtitle_styles,
'next' => true
));
edgtf_quadric_add_admin_field(array(
'type' => 'fontsimple',
'name' => 'page_subtitle_google_fonts',
'default_value' => '-1',
'label' => esc_html__( 'Font Family', 'quadric' ),
'parent' => $row_page_subtitle_styles_2
));
edgtf_quadric_add_admin_field(array(
'type' => 'selectblanksimple',
'name' => 'page_subtitle_fontstyle',
'default_value' => '',
'label' => esc_html__( 'Font Style', 'quadric' ),
'options' => edgtf_quadric_get_font_style_array(),
'parent' => $row_page_subtitle_styles_2
));
edgtf_quadric_add_admin_field(array(
'type' => 'selectblanksimple',
'name' => 'page_subtitle_fontweight',
'default_value' => '',
'label' => esc_html__( 'Font Weight', 'quadric' ),
'options' => edgtf_quadric_get_font_weight_array(),
'parent' => $row_page_subtitle_styles_2
));
edgtf_quadric_add_admin_field(array(
'type' => 'textsimple',
'name' => 'page_subtitle_letter_spacing',
'default_value' => '',
'label' => esc_html__( 'Letter Spacing', 'quadric' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_subtitle_styles_2
));
$group_page_breadcrumbs_styles = edgtf_quadric_add_admin_group(array(
'name' => 'group_page_breadcrumbs_styles',
'title' => esc_html__( 'Breadcrumbs', 'quadric' ),
'description' => esc_html__( 'Define styles for page breadcrumbs', 'quadric' ),
'parent' => $panel_typography
));
$row_page_breadcrumbs_styles_1 = edgtf_quadric_add_admin_row(array(
'name' => 'row_page_breadcrumbs_styles_1',
'parent' => $group_page_breadcrumbs_styles
));
edgtf_quadric_add_admin_field(array(
'type' => 'colorsimple',
'name' => 'page_breadcrumb_color',
'default_value' => '',
'label' => esc_html__( 'Text Color', 'quadric' ),
'parent' => $row_page_breadcrumbs_styles_1
));
edgtf_quadric_add_admin_field(array(
'type' => 'textsimple',
'name' => 'page_breadcrumb_fontsize',
'default_value' => '',
'label' => esc_html__( 'Font Size', 'quadric' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_breadcrumbs_styles_1
));
edgtf_quadric_add_admin_field(array(
'type' => 'textsimple',
'name' => 'page_breadcrumb_lineheight',
'default_value' => '',
'label' => esc_html__( 'Line Height', 'quadric' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_breadcrumbs_styles_1
));
edgtf_quadric_add_admin_field(array(
'type' => 'selectblanksimple',
'name' => 'page_breadcrumb_texttransform',
'default_value' => '',
'label' => esc_html__( 'Text Transform', 'quadric' ),
'options' => edgtf_quadric_get_text_transform_array(),
'parent' => $row_page_breadcrumbs_styles_1
));
$row_page_breadcrumbs_styles_2 = edgtf_quadric_add_admin_row(array(
'name' => 'row_page_breadcrumbs_styles_2',
'parent' => $group_page_breadcrumbs_styles,
'next' => true
));
edgtf_quadric_add_admin_field(array(
'type' => 'fontsimple',
'name' => 'page_breadcrumb_google_fonts',
'default_value' => '-1',
'label' => esc_html__( 'Font Family', 'quadric' ),
'parent' => $row_page_breadcrumbs_styles_2
));
edgtf_quadric_add_admin_field(array(
'type' => 'selectblanksimple',
'name' => 'page_breadcrumb_fontstyle',
'default_value' => '',
'label' => esc_html__( 'Font Style', 'quadric' ),
'options' => edgtf_quadric_get_font_style_array(),
'parent' => $row_page_breadcrumbs_styles_2
));
edgtf_quadric_add_admin_field(array(
'type' => 'selectblanksimple',
'name' => 'page_breadcrumb_fontweight',
'default_value' => '',
'label' => esc_html__( 'Font Weight', 'quadric' ),
'options' => edgtf_quadric_get_font_weight_array(),
'parent' => $row_page_breadcrumbs_styles_2
));
edgtf_quadric_add_admin_field(array(
'type' => 'textsimple',
'name' => 'page_breadcrumb_letter_spacing',
'default_value' => '',
'label' => esc_html__( 'Letter Spacing', 'quadric' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_breadcrumbs_styles_2
));
$row_page_breadcrumbs_styles_3 = edgtf_quadric_add_admin_row(array(
'name' => 'row_page_breadcrumbs_styles_3',
'parent' => $group_page_breadcrumbs_styles,
'next' => true
));
edgtf_quadric_add_admin_field(array(
'type' => 'colorsimple',
'name' => 'page_breadcrumb_hovercolor',
'default_value' => '',
'label' => esc_html__( 'Hover/Active Color', 'quadric' ),
'parent' => $row_page_breadcrumbs_styles_3
));
}
add_action( 'edgtf_quadric_options_map', 'edgtf_quadric_title_options_map', 6);
}