<?php
/**
 * Include and setup custom metaboxes and fields. (make sure you copy this file to outside the CMB2 directory)
 *
 * Be sure to replace all instances of 'yourprefix_' with your project's prefix.
 * http://nacin.com/2010/05/11/in-wordpress-prefix-everything/
 *
 * @category YourThemeOrPlugin
 * @package  Demo_CMB2
 * @license  http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
 * @link     https://github.com/CMB2/CMB2
 */

/**
 * Get the bootstrap! If using the plugin from wordpress.org, REMOVE THIS!
 */

if ( file_exists( dirname( __FILE__ ) . '/cmb2/init.php' ) ) {
	require_once dirname( __FILE__ ) . '/cmb2/init.php';
} elseif ( file_exists( dirname( __FILE__ ) . '/CMB2/init.php' ) ) {
	require_once dirname( __FILE__ ) . '/CMB2/init.php';
}




add_action( 'cmb2_init', 'codedokan_blog_information' );
function codedokan_blog_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'blog_information',
		'title'         => esc_html__( 'Blog Information', 'codedokan' ),
		'object_types'  => array( 'post' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
		
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Blog Author Image', 'codedokan' ),
		'desc'       => esc_html__( 'Select From Media, Image Size width : 600px Height : 600px or If YOu Want to Not Showing in Homepage Please Delete this Image', 'codedokan' ),
		'id'         => 'author_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Author Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here or If YOu Want to Not Showing in Homepage Please Delete this Text', 'codedokan' ),
		'id'         => 'author_name',
		'type'       => 'text',
		'default' => 'demo.com',
	) );
	
	
	
	
	
	

};




add_action( 'cmb2_init', 'codedokan_slider_image' );
function codedokan_slider_image() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'slider',
		'title'         => esc_html__( 'Slider', 'codedokan' ),
		'object_types'  => array( 'slider' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 1000px Height : 400px', 'codedokan' ),
		'id'         => 'slider_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
	

	

};



add_action( 'cmb2_init', 'codedokan_brands_information' );
function codedokan_brands_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'brands_information',
		'title'         => esc_html__( 'Information', 'codedokan' ),
		'object_types'  => array( 'brands' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Brands Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 600px Height : 300px', 'codedokan' ),
		'id'         => 'brands_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );

	$codedokan->add_field( array(
		'name'       => esc_html__( 'Image Link', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here Image Link with https://', 'codedokan' ),
		'id'         => 'brands_img_link',
		'type'       => 'text',
	) );
	

};


add_action( 'cmb2_init', 'codedokan_testimonial_information' );
function codedokan_testimonial_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'testimonial_information',
		'title'         => esc_html__( 'Testimonial', 'codedokan' ),
		'object_types'  => array( 'testimonial' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
$codedokan->add_field( array(
						'id' => 'testimonial_details',
						'name' => 'Testimonial Details',
						'type' => 'wysiwyg',
						'desc'       => esc_html__( 'Write Here Details', 'codedokan' ),
						'options' => array(
        'textarea_rows' => get_option('default_post_edit_rows', 5), 
    )
						
					) );
					
					$codedokan->add_field( array(
		'name'       => esc_html__( 'Client Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 300px Height : 300px', 'codedokan' ),
		'id'         => 'client_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
					
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Client Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'client_name',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Client Designation', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'client_designation',
		'type'       => 'text',
	) );
	

};


add_action( 'cmb2_init', 'codedokan_aboutus_information' );
function codedokan_aboutus_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'aboutus_information',
		'title'         => esc_html__( 'Information', 'codedokan' ),
		'object_types'  => array( 'aboutus' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'About Us Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 550px Height : 550px', 'codedokan' ),
		'id'         => 'about_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
	

	
	
	

};




add_action( 'cmb2_init', 'codedokan_notice_information' );
function codedokan_notice_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'notice_information',
		'title'         => esc_html__( 'Notice Extra Option', 'codedokan' ),
		'object_types'  => array( 'notice' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
				
	$codedokan->add_field( array(
		'name'       => esc_html__( 'More Text', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'about_more_notice',
		'type'       => 'text',
		'default' => 'Learn More',
	) );
	
	
	

};



add_action( 'cmb2_init', 'codedokan_photo_information' );
function codedokan_photo_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'photo_information',
		'title'         => esc_html__( 'Information', 'codedokan' ),
		'object_types'  => array( 'photo_gallery' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 700px Height : 400px', 'codedokan' ),
		'id'         => 'gallery_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
	

};




add_action( 'cmb2_init', 'codedokan_video_information' );
function codedokan_video_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'Video_information',
		'title'         => esc_html__( 'Information', 'codedokan' ),
		'object_types'  => array( 'video_gallery' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
						'id' => 'youtube_link',
						'name' => 'Youtube Video Code',
						'type' => 'text',
						'desc'       => esc_html__( 'Youtube Links After = Copy This Code and Pest Here, Example : https://www.youtube.com/watch?v= zkdfc4pPIW4 This Code ', 'codedokan' ),
						
					) );
	

};




