<?php


/* --------------Slider Image----------------- */

if(function_exists('register_post_type')) {
		register_post_type('slider', array(
			'labels' => array(
				'name' => __('Slider Image', 'codedokan_smartedu'),
				'menu_name' => __('Slider Image', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-slides',
			"supports" => [ "title","editor" ], 
			'menu_position' => 2,
		   ));
	    }
	    

/* --------------About Us----------------- */

if(function_exists('register_post_type')) {
		register_post_type('aboutus', array(
			'labels' => array(
				'name' => __('About Us', 'codedokan_smartedu'),
				'menu_name' => __('About Us', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-businessperson',
			'supports' => array('title','editor'),
			'menu_position' => 3,
		   ));
	    }
	    	
		
					/* --------------Announcement----------------- */

if(function_exists('register_post_type')) {
		register_post_type('announcement', array(
			'labels' => array(
				'name' => __('Announcement', 'codedokan_smartedu'),
				'menu_name' => __('Announcement', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-media-text',
			'supports' => array('title','editor'),
			'menu_position' => 4,
		   ));
	    }
		
		
			/* --------------Speech----------------- */

if(function_exists('register_post_type')) {
		register_post_type('speech', array(
			'labels' => array(
				'name' => __('Speech', 'codedokan_smartedu'),
				'menu_name' => __('Speech', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-format-status',
			'supports' => array('title','editor','thumbnail'),
			'menu_position' => 5,
		   ));
	    }	
		
		
		
				
		/* --------------Notice----------------- */

if(function_exists('register_post_type')) {
		register_post_type('notice', array(
			'labels' => array(
				'name' => __('Notice', 'codedokan_smartedu'),
				'menu_name' => __('Notice', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-pressthis',
			'supports' => array('title','editor'),
			'menu_position' => 20,	
		   ));
	    }	
			
		
						

			/* --------------Results----------------- */

if(function_exists('register_post_type')) {
		register_post_type('results', array(
			'labels' => array(
				'name' => __('Results', 'codedokan_smartedu'),
				'menu_name' => __('Results', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-excerpt-view',
			'supports' => array('title'),
			'menu_position' => 22,	
		   ));
	    }
		
		
		
		

	/**
 * Post Type: Class Routine
 */
	
function routine_codedokan() {
	$labels = [
		"name" => __( "Routine", "codedokan_smartedu" ),
		"singular_name" => __( "Routine", "codedokan_smartedu" ), 
	];
	$args = [
		"label" => __( "Routine", "codedokan_smartedu" ),
		"labels" => $labels,
		"description" => "",
		"public" => true,
		"publicly_queryable" => true,
		"show_ui" => true,
		"has_archive" => "routine",
		"show_in_menu" => true,
		"show_in_nav_menus" => true,
		"exclude_from_search" => false,
		"capability_type" => "post",
		"hierarchical" => false,
		"rewrite" => [ "slug" => "routine", "with_front" => false ],
		"query_var" => true,
		'menu_icon' => 'dashicons-editor-insertmore',
		"supports" => [ "title" ], 
		'menu_position' => 23,	
	];

	register_post_type( "routine", $args ); 
}

add_action( 'init', 'routine_codedokan' );
		

	
   
/**
 * Taxonomy: Routine Categories.
 */

function routine_category_codedokan() {

	$labels = [
		"name" => __( "Routine Cat", "codedokan_smartedu" ),
		"singular_name" => __( "Routine Cat", "codedokan_smartedu" ),
	];
	$args = [
		"label" => __( "Routine Cat", "codedokan_smartedu" ),
		"labels" => $labels,
		"public" => true,
		"publicly_queryable" => true,
		"hierarchical" => true,
		"show_ui" => true,
		"show_in_menu" => true,
		"show_in_nav_menus" => true,
		"query_var" => true,
		"rewrite" => [ 'slug' => 'routinecat', 'with_front' => false, ],

		];
	register_taxonomy( "routinecat", [ "routine" ], $args );
}
add_action( 'init', 'routine_category_codedokan' ); 
	

			
		

/* --------------Brands----------------- */

if(function_exists('register_post_type')) {
		register_post_type('brands', array(
			'labels' => array(
				'name' => __('Brands', 'codedokan_smartedu'),
				'menu_name' => __('Brands', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-admin-links',
			'supports' => array('title'),
			'menu_position' => 26,
		   ));
	    }

		

	/* --------------Academic Calendar----------------- */

if(function_exists('register_post_type')) {
		register_post_type('calendar', array(
			'labels' => array(
				'name' => __('Aca. Calendar', 'codedokan_smartedu'),
				'menu_name' => __('Aca. Calendar', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-calendar-alt',
			'supports' => array('title'),
			'menu_position' => 27,
		   ));
	    }

		/* --------------Holiday----------------- */

if(function_exists('register_post_type')) {
		register_post_type('holiday', array(
			'labels' => array(
				'name' => __('Holiday', 'codedokan_smartedu'),
				'menu_name' => __('Holiday', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-calendar',
			'supports' => array('title'),
			'menu_position' => 29,
		   ));
	    }
	    
	    
	    
	    
	    			/* --------------Speech----------------- */

if(function_exists('register_post_type')) {
		register_post_type('spacial_corner', array(
			'labels' => array(
				'name' => __('Spacial Corner', 'codedokan_smartedu'),
				'menu_name' => __('Spacial Corner', 'codedokan_smartedu'),
				'add_new' => __('Add New Info', 'codedokan_smartedu'),
				'add_new_item' => __('Add New Info', 'codedokan_smartedu'),
			),
			'public' => true,
			'menu_icon' => 'dashicons-format-status',
			'supports' => array('title','editor','thumbnail'),
			'menu_position' => 30,
		   ));
	    }	
	

	



		
			