테스트 사이트 - 개발 중인 베타 버전입니다

아마니빌더를 사용하고 있는데 PC헤드파일과 모바일상단파일경로를 따로 불러오고 싶은데 어떻게 하면될가요? 채택완료

붕가붕가붕가 5년 전 조회 1,817

if(!defined('THEMA_PATH')) {     include_once(G5_LIB_PATH.'/apms.thema.lib.php'); }

if(USE_G5_THEME && defined('G5_THEME_PATH')) {     require_once(G5_THEME_PATH.'/head.php');     return; }

//Change Mode $as_href['pc_mobile'] = (G5_DEVICE_BUTTON_DISPLAY) ? get_device_change_url() : '';

// Page Iframe Modal if(APMS_PIM || $is_layout_sub) {     include_once(G5_PATH.'/head.sub.php');     @include_once(THEMA_PATH.'/head.sub.php');     return; }

// Head Sub include_once(G5_PATH.'/head.sub.php'); include_once(G5_LIB_PATH.'/latest.lib.php');

// Thema Preview if($is_designer) {     if (defined('THEMA_PREVIEW')) {         echo '

';     } }

$page_title = apms_fa($page_title); $page_desc = apms_fa($page_desc);

$menu = apms_auto_menu(); $menu = apms_multi_menu($menu, $at['id'], $at['multi']);

if($is_member) thema_member();

//Statistics $stats = apms_stats();

if($is_main && !$hid && !$gid ) {     $newwin_path = (G5_IS_MOBILE) ? G5_MOBILE_PATH : G5_BBS_PATH;     @include_once ($newwin_path.'/newwin.inc.php'); // 팝업레이어 }

if(IS_YC) {     if(IS_SHOP) {         if(file_exists(THEMA_PATH.'/shop.head.php')) {             include_once(THEMA_PATH.'/shop.head.php');         } else {             include_once(THEMA_PATH.'/head.php');         }     } else {         if(file_exists(THEMA_PATH.'/head.php')) {             include_once(THEMA_PATH.'/head.php');         } else {             include_once(THEMA_PATH.'/shop.head.php');         }     }     } else {     include_once(THEMA_PATH.'/head.php'); }

?>  

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

답변 2개

채택된 답변
+20 포인트
5년 전

if(IS_YC) {     if(IS_SHOP) {         if(file_exists(THEMA_PATH.'/shop.head.php')) {             include_once(THEMA_PATH.'/shop.head.php');         } else {             include_once(THEMA_PATH.'/head.php');         }     } else {         if(file_exists(THEMA_PATH.'/head.php')) {             include_once(THEMA_PATH.'/head.php');         } else {             include_once(THEMA_PATH.'/shop.head.php');         }     }     }

 

=>

 

if(IS_YC) {     if(IS_SHOP) {         if(file_exists(THEMA_PATH.'/shop.head.php')) {             include_once(THEMA_PATH.'/shop.head.php');         } else {             include_once(THEMA_PATH.'/head.php');         }     } else {         if(file_exists(THEMA_PATH.'/head.php')) {             if (G5_IS_MOBILE)               include_once(THEMA_PATH.'/head.mobile.php');             else               include_once(THEMA_PATH.'/head.php');         } else {             include_once(THEMA_PATH.'/shop.head.php');         }     }     }

로그인 후 평가할 수 있습니다

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

https://sir.kr/bbs/profile.php?mb_id=marscompany" onclick="return false;" rel="nofollow" target="_blank" title="마르스컴퍼니 자기소개">마르스컴퍼니님  무지무지 감사합니다. 해결된것 같습니다.헤드파일에 우측부분을 넣어서 모바일에서는 피씨의 우측이 나오지말아야 하는데 나오더라구요.다른 방법으로 해결은 햇습니다만 감사드립니다.많은 참고 되였습니다.

로그인 후 평가할 수 있습니다

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

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

로그인