<?php

namespace TRANZIXPLUGIN\Inc;


use TRANZIXPLUGIN\Inc\Abstracts\Taxonomy;


class Taxonomies extends Taxonomy {


	public static function init() {

		$labels = array(
			'name'              => _x( 'Project Category', 'tranzix' ),
			'singular_name'     => _x( 'Project Category', 'tranzix' ),
			'search_items'      => __( 'Search Category', 'tranzix' ),
			'all_items'         => __( 'All Categories', 'tranzix' ),
			'parent_item'       => __( 'Parent Category', 'tranzix' ),
			'parent_item_colon' => __( 'Parent Category:', 'tranzix' ),
			'edit_item'         => __( 'Edit Category', 'tranzix' ),
			'update_item'       => __( 'Update Category', 'tranzix' ),
			'add_new_item'      => __( 'Add New Category', 'tranzix' ),
			'new_item_name'     => __( 'New Category Name', 'tranzix' ),
			'menu_name'         => __( 'Project Category', 'tranzix' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'project_cat' ),
		);

		register_taxonomy( 'project_cat', 'tranzix_project', $args );
		
		//Services Taxonomy Start
		$labels = array(
			'name'              => _x( 'Service Category', 'tranzix' ),
			'singular_name'     => _x( 'Service Category', 'tranzix' ),
			'search_items'      => __( 'Search Category', 'tranzix' ),
			'all_items'         => __( 'All Categories', 'tranzix' ),
			'parent_item'       => __( 'Parent Category', 'tranzix' ),
			'parent_item_colon' => __( 'Parent Category:', 'tranzix' ),
			'edit_item'         => __( 'Edit Category', 'tranzix' ),
			'update_item'       => __( 'Update Category', 'tranzix' ),
			'add_new_item'      => __( 'Add New Category', 'tranzix' ),
			'new_item_name'     => __( 'New Category Name', 'tranzix' ),
			'menu_name'         => __( 'Service Category', 'tranzix' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'service_cat' ),
		);


		register_taxonomy( 'service_cat', 'tranzix_service', $args );
		
		//Testimonials Taxonomy Start
		$labels = array(
			'name'              => _x( 'Testimonials Category', 'tranzix' ),
			'singular_name'     => _x( 'Testimonials Category', 'tranzix' ),
			'search_items'      => __( 'Search Category', 'tranzix' ),
			'all_items'         => __( 'All Categories', 'tranzix' ),
			'parent_item'       => __( 'Parent Category', 'tranzix' ),
			'parent_item_colon' => __( 'Parent Category:', 'tranzix' ),
			'edit_item'         => __( 'Edit Category', 'tranzix' ),
			'update_item'       => __( 'Update Category', 'tranzix' ),
			'add_new_item'      => __( 'Add New Category', 'tranzix' ),
			'new_item_name'     => __( 'New Category Name', 'tranzix' ),
			'menu_name'         => __( 'Testimonials Category', 'tranzix' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'testimonials_cat' ),
		);


		register_taxonomy( 'testimonials_cat', 'tranzix_testimonials', $args );
		
		
		//Team Taxonomy Start
		$labels = array(
			'name'              => _x( 'Team Category', 'tranzix' ),
			'singular_name'     => _x( 'Team Category', 'tranzix' ),
			'search_items'      => __( 'Search Category', 'tranzix' ),
			'all_items'         => __( 'All Categories', 'tranzix' ),
			'parent_item'       => __( 'Parent Category', 'tranzix' ),
			'parent_item_colon' => __( 'Parent Category:', 'tranzix' ),
			'edit_item'         => __( 'Edit Category', 'tranzix' ),
			'update_item'       => __( 'Update Category', 'tranzix' ),
			'add_new_item'      => __( 'Add New Category', 'tranzix' ),
			'new_item_name'     => __( 'New Category Name', 'tranzix' ),
			'menu_name'         => __( 'Team Category', 'tranzix' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'team_cat' ),
		);


		register_taxonomy( 'team_cat', 'tranzix_team', $args );
		
		//Faqs Taxonomy Start
		$labels = array(
			'name'              => _x( 'Faqs Category', 'tranzix' ),
			'singular_name'     => _x( 'Faq Category', 'tranzix' ),
			'search_items'      => __( 'Search Category', 'tranzix' ),
			'all_items'         => __( 'All Categories', 'tranzix' ),
			'parent_item'       => __( 'Parent Category', 'tranzix' ),
			'parent_item_colon' => __( 'Parent Category:', 'tranzix' ),
			'edit_item'         => __( 'Edit Category', 'tranzix' ),
			'update_item'       => __( 'Update Category', 'tranzix' ),
			'add_new_item'      => __( 'Add New Category', 'tranzix' ),
			'new_item_name'     => __( 'New Category Name', 'tranzix' ),
			'menu_name'         => __( 'Faq Category', 'tranzix' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'faqs_cat' ),
		);


		register_taxonomy( 'faqs_cat', 'tranzix_faqs', $args );
	}
	
}
