상위메뉴와 하위메뉴를 함께 Page Title 표기하기


2018-10-19 19:19
30,589
2
2
본문
아래 그림에 보인 바와 같이 메뉴 레벨 1 즉 상위메뉴를 하위메뉴와 함께 표기할 필요가 있으신 분들은 참고하세요.
/theme/eb4_basic/head.html.php의 350번째 줄 정도에서 _EYOOM_MYPAGE_를 찾아서 아래 git diff의 내용과 같이 변경하면 됩니다. 향후 패치버전이 새롭게 나오더라도 영향을 최소화하기 위하여 가급적 그누보드와 이윰빌더의 Core Class들을 수정하지 않고 eb4_basic 테마에 있는 파일만을 변경하였습니다.
FROM:
<?php if (!defined('_EYOOM_MYPAGE_')) { ?> <h2 class="pull-left"> <?php if (!$it_id) { ?> <i class="fas fa-map-marker-alt"></i> <?php echo $subinfo['title']; ?> <?php } else { ?> <span class="font-size-14"><i class="fas fa-map-marker-alt"></i> <?php echo $subinfo['title']; ?></span> <?php } ?> </h2> |
TO:
<?php if (!defined('_EYOOM_MYPAGE_')) { ?> <h2 class="pull-left"> <?php if ($subinfo['subtitle']==="게시판") { $sqlQuery = "SELECT gr.gr_subject FROM ".$g5['group_table']." AS gr LEFT JOIN ".$g5['board_table']." AS bid ON bid.gr_id = gr.gr_id WHERE bid.bo_table = '".$_REQUEST['bo_table']."';"; $row = sql_fetch($sqlQuery); $menu_level1 = $row['gr_subject']; $menu_level2 = $subinfo['title']; $subinfo['cate2'] = "999"; } else { $menu_level1 = $subinfo['subtitle']; $menu_level2 = $subinfo['title']; } ?> <?php if (!$it_id) { ?> <i class="fas fa-map-marker-alt"></i> <?php echo ($subinfo['cate2']) ? $menu_level1." | ".$menu_level2 : $menu_level1; ?> <?php } else { ?> <span class="font-size-14"><i class="fas fa-map-marker-alt"></i> <?php echo ($subinfo['cate2']) ? $menu_level1." | ".$menu_level2 : $menu_level1; ?></span> <?php } ?> </h2> |
Code Snippet 기능이 제대로 작동 안되어서 그냥 테이블로 넣었습니다. ^ ^;;


포인트 210
경험치 989
[레벨 3] - 진행률
65%
가입일
2018-10-16 07:26:31
서명
미입력
자기소개
Web Application Programmer with PHP and ASP
- CodeIgniter, Laravel, Joomla, WordPress
- ASP/C# .NET, .NET Core
최신글이 없습니다.
최신글이 없습니다.
댓글목록2
닭발은세개님의 댓글
축하합니다. 첫댓글 포인트 38포인트를 획득하였습니다.
studyhaza님의 댓글