<?php

add_action( 'init', 'awesome_post_types' );
function awesome_post_types() {

	//slide post type
	register_post_type( 'slide',
		array(
		  'labels' => array(
			'name' => __( 'Slides', 'awesome' ),
			'singular_name' => __( 'Slide', 'awesome' ),		
			'add_new' => _x( 'Add New', 'Slide', 'awesome' ),
			'add_new_item' => __( 'Add New Slide', 'awesome' ),
			'edit_item' => __( 'Edit Slide', 'awesome' ),
			'new_item' => __( 'New Slide', 'awesome' ),
			'view_item' => __( 'View Slide', 'awesome' ),
			'search_items' => __( 'Search Slides', 'awesome' ),
			'not_found' =>  __( 'No Slides found', 'awesome' ),
			'not_found_in_trash' => __( 'No Slides found in Trash', 'awesome' ),
			'parent_item_colon' => ''
			
		  ),
		  'public' => true,
		  'supports' => array('title','thumbnail'),
		  'query_var' => true,
		  'rewrite' => array( 'slug' => 'slide' ),
		)
	  );
	  

	//skill post type
	register_post_type( 'skill',
		array(
		  'labels' => array(
			'name' => __( 'Skills', 'awesome' ),
			'singular_name' => __( 'Skill', 'awesome' ),		
			'add_new' => __( 'Add New', 'Skill', 'awesome' ),
			'add_new_item' => __( 'Add New Skill', 'awesome' ),
			'edit_item' => __( 'Edit Skill', 'awesome' ),
			'new_item' => __( 'New Skill', 'awesome' ),
			'view_item' => __( 'View Skill', 'awesome' ),
			'search_items' => __( 'Search Skill', 'awesome' ),
			'not_found' =>  __( 'No Skills found', 'awesome' ),
			'not_found_in_trash' => __( 'No Skill found in Trash', 'awesome' ),
			'parent_item_colon' => ''
			
		  ),
		  'public' => true,
		  'supports' => array('title','thumbnail'),
		  'query_var' => true,
		  'rewrite' => array( 'slug' => 'skill' ),
		)
	  );	  
	  

	//skill post type
	register_post_type( 'application',
		array(
		  'labels' => array(
			'name' => __( 'Applications', 'awesome' ),
			'singular_name' => __( 'Application', 'awesome' ),		
			'add_new' => __( 'Add New', 'Application', 'awesome' ),
			'add_new_item' => __( 'Add New Application', 'awesome' ),
			'edit_item' => __( 'Edit Application', 'awesome' ),
			'new_item' => __( 'New Application', 'awesome' ),
			'view_item' => __( 'View Application', 'awesome' ),
			'search_items' => __( 'Search Application', 'awesome' ),
			'not_found' =>  __( 'No Applications found', 'awesome' ),
			'not_found_in_trash' => __( 'No Applications found in Trash', 'awesome' ),
			'parent_item_colon' => ''
			
		  ),
		  'public' => true,
		  'supports' => array('title','editor','thumbnail'),
		  'query_var' => true,
		  'rewrite' => array( 'slug' => 'application' ),
		)
	  );	  
	  

	//skill post type
	register_post_type( 'application',
		array(
		  'labels' => array(
			'name' => __( 'Applications', 'awesome' ),
			'singular_name' => __( 'Application', 'awesome' ),		
			'add_new' => __( 'Add New', 'Application', 'awesome' ),
			'add_new_item' => __( 'Add New Application', 'awesome' ),
			'edit_item' => __( 'Edit Application', 'awesome' ),
			'new_item' => __( 'New Application', 'awesome' ),
			'view_item' => __( 'View Application', 'awesome' ),
			'search_items' => __( 'Search Application', 'awesome' ),
			'not_found' =>  __( 'No Applications found', 'awesome' ),
			'not_found_in_trash' => __( 'No Applications found in Trash', 'awesome' ),
			'parent_item_colon' => ''
			
		  ),
		  'public' => true,
		  'supports' => array('title','editor','thumbnail'),
		  'query_var' => true,
		  'rewrite' => array( 'slug' => 'application' ),
		)
	  );	  
	  

	//skill post type
	register_post_type( 'portfolio',
		array(
		  'labels' => array(
			'name' => __( 'Portfolios', 'awesome' ),
			'singular_name' => __( 'Portfolio', 'awesome' ),		
			'add_new' => __( 'Add New', 'Portfolio', 'awesome' ),
			'add_new_item' => __( 'Add New Portfolio', 'awesome' ),
			'edit_item' => __( 'Edit Portfolio', 'awesome' ),
			'new_item' => __( 'New Portfolio', 'awesome' ),
			'view_item' => __( 'View Portfolio', 'awesome' ),
			'search_items' => __( 'Search Portfolio', 'awesome' ),
			'not_found' =>  __( 'No Portfolios found', 'awesome' ),
			'not_found_in_trash' => __( 'No Portfolios found in Trash', 'awesome' ),
			'parent_item_colon' => ''
			
		  ),
		  'public' => true,
		  'supports' => array('title','editor','thumbnail'),
		  'query_var' => true,
		  'rewrite' => array( 'slug' => 'portfolio' ),
		)
	  );	  
	  
}

	//skill post type
	register_post_type( 'service',
		array(
		  'labels' => array(
			'name' => __( 'Services', 'awesome' ),
			'singular_name' => __( 'Service', 'awesome' ),		
			'add_new' => __( 'Add New', 'Service', 'awesome' ),
			'add_new_item' => __( 'Add New Service', 'awesome' ),
			'edit_item' => __( 'Edit Service', 'awesome' ),
			'new_item' => __( 'New Service', 'awesome' ),
			'view_item' => __( 'View Service', 'awesome' ),
			'search_items' => __( 'Search Service', 'awesome' ),
			'not_found' =>  __( 'No Services found', 'awesome' ),
			'not_found_in_trash' => __( 'No Services found in Trash', 'awesome' ),
			'parent_item_colon' => ''
		  ),
		  'public' => true,
		  'supports' => array('title','editor','thumbnail'),
		  'query_var' => true,
		  'rewrite' => array( 'slug' => 'service' ),
		)
	  );	 

	//price table post type
	register_post_type( 'price-table',
		array(
		  'labels' => array(
			'name' => __( 'Price Tables', 'awesome' ),
			'singular_name' => __( 'Price Table', 'awesome' ),		
			'add_new' => __( 'Add New', 'Price Table', 'awesome' ),
			'add_new_item' => __( 'Add New Price Table', 'awesome' ),
			'edit_item' => __( 'Edit Price Table', 'awesome' ),
			'new_item' => __( 'New Price Table', 'awesome' ),
			'view_item' => __( 'View Price Table', 'awesome' ),
			'search_items' => __( 'Search Price Table', 'awesome' ),
			'not_found' =>  __( 'No Price Tables found', 'awesome' ),
			'not_found_in_trash' => __( 'No Price Tables found in Trash', 'awesome' ),
			'parent_item_colon' => ''
		  ),
		  'public' => true,
		  'supports' => array('title'),
		  'query_var' => true,
		  'rewrite' => array( 'slug' => 'price-table' ),
		)
	  );	  	  

