Exemplo n.º 1
0
 function __construct($board_id)
 {
     $this->board_id = $board_id;
     isset($_GET['pageid']) ? $this->page = sanitize_text_field($_GET['pageid']) : ($this->page = 1);
     isset($_POST['kkb_keyword']) ? $this->keyword = sanitize_text_field($_POST['kkb_keyword']) : ($this->keyword = null);
     isset($_POST['kkb_section']) ? $this->section = sanitize_text_field($_POST['kkb_section']) : ($this->section = null);
     isset($_GET['kkb_keyword']) && empty($this->keyword) ? $this->keyword = sanitize_text_field($_GET['kkb_keyword']) : ($this->keyword = $this->keyword);
     isset($_GET['kkb_section']) && empty($this->section) ? $this->section = sanitize_text_field($_GET['kkb_section']) : ($this->section = $this->section);
     isset($_POST['srchtype']) ? $this->srctype = sanitize_text_field($_POST['srchtype']) : ($this->srctype = null);
     isset($_GET['srchtype']) && empty($this->srctype) ? $this->srctype = sanitize_text_field($_GET['srchtype']) : ($this->srctype = $this->srctype);
     if ($this->keyword || $this->section) {
         $data['kkb_search_keyword'] = $this->keyword;
         $data['kkb_search_section'] = $this->section;
         $data['kkb_search_type'] = $this->srctype;
         $this->totalCount = parent::getSearch($board_id, $data, $this->page, 'count');
         $this->pageCount = parent::searchCount($board_id, $data, $this->page);
     } else {
         $this->totalCount = parent::getCount($board_id, 'basic');
         $this->pageCount = parent::pageCount($board_id);
     }
 }
<?php

$entry_id = $board_id;
$controller = new kkbList();
get_post_meta($entry_id, 'kingkongboard_secret') ? $secret = __('비밀글 설정됨', 'kingkongboard') : ($secret = __('일반글', 'kingkongboard'));
$controller->getMeta($entry_id, 'type') == 1 ? $type = __('공지글', 'kingkongboard') : ($type = __('일반 게시글', 'kingkongboard'));
$controller->getMeta($entry_id, 'login_id') != 0 ? $user_type = __('회원', 'kingkongboard') : ($user_type = __('비회원', 'kingkongboard'));
?>
  <div class="head-area">
    <div style="float:left; position:relative; top:10px; margin-right:10px">
      <a href="?page=KingkongBoard"><img src="<?php 
echo KINGKONGBOARD_PLUGINS_URL;
?>
/assets/images/logo-kingkongboard.png" style="width:220px; height:auto"></a>
    </div>
    <div style="float:left; font-size:18px; margin-top:14px; margin-left:20px"><?php 
echo get_the_title($entry_id);
?>
</div>
    <div style="float:right; position:relative; top:8px">
      <a href="#" class="button">Help</a>
    </div>
  </div>
  <div class="notice-toolbox-wrapper"></div>
  <div class="kkb-entry-wrapper">
    <table class="wp-list-table kkb-entry-view-table widefat fixed unite_table_items" style="padding:10px 10px">
      <tr>
        <th width="150"><?php 
echo __('제목', 'kingkongboard');
?>
</th>
/assets/images/icon-facebook.png" style="height:34px; width:auto" class="superrocket-logo" alt="facebook"></a>
      <a href="https://instagram.com/superrocketer/" target="_blank"><img src="<?php 
echo KINGKONGBOARD_PLUGINS_URL;
?>
/assets/images/icon-instagram.png" style="height:34px; width:auto" class="superrocket-logo" alt="instagram"></a>
    </div>
  </div>
  <div class="content-area">
    <div style="padding:20px 10px">
      <div style="float:left; position:relative; top:0px; margin-right:10px">"킹콩마트가 오픈하였습니다. 보다 다양한 스킨과 익스텐션을 경험하세요! "</div> <a href="?page=srshop" class="button-kkb kkbred">킹콩마트 둘러보기</a>
    </div>
  </div>
  <div class="notice-toolbox-wrapper"></div>
  <div class="kkb-entry-wrapper">
<?php 
$KKB_List = new kkbList();
$config = new kkbConfig();
$config = $config->getBoard($board_id);
$entries = apply_filters('admin_kingkong_board_entry_columns', 'admin_kingkong_board_entry_columns', $entry = null, $board_id);
?>
    <input type="hidden" class="board_id" value="<?php 
echo $board_id;
?>
">
    <div style="float:left; padding-bottom:5px"><select class="kkb-input entry_filter_select" style="max-width:300px"><option><?php 
echo __('일괄작업', 'kingkongboard');
?>
</option><option value="remove-all"><?php 
echo __('선택된 게시글을 모두 삭제합니다.', 'kingkongboard');
?>
</option></select> <a class="button-kkb kkbblue proc-entry-all-remove"><?php 
Exemplo n.º 4
0
        echo $entry['value'];
        ?>
"><span><label><?php 
        echo apply_filters('kkb_loop_header_text', $entry['label'], $entry);
        ?>
</label></span></th>
<?php 
    }
}
?>
      </tr>
    </thead>
<?php 
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) {
    ?>