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

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

QA

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

본문

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

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 '<div class="hidden-xs font-12" style="position:fixed; left:0; bottom:100px; z-index:1000;"><a class="btn_admin" href="'.G5_URL.'/?pv=1"><span class="white">미리보기 해제</span></a></div>';
    }
}

$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

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');
        }
    }    
}

마르스컴퍼니님  무지무지 감사합니다. 해결된것 같습니다.헤드파일에 우측부분을 넣어서 모바일에서는 피씨의 우측이 나오지말아야 하는데 나오더라구요.다른 방법으로 해결은 햇습니다만 감사드립니다.많은 참고 되였습니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 12
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT