그램 보드 메인 탭 수정
본문
그램보드의 메인화면입니다.
최신글이 세개의 탭으로 구성되어있는데,
그냥 Gallery 한개만 최신글을 보고 싶은데,
초보라 수정이 어렵네요.
현재는 그냥 <button role="tab"... 으로 된거 두개를 주석처리 하고 쓰는데,
그렇게 하니, 탭 제목이 나오네요.
어떤식으로 수정해야 할까요?
<div class="gal_tab tabs" style="width:100%;">
<div id="tab_top">
<div class="pic_tab_heading" role="tablist" aria-label="Entertainment">
<button role="tab" aria-selected="true" aria-controls="nils-tab" id="nils">Gallery</button>
<button role="tab" aria-selected="false" aria-controls="agnes-tab" id="agnes" tabindex="-1">Topic</button>
<button role="tab" aria-selected="false" aria-controls="ctc-tab" id="contact" tabindex="-2">Contact</button>
</div>
</div>
<!-- 메인 최신글 시작 -->
<div id="tab_bottom">
<div tabindex="0" role="tabpanel" id="nils-tab" aria-labelledby="nils" class="tab_list">
<!-- gallery 시작 { -->
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/pic_basic', 'gallery', 9, 23);
?>
<!-- } 탭 갤러리 최신글1 끝 -->
</div>
<div tabindex="0" role="tabpanel" id="agnes-tab" aria-labelledby="agnes" hidden="" class="tab_list">
<!-- gallery 시작 { -->
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/basic', 'free', 6, 23);
?>
<!-- } topic 끝 -->
</div>
<div tabindex="0" role="tabpanel" id="ctc-tab" aria-labelledby="ctc-tab" hidden="" class="tab_list">
<!-- contact 시작 { -->
<div id="contact_from">
<form name="fcontact" action="<?php echo G5_THEME_URL; ?>/contact_send.php" method="post" onsubmit="return fcontact_submit(this);">
<ul>
<li>
<label for="con_name">이름</label>
<input type="text" name="con_name" id="con_name" required class="frm_input required" minlength="2" maxlength="100" placeholder=" 보내실 분의 이름을 입력해 주세요.">
</li>
<li>
<label for="con_name">이메일</label>
<input type="text" name="con_email" id="con_email" required class="frm_input required email" maxlength="100" placeholder=" 보내실 분의 이메일을 입력해 주세요.">
</li>
<li>
<label for="con_tel">연락처</label>
<input type="text" name="con_tel" id="con_tel" required class="frm_input required telnum" maxlength="20" placeholder=" 예) *** 개인정보보호를 위한 휴대폰번호 노출방지 ***">
</li>
<li>
<label for="con_message">메시지</label>
<textarea name="con_message" rows="10" cols="100%" id="con_message" title="내용쓰기" required class="required" placeholder=" 내용을 입력해주세요."></textarea>
</li>
<li class="captcha">
<?php echo captcha_html(); ?>
</li>
</ul>
<button type="submit" id="btn_submit" class="btn_submit">보내기</button>
</form>
</div>
<!-- } contact 끝 -->
</div>
</div>
<!-- 메인 최신글 끝 -->
</div>
답변 1
<div class="gal_tab tabs" style="width:100%;">
<div id="tab_top">
<div class="pic_tab_heading" role="tablist" aria-label="Entertainment">
<button role="tab" aria-selected="true" aria-controls="nils-tab" id="nils">Gallery</button>
</div>
</div>
<!-- 메인 최신글 시작 -->
<div id="tab_bottom">
<div tabindex="0" class="tab_list">
<!-- gallery 시작 { -->
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/pic_basic', 'gallery', 9, 23);
?>
<!-- } 탭 갤러리 최신글1 끝 -->
</div>
</div>
<!-- 메인 최신글 끝 -->
</div>
이렇게 다 지우셔야 하지 않을까요?
!-->
답변을 작성하시기 전에 로그인 해주세요.