Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
hiroshi-core
/
inc
/
sidebar
/
dashboard
/
admin
/
File Content:
sidebar-options.php
<?php if ( ! function_exists( 'hiroshi_core_add_page_sidebar_options' ) ) { /** * Function that add general options for this module */ function hiroshi_core_add_page_sidebar_options() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => HIROSHI_CORE_OPTIONS_NAME, 'type' => 'admin', 'slug' => 'sidebar', 'icon' => 'fa fa-book', 'title' => esc_html__( 'Sidebar', 'hiroshi-core' ), 'description' => esc_html__( 'Global Sidebar Options', 'hiroshi-core' ), ) ); if ( $page ) { $page->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_page_sidebar_layout', 'title' => esc_html__( 'Sidebar Layout', 'hiroshi-core' ), 'description' => esc_html__( 'Choose a default sidebar layout for pages', 'hiroshi-core' ), 'options' => hiroshi_core_get_select_type_options_pool( 'sidebar_layouts', false ), 'default_value' => 'no-sidebar', ) ); $custom_sidebars = hiroshi_core_get_custom_sidebars(); if ( ! empty( $custom_sidebars ) && count( $custom_sidebars ) > 1 ) { $page->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_page_custom_sidebar', 'title' => esc_html__( 'Custom Sidebar', 'hiroshi-core' ), 'description' => esc_html__( 'Choose a custom sidebar to display on pages', 'hiroshi-core' ), 'options' => $custom_sidebars, ) ); } $page->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_page_sidebar_grid_gutter', 'title' => esc_html__( 'Set Grid Gutter', 'hiroshi-core' ), 'description' => esc_html__( 'Choose grid gutter size to set space between content and sidebar', 'hiroshi-core' ), 'options' => hiroshi_core_get_select_type_options_pool( 'items_space' ), ) ); $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_page_sidebar_widgets_margin_bottom', 'title' => esc_html__( 'Widgets Margin Bottom', 'hiroshi-core' ), 'description' => esc_html__( 'Set space value between widgets', 'hiroshi-core' ), ) ); // Hook to include additional options after module options do_action( 'hiroshi_core_action_after_page_sidebar_options_map', $page ); } } add_action( 'hiroshi_core_action_default_options_init', 'hiroshi_core_add_page_sidebar_options', hiroshi_core_get_admin_options_map_position( 'sidebar' ) ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
sidebar-options.php
2586 bytes
0644
N4ST4R_ID | Naxtarrr