add_action( 'cmb2_init', 'codedokan_students_information' );
function codedokan_students_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'students_information',
		'title'         => esc_html__( 'Students Information', 'codedokan' ),
		'object_types'  => array( 'students' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Class Roll', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'class_roll',
		'type'       => 'text',
	) );
	
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Registration Number', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'registration_number',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Students Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'student_name',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Students Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 500px Height : 500px', 'codedokan' ),
		'id'         => 'student_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
	
	$codedokan->add_field( array(
						'id' => 'student_details',
						'name' => 'Student Details',
						'type' => 'wysiwyg',
						'desc'       => esc_html__( 'Write Here Details', 'codedokan' ),
						'options' => array(
        'textarea_rows' => get_option('default_post_edit_rows', 5), 
    ) ) );
	
	

};




add_action( 'cmb2_init', 'codedokan_teachers_information' );
function codedokan_teachers_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'teachers_information',
		'title'         => esc_html__( 'Teachers Information', 'codedokan' ),
		'object_types'  => array( 'teachers' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'SL Number', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'sl_number',
		'type'       => 'text',
	) );
	
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'teachers_name',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Designation', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here, Example : Math Teacher', 'codedokan' ),
		'id'         => 'teachers_designation',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 500px Height : 500px', 'codedokan' ),
		'id'         => 'teachers_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
	
	$codedokan->add_field( array(
						'id' => 'teachers_details',
						'name' => 'Details',
						'type' => 'wysiwyg',
						'desc'       => esc_html__( 'Write Here Details', 'codedokan' ),
						'options' => array(
        'textarea_rows' => get_option('default_post_edit_rows', 5), 
    ) ) );
	
		$codedokan->add_field( array(
		'name'       => esc_html__( 'Mobile Number', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'mobile_number',
		'desc'       => esc_html__( 'Write Here or If YOu Want to Not Showing Please Delete this Text', 'codedokan' ),
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Facebook Url', 'codedokan' ),
		'id'         => 'facebook_url',
		'desc'       => esc_html__( 'Write Here or If YOu Want to Not Showing Please Delete this Text', 'codedokan' ),
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Twitter Url', 'codedokan' ),
		'id'         => 'twitter_url',
		'desc'       => esc_html__( 'Write Here or If YOu Want to Not Showing Please Delete this Text', 'codedokan' ),
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Linkedin Url', 'codedokan' ),
		'id'         => 'linkedin_url',
		'desc'       => esc_html__( 'Write Here or If YOu Want to Not Showing Please Delete this Text', 'codedokan' ),
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Web Url', 'codedokan' ),
		'id'         => 'web_url',
		'desc'       => esc_html__( 'Write Here or If YOu Want to Not Showing Please Delete this Text', 'codedokan' ),
		'type'       => 'text',
	) );
	

};




add_action( 'cmb2_init', 'codedokan_information' );
function codedokan_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'information',
		'title'         => esc_html__( 'Information', 'codedokan' ),
		'object_types'  => array( 'information' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'PDF File Upload', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your pdf File', 'codedokan' ),
		'id'         => 'information_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );

};





add_action( 'cmb2_init', 'codedokan_masterpiece_information' );
function codedokan_masterpiece_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'masterpiece_information',
		'title'         => esc_html__( 'Masterpiece Information', 'codedokan' ),
		'object_types'  => array( 'masterpiece' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Class Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'masterpiece_class_name',
		'type'       => 'text',
	) );
	
		
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Students Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'masterpiece_student_name',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Students Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 500px Height : 500px', 'codedokan' ),
		'id'         => 'masterpiec_student_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
	
	$codedokan->add_field( array(
						'id' => 'masterpiec_student_details',
						'name' => 'Student Details',
						'type' => 'wysiwyg',
						'desc'       => esc_html__( 'Write Here Details', 'codedokan' ),
						'options' => array(
        'textarea_rows' => get_option('default_post_edit_rows', 5), 
    ) ) );
	
	

};




