[이윰] 특정 페이지에 다른 헤더 적용하기

페이지 정보

루루아빠 2,592 2017.10.16 12:01

평점

본문

특정 페이지에 다른 헤더 적용하기
1. 그누보드5/eyoom/head.php 파일을 수정한다.
특정 페이지 파일의 이름을 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 파일을 추가한다.

출처 : 이윰넷
추천인
  • 추천해 주세요
6
루루아빠 - 회원등급 : 최고관리자 - 포인트 : 1,290,689
레벨 96
경험치 1,388,800

Progress Bar 73%

- 가입일 : 2015-03-04 03:24:54
- 서명 : KNOW YOUR LIMITS BUT NEVER STOP TRYING TO EXCEED THEM !!
- 자기소개 : 루루의 자랑 루루아빠랍니다~~

댓글

첫 번째 댓글을 남겨 주세요