Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
plugins
/
halstein-core
/
inc
/
elements
/
dashboard
/
admin
/
File Content:
elements-options.php
<?php if ( ! function_exists( 'halstein_core_add_elements_options' ) ) { /** * Function that add general options for this module */ function halstein_core_add_elements_options() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => HALSTEIN_CORE_OPTIONS_NAME, 'type' => 'admin', 'slug' => 'elements', 'icon' => 'fa fa-book', 'title' => esc_html__( 'Elements', 'halstein-core' ), 'description' => esc_html__( 'Global Elements Options', 'halstein-core' ), ) ); if ( $page ) { $label_section = $page->add_section_element( array( 'name' => 'qodef_elements_label_section', 'title' => esc_html__( 'Label Styles', 'halstein-core' ), ) ); $label_row = $label_section->add_row_element( array( 'name' => 'qodef_elements_label_row', ) ); $label_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_label_color', 'title' => esc_html__( 'Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $label_row->add_field_element( array( 'field_type' => 'font', 'name' => 'qodef_elements_label_font_family', 'title' => esc_html__( 'Font Family', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $label_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_label_font_size', 'title' => esc_html__( 'Font Size', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $label_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_label_line_height', 'title' => esc_html__( 'Line Height', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $label_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_label_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $label_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_label_font_weight', 'title' => esc_html__( 'Font Weight', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_weight' ), 'args' => array( 'col_width' => 3, ), ) ); $label_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_label_text_transform', 'title' => esc_html__( 'Text Transform', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_transform' ), 'args' => array( 'col_width' => 3, ), ) ); $label_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_label_font_style', 'title' => esc_html__( 'Font Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_style' ), 'args' => array( 'col_width' => 3, ), ) ); $label_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_label_margin_top', 'title' => esc_html__( 'Margin Top', 'halstein-core' ), 'args' => array( 'col_width' => 3, 'suffix' => 'px', ), ) ); $label_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_label_margin_bottom', 'title' => esc_html__( 'Margin Bottom', 'halstein-core' ), 'args' => array( 'col_width' => 3, 'suffix' => 'px', ), ) ); $input_fields_section = $page->add_section_element( array( 'name' => 'qodef_elements_input_fields_section', 'title' => esc_html__( 'Input Fields Styles', 'halstein-core' ), ) ); $input_fields_row = $input_fields_section->add_row_element( array( 'name' => 'qodef_elements_input_fields_row', ) ); $input_fields_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_input_fields_color', 'title' => esc_html__( 'Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_input_fields_focus_color', 'title' => esc_html__( 'Focus Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_input_fields_background_color', 'title' => esc_html__( 'Background Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_input_fields_background_focus_color', 'title' => esc_html__( 'Background Focus Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_input_fields_border_color', 'title' => esc_html__( 'Border Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_input_fields_border_focus_color', 'title' => esc_html__( 'Border Focus Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_input_fields_border_width', 'title' => esc_html__( 'Border Width', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_input_fields_border_radius', 'title' => esc_html__( 'Border Radius', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_input_fields_border_style', 'title' => esc_html__( 'Border Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'border_style' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'font', 'name' => 'qodef_elements_input_fields_font_family', 'title' => esc_html__( 'Font Family', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_input_fields_font_size', 'title' => esc_html__( 'Font Size', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_input_fields_line_height', 'title' => esc_html__( 'Line Height', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_input_fields_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_input_fields_font_weight', 'title' => esc_html__( 'Font Weight', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_weight' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_input_fields_text_transform', 'title' => esc_html__( 'Text Transform', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_transform' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_input_fields_font_style', 'title' => esc_html__( 'Font Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_style' ), 'args' => array( 'col_width' => 3, ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_input_fields_margin_bottom', 'title' => esc_html__( 'Margin Bottom', 'halstein-core' ), 'args' => array( 'col_width' => 3, 'suffix' => 'px', ), ) ); $input_fields_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_input_fields_padding', 'title' => esc_html__( 'Padding', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_section = $page->add_section_element( array( 'name' => 'qodef_elements_button_section', 'title' => esc_html__( 'Button Styles', 'halstein-core' ), ) ); $button_row = $button_section->add_row_element( array( 'name' => 'qodef_elements_button_row', ) ); $button_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_buttons_color', 'title' => esc_html__( 'Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_buttons_hover_color', 'title' => esc_html__( 'Hover Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_buttons_background_color', 'title' => esc_html__( 'Background Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_buttons_background_hover_color', 'title' => esc_html__( 'Background Hover Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_buttons_border_color', 'title' => esc_html__( 'Border Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_buttons_border_hover_color', 'title' => esc_html__( 'Border Hover Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_border_width', 'title' => esc_html__( 'Border Width', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_border_radius', 'title' => esc_html__( 'Border Radius', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_buttons_border_style', 'title' => esc_html__( 'Border Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'border_style' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_box_shadow', 'title' => esc_html__( 'Box Shadow', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'font', 'name' => 'qodef_elements_buttons_font_family', 'title' => esc_html__( 'Font Family', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_font_size', 'title' => esc_html__( 'Font Size', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_line_height', 'title' => esc_html__( 'Line Height', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_buttons_font_weight', 'title' => esc_html__( 'Font Weight', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_weight' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_buttons_text_transform', 'title' => esc_html__( 'Text Transform', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_transform' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_buttons_font_style', 'title' => esc_html__( 'Font Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_style' ), 'args' => array( 'col_width' => 3, ), ) ); $button_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_margin_top', 'title' => esc_html__( 'Margin Top', 'halstein-core' ), 'args' => array( 'col_width' => 3, 'suffix' => 'px', ), ) ); $button_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_padding', 'title' => esc_html__( 'Padding', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_section = $page->add_section_element( array( 'name' => 'qodef_elements_button_simple_section', 'title' => esc_html__( 'Button Textual Styles', 'halstein-core' ), ) ); $button_simple_row = $button_simple_section->add_row_element( array( 'name' => 'qodef_elements_button_simple_row', ) ); $button_simple_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_buttons_simple_color', 'title' => esc_html__( 'Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_buttons_simple_hover_color', 'title' => esc_html__( 'Hover Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'font', 'name' => 'qodef_elements_buttons_simple_font_family', 'title' => esc_html__( 'Font Family', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_simple_font_size', 'title' => esc_html__( 'Font Size', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_simple_line_height', 'title' => esc_html__( 'Line Height', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_simple_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_buttons_simple_font_weight', 'title' => esc_html__( 'Font Weight', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_weight' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_buttons_simple_text_transform', 'title' => esc_html__( 'Text Transform', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_transform' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_buttons_simple_font_style', 'title' => esc_html__( 'Font Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_style' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_buttons_simple_text_decoration', 'title' => esc_html__( 'Text Decoration', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_decoration' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_elements_buttons_simple_hover_text_decoration', 'title' => esc_html__( 'Hover Text Decoration', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_decoration' ), 'args' => array( 'col_width' => 3, ), ) ); $button_simple_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_buttons_simple_margin_top', 'title' => esc_html__( 'Margin Top', 'halstein-core' ), 'args' => array( 'col_width' => 3, 'suffix' => 'px', ), ) ); $slider_arrow_section = $page->add_section_element( array( 'name' => 'qodef_elements_slider_arrow_section', 'title' => esc_html__( 'Slider Arrow Styles', 'halstein-core' ), ) ); $slider_arrow_section->add_field_element( array( 'field_type' => 'textarea', 'name' => 'qodef_elements_slider_arrow_left_icon_svg_path', 'title' => esc_html__( 'Sliders Arrow Left Icon SVG Path', 'halstein-core' ), 'description' => esc_html__( 'Enter your sliders arrow left icon SVG path here. Please remove version and id attributes from your SVG path because of HTML validation', 'halstein-core' ), ) ); $slider_arrow_section->add_field_element( array( 'field_type' => 'textarea', 'name' => 'qodef_elements_slider_arrow_right_icon_svg_path', 'title' => esc_html__( 'Sliders Arrow Right Icon SVG Path', 'halstein-core' ), 'description' => esc_html__( 'Enter your sliders arrow right icon SVG path here. Please remove version and id attributes from your SVG path because of HTML validation', 'halstein-core' ), ) ); $slider_arrow_row = $slider_arrow_section->add_row_element( array( 'name' => 'qodef_elements_slider_arrow_row', 'title' => esc_html__( 'Icon Styles', 'halstein-core' ), ) ); $slider_arrow_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_slider_arrow_color', 'title' => esc_html__( 'Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $slider_arrow_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_slider_arrow_hover_color', 'title' => esc_html__( 'Hover Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $slider_arrow_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_slider_arrow_background_color', 'title' => esc_html__( 'Background Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $slider_arrow_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_elements_slider_arrow_background_hover_color', 'title' => esc_html__( 'Background Hover Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $slider_arrow_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_elements_slider_arrow_size', 'title' => esc_html__( 'Icon Size', 'halstein-core' ), 'args' => array( 'col_width' => 3, 'suffix' => 'px', ), ) ); // Hook to include additional options after module options do_action( 'halstein_core_action_after_elements_options_map', $page ); } } add_action( 'halstein_core_action_default_options_init', 'halstein_core_add_elements_options' ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
elements-options.php
23056 bytes
0644
N4ST4R_ID | Naxtarrr