본문으로 건너뛰기

해외 상점 도메인 정보 표시 개선.

PHP 8 · GODO25
변경 파일 수: 4개
변경 파일 목록
총 4개
변경 파일 코드
추가삭제
Admin/policy/base_seo.php+1-1
변경 전base_seo.php
<tr>
<th>모바일 쇼핑몰</th>
<td class="form-inline">
<?php echo URI_MOBILE;?><input type="text" name="errPage[mobile]" value="<?php echo $data['errPage']['mobile']; ?>" class="form-control width-lg"/>
</td>
</tr>
</table>
 
변경 후base_seo.php
<tr>
<th>모바일 쇼핑몰</th>
<td class="form-inline">
<?=$data['mallMobileDomain'] ?? URI_MOBILE?><input type="text" name="errPage[mobile]" value="<?php echo $data['errPage']['mobile']; ?>" class="form-control width-lg"/>
</td>
</tr>
</table>
 
Component/Mall/Mall.php-1
변경 전Mall.php
const GLOBAL_MALL_BASE_INFO = [
'mallNmEng',
'mallFavicon',
'mallDomain',
'mallCategory',
'businessNo',
'service',
 
변경 후Mall.php
const GLOBAL_MALL_BASE_INFO = [
'mallNmEng',
'mallFavicon',
 
'mallCategory',
'businessNo',
'service',
 
Controller/Admin/Policy/BaseInfoController.php+9
변경 전BaseInfoController.php
if (gd_in_array($key, Mall::GLOBAL_MALL_BASE_INFO) === true) $data[$key] = $value;
}
 
 
 
 
 
 
 
 
 
 
$this->setData('disabled', self::ELEMENT_DISABLED);
$this->setData('readonly', self::ELEMENT_READONLY);
}
 
변경 후BaseInfoController.php
if (gd_in_array($key, Mall::GLOBAL_MALL_BASE_INFO) === true) $data[$key] = $value;
}
 
//설정한 shopDomain 있으면 덮어쓰기
if (!empty($globalsInfo[$mallSno]['connectDomain'])) {
$globalShopDomains = json_decode($globalsInfo[$mallSno]['connectDomain'], true);
$domainIndex = $globalsInfo[$mallSno]['useShopDomain'] ?? null;
if (isset($globalShopDomains['connect'][$domainIndex])) {
$data['mallDomain'] = $globalShopDomains['connect'][$domainIndex];
}
}
 
$this->setData('disabled', self::ELEMENT_DISABLED);
$this->setData('readonly', self::ELEMENT_READONLY);
}
 
Controller/Admin/Policy/BaseSeoController.php+10
변경 전BaseSeoController.php
$socialData = $socialShare->getConfig();
gd_isset($socialData['snsRepresentTitle'],'{=gMall.mallNm}');
 
 
 
 
 
 
 
 
 
 
//RSS 설정 ,페이지 경로 설정 , 대표URL 설정 , 연관채널 설정
$seoData = gd_policy('basic.seo', $mallSno);
 
변경 후BaseSeoController.php
$socialData = $socialShare->getConfig();
gd_isset($socialData['snsRepresentTitle'],'{=gMall.mallNm}');
//설정한 shopDomain 있으면 덮어쓰기
$globalsInfo = \Globals::get('gGlobal.mallList');
if (!empty($globalsInfo[$mallSno]['connectDomain'])) {
$globalShopDomains = json_decode($globalsInfo[$mallSno]['connectDomain'], true);
$domainIndex = $globalsInfo[$mallSno]['useShopDomain'] ?? null;
if (isset($globalShopDomains['connect'][$domainIndex])) {
$data['mallDomain'] = $globalShopDomains['connect'][$domainIndex];
$data['mallMobileDomain'] = \Request::getDomainUrl(DOMAIN_USEABLE_LIST['mobile'] . '.' . $globalShopDomains['connect'][$domainIndex]) . DS;
}
}
//RSS 설정 ,페이지 경로 설정 , 대표URL 설정 , 연관채널 설정
$seoData = gd_policy('basic.seo', $mallSno);