나리야 사이트 설정 레이아웃확인용
작성자 정보
- 관리자 작성
- 작성일
본문
나리야 사이트설정시 레이아웃설정 레이아웃확인
1. /theme/BS4-Basic/adm/setup_form.php - 78Line 아래 코드 추가
jQuery("select.theme_layout").on("change", function() {
var theme_layout = jQuery(this).val();
if(theme_layout == 'ac') {
$('.wrapper').removeClass('boxed boxed-a m-lg-auto');
$('.wrapper').addClass('boxed boxed-a m-lg-auto');
} else if(theme_layout == 'bc') {
$('.wrapper').removeClass('boxed boxed-b m-lg-auto');
$('.wrapper').addClass('boxed boxed-b m-lg-auto');
} else {
$('.wrapper').removeClass('boxed boxed-a m-lg-auto');
$('.wrapper').removeClass('boxed boxed-b m-lg-auto');
$('.wrapper').addClass('wided');
}
});
2. select box 클레스(theme_layout) 추가
수정전
<select name="pc[layout]" class="custom-select">
<?php echo $sel_option ?>
<option value="w"<?php echo get_selected('w', $pc['layout']) ?>>와이드</option>
<option value="ac"<?php echo get_selected('ac', $pc['layout']) ?>>박스 A</option>
<option value="bc"<?php echo get_selected('bc', $pc['layout']) ?>>박스 B</option>
</select>
수정후
<select name="pc[layout]" class="custom-select theme_layout">
<?php echo $sel_option ?>
<option value="w"<?php echo get_selected('w', $pc['layout']) ?>>와이드</option>
<option value="ac"<?php echo get_selected('ac', $pc['layout']) ?>>박스 A</option>
<option value="bc"<?php echo get_selected('bc', $pc['layout']) ?>>박스 B</option>
</select> 관련자료
-
첨부
-
이전
-
다음
댓글 0개
등록된 댓글이 없습니다.
