Submit
Path:
~
/
home
/
getwphos
/
public_html
/
almajd14
/
wp-content
/
plugins
/
halstein-core
/
inc
/
footer
/
dashboard
/
admin
/
File Content:
footer-options.php
<?php if ( ! function_exists( 'halstein_core_add_page_footer_options' ) ) { /** * Function that add general options for this module */ function halstein_core_add_page_footer_options() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => HALSTEIN_CORE_OPTIONS_NAME, 'type' => 'admin', 'slug' => 'footer', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Footer', 'halstein-core' ), 'description' => esc_html__( 'Global Footer Options', 'halstein-core' ), ) ); if ( $page ) { $page->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_enable_page_footer', 'title' => esc_html__( 'Enable Page Footer', 'halstein-core' ), 'description' => esc_html__( 'Use this option to enable/disable page footer', 'halstein-core' ), 'default_value' => 'yes', ) ); $page_footer_section = $page->add_section_element( array( 'name' => 'qodef_page_footer_section', 'title' => esc_html__( 'Footer Area', 'halstein-core' ), 'dependency' => array( 'hide' => array( 'qodef_enable_page_footer' => array( 'values' => 'no', 'default_value' => '', ), ), ), ) ); // General Footer Area Options $page_footer_section->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_enable_uncovering_footer', 'title' => esc_html__( 'Enable Uncovering Footer', 'halstein-core' ), 'description' => esc_html__( 'Enabling this option will make Footer gradually appear on scroll', 'halstein-core' ), 'default_value' => 'no', ) ); $page_footer_section->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_footer_area_background_image', 'title' => esc_html__( 'Background Image', 'halstein-core' ), ) ); // Top Footer Area Section $page_footer_section->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_enable_top_footer_area', 'title' => esc_html__( 'Enable Top Footer Area', 'halstein-core' ), 'description' => esc_html__( 'Use this option to enable/disable top footer area', 'halstein-core' ), 'default_value' => 'yes', ) ); $top_footer_area_section = $page_footer_section->add_section_element( array( 'name' => 'qodef_top_footer_area_section', 'title' => esc_html__( 'Top Footer Area', 'halstein-core' ), 'dependency' => array( 'hide' => array( 'qodef_enable_top_footer_area' => array( 'values' => 'no', 'default_value' => '', ), ), ), ) ); $top_footer_area_section->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_set_footer_top_area_in_grid', 'title' => esc_html__( 'Top Footer Area In Grid', 'halstein-core' ), 'description' => esc_html__( 'Enabling this option will set page top footer area to be in grid', 'halstein-core' ), 'default_value' => 'yes', ) ); $top_footer_area_section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_set_footer_top_area_columns', 'title' => esc_html__( 'Top Footer Area Columns', 'halstein-core' ), 'description' => esc_html__( 'Choose number of columns for top footer area', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'columns_number', true, array( '5', '6' ) ), 'default_value' => '4', ) ); $top_footer_area_section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_set_footer_top_area_columns_layout', 'title' => esc_html__( 'Top Footer Area Columns Layout', 'halstein-core' ), 'options' => array( '' => esc_html__( 'Default', 'halstein-core' ), 'custom' => esc_html__( 'Custom', 'halstein-core' ), ), 'default_value' => 'default', 'dependency' => array( 'show' => array( 'qodef_set_footer_top_area_columns' => array( 'values' => '4', 'default_value' => '', ), ), ), ) ); $top_footer_area_section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_set_footer_top_area_grid_gutter', 'title' => esc_html__( 'Top Footer Area Grid Gutter', 'halstein-core' ), 'description' => esc_html__( 'Choose grid gutter size to set space between columns for top footer area', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'items_space' ), ) ); $top_footer_area_section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_set_footer_top_area_content_alignment', 'title' => esc_html__( 'Content Alignment', 'halstein-core' ), 'description' => esc_html__( 'Set widgets content alignment inside top footer area', 'halstein-core' ), 'options' => array( '' => esc_html__( 'Default', 'halstein-core' ), 'left' => esc_html__( 'Left', 'halstein-core' ), 'center' => esc_html__( 'Center', 'halstein-core' ), 'right' => esc_html__( 'Right', 'halstein-core' ), ), ) ); $top_footer_area_styles_section = $top_footer_area_section->add_section_element( array( 'name' => 'qodef_top_footer_area_styles_section', 'title' => esc_html__( 'Top Footer Area Styles', 'halstein-core' ), ) ); $top_footer_area_styles_row = $top_footer_area_styles_section->add_row_element( array( 'name' => 'qodef_top_footer_area_styles_row', 'title' => '', ) ); $top_footer_area_styles_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_top_footer_area_padding_top', 'title' => esc_html__( 'Padding Top', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $top_footer_area_styles_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_top_footer_area_padding_bottom', 'title' => esc_html__( 'Padding Bottom', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $top_footer_area_styles_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_top_footer_area_side_padding', 'title' => esc_html__( 'Side Padding', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $top_footer_area_styles_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_top_footer_area_background_color', 'title' => esc_html__( 'Background Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $top_footer_area_styles_row->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_top_footer_area_background_image', 'title' => esc_html__( 'Background Image', 'halstein-core' ), 'args' => array( 'col_width' => 5, ), ) ); $top_footer_area_styles_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_top_footer_area_top_border_color', 'title' => esc_html__( 'Top Border Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $top_footer_area_styles_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_top_footer_area_top_border_width', 'title' => esc_html__( 'Top Border Width', 'halstein-core' ), 'args' => array( 'col_width' => 3, 'suffix' => esc_html__( 'px', 'halstein-core' ), ), ) ); $top_footer_area_styles_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_top_footer_area_top_border_style', 'title' => esc_html__( 'Top Border Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'border_style' ), 'args' => array( 'col_width' => 3, ), ) ); $top_footer_area_styles_row_2 = $top_footer_area_styles_section->add_row_element( array( 'name' => 'qodef_top_footer_area_styles_row_2', 'title' => '', ) ); $top_footer_area_styles_row_2->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_top_footer_area_widgets_margin_bottom', 'title' => esc_html__( 'Widgets Margin Bottom', 'halstein-core' ), 'description' => esc_html__( 'Set space value between widgets', 'halstein-core' ), 'args' => array( 'col_width' => 4, ), ) ); $top_footer_area_styles_row_2->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_top_footer_area_widgets_title_margin_bottom', 'title' => esc_html__( 'Widgets Title Margin Bottom', 'halstein-core' ), 'description' => esc_html__( 'Set space value between widget title and widget content', 'halstein-core' ), 'args' => array( 'col_width' => 4, ), ) ); $top_footer_area_styles_row_2->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_top_footer_area_widgets_light_skin', 'title' => esc_html__( 'Widgets Light Skin', 'halstein-core' ), 'description' => esc_html__( 'Choose a predefined style for widgets', 'halstein-core' ), 'default_value' => 'no', 'args' => array( 'col_width' => 4, ), ) ); // Bottom Footer Area Section $page_footer_section->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_enable_bottom_footer_area', 'title' => esc_html__( 'Enable Bottom Footer Area', 'halstein-core' ), 'description' => esc_html__( 'Use this option to enable/disable bottom footer area', 'halstein-core' ), 'default_value' => 'yes', ) ); $bottom_footer_area_section = $page_footer_section->add_section_element( array( 'name' => 'qodef_bottom_footer_area_section', 'title' => esc_html__( 'Bottom Footer Area', 'halstein-core' ), 'dependency' => array( 'hide' => array( 'qodef_enable_bottom_footer_area' => array( 'values' => 'no', 'default_value' => '', ), ), ), ) ); $bottom_footer_area_section->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_set_footer_bottom_area_in_grid', 'title' => esc_html__( 'Bottom Footer Area In Grid', 'halstein-core' ), 'description' => esc_html__( 'Enabling this option will set page bottom footer area to be in grid', 'halstein-core' ), 'default_value' => 'yes', ) ); $bottom_footer_area_section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_set_footer_bottom_area_columns', 'title' => esc_html__( 'Bottom Footer Area Columns', 'halstein-core' ), 'description' => esc_html__( 'Choose number of columns for bottom footer area', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'columns_number', true, array( '3', '4', '5', '6' ) ), 'default_value' => '2', ) ); $bottom_footer_area_section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_set_footer_bottom_area_grid_gutter', 'title' => esc_html__( 'Bottom Footer Area Grid Gutter', 'halstein-core' ), 'description' => esc_html__( 'Choose grid gutter size to set space between columns for bottom footer area', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'items_space' ), ) ); $bottom_footer_area_section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_set_footer_bottom_area_content_alignment', 'title' => esc_html__( 'Content Alignment', 'halstein-core' ), 'description' => esc_html__( 'Set widgets content alignment inside bottom footer area', 'halstein-core' ), 'options' => array( '' => esc_html__( 'Default', 'halstein-core' ), 'left' => esc_html__( 'Left', 'halstein-core' ), 'center' => esc_html__( 'Center', 'halstein-core' ), 'right' => esc_html__( 'Right', 'halstein-core' ), 'space-between' => esc_html__( 'Space Between', 'halstein-core' ), ), ) ); $bottom_footer_area_styles_section = $bottom_footer_area_section->add_section_element( array( 'name' => 'qodef_bottom_footer_area_styles_section', 'title' => esc_html__( 'Bottom Footer Area Styles', 'halstein-core' ), ) ); $bottom_footer_area_styles_row = $bottom_footer_area_styles_section->add_row_element( array( 'name' => 'qodef_bottom_footer_area_styles_row', 'title' => '', ) ); $bottom_footer_area_styles_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_bottom_footer_area_padding_top', 'title' => esc_html__( 'Padding Top', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $bottom_footer_area_styles_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_bottom_footer_area_padding_bottom', 'title' => esc_html__( 'Padding Bottom', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $bottom_footer_area_styles_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_bottom_footer_area_side_padding', 'title' => esc_html__( 'Side Padding', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $bottom_footer_area_styles_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_bottom_footer_area_background_color', 'title' => esc_html__( 'Background Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $bottom_footer_area_styles_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_bottom_footer_area_top_border_color', 'title' => esc_html__( 'Top Border Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $bottom_footer_area_styles_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_bottom_footer_area_top_border_width', 'title' => esc_html__( 'Top Border Width', 'halstein-core' ), 'args' => array( 'col_width' => 3, 'suffix' => esc_html__( 'px', 'halstein-core' ), ), ) ); $bottom_footer_area_styles_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_bottom_footer_area_top_border_style', 'title' => esc_html__( 'Top Border Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'border_style' ), 'args' => array( 'col_width' => 3, ), ) ); $bottom_footer_area_styles_row_2 = $bottom_footer_area_styles_section->add_row_element( array( 'name' => 'qodef_bottom_footer_area_styles_row_2', 'title' => '', ) ); $bottom_footer_area_styles_row_2->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_bottom_footer_area_widgets_light_skin', 'title' => esc_html__( 'Widgets Light Skin', 'halstein-core' ), 'description' => esc_html__( 'Choose a predefined style for widgets', 'halstein-core' ), 'default_value' => 'no', 'args' => array( 'col_width' => 4, ), ) ); // Hook to include additional options after module options do_action( 'halstein_core_action_after_page_footer_options_map', $page ); } } add_action( 'halstein_core_action_default_options_init', 'halstein_core_add_page_footer_options', halstein_core_get_admin_options_map_position( 'footer' ) ); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
footer-options.php
16505 bytes
0644
N4ST4R_ID | Naxtarrr