Season2 // 인덱스369 // col-md-12 관리 (3열 게시판)
## /theme/basic/index.php
[code]
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_INDEX_')) define('_INDEX_', true);
if (_INDEX_==1) {
$is_index = 1;
}
include_once(G5_THEME_PATH.'/head.php');
?>
view.php <br>
list.php <br>
<?php
include_once(G5_THEME_PATH.'/tail.php');
[/code]
## /theme/basic/head.php
[code]
<!-- 인덱스369 :: 아래는 header.php -->
<?php
if ($is_index==1||$bo_table=='controlpanel') {
$layoutnumber = 12;
} elseif($bo_table) {
$layoutnumber = 3;
} else {
$layoutnumber = 9;
}
// Arrage Categories.
$sideCate = ['gallery', 'jobs', 'business', 'realty', 'market', 'free'];
foreach ($sideCate as $key => $value) {
if ($value==$bo_table) {
$sideCate[$key]='';
}
}
$sideCate = array_filter($sideCate);
$sideCate = array_values($sideCate);
?>
<!-- 콘텐츠 시작 { -->
<div id="wrapper">
<div id="container_wr">
<!-- 메인화면 최신글 시작 -->
<div class="responsive is-pc">
<div id="nt_body" class="nt-body">
<div class="nt-container">
<div class="row nt-row">
<div class="col-md-12 nt-col header">
<a href="<?=G5_URL ?>">
<img src="<?=G5_IMG_URL ?>/logo.png" alt="<?=$config['cf_title']; ?>">
</a>
<br>
<a href="<?=G5_BBS_URL ?>/faq.php">FAQ</a>
<a href="<?=G5_BBS_URL ?>/qalist.php">Q&A</a>
<a href="<?=G5_BBS_URL ?>/new.php">새글</a>
<?php if ($is_member) { ?>
<a href="<?=G5_BBS_URL ?>/member_confirm.php?url=<?=G5_BBS_URL ?>/register_form.php">정보수정</a>
<a href="<?=G5_BBS_URL ?>/logout.php">로그아웃</a>
<?php if ($is_admin) { ?>
<li class="tnb_admin"><a href="<?=correct_goto_url(G5_ADMIN_URL); ?>">관리자</a>
<?php } ?>
<?php } else { ?>
<a href="<?=G5_BBS_URL ?>/register.php">회원가입</a>
<a href="<?=G5_BBS_URL ?>/login.php">로그인</a>
<?php } ?>
header.php // <a href="http://localhost/xxxxxxx/bbs/board.php?bo_table=free"> Free </a>
</div>
</div>
<div class="row nt-row">
<?php if ($layoutnumber==3): ?>
<div class="col-md-3 nt-col bgWhite">
<?php if (isset($_GET['wr_id'])): ?>
<?php include_once('list.php') ?>
<?php else: ?>
<?=latest('theme/basic', 'free', 11, 70, 1, false); ?>
<br>
<?=latest('theme/basic', 'free', 11, 70, 1, false); ?>
<?php endif ?>
</div>
<div class="col-md-6 nt-col">
<?php elseif($layoutnumber==9): ?>
<div class="col-md-9 nt-col">
<?php else: ?>
<div class="col-md-12 nt-col">
<?php endif ?>
<!-- 인덱스369 :: 위는 header.php // 아래는 index.php -->
<?php
if (!defined('_INDEX_')) define('_INDEX_', true);
if (_INDEX_==1) {
$is_index = 1;
}
$layoutnumber = 9;
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_THEME_PATH.'/head.php');
?>
view.php <br>
list.php <br>
<!-- 인덱스369 :: 위는 index.php // 아래는 tails.php -->
</div>
</div>
<?php if ($layoutnumber==3||$layoutnumber==9): ?>
<div class="col-md-3 nt-col">
<?=outlogin('theme/basic'); ?>
</div>
<div class="col-md-3 nt-col">
<?=latest('theme/basic', 'free', 1, 25); ?>
</div>
<div class="col-md-3 nt-col">
<?=latest('theme/basic', 'gallery', 11, 70, 1, false); ?>
</div>
<div class="col-md-3 nt-col">
<?=latest('theme/pic_list', 'free', 11, 70, 1, false); ?>
</div>
<?php endif ?>
<div class="row nt-row">
<div class="col-md-12 nt-col">
$layoutnumber: <?=$layoutnumber; // eeee ?> <br><br>
<?php echo __INDEX__; // eeee ?> <br><br>
footer <br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- } 콘텐츠 끝 -->
[/code]
/bbs/write.php #270
[code]
$category_optionn = get_category_option($bo_table, $ca_name); // 리스트랑 같이 넣으면 함수명 중복되어 이름변형.
[/code]
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2575 | 9개월 전 | 549 | ||
| 2574 | 9개월 전 | 924 | ||
| 2573 |
두리삼촌v
|
9개월 전 | 597 | |
| 2572 | 9개월 전 | 545 | ||
| 2571 | 9개월 전 | 590 | ||
| 2570 |
두리삼촌v
|
9개월 전 | 627 | |
| 2569 |
두리삼촌v
|
9개월 전 | 656 | |
| 2568 |
두리삼촌v
|
9개월 전 | 451 | |
| 2567 |
두리삼촌v
|
9개월 전 | 433 | |
| 2566 | 9개월 전 | 729 | ||
| 2565 | 9개월 전 | 656 | ||
| 2564 | 9개월 전 | 463 | ||
| 2563 | 10개월 전 | 1017 | ||
| 2562 |
|
10개월 전 | 666 | |
| 2561 | 10개월 전 | 908 | ||
| 2560 | 10개월 전 | 645 | ||
| 2559 |
|
10개월 전 | 495 | |
| 2558 | 10개월 전 | 648 | ||
| 2557 | 10개월 전 | 944 | ||
| 2556 | 10개월 전 | 1323 | ||
| 2555 | 10개월 전 | 740 | ||
| 2554 |
|
10개월 전 | 735 | |
| 2553 | 10개월 전 | 663 | ||
| 2552 | 10개월 전 | 854 | ||
| 2551 | 10개월 전 | 753 | ||
| 2550 |
|
10개월 전 | 707 | |
| 2549 | 10개월 전 | 1015 | ||
| 2548 | 10개월 전 | 660 | ||
| 2547 | 10개월 전 | 1192 | ||
| 2546 | 10개월 전 | 651 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기