add_action( 'cmb2_init', 'codedokan_courses_information' );
function codedokan_courses_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'courses_information',
		'title'         => esc_html__( 'Courses Information', 'codedokan' ),
		'object_types'  => array( 'courses' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Course Price', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here or If YOu Want to Not Showing Please Delete this Text', 'codedokan' ),
		'id'         => 'course_price',
		'type'       => 'text',
	) );
	
		
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Courses More Text', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here or If YOu Want to Not Showing Please Delete this Text', 'codedokan' ),
		'id'         => 'courses_more_text',
		'type'       => 'text',
		'default' => 'Learn More',
	) );
	

};



add_action( 'cmb2_init', 'codedokan_results_information' );
function codedokan_results_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'results_information',
		'title'         => esc_html__( 'Results Information', 'codedokan' ),
		'object_types'  => array( 'results' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Registration', 'codedokan' ),
		'id'         => 'class_registration',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Class Roll', 'codedokan' ),
		'id'         => 'class_roll',
		'type'       => 'text',
	) );
	
	
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Class Name', 'codedokan' ),
		'id'         => 'class_name',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Group Name', 'codedokan' ),
		'id'         => 'group_name',
		'type'       => 'text',
	) );

	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Students Name', 'codedokan' ),
		'id'         => 'results_student_name',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Exam Name', 'codedokan' ),
		'id'         => 'exam_name',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : Annual Examination', 'codedokan' ),
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Results', 'codedokan' ),
		'id'         => 'results',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : PASSED or Fail', 'codedokan' ),
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'GPA or Mark', 'codedokan' ),
		'id'         => 'gpa_mark',
		'type'       => 'text',
	) );
	
	
	$results_field = $codedokan->add_field( array(
    'id'          => 'results_group',
    'type'        => 'group',
    'description' => __( 'Results Information', 'cmb2' ),
    // 'repeatable'  => false, // use false if you want non-repeatable group
    'options'     => array(
        'group_title'       => __( 'Results {#}', 'cmb2' ), // since version 1.1.4, {#} gets replaced by row number
        'add_button'        => __( 'Add Another Info', 'cmb2' ),
        'remove_button'     => __( 'Remove Info', 'cmb2' ),
        'sortable'          => true,
        // 'closed'         => true, // true to have the groups closed by default
        'remove_confirm' => esc_html__( 'Are you sure you want to remove?', 'cmb2' ), // Performs confirmation before removing group.
    ),
	) );


	$codedokan->add_group_field( $results_field, array(
		'name' => 'Subject Code',
		'id'   => 'subject_code',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : 010', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $results_field, array(
		'name' => 'Subject Name',
		'id'   => 'subject_name',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $results_field, array(
		'name' => 'Grade / Mark',
		'id'   => 'grade_mark',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : 80 or A+', 'codedokan' ),
	) );
	
	
	

};



add_action( 'cmb2_init', 'codedokan_calendar_information' );
function codedokan_calendar_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'calendar_information',
		'title'         => esc_html__( 'Calendar Information', 'codedokan' ),
		'object_types'  => array( 'calendar' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Calendar Serial', 'codedokan' ),
		'id'         => 'calendar_serial',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : 01', 'codedokan' ),
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Calendar Particular', 'codedokan' ),
		'id'         => 'calendar_particular',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : Re-Admission', 'codedokan' ),
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Calendar Duration', 'codedokan' ),
		'id'         => 'calendar_duration',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : 01-04 January', 'codedokan' ),
	) );
	
};




add_action( 'cmb2_init', 'codedokan_holiday_information' );
function codedokan_holiday_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'holiday_information',
		'title'         => esc_html__( 'Holiday Information', 'codedokan' ),
		'object_types'  => array( 'holiday' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Holiday Serial', 'codedokan' ),
		'id'         => 'holiday_serial',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : 01', 'codedokan' ),
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Holiday', 'codedokan' ),
		'id'         => 'holiday',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : Victory Day', 'codedokan' ),
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Day Name', 'codedokan' ),
		'id'         => 'holiday_day',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : Monday', 'codedokan' ),
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Date', 'codedokan' ),
		'id'         => 'holiday_date',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : 16/12/2022', 'codedokan' ),
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Number Of Days', 'codedokan' ),
		'id'         => 'number_days',
		'type'       => 'text',
		'desc'       => esc_html__( 'Example : 01', 'codedokan' ),
	) );
	
};



