__( 'Tools', 'smart-post-show' ), 'menu_parent' => 'edit.php?post_type=sp_post_carousel', 'menu_type' => 'submenu', // menu, submenu, options, theme, etc. 'menu_slug' => 'pcp_tools', 'theme' => 'light', 'show_all_options' => false, 'show_search' => false, 'show_footer' => false, 'show_bar_menu' => false, 'class' => 'sp-pc-settings pcp_tools', 'framework_title' => __( 'Tools', 'smart-post-show' ), 'show_buttons' => false, // Custom show button option added for hide save button in tools page. ) ); SP_PC::createSection( $prefix, array( 'title' => __( 'Export', 'smart-post-show' ), 'fields' => array( array( 'id' => 'pcp_what_export', 'type' => 'radio', 'class' => 'pcp_what_export', 'title' => __( 'Choose What To Export', 'smart-post-show' ), 'multiple' => false, 'options' => array( 'all_shortcodes' => __( 'All Shows (Shortcodes)', 'smart-post-show' ), 'selected_shortcodes' => __( 'Selected Show(s)', 'smart-post-show' ), ), 'default' => 'all_shortcodes', ), array( 'id' => 'pcp_post', 'class' => 'pcp_post_ids', 'type' => 'select', 'title' => ' ', 'options' => 'sp_post_carousel', 'chosen' => true, 'sortable' => false, 'multiple' => true, 'placeholder' => __( 'Choose show(s)', 'smart-post-show' ), 'query_args' => array( 'posts_per_page' => -1, ), 'dependency' => array( 'pcp_what_export', '==', 'selected_shortcodes', true ), ), array( 'id' => 'export', 'class' => 'pcp_export', 'type' => 'button_set', 'title' => ' ', 'options' => array( '' => __( 'Export', 'smart-post-show' ), ), ), ), ) ); SP_PC::createSection( $prefix, array( 'title' => __( 'Import', 'smart-post-show' ), 'fields' => array( array( 'class' => 'pcp_import', 'type' => 'custom_import', 'title' => __( 'Import JSON File To Upload', 'smart-post-show' ), ), ), ) ); } }