<?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_testimonial')){
    function wpo_create_type_testimonial(){
      $labels = array(
        'name' => __( 'Testimonial', 'unity' ),
        'singular_name' => __( 'Testimonial', 'unity' ),
        'add_new' => __( 'Add New Testimonial', 'unity' ),
        'add_new_item' => __( 'Add New Testimonial', 'unity' ),
        'edit_item' => __( 'Edit Testimonial', 'unity' ),
        'new_item' => __( 'New Testimonial', 'unity' ),
        'view_item' => __( 'View Testimonial', 'unity' ),
        'search_items' => __( 'Search Testimonials', 'unity' ),
        'not_found' => __( 'No Testimonials found', 'unity' ),
        'not_found_in_trash' => __( 'No Testimonials found in Trash', 'unity' ),
        'parent_item_colon' => __( 'Parent Testimonial:', 'unity' ),
        'menu_name' => __( 'Opal Testimonials', 'unity' ),
      );

      $args = array(
          'labels' => $labels,
          'hierarchical' => true,
          'description' => 'List Testimonial',
          'supports' => array( 'title', 'editor', 'thumbnail','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( 'testimonial', $args );
    }

    add_action( 'init','wpo_create_type_testimonial' );
}


