Example #1
0
	/**
	 * Just create the name, slug, and labels. The rest is 
	 * done automagically.
	 *
	 * @since Alfred 0.1
	 */
	function __construct() {
		global $alfred;
		
		parent::__construct(
			'task',
			'task_tags',
			'tag',
			array(
				'name' => __( 'Tags', 'quality' ),
				'singular_name' => __( 'tag', 'quality' ),
				'search_items' => __( 'Search Tags', 'quality' ),
				'popular_items' => __( 'Popular Tags', 'quality' ),
				'all_items' => __( 'All Tags', 'quality' ),
				'update_item' => __( 'Update Tags', 'quality' ),
				'add_new_item' => __( 'Add New Tags', 'quality' ),
				'new_item_name' => __( 'New Tag Name', 'quality' ),
				'edit_item' => __( 'Edit Tag', 'quality' )
			)
		);
		
		$this->actions();
	}
Example #2
0
	/**
	 * Just create the name, slug, and labels. The rest is 
	 * done automagically.
	 *
	 * @since Alfred 0.1
	 */
	function __construct() {
		global $alfred;
		
		parent::__construct(
			'project',
			'project_status',
			'status',
			array(
				'name' => __( 'States', 'quality' ),
				'singular_name' => __( 'Status', 'quality' ),
				'search_items' => __( 'Search States', 'quality' ),
				'popular_items' => __( 'Popular States', 'quality' ),
				'all_items' => __( 'All States', 'quality' ),
				'update_item' => __( 'Update Status', 'quality' ),
				'add_new_item' => __( 'Add New Status', 'quality' ),
				'new_item_name' => __( 'New Status Name', 'quality' ),
				'edit_item' => __( 'Edit Status', 'quality' )
			)
		);
		
		$this->actions();
	}