add_action( 'cmb2_init', 'codedokan_routine_information' );
function codedokan_routine_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'routine_information',
		'title'         => esc_html__( 'Routine Information', 'codedokan' ),
		'object_types'  => array( 'routine' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Day', 'codedokan' ),
		'id'         => 'routine_day',
		'type'       => 'text',
		'default' => 'Day',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule One', 'codedokan' ),
		'id'         => 'schedule_one',
		'type'       => 'text',
		'default' => '10.00-10.30',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule Two', 'codedokan' ),
		'id'         => 'schedule_two',
		'type'       => 'text',
		'default' => '10.30-11.00',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule Three', 'codedokan' ),
		'id'         => 'schedule_three',
		'type'       => 'text',
		'default' => '11.00-11.30',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule Four', 'codedokan' ),
		'id'         => 'schedule_four',
		'type'       => 'text',
		'default' => '12.00-12.30',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule Five', 'codedokan' ),
		'id'         => 'schedule_five',
		'type'       => 'text',
		'default' => '12.30-01.00',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule Six', 'codedokan' ),
		'id'         => 'schedule_six',
		'type'       => 'text',
		'default' => '01.00-01.30',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule Seven', 'codedokan' ),
		'id'         => 'schedule_seven',
		'type'       => 'text',
		'default' => '01.30-02.00',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule Eight', 'codedokan' ),
		'id'         => 'schedule_eight',
		'type'       => 'text',
		'default' => '02.00-02.30',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule Nine', 'codedokan' ),
		'id'         => 'schedule_nine',
		'type'       => 'text',
		'default' => '02.30-03.00',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Schedule Ten', 'codedokan' ),
		'id'         => 'schedule_ten',
		'type'       => 'text',
		'default' => '03.00-03.30',
	) );
	
	
	
	
	$routine_field = $codedokan->add_field( array(
    'id'          => 'routine_group',
    'type'        => 'group',
    'description' => __( 'Routine Information', 'cmb2' ),
    // 'repeatable'  => false, // use false if you want non-repeatable group
    'options'     => array(
        'group_title'       => __( 'Routine {#}', 'cmb2' ), // since version 1.1.4, {#} gets replaced by row number
        'add_button'        => __( 'Add Another Info', 'cmb2' ),
        'remove_button'     => __( 'Remove Info', 'cmb2' ),
        'sortable'          => true,
        // 'closed'         => true, // true to have the groups closed by default
        'remove_confirm' => esc_html__( 'Are you sure you want to remove?', 'cmb2' ), // Performs confirmation before removing group.
    ),
	) );


	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Day Name',
		'id'   => 'day_name',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : Saturday', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name One',
		'id'   => 'subject_name_one',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name Two',
		'id'   => 'subject_name_two',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name Three',
		'id'   => 'subject_name_three',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name Four',
		'id'   => 'subject_name_four',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name Five',
		'id'   => 'subject_name_five',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name Six',
		'id'   => 'subject_name_six',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name Seven',
		'id'   => 'subject_name_seven',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name Eight',
		'id'   => 'subject_name_eight',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name Nine',
		'id'   => 'subject_name_nine',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	
	$codedokan->add_group_field( $routine_field, array(
		'name' => 'Subject Name Ten',
		'id'   => 'subject_name_ten',
		'type' => 'text',
		'desc'       => esc_html__( 'Example : English', 'codedokan' ),
	) );
	


};

































add_action( 'cmb2_init', 'codedokan_educational_information' );
function codedokan_educational_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'educational_information',
		'title'         => esc_html__( 'Information', 'codedokan' ),
		'object_types'  => array( 'educational' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Year', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'educational_year',
		'type'       => 'text',
		'default' => '2020-2021',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Institute Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'edu_inst_name',
		'type'       => 'text',
		'default' => 'Dhaka University',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Class Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'class_name',
		'type'       => 'text',
		'default' => 'SSC',
	) );
	

};


