모바일 게시판의 상단의 게시판 제목에 링크 걸기 > Web Development

본문 바로가기
  • kb@lovelet.com
사이트 내 전체검색

RESOURCES Web Development

모바일 게시판의 상단의 게시판 제목에 링크 걸기

페이지 정보

본문

코드상으로는 스킨의 head.php 에서 <h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></h2> 이 부분인데요..

 

현재 접속 중인 게시판의 리스트 주소 "/bbs/board.php?bo_table=free"를 저 위 이미지의 붉은 박스에 있는 게시판 제목에 링크를 걸고 싶습니다.

 

왜 하필 게시판 스킨에 없고.. head.php에 있는지.. ㅠㅠ 코드를 만질 수 있는 상황이 아니여서 질문 올립니다.

 

혹시 주소를 호출할 수 있는 방법이 없을까요?


 head.php 에 아래와 같이 수정해주세요.

<?php

if ($bo_table != "") { //게시판인 경우

?>

<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table; ?>"><?php echo get_head_title($g5['title']); ?></a></h2>

<?php } else { ?>

<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></h2>

<?php } ?> 

Share Post:

댓글목록

등록된 댓글이 없습니다.

Sign In
OR
Don't have an account? SIGN UP

Keywords

Visits

접속자

Total Visits
1,886,243