<?php
 /**
  * $Desc
  *
  * @version    $Id$
  * @package    wpbase
  * @author     Opal  Team <opalwordpressl@gmail.com >
  * @copyright  Copyright (C) 2014 wpopal.com. All Rights Reserved.
  * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
  *
  * @website  http://www.wpopal.com
  * @support  http://www.wpopal.com/support/forum.html
  */

if(!function_exists('wpo_create_type_video')){
  function wpo_create_type_video(){
    $labels = array(
      'name' => __( 'Video', TEXTDOMAIN ),
      'singular_name' => __( 'Video', TEXTDOMAIN ),
      'add_new' => __( 'Add New Video', TEXTDOMAIN ),
      'add_new_item' => __( 'Add New Video', TEXTDOMAIN ),
      'edit_item' => __( 'Edit Video', TEXTDOMAIN ),
      'new_item' => __( 'New Video', TEXTDOMAIN ),
      'view_item' => __( 'View Video', TEXTDOMAIN ),
      'search_items' => __( 'Search Videos', TEXTDOMAIN ),
      'not_found' => __( 'No Videos found', TEXTDOMAIN ),
      'not_found_in_trash' => __( 'No Videos found in Trash', TEXTDOMAIN ),
      'parent_item_colon' => __( 'Parent Video:', TEXTDOMAIN ),
      'menu_name' => __( 'Videos', TEXTDOMAIN ),
    );

    $args = array(
        'labels' => $labels,
        'hierarchical' => true,
        'description' => 'List Video',
        'supports' => array( 'title', 'editor', 'thumbnail','comments', 'excerpt' ),
        'public' => true,
        'show_ui' => true,
        'show_in_menu' => true,
        'menu_position' => 5,
        'show_in_nav_menus' => false,
        'publicly_queryable' => true,
        'exclude_from_search' => false,
        'has_archive' => true,
        'query_var' => true,
        'can_export' => true,
        'rewrite' => true,
        'capability_type' => 'post'
    );
    register_post_type( 'video', $args );
  }
  add_action( 'init', 'wpo_create_type_video' );
}