add_action( 'cmb2_init', 'codedokan_project_information' );
function codedokan_project_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'project_information',
		'title'         => esc_html__( 'Information', 'codedokan' ),
		'object_types'  => array( 'projectinfo' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Project Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 700px Height : 400px', 'codedokan' ),
		'id'         => 'project_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Project Info Title', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'projects_name',
		'type'       => 'text',
		'default' => 'Web Design & Branding',
	) );
	
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Clients Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'project_clients_name',
		'type'       => 'text',
		'default' => 'Kennetth F. Mendez',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Location Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'location',
		'type'       => 'text',
		'default' => 'Dhaka, Bangladesh',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Projects Date', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'projects_date',
		'type'       => 'text',
		'default' => '06 February 2022',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Projects Link', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'projects_link',
		'type'       => 'text',
		'default' => 'https://www.demo.com',
	) );


	

};





add_action( 'cmb2_init', 'codedokan_team_information' );
function codedokan_team_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'team_information',
		'title'         => esc_html__( 'Information', 'codedokan' ),
		'object_types'  => array( 'our_team' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );
	
	

	$codedokan->add_field( array(
		'name'       => esc_html__( 'Team Member Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Her', 'codedokan' ),
		'id'         => 'member_name',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Team Designation Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'member_designation',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Team Image', 'codedokan' ),
		'desc'       => esc_html__( 'Upload Your Image or Select From Media, Image Size width : 600px Height : 300px', 'codedokan' ),
		'id'         => 'team_image',
		'type'       => 'file',
		'show_in_rest' => WP_REST_Server::EDITABLE,// WP_REST_Server::ALLMETHODS|WP_REST_Server::READABLE, // Determines which HTTP methods the field is visible in. Will override the cmb2_box 'show_in_rest' param.
	) );
	
	$codedokan->add_field( array(
						'id' => 'member_details',
						'name' => 'Member Details',
						'type' => 'wysiwyg',
						'desc'       => esc_html__( 'Write Here Details', 'codedokan' ),
						'options' => array(
        'textarea_rows' => get_option('default_post_edit_rows', 5), 
    )
						
					) );
					
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Facebook Link', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'facebook_link',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Twitter Link', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'twitter_link',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Linkedin Link', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'linkedin_link',
		'type'       => 'text',
	) );
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Github Link', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'github_link',
		'type'       => 'text',
	) );
	

};



add_action( 'cmb2_init', 'codedokan_pricing_information' );
function codedokan_pricing_information() {
	$codedokan = new_cmb2_box( array(
		'id'            => 'pricing_information',
		'title'         => esc_html__( 'Information', 'codedokan' ),
		'object_types'  => array( 'pricing' ), // Post type
		'show_in_rest' => WP_REST_Server::ALLMETHODS, // WP_REST_Server::READABLE|WP_REST_Server::EDITABLE, // Determines which HTTP methods the box is visible in.
		// Optional callback to limit box visibility.
		// See: https://github.com/CMB2/CMB2/wiki/REST-API#permissions
		// 'get_box_permissions_check_cb' => 'yourprefix_limit_rest_view_to_logged_in_users',
	) );

	$codedokan->add_field( array(
		'name'       => esc_html__( 'Package Name', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'packege_name',
		'type'       => 'text',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Price', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'price',
		'type'       => 'text',
		'default' => '$10',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Year or Month', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'year_month',
		'type'       => 'text',
		'default' => 'Year',
	) );
	
	
	$codedokan->add_field( array(
						'id' => 'price_details',
						'name' => 'Price Details',
						'type' => 'wysiwyg',
						'desc'       => esc_html__( 'Write Here Details', 'codedokan' ),
						'options' => array(
        'textarea_rows' => get_option('default_post_edit_rows', 5), 
		
    ),
	'default' => '
	
	<ul>
                                                <li> <strong> One </strong>  Website Design </li>
												<li>  <strong>  Unlimited    </strong>  Page </li>
                                                <li>  <strong> 1 GB  </strong>  Disk Space </li>
                                                <li>  <strong> 10GB   </strong>   Bandwidth </li> 
												<li>  <strong> Free   </strong>  Setup </li>												
                                                <li>  <strong> 24/7 Hours   </strong>   Support </li>
                                            </ul>
	
	',
						
					) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Order Text', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'order_text',
		'type'       => 'text',
		'default' => 'Contact Me',
	) );
	
	$codedokan->add_field( array(
		'name'       => esc_html__( 'Order Link', 'codedokan' ),
		'desc'       => esc_html__( 'Write Here', 'codedokan' ),
		'id'         => 'order_link',
		'type'       => 'text',
	) );
	

};







