<?php
/**
 * Plugin Name: CPT Cap Test
 * Plugin URI: http://xavisys.com
 * Description: CPT Cap Test
 * Author: Aaron D. Campbell
 * Author URI: http://xavisys.com
 * Version: 0.1
 */

class SponsorsPostType {
	private $_slug = 'sponsors';

	public function __construct() {
		add_action( 'init',					array( $this, 'init') );
	}

	public function init() {
		$labels = array(
			'name'					=> _x('Sponsors', 'post type general name'),
			'singular_name'			=> _x('Sponsor', 'post type singular name'),
			'add_new'				=> _x('Add New', 'page'),
			'add_new_item'			=> __('Add New Sponsor'),
			'edit_item'				=> __('Edit Sponsor'),
			'new_item'				=> __('New Sponsor'),
			'view_item'				=> __('View Sponsor'),
			'all_items'				=> __('All Sponsors'),
			'search_items'			=> __('Search Sponsors'),
			'not_found'				=> __('No sponsors found'),
			'not_found_in_trash'	=> __('No sponsors found in Trash'),
			'parent_item_colon'		=> '',
			'items_archive'			=> __('Sponsor Archive'),
		);

		$supports = array( 'title', 'editor', 'author', 'excerpt', 'revisions', 'thumbnail' );

		$args = array(
			'labels'		=> $labels,
			'description'	=> 'Sponsors',
			'public'		=> true,
			'hierarchical'	=> false,
			'supports'		=> $supports,
			'has_archive'	=> 'sponsors',
			'rewrite'		=> array(
				'feeds'	=> true
			),
//			'capability_type'=> 'sponsor'
		);
		register_post_type( 'sponsor', $args );
	}
}

$SponsorsPostType = new SponsorsPostType();
