isset($_GET['pageid']) ? $page = sanitize_text_field($_GET['pageid']) : ($page = 1); require_once KINGKONGBOARD_ABSPATH . 'class/class.list.php'; $kkb = new kkbList(); if ($keyword || $section) { $data['kkb_search_keyword'] = $keyword; $data['kkb_search_section'] = $section; $data['kkb_search_type'] = $search_type; $bResults = $kkb->searchResult($board_id, $data, $page, null); $totalCount = $kkb->getSearch($board_id, $data, $page, 'count'); } else { $bResults = $kkb->getBasic($board_id, $page); $totalCount = $kkb->getCount($board_id, 'basic'); } !isset($data) ? $data = null : ($data = $data); $bResults = apply_filters('kkb_list_basic_after', $bResults, $board_id, $data, $page); $nResults = $kkb->getNotice($board_id); foreach ($nResults as $nResult) { ?> <tr class="entry-notice"> <?php foreach ($entries as $entry) { ?> <?php echo apply_filters('kkb_loop_column_' . $entry['value'], $result = null, $entry, $nResult->post_id, $cn = null); } ?> </tr> <?php } $cnt = $totalCount - ($page * $config->rows - $config->rows); if ($bResults) {
echo "<th class='entry-th-checkbox'><input type='checkbox' class='select-all-entry'></th>"; echo "<th class='entry-th-id'>" . __('번호', 'kingkongboard') . "</th>"; foreach ($entries as $entry) { echo "<th class='entry-th-" . $entry['value'] . "'>" . $entry['label'] . "</th>"; } ?> </tr> <?php if (isset($_GET['pageid'])) { $page = sanitize_text_field($_GET['pageid']); } else { $page = 1; } $bResults = $KKB_List->getBasic($board_id, $page); $nResults = $KKB_List->getNotice($board_id); $totalCount = $KKB_List->getCount($board_id, 'basic'); $noticeCount = $KKB_List->getCount($board_id, 'notice'); $basic_rows = ''; $notice_rows = ''; foreach ($nResults as $nResult) { $notice_rows .= '<tr class="entry-notice"><td><input type="checkbox" class="each_entry_checkbox" value="' . $nResult->post_id . '"></td><td><span class="label-notice">' . __('공지', 'kingkongboard') . '</span></td>'; $notice_rows .= apply_filters('admin_kingkong_board_manage_entry_column', $entries, $nResult->post_id); $notice_rows .= '</tr>'; } $cnt = $totalCount - ($page * $config->rows - $config->rows); foreach ($bResults as $bResult) { $basic_rows .= '<tr><td><input type="checkbox" class="each_entry_checkbox" value="' . $bResult->post_id . '"></td><td>' . $cnt . '</td>'; $basic_rows .= apply_filters('admin_kingkong_board_manage_entry_column', $entries, $bResult->post_id); $basic_rows .= '</tr>'; $cnt--;
isset($_GET['pageid']) ? $page = sanitize_text_field($_GET['pageid']) : ($page = 1); require_once KINGKONGBOARD_ABSPATH . 'class/class.list.php'; $kkb = new kkbList(); $config = new kkbConfig(); $config = $config->getBoard($this->board_id); if ($keyword || $section) { $data['kkb_search_keyword'] = $keyword; $data['kkb_search_section'] = $section; $data['kkb_search_type'] = $search_type; $bResults = $kkb->searchResult($this->board_id, $data, $page, null); $totalCount = $kkb->getSearch($this->board_id, $data, $page, 'count'); } else { $bResults = $kkb->getBasic($this->board_id, $page); $totalCount = $kkb->getCount($this->board_id, 'basic'); } $nResults = $kkb->getNotice($this->board_id); foreach ($nResults as $nResult) { ?> <tr class="entry-notice"> <?php foreach ($entries as $entry) { ?> <?php echo apply_filters('kkb_loop_column_' . $entry['value'], $result = null, $entry, $nResult->post_id, $cn = null); } ?> </tr> <?php } $cnt = $totalCount - ($page * $config->rows - $config->rows); if ($bResults) {