Skip to content

Commit

Permalink
ST 베이직 테마 및 레이아웃 안정화
Browse files Browse the repository at this point in the history
- 메인 페이지 레이아웃 고도화 (컨테이너(.container) 없음 + 전체 폭 관련)
- 푸터코드 정리
- 쓸데없는 파일 제거
  • Loading branch information
maxdev-jh committed Sep 20, 2016
1 parent f3175ce commit 710becd
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 16 deletions.
6 changes: 3 additions & 3 deletions theme/st-basic/_inc/footer.php
Expand Up @@ -48,9 +48,9 @@
</div>
<div class="col-md-3 links">
<hr class="visible-sm-block visible-xs-block">
· <a href="<?=G5_BBS_URL?>/content.php?co_id=sitemap">사이트맵</a><br>
· <a href="<?=G5_BBS_URL?>/content.php?co_id=point">포인트정책</a><br>
· <a href="<?=G5_BBS_URL?>/content.php?co_id=location">찾아오시는길</a><br>
· <a href="#">사이트맵</a><br>
· <a href="#">포인트정책</a><br>
· <a href="#">찾아오시는길</a><br>
</div>
</div>
</div>
Expand Down
21 changes: 17 additions & 4 deletions theme/st-basic/_inc/main.php
@@ -1,12 +1,17 @@
<?php if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가?>
<?php if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

// 메인 페이지 레이아웃이 컨테이너(.container) 없음 + 전체 폭 일 때, 콘텐츠 영역에 .contaner 임의 적용여부 판단
// - 아래의 게시판 위젯 코드는 예제이며, 실제 메인페이지를 구현할 때 참고하세요.
$is_needs_container = (!$ST->theme->get('st_layout_main'))? true: false;
?>

<section>

<section<?=$is_needs_container? ' class="container"': ''?>>
<?php
// 최신글
$sql = " select bo_table
from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id)
where a.bo_device <> 'mobile' ";
where a.bo_device <> '".(is_mobile()? 'pc': 'mobile')."' ";
if(!$is_admin)
$sql .= " and a.bo_use_cert = '' ";
$sql .= " order by b.gr_order, a.bo_order ";
Expand All @@ -19,4 +24,12 @@
</div>
<?php } ?>
</div>
</section>
</section>


<section>
<p>
내 홈페이지를 위한 메인 페이지를 꾸며보세요.<br>
/theme/st-basic/_inc/main.php 파일을 직접 편집하시면 됩니다.
</p>
</section>
5 changes: 4 additions & 1 deletion theme/st-basic/_inc/slider.php
@@ -1,7 +1,7 @@
<?php if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가?>


<?php
<?php
$st_slider_use = $ST->theme->get('st_slider_use');

if( $st_slider_use == 1 or (!is_mobile() and $st_slider_use==2) or (is_mobile() and $st_slider_use==3) ) {
Expand All @@ -26,6 +26,9 @@
padding-bottom: 0;
}
}
<?php if( defined('_INDEX_') and !$ST->theme->get('st_layout_main') ) { // 메인 페이지 레이아웃이 컨테이너(.container) 없음 + 전체 폭 일 때, Navbar 와의 공간 제거?>
#st-body .carousel-wrapper { margin-top: -20px; }
<?php } ?>
</style>

<section class="carousel-wrapper">
Expand Down
Binary file removed theme/st-basic/_res/_logo_m.png
Binary file not shown.
Binary file removed theme/st-basic/_res/_logo_pc.png
Binary file not shown.
Binary file removed theme/st-basic/_res/logo-pc.psd
Binary file not shown.
14 changes: 7 additions & 7 deletions theme/st-basic/index.php
Expand Up @@ -15,27 +15,27 @@
<div class="content">
<?php include (is_mobile()? G5_MOBILE_PATH: G5_BBS_PATH).'/newwin.inc.php'; // 팝업레이어 (index에서만 실행)?>

<?php include_once G5_THEME_PATH.'/_inc/slider.php'?>
<?php include_once G5_THEME_PATH.'/_inc/main.php'?>
<?php include_once G5_THEME_PATH.'/_inc/slider.php'; // 슬라이더?>
<?php include_once G5_THEME_PATH.'/_inc/main.php'; // 메인 페이지?>
</div>
<?php } elseif( $st_layout_main==1 ) { ?>
<div class="container content">
<?php include (is_mobile()? G5_MOBILE_PATH: G5_BBS_PATH).'/newwin.inc.php'; // 팝업레이어 (index에서만 실행)?>

<?php include_once G5_THEME_PATH.'/_inc/slider.php'?>
<?php include_once G5_THEME_PATH.'/_inc/main.php'?>
<?php include_once G5_THEME_PATH.'/_inc/slider.php'; // 슬라이더?>
<?php include_once G5_THEME_PATH.'/_inc/main.php'; // 메인 페이지?>
</div>
<?php } else { ?>
<div class="container content">
<?php include (is_mobile()? G5_MOBILE_PATH: G5_BBS_PATH).'/newwin.inc.php'; // 팝업레이어 (index에서만 실행)?>

<div class="row">
<div class="col-md-9<?=$st_layout_main==2? ' col-md-push-3': ''?>">
<?php include_once G5_THEME_PATH.'/_inc/slider.php'?>
<?php include_once G5_THEME_PATH.'/_inc/main.php'?>
<?php include_once G5_THEME_PATH.'/_inc/slider.php'; // 슬라이더?>
<?php include_once G5_THEME_PATH.'/_inc/main.php'; // 메인 페이지?>
</div>
<div class="col-md-3<?=$st_layout_main==2? ' col-md-pull-9': ''?>">
<?php include_once G5_THEME_PATH.'/_inc/sidebar.php'?>
<?php include_once G5_THEME_PATH.'/_inc/sidebar.php'; // 사이드바?>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion theme/st-basic/tail.php
Expand Up @@ -17,7 +17,7 @@
<?php } else { ?>
</div><!--/.col-* for content -->
<div class="col-md-3<?=$st_layout_sub==2? ' col-md-pull-9': ''?>">
<?php include_once G5_THEME_PATH.'/_inc/sidebar.php'?>
<?php include_once G5_THEME_PATH.'/_inc/sidebar.php'; // 사이드바?>
</div>
</div><!--/.row -->
</div><!--/.container -->
Expand Down

0 comments on commit 710becd

Please sign in to comment.