HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/iskcon/public_html/wp-content/themes/tow-temple/tow-settings/pages/import/fields.php
<?php
 
 function tow_register_import_options_metabox() {

    $args = array(
		'id'           => PREFIX.'_import_options_page',
		'title'        => 'Import Demo Data',
		'menu_title'   => 'Import Demo Data', // Use menu title, & not title to hide main h2.
		'object_types' => array( 'options-page' ),
		'option_key'   => PREFIX.'_import_options',
		'parent_slug'  => PREFIX.'_main_options',
		'tab_group'    => PREFIX.'_main_options',
		'tab_title'    => 'Import Demo Data',
		'icon_url'     => '<i class="bi bi-bounding-box text-warning"></i>',
		'rows_limit'   => 3,
	);

	// 'tab_group' property is supported in > 2.4.0.
	if ( version_compare( CMB2_VERSION, '2.4.0' ) ) {
		$args['display_cb'] = 'import_page';
	}

	$cmb_options = new_cmb2_box( $args );

	


}
add_action( 'cmb2_admin_init', 'tow_register_import_options_metabox' );	

/**
 * A CMB2 options-page display callback override which adds tab navigation among
 * CMB2 options pages which share this same display callback.
 *
 * @param CMB2_Options_Hookup $cmb_options The CMB2_Options_Hookup object.
 */
function import_page( $cmb_options ) {

    global $tabs;
    $tabs = tow_options_page_tabs( $cmb_options );
	
	do_action('my_custom_admin_enqueue_scripts');
	
	include_once(get_template_directory()  . '/tow-settings/template/header-top.php');
	include_once(get_template_directory()  . '/tow-settings/template/header.php');

?>
    <section class="p_4 pb-0 cmb2-options-page option-<?php echo $cmb_options->option_key; ?>">
    <div class="container-xl">
	   <div class="row">
	     <?php
	     	include_once(get_template_directory()  . '/tow-settings/template/left.php');
	        include_once(get_template_directory()  . '/tow-settings/template/right-import.php');
	     ?>
		 
	   </div>
	</div>
   </section>
 
<?php
}