<?php
/*
Plugin Name: Demo Tax meta class
Plugin URI: http://en.bainternet.info
Description: Tax meta class usage demo
Version: 2.0.2
Author: Bainternet, Ohad Raz
Author URI: http://en.bainternet.info
*/

if (is_admin()){
  /* 
   * prefix of meta keys, optional
   */
  $prefix = 'xs_';
  /* 
   * configure your meta box
   */
  $config = array(
    'id' => 'xs_tax_meta',          // meta box id, unique per meta box
    'title' => 'Schedule Meta Box',          // meta box title
    'pages' => array('xs_schedules'),        // taxonomy name, accept categories, post_tag and custom taxonomies
    'context' => 'advanced',            // where the meta box appear: normal (default), advanced, side; optional
    'fields' => array(),            // list of meta fields (can be added by field arrays)
    'local_images' => false,          // Use local or hosted images (meta box images for add/remove)
    'use_with_theme' => false          //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false).
  );
  
  
  /*
   * Initiate your meta box
   */
  $my_meta =  new Tax_Meta_Class($config);
  
  /*
   * Add fields to your meta box
   */
  
  //text field
  $my_meta->addText($prefix.'text_field_id',array('name'=> __('Total Hours ','xs'),'desc' => 'Total event hours of this day'));

  /*
   * Don't Forget to Close up the meta box decleration
   */
  //Finish Meta Box Decleration
  $my_meta->Finish();
}
