Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
hiroshi-core
/
inc
/
sidebar
/
dashboard
/
meta-box
/
File Content:
sidebar-meta-box.php
<?php if ( ! function_exists( 'hiroshi_core_add_page_sidebar_meta_box' ) ) { /** * Function that add general meta box options for this module * * @param object $page */ function hiroshi_core_add_page_sidebar_meta_box( $page ) { if ( $page ) { $sidebar_tab = $page->add_tab_element( array( 'name' => 'tab-sidebar', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Sidebar Settings', 'hiroshi-core' ), 'description' => esc_html__( 'Sidebar layout settings', 'hiroshi-core' ), ) ); $sidebar_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_page_sidebar_layout', 'title' => esc_html__( 'Sidebar Layout', 'hiroshi-core' ), 'description' => esc_html__( 'Choose a sidebar layout', 'hiroshi-core' ), 'options' => hiroshi_core_get_select_type_options_pool( 'sidebar_layouts' ), ) ); $custom_sidebars = hiroshi_core_get_custom_sidebars(); if ( ! empty( $custom_sidebars ) && count( $custom_sidebars ) > 1 ) { $sidebar_tab->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', 'hiroshi-core' ), 'options' => $custom_sidebars, ) ); } $sidebar_tab->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' ), ) ); // Hook to include additional options after module options do_action( 'hiroshi_core_action_after_page_sidebar_meta_box_map', $sidebar_tab ); } } add_action( 'hiroshi_core_action_after_general_meta_box_map', 'hiroshi_core_add_page_sidebar_meta_box' ); } if ( ! function_exists( 'hiroshi_core_add_general_page_sidebar_meta_box_callback' ) ) { /** * Function that set current meta box callback as general callback functions * * @param array $callbacks * * @return array */ function hiroshi_core_add_general_page_sidebar_meta_box_callback( $callbacks ) { $callbacks['page-sidebar'] = 'hiroshi_core_add_page_sidebar_meta_box'; return $callbacks; } add_filter( 'hiroshi_core_filter_general_meta_box_callbacks', 'hiroshi_core_add_general_page_sidebar_meta_box_callback' ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
sidebar-meta-box.php
2625 bytes
0644
N4ST4R_ID | Naxtarrr