forked from Waterticket/rx-module-hotopay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__header.html
52 lines (44 loc) · 3.71 KB
/
__header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<load target="css/config.css" />
<load target="js/config.js" />
{@
$is_rhymix2 = (defined('RX_VERSION') && version_compare(RX_VERSION, '2.0.0', '>='));
$validator = new HotopayLicenseValidator();
$isLicenseValid = $validator->validate($hotopay_config->hotopay_license_key);
}
<div class="x_page-header">
<h1>{$lang->cmd_hotopay} <!--@if($isLicenseValid)--><span style="color: rgb(247, 188, 38)">Pro</span><!--@endif--></h1>
</div>
<div class="message update" cond="$update_needed">
<p>HotoPay 모듈의 새로운 업데이트가 출시되었습니다! <a href="https://github.com/Waterticket/rx-module-hotopay/releases" target="_blank">다운로드</a> <a href="javascript:void(0);" onclick="document.cookie='ht_update_check=; Max-Age=-99999999;';alert('쿠키 삭제 완료!<br><br>새로고침해주세요~')">(업데이트 상태 갱신)</a></p>
</div>
<div class="message error" cond="version_compare(RX_VERSION, '2.1.2', '<')">
<p>라이믹스 버전이 2.1.2 이상이여야 합니다. 모듈이 정상 작동하지 않을 수 있습니다.</p>
</div>
<ul class="x_nav x_nav-tabs">
<li class="x_active"|cond="$act == 'dispHotopayAdminDashBoard'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispHotopayAdminDashBoard')}">대시보드</a></li>
<li class="x_active"|cond="$act == 'dispHotopayAdminConfig'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispHotopayAdminConfig')}">{$lang->cmd_hotopay_general_config}</a></li>
<li class="x_active"|cond="$act == 'dispHotopayAdminPaymentGatewayConfig'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispHotopayAdminPaymentGatewayConfig')}">PG 설정</a></li>
<li class="x_active"|cond="$act == 'dispHotopayAdminNotification'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispHotopayAdminNotification')}">알림 설정</a></li>
<li class="x_active"|cond="$act == 'dispHotopayAdminProductList' || $act == 'dispHotopayAdminInsertProduct'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispHotopayAdminProductList')}">상품 목록</a></li>
<li class="x_active"|cond="$act == 'dispHotopayAdminProductExtraInfoIndex'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispHotopayAdminProductExtraInfoIndex')}">추가입력폼 설정</a></li>
<li class="x_active"|cond="$act == 'dispHotopayAdminPurchaseList' || $act == 'dispHotopayAdminInsertPurchase'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispHotopayAdminPurchaseList')}">결제 목록</a></li>
<li class="x_active"|cond="$act == 'dispHotopayAdminSubscriptionIndex'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispHotopayAdminSubscriptionIndex')}">정기결제 목록</a></li>
<li class="x_active"|cond="$act == 'dispHotopayAdminBillingKeyIndex'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispHotopayAdminBillingKeyIndex')}">결제수단 목록</a></li>
</ul>
<!--@if(\Rhymix\Framework\Router::getRewriteLevel() != 2)-->
<div class="message error">
<p><b>[짧은 주소 사용]</b> 항목을 <b>[모든 주소 형태를 사용]</b>으로 변경해주세요. 서비스가 정상적으로 동작하지 않을 수 있습니다. <a href="{getUrl('', 'module', 'admin', 'act', 'dispAdminConfigAdvanced')}" target="_blank">변경하기</a></p>
</div>
<!--@endif-->
<!--@if($isLicenseValid)-->
{@
$license_info = $validator->validate($hotopay_config->hotopay_license_key, true);
$license_expire_date = round((strtotime($license_info[1]) - time())/86400);
}
<div class="license-icon"></div>
<!--@if ($license_expire_date <= 30)-->
<div class="message info">
<p>Pro 라이선스 만료까지 {$license_expire_date}일 남았습니다. ({$license_info[1]} 까지) <a href='https://potatosoft.kr/notice/11343' target='_blank'>연장 방법 확인</a></p>
</div>
<!--@endif-->
<!--@endif-->