This section helps you use "Admin_View" of Tab or Accordion for your Element.
What is this?
Instruction:
'views' => array(
'type' => 'views_sections',
'sections' => '__child name__',
// Define shortcode child
'display' => 'vertical|horizontal'
// Displayed vertical or horizontal
// Default is horizontal
)
Maps Example:
Step 1: Create map for children item set as __child name__ above
'kc_slider' => array(
'name' => 'Slider',
'system_only' => true, // Don't show as an element on list elements
'title' => 'Sliders Settings',
'is_container' => true,
'params' => array(),
)
Step 2: Create map for the main element
'kc_sliders' => array(
'name' => 'Sliders',
'description' => __( 'Sliders Manager', 'KingComposer' ),
'category' => 'Content',
'icon' => 'sl-notebook',
'title' => 'Sliders Settings',
'is_container' => true,
'params' => array(),
'views' => array(
'type' => 'views_sections',
'sections' => 'kc_slider' // this is children item was added above
// kc_slider is shortcode children
// the out put will look like this:
// [kc_sliders][kc_slider]...[/kc_slider][/kc_sliders]
)
)