protected function _term_object_details_content($taxonomy = 'espresso_people_categories')
 {
     $editor_args['category_desc'] = array('type' => 'wp_editor', 'value' => EEH_Formatter::admin_format_content($this->_term_object->category_desc), 'class' => 'my_editor_custom', 'wpeditor_args' => array('media_buttons' => FALSE));
     $_wp_editor = $this->_generate_admin_form_fields($editor_args, 'array');
     $all_terms = get_terms(array($taxonomy), array('hide_empty' => 0, 'exclude' => array($this->_term_object->id)));
     //setup category select for term parents.
     $category_select_values[] = array('text' => __('No Parent', 'event_espresso'), 'id' => 0);
     foreach ($all_terms as $term) {
         $category_select_values[] = array('text' => $term->name, 'id' => $term->term_id);
     }
     $category_select = EEH_Form_Fields::select_input('category_parent', $category_select_values, $this->_term_object->parent);
     $template_args = array('category' => $this->_term_object, 'category_select' => $category_select, 'unique_id_info_help_link' => $this->_get_help_tab_link('unique_id_info'), 'category_desc_editor' => $_wp_editor['category_desc']['field'], 'disable' => '', 'disabled_message' => FALSE, 'term_name_label' => $taxonomy == 'espresso_people_categories' ? __('Category Name', 'event_espresso') : __('Type Name', 'event_espresso'), 'term_id_description' => $taxonomy == 'espresso_people_categories' ? __('This is a default category so you can edit the label and the description but not the slug', 'event_espresso') : __('This is a default type so you can edit the label and the description but not the slug', 'event_espresso'), 'term_parent_label' => $taxonomy == 'espresso_people_categories' ? __('Category Parent', 'event_espresso') : __('Type Parent', 'event_espresso'), 'term_parent_description' => $taxonomy == 'espresso_people_categories' ? __('Categories are hierarchical.  You can change the parent for this category here.', 'event_espresso') : __('People Types are hierarchical.  You can change the parent for this type here.', 'event_espresso'), 'term_description_label' => $taxonomy == 'espresso_people_categories' ? __('Category Description', 'event_espresso') : __('Type Description'));
     $template = EEA_PEOPLE_ADDON_ADMIN_TEMPLATE_PATH . 'people_term_details.template.php';
     return EEH_Template::display_template($template, $template_args, TRUE);
 }
 protected function _category_details_content()
 {
     $editor_args['category_desc'] = array('type' => 'wp_editor', 'value' => EEH_Formatter::admin_format_content($this->_category->category_desc), 'class' => 'my_editor_custom', 'wpeditor_args' => array('media_buttons' => FALSE));
     $_wp_editor = $this->_generate_admin_form_fields($editor_args, 'array');
     $all_terms = get_terms(array('espresso_venue_categories'), array('hide_empty' => 0, 'exclude' => array($this->_category->id)));
     //setup category select for term parents.
     $category_select_values[] = array('text' => __('No Parent', 'event_espresso'), 'id' => 0);
     foreach ($all_terms as $term) {
         $category_select_values[] = array('text' => $term->name, 'id' => $term->term_id);
     }
     $category_select = EEH_Form_Fields::select_input('category_parent', $category_select_values, $this->_category->parent);
     $template_args = array('category' => $this->_category, 'category_select' => $category_select, 'unique_id_info_help_link' => $this->_get_help_tab_link('unique_id_info'), 'category_desc_editor' => $_wp_editor['category_desc']['field'], 'disable' => '', 'disabled_message' => FALSE);
     $template = EVENTS_TEMPLATE_PATH . 'event_category_details.template.php';
     return EEH_Template::display_template($template, $template_args, TRUE);
 }