Example #1
0
$back_args = apply_filters('kkb_read_arg_after', array(), $this->board_id);
$back_path = add_query_arg($back_args, get_the_permalink());
?>
    <a href="<?php 
echo $back_path;
?>
" class="<?php 
echo kkb_button_classer($this->board_id);
?>
 button-prev">
      <?php 
echo kkb_button_text($this->board_id, 'back');
?>
    </a> 
    <button type="button" class="<?php 
echo kkb_button_classer($this->board_id);
?>
 button-save" style="float:right">
      <?php 
echo kkb_button_text($this->board_id, 'save');
?>
    </button>
    <div style="float:right; margin-right:10px; position:relative; opacity:0" class="write-save-loading">
      <div style="float:left; margin-right:10px">
        <?php 
_e('저장중입니다.잠시만 기다려주세요.', 'kingkongboard');
?>
      </div>
      <div style="float:left">
        <img src="<?php 
echo KINGKONGBOARD_PLUGINS_URL;
Example #2
0
ob_start();
require_once KINGKONGBOARD_ABSPATH . '/includes/view.list.search.php';
$searchContent = ob_get_contents();
ob_end_clean();
ob_start();
require_once KINGKONGBOARD_ABSPATH . '/includes/view.list.section.php';
$sectionContent = ob_get_contents();
$sectionContent = apply_filters('kkb_list_top_sections', $sectionContent, $board_id);
ob_end_clean();
ob_start();
require_once KINGKONGBOARD_ABSPATH . '/includes/view.list.loop.php';
$loopContent = ob_get_contents();
ob_end_clean();
ob_start();
require_once KINGKONGBOARD_ABSPATH . 'includes/view.list.pagenation.php';
$pageContent = ob_get_contents();
ob_end_clean();
$loopContent = apply_filters('kkb_loop_after', $loopContent, $board_id, $nResults, $bResults);
$controllerClass = apply_filters('kkb_loop_controller_extra_class', null, $board_id);
$controllerContent = '<div class="kingkongboard-controller ' . $controllerClass . '">';
if (parent::actionPermission($board_id, null, 'write') == true) {
    $write_args = apply_filters('kkb_read_arg_after', array('view' => 'write'), $board_id);
    $write_path = add_query_arg($write_args, get_the_permalink($post->ID));
    $controllerContent .= $searchContent;
    $controllerContent .= '<a href="' . $write_path . '" class="' . kkb_button_classer($board_id) . ' write-button"><span class="kkb-list-icon kkblc-write" style="margin-right:5px"></span><span style="vertical-align:middle">' . kkb_button_text($board_id, 'write') . '</span></a>';
}
$controllerContent .= '</div>';
$copyContent = '<div class="kingkongboard-copyrights"><a href="http://superrocket.io" target="_blank">Powered by Kingkong Board</a></div>';
$display = $sectionContent . $loopContent . $controllerContent . $pageContent . $copyContent;
$kkbContent = apply_filters('kkb_loop_display', $display, $searchContent, $loopContent, $pageContent, $controllerContent, $copyContent, $board_id);
echo $kkbContent;
      <a href="<?php 
    echo $backPath;
    ?>
" class="<?php 
    echo kkb_button_classer($board_id);
    ?>
"><?php 
    _e('돌아가기', 'kingkongboard');
    ?>
</a>
<?php 
}
echo apply_filters('kkb_board_loop_search_box_before', null, $board_id);
?>
      <span class="btn-kkb-search <?php 
echo kkb_button_classer($board_id);
?>
">
        <button class="kkb-list-icon kkblc-search" style="text-indent:-100px; border:0; position:relative; top:-2px; z-index:2; outline:0; cursor:pointer"></button>
        <label class="btn-kkb-search-label"><?php 
_e('검색', 'kingkongboard');
?>
</label>
        <input type="text" name="kkb_keyword" class="kkb-keyword">
      </span>
      <span class="kkb-section-span">
        <select name="srchtype" class="styled">
          <option value="content"><?php 
_e('제목+내용', 'kingkongboard');
?>
</option>
}
?>
  </div>
  <div class="kingkongboard-controller-right">
<?php 
$modify_args = apply_filters('kkb_read_arg_after', array('pageid' => $pageid, 'view' => 'modify', 'id' => $entry_id), $this->board_id);
$delete_args = apply_filters('kkb_read_arg_after', array('pageid' => $pageid, 'view' => 'delete', 'id' => $entry_id), $this->board_id);
$modify_path = add_query_arg($modify_args, get_the_permalink());
$delete_path = add_query_arg($delete_args, get_the_permalink());
$Rbuttons = null;
if (parent::actionPermission($this->board_id, $entry_id, 'modify') == true) {
    $Rbuttons['modify'] = array('type' => 'modify', 'link' => $modify_path, 'class' => kkb_button_classer($this->board_id));
}
if (parent::actionPermission($this->board_id, $entry_id, 'delete') == true) {
    is_user_logged_in() ? $delete_class = ' kkb-entry-delete' : ($delete_class = null);
    $Rbuttons['delete'] = array('type' => 'delete', 'link' => $delete_path, 'class' => kkb_button_classer($this->board_id) . $delete_class);
}
$Rcontrollers = apply_filters('kkb_read_controller_right', $Rbuttons, $this->board_id);
if (is_array($Rcontrollers)) {
    foreach ($Rcontrollers as $key => $rcontroller) {
        if ($key == 'delete' && is_user_logged_in()) {
            ?>
        <a class="<?php 
            echo $rcontroller['class'];
            ?>
" data-id="<?php 
            echo $entry_id;
            ?>
" data-board="<?php 
            echo $this->board_id;
            ?>