채택완료

content.skin의 헤더 파일의 위치

2021-06-25 (금) 21:36:16 2,039

theme/basic/skin/content/basic/content.skin.php의 헤더는 어떤 파일에 위치해있나요??

Copy
<?php

if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

 

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

add_stylesheet('<link rel="stylesheet" href="'.$content_skin_url.'/style.css">', 0);

?>

 

<article id="ctt" class="ctt_<?php echo $co_id; ?>">

<header>

<h1><?php echo $g5['title']; ?></h1>

</header>

 

<div id="ctt_con">

<?php echo $str; ?>

</div>

 

</article>
|

답변 1개

채택된 답변
+20 포인트

모든 페이지들은 공통으로 그누보드 기본 헤더 파일을 사용합니다.

테마를 사용 중이라면 테마 폴더에 있는 head.php 파일이겠죠.

bbs/content.php 파일을 살펴보면 헤더 설정이 이렇게 되어 있습니다.

if ($co['co_include_head'] && is_include_path_check($co['co_include_head']))
    @include_once($co['co_include_head']);
else
    include_once('./_head.php');

별도의 헤더 파일을 사용하고 싶으면 게시판처럼 내용 관리 페이지 하단에 있는

상단 파일 경로를 이용하면 됩니다.

답변을 작성하려면 로그인이 필요합니다.