/** Create Taxonomy **/
add_action( 'init', 'awesome_taxonomies' );
function awesome_taxonomies() {

		register_taxonomy('portfolio_category',array('portfolio'),
		 array(
			'labels' => array(
				'name' => __( 'Portfolio Categories', 'awesomee' ),
				'singular_name' => __( 'Portfolio Category', 'awesomee' ),
				'search_items' => __( 'Search Portfolio Categories', 'awesomee' ),
				'popular_items' => __( 'Popular Portfolio Categories', 'awesomee' ),
				'all_items' => __( 'All Portfolio Categories', 'awesomee' ),
				'parent_item' => __( 'Parent Portfolio Category', 'awesomee' ),
				'parent_item_colon' => __( 'Parent Portfolio Category:', 'awesomee' ),
				'edit_item' => __( 'Edit Portfolio Category', 'awesomee' ),
				'update_item' => __( 'Update Portfolio Category', 'awesomee' ),
				'add_new_item' => __( 'Add New Portfolio Category', 'awesomee' ),
				'new_item_name' => __( 'New Portfolio Category Name', 'awesomee' ),
				'separate_items_with_commas' => __( 'Separate portfolio categories with commas', 'awesomee' ),
				'add_or_remove_items' => __( 'Add or remove portfolio categories', 'awesomee' ),
				'choose_from_most_used' => __( 'Choose from the most used portfolio categories', 'awesomee' ),
				'menu_name' => __( 'Portfolio Categories', 'awesomee' )
		),
			'public' => true,
			'show_in_nav_menus' => true,
			'show_ui' => true,
			'show_tagcloud' => true,
			'hierarchical' => true,
			'rewrite' => array( 'slug' => 'portfolio_category' ),
			'query_var' => true		 
		)
		);
	  
}	  

?>