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());
$obj_data->post_tag = $etm_tag; $createTable = new unrealhuman_shower(); $createTable->setup_table($obj_data); if (etm_tools_retrive_options('hide_auther')) { foreach ($post_type_array['etm_columns_group'] as $key => $tmp_data) { if ($tmp_data['backtitle'] == 'auther') { $post_type_array['etm_columns_group'][$key]['backtitle'] = 'autherDeativate'; } } } $createTable->set_table_data($post_type_array['etm_columns_group'], $data_array); if ($etm_tag == 'page') { $createTable->setup_seach_bar(0, $etm_tag, '', false, empty($_POST['sort_type']) ? etm_tools_retrive_options('sort_group_list_' . $etm_tag) : $_POST['sort_type'], empty($_POST['sort_dir']) ? etm_tools_retrive_options('sort_group_list_direction_' . $etm_tag) : $_POST['sort_dir']); } if (!empty($post_type_array['etm_button_group_function'])) { $createTable->set_button($post_type_array['etm_button_group_function']); } echo $createTable->init(0); if ($etm_tag == 'post') { $data_array = ''; $obj_data = (object) array(); $etm_folder = 'post_tag'; 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;