| @@ 1318-1338 (lines=21) @@ | ||
| 1315 | } |
|
| 1316 | ||
| 1317 | ||
| 1318 | protected function _category_details($view) |
|
| 1319 | { |
|
| 1320 | ||
| 1321 | // load formatter helper |
|
| 1322 | // load field generator helper |
|
| 1323 | ||
| 1324 | $route = $view == 'edit' ? 'update_category' : 'insert_category'; |
|
| 1325 | $this->_set_add_edit_form_tags($route); |
|
| 1326 | ||
| 1327 | $this->_set_category_object(); |
|
| 1328 | $id = ! empty($this->_category->id) ? $this->_category->id : ''; |
|
| 1329 | ||
| 1330 | $delete_action = 'delete_category'; |
|
| 1331 | ||
| 1332 | $redirect = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'category_list'), $this->_admin_base_url); |
|
| 1333 | ||
| 1334 | $this->_set_publish_post_box_vars('VEN_CAT_ID', $id, $delete_action, $redirect); |
|
| 1335 | ||
| 1336 | // take care of contents |
|
| 1337 | $this->_template_args['admin_page_content'] = $this->_category_details_content(); |
|
| 1338 | $this->display_admin_page_with_sidebar(); |
|
| 1339 | } |
|
| 1340 | ||
| 1341 | ||
| @@ 2428-2449 (lines=22) @@ | ||
| 2425 | /** |
|
| 2426 | * Output category details view. |
|
| 2427 | */ |
|
| 2428 | protected function _category_details($view) |
|
| 2429 | { |
|
| 2430 | // load formatter helper |
|
| 2431 | // load field generator helper |
|
| 2432 | $route = $view == 'edit' ? 'update_category' : 'insert_category'; |
|
| 2433 | $this->_set_add_edit_form_tags($route); |
|
| 2434 | $this->_set_category_object(); |
|
| 2435 | $id = ! empty($this->_category->id) ? $this->_category->id : ''; |
|
| 2436 | $delete_action = 'delete_category'; |
|
| 2437 | // custom redirect |
|
| 2438 | $redirect = EE_Admin_Page::add_query_args_and_nonce( |
|
| 2439 | array('action' => 'category_list'), |
|
| 2440 | $this->_admin_base_url |
|
| 2441 | ); |
|
| 2442 | $this->_set_publish_post_box_vars('EVT_CAT_ID', $id, $delete_action, $redirect); |
|
| 2443 | // take care of contents |
|
| 2444 | $this->_template_args['admin_page_content'] = $this->_category_details_content(); |
|
| 2445 | $this->display_admin_page_with_sidebar(); |
|
| 2446 | } |
|
| 2447 | ||
| 2448 | ||
| 2449 | /** |
|
| 2450 | * Output category details content. |
|
| 2451 | */ |
|
| 2452 | protected function _category_details_content() |
|