[이윰] 특정 페이지에 다른 헤더 적용하기
페이지 정보
루루아빠
3,106
2017.10.16 12:01:09
짧은주소
-
https://yadolee.com/tip/493 주소복사
본문
특정 페이지에 다른 헤더 적용하기
1. 그누보드5/eyoom/head.php 파일을 수정한다.
특정 페이지 파일의 이름을 test라고 가정
수정 전
특정 페이지 파일의 이름을 test라고 가정
수정 전
// 템플릿에 변수 할당
@include EYOOM_INC_PATH.'/tpl.assign.php';
// 템플릿 출력
$tpl_head = 'head_' . $tpl_name;
$tpl->print_($tpl_head);
수정 후
// 템플릿에 변수 할당
@include EYOOM_INC_PATH.'/tpl.assign.php';
// 템플릿 출력
$tpl_head = 'head_' . $tpl_name;
if ($pid == 'test') {
// 템플릿 파일 정의
$tpl->define(array(
'head_pc' => 'layout/head_test_pc.html',
'head_mo' => 'layout/head_test_mo.html',
'head_bs' => 'layout/head_test_bs.html',
));
}
$tpl->print_($tpl_head);
2. 그누보드5/eyoom/theme/테마명/layout/head_test_bs.html 파일을 추가한다.출처 : 이윰넷
추천인
레벨 101
경험치 1,519,440
Progress Bar 14.66%
- 가입일 : 2015-03-04 03:24:54
- 서명 : KNOW YOUR LIMITS
BUT NEVER STOP TRYING TO EXCEED THEM !!
- 자기소개 : 루루의 자랑
루루아빠랍니다~~
최신댓글이 없습니다.


댓글
첫 번째 댓글을 남겨 주세요