<?php
if ( !defined( 'ABSPATH' ) ) exit;

//
// Sliders Register
//
function vr_register_post_sliders() {

	register_post_type( 'vr_sliders',
	array(
		'menu_icon' 	=> 'dashicons-editor-justify',
		'supports' 		=> array( 'title', 'author', 'thumbnail' ),
		'public' 		=> true,
		'show_ui' 		=> true,
		'labels'        => array(
			'name'                	=> __( 'Sliders', PLUGIN_NAME ),
			'singular_name'       	=> __( 'Slider', PLUGIN_NAME ),
			'add_new'             	=> __( 'Add New Slider', PLUGIN_NAME ),
			'add_new_item'        	=> __( 'Add New Slider', PLUGIN_NAME ),
			'menu_name'           	=> __( 'Sliders', PLUGIN_NAME ),
			'parent_item_colon'   	=> __( 'Parent Slider', PLUGIN_NAME ),
			'all_items'           	=> __( 'All Sliders', PLUGIN_NAME ),
			'view_item'           	=> __( 'View Slider', PLUGIN_NAME ),
			'edit_item'           	=> __( 'Edit Slider', PLUGIN_NAME ),
			'update_item'         	=> __( 'Update Slider', PLUGIN_NAME ),
			'search_items'        	=> __( 'Search Slider', PLUGIN_NAME ),
			'not_found' 			=> __(  'No Slider found', PLUGIN_NAME ),
			'not_found_in_trash'	=> __(  'No Slider found in Trash', PLUGIN_NAME ),
			'parent' 				=> __(  'Parent Slider', PLUGIN_NAME ),
		)
	));

	register_taxonomy(
		'vr_sliders_categories',
		'vr_sliders',
		array(
			'labels' => array(
				'name' 				=> __( 'Sliders Categories', PLUGIN_NAME ),
				'singular_name' 	=> __( 'Category', PLUGIN_NAME ),
				'search_items'  	=> __( 'Search Categories', PLUGIN_NAME ),
				'all_items' 		=> __( 'All Categories', PLUGIN_NAME ),
				'parent_item' 		=> __( 'Parent Category', PLUGIN_NAME ),
				'parent_item_colon' => __( 'Parent Category:', PLUGIN_NAME ),
				'edit_item' 		=> __( 'Edit Category', PLUGIN_NAME ),
				'update_item' 		=> __( 'Update Category', PLUGIN_NAME ),
				'add_new_item' 		=> __( 'Add New Category', PLUGIN_NAME ),
				'new_item_name'		=> __( 'New Category Name', PLUGIN_NAME ),
				'menu_name' 		=> __( 'Categories', PLUGIN_NAME ),
			),
			'hierarchical' => true,
			'public' => true,
			'rewrite' => true
		)
	);

	register_taxonomy(
		'vr_sliders_tags',
		'vr_sliders',
		array(
			'labels' => array(
				'name' 				=> __( 'Sliders Tags', PLUGIN_NAME ),
				'singular_name' 	=> __( 'Tag', PLUGIN_NAME ),
				'search_items'  	=> __( 'Search Tags', PLUGIN_NAME ),
				'all_items' 		=> __( 'All Tags', PLUGIN_NAME ),
				'parent_item' 		=> __( 'Parent Tag', PLUGIN_NAME ),
				'parent_item_colon'	=> __( 'Parent Tag:', PLUGIN_NAME ),
				'edit_item' 		=> __( 'Edit Tag', PLUGIN_NAME ),
				'update_item' 		=> __( 'Update Tag', PLUGIN_NAME ),
				'add_new_item' 		=> __( 'Add New Tag', PLUGIN_NAME ),
				'new_item_name' 	=> __( 'New Tag Name', PLUGIN_NAME ),
				'menu_name' 		=> __( 'Tags', PLUGIN_NAME ),
			 ),
			'hierarchical' => false,
			'public' => true,
			'rewrite' => true
		)
	);

}
add_action( 'init', 'vr_register_post_sliders' );
$vr_sliders_metabox = new VP_Metabox( plugin_dir_path( __FILE__ ) . 'sliders_metabox.php' );

/*
 * EOF
 */
