@@ 1263-1297 (lines=35) @@ | ||
1260 | ||
1261 | ||
1262 | ||
1263 | protected function _category_details_content() { |
|
1264 | $editor_args['category_desc'] = array( |
|
1265 | 'type' => 'wp_editor', |
|
1266 | 'value' => EEH_Formatter::admin_format_content($this->_category->category_desc), |
|
1267 | 'class' => 'my_editor_custom', |
|
1268 | 'wpeditor_args' => array( 'media_buttons' => FALSE ) |
|
1269 | ); |
|
1270 | $_wp_editor = $this->_generate_admin_form_fields( $editor_args, 'array' ); |
|
1271 | ||
1272 | $all_terms = get_terms( array('espresso_venue_categories' ), array( 'hide_empty' => 0, 'exclude' => array( $this->_category->id ) ) ); |
|
1273 | ||
1274 | //setup category select for term parents. |
|
1275 | $category_select_values[] = array( |
|
1276 | 'text' => __('No Parent', 'event_espresso'), |
|
1277 | 'id' => 0 |
|
1278 | ); |
|
1279 | foreach ( $all_terms as $term ) { |
|
1280 | $category_select_values[] = array( |
|
1281 | 'text' => $term->name, |
|
1282 | 'id' => $term->term_id |
|
1283 | ); |
|
1284 | } |
|
1285 | ||
1286 | $category_select = EEH_Form_Fields::select_input( 'category_parent', $category_select_values, $this->_category->parent ); |
|
1287 | $template_args = array( |
|
1288 | 'category' => $this->_category, |
|
1289 | 'category_select' => $category_select, |
|
1290 | 'unique_id_info_help_link' => $this->_get_help_tab_link('unique_id_info'), |
|
1291 | 'category_desc_editor' => $_wp_editor['category_desc']['field'], |
|
1292 | 'disable' => '', |
|
1293 | 'disabled_message' =>FALSE |
|
1294 | ); |
|
1295 | $template = EVENTS_TEMPLATE_PATH . 'event_category_details.template.php'; |
|
1296 | return EEH_Template::display_template($template, $template_args, TRUE ); |
|
1297 | } |
|
1298 | ||
1299 | ||
1300 | protected function _delete_categories() { |
@@ 2154-2189 (lines=36) @@ | ||
2151 | ||
2152 | ||
2153 | ||
2154 | protected function _category_details_content() { |
|
2155 | $editor_args['category_desc'] = array( |
|
2156 | 'type' => 'wp_editor', |
|
2157 | 'value' => EEH_Formatter::admin_format_content($this->_category->category_desc), |
|
2158 | 'class' => 'my_editor_custom', |
|
2159 | 'wpeditor_args' => array('media_buttons' => FALSE ) |
|
2160 | ); |
|
2161 | $_wp_editor = $this->_generate_admin_form_fields( $editor_args, 'array' ); |
|
2162 | ||
2163 | $all_terms = get_terms( array('espresso_event_categories' ), array( 'hide_empty' => 0, 'exclude' => array( $this->_category->id ) ) ); |
|
2164 | ||
2165 | //setup category select for term parents. |
|
2166 | $category_select_values[] = array( |
|
2167 | 'text' => __('No Parent', 'event_espresso'), |
|
2168 | 'id' => 0 |
|
2169 | ); |
|
2170 | foreach ( $all_terms as $term ) { |
|
2171 | $category_select_values[] = array( |
|
2172 | 'text' => $term->name, |
|
2173 | 'id' => $term->term_id |
|
2174 | ); |
|
2175 | } |
|
2176 | ||
2177 | $category_select = EEH_Form_Fields::select_input( 'category_parent', $category_select_values, $this->_category->parent ); |
|
2178 | ||
2179 | $template_args = array( |
|
2180 | 'category' => $this->_category, |
|
2181 | 'category_select' => $category_select, |
|
2182 | 'unique_id_info_help_link' => $this->_get_help_tab_link('unique_id_info'), |
|
2183 | 'category_desc_editor' => $_wp_editor['category_desc']['field'], |
|
2184 | 'disable' => '', |
|
2185 | 'disabled_message' => FALSE |
|
2186 | ); |
|
2187 | $template = EVENTS_TEMPLATE_PATH . 'event_category_details.template.php'; |
|
2188 | return EEH_Template::display_template($template, $template_args, TRUE ); |
|
2189 | } |
|
2190 | ||
2191 | ||
2192 | protected function _delete_categories() { |