카테고리 가로에서 세로로, 사이드바로 옮기기
본문
본문 게시판 위에 있는 카테고리를 사이드바로 복사하려고 하는데요,
어떻게 해야하나요?
가로에서 세로 형태가 중요하지만
일단 사이드바에서 카테고리를 볼 수가 없습니다.
먼저 사이드바에서 카테고리가 보였으면 좋겠습니다.
// list.skin.php
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
// 스킨설정
$is_skin_setup = (($is_admin == 'super' || IS_DEMO) && is_file($board_skin_path.'/setup.skin.php')) ? true : false;
// 목록 헤드
// 글 이동
// 글 수
<!-- 게시판 목록 시작 { -->
<div id="bo_list_wrap" class="mb-4">
<?php
// 게시판 카테고리
if ($is_category)
include_once($board_skin_path.'/category.skin.php');
?>
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="sw" value="">
<!-- 게시판 페이지 정보 및 버튼 시작 { -->
// 사이드 바 코드
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 페이지에서는 사이드 메뉴 출력
echo na_widget('sidemenu');
?>
<!-- 위젯 시작 { -->
<div class="h3 f-lg en">
<?php
// 게시판 카테고리
if ($is_category)
include_once('https:ttucca.cafe24.com//co/skin/board/BS4-Basic-List/category.skin.php');
?>
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<div><input type="hidden" name="sfl" value="<?php echo $sfl ?>"></div>
<div><input type="hidden" name="stx" value="<?php echo $stx ?>"></div>
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="sw" value="">
</form>
</div>
list.skin.php 경로
side.php경로
참고로 카테고리를 정렬하는 스크립터는 카테고리 파일 속에 있는
아래 코드인가요.
// Category.ckin.php
<script>
$(document).ready(function() {
$('#bo_cate .sly-wrap').sly({
horizontal: 1,
itemNav: 'basic',
smart: 1,
mouseDragging: 1,
touchDragging: 1,
releaseSwing: 1,
startAt: <?php echo $ca_select ?>,
speed: 300,
prevPage: '#bo_cate .ca-prev',
nextPage: '#bo_cate .ca-next'
});
// Sly Tab
var cate_id = 'bo_cate';
var cate_size = na_sly_size(cate_id);
na_sly(cate_id, cate_size);
$(window).resize(function(e) {
na_sly(cate_id, cate_size);
});
});
</script>
답변 2
그누에서 쓰는 보통 카테고리는 ;;;;
<?php if ($is_category) { ?>
<nav id="bo_cate">
<h2><?php echo $board['bo_subject'] ?> 카테고리</h2>
<ul id="bo_cate_ul">
<?php echo $category_option ?>
</ul>
</nav>
<?php } ?>
이것아닌가요?;; 이걸 넣고자 하는건가요?
그러고보니 많이 늦은 시간인데요,
시간이 이렇게 된 줄도 몰랐습니다.
감사합니다.