if (!empty($post_type_array['single_list_function']) && function_exists($post_type_array['single_list_function'])) { $data_array = $post_type_array['single_list_function']; } } $obj_data = (object) array(); $obj_data->interval = etm_tools_retrive_options('limit_interval'); $obj_data->page = 0; $obj_data->sort_col = etm_tools_retrive_options('sort_single_list_' . $etm_tag); $obj_data->sort_dir = etm_tools_retrive_options('sort_single_list_direction_' . $etm_tag); $obj_data->retrive_fn = $data_array; $obj_data->etm_folder = $etm_folder; $obj_data->post_tag = $etm_tag; $createTable = new unrealhuman_shower(); $createTable->setup_table($obj_data); if (etm_tools_retrive_options('hide_auther') and !empty($post_type_array['etm_columns_single'])) { foreach ($post_type_array['etm_columns_single'] as $key => $tmp_data) { if ($tmp_data['backtitle'] == 'auther') { $post_type_array['etm_columns_single'][$key]['backtitle'] = 'autherDeativate'; } } } if (count($check_pieces) > 0 && $check_pieces[0] == 'meta') { $createTable->set_table_data($post_type_array['etm_columns_meta'], $data_array); } else { $createTable->set_table_data($post_type_array['etm_columns_single'], $data_array); $createTable->setup_seach_bar(0, $check_pieces[0], $check_pieces[0], false, $_POST['sort_type'], $_POST['sort_dir']); } if (!empty($post_type_array['etm_button_single_function'])) { $createTable->set_button($post_type_array['etm_button_single_function']); } die($createTable->init());
} } $createTables->set_table_data($post_type_array['etm_columns_group_tags'], $data_array); echo $createTables->init(1); $etm_folder = 'category'; $obj_data = (object) array(); $data_array = ''; if (!empty($post_type_array['group_list_function_tags']) && function_exists($post_type_array['group_list_function_tags'])) { $data_array = $post_type_array['group_list_function_tags']; } $obj_data->interval = etm_tools_retrive_options('limit_interval'); $obj_data->page = 0; $obj_data->sort_col = etm_tools_retrive_options('sort_single_list_' . $etm_tag); $obj_data->sort_dir = etm_tools_retrive_options('sort_single_list_direction_' . $etm_tag); $obj_data->retrive_fn = $data_array; $obj_data->etm_folder = $etm_folder; $obj_data->post_tag = $etm_tag; if (etm_tools_retrive_options('hide_auther')) { foreach ($post_type_array['etm_columns_group_tags'] as $key => $tmp_data) { if ($tmp_data['backtitle'] == 'auther') { $post_type_array['etm_columns_group_tags'][$key]['backtitle'] = 'autherDeativate'; } } } $createTables = new unrealhuman_shower(); $createTables->setup_table($obj_data); $createTables->setup_title_description('<div class="etm_icon etm_icon_9"></div><span><h2>' . __('Post Categories', 'etm') . '</h2></span>', __('Choose the Post Category you want to translate.', 'etm')); $createTables->set_table_data($post_type_array['etm_columns_group_tags'], $data_array); echo $createTables->init(2); } die;