버킷 변경에 따른 코드 수정

This commit is contained in:
root
2026-07-23 18:37:15 +09:00
parent 914fe039f9
commit e6c45240d9
5 changed files with 121 additions and 122 deletions
+2 -6
View File
@@ -5,13 +5,9 @@ if (!function_exists('egbim_img_url')) {
function egbim_img_url($path = '')
{
$baseUrl = '/egbim/img';
// Cloudflare 대시보드 URL이 아니라 실제 공개 호스트를 넣어야 합니다.
// 예: https://cdn.eg-bim.com
$cdnOrigin = '';
$cdnPathPrefix = '/egbim_img/egbim';
$cdnOrigin = 'https://cdn.eg-bim.com';
$cdnPathPrefix = '';
// 현재 버킷 디렉토리 구성은 egbim/img/* 와 동일하므로
// 공개 호스트만 정해지면 /egbim_img/egbim/<파일명> 으로 바로 매핑합니다.
if ($cdnOrigin !== '') {
$baseUrl = rtrim($cdnOrigin, '/') . $cdnPathPrefix;
}
+2 -1
View File
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<?php include_once __DIR__ . '/asset_urls.php'; ?>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-STZ2R5Q7HG"></script>
<script>
@@ -75,7 +76,7 @@
</div>
<div class="video_area" data-aos="fade-right" data-aos-duration="1000">
<div class="vod_wrap"><video autoplay muted loop playsinline><source src="../img/EGBIM_buy.mp4"></video></div>
<div class="vod_wrap"><video autoplay muted loop playsinline><source src="<?php echo egbim_img_url('EGBIM_buy.mp4'); ?>"></video></div>
<div class="contact_area">
<p>
<span class="mid_tit">구매 상담</span>
@@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once __DIR__ . '/asset_urls.php';
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0);
@@ -48,11 +49,11 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
<!-- Header -->
<header class="header">
<h1>
<img src="../img/logo_w.svg" alt="">
<img src="<?php echo egbim_img_url('logo_w.svg'); ?>" alt="">
</h1>
<div class="menu_wrap">
<div class="menu_my"><img src="../img/ico_my.svg" alt=""></div>
<div class="menu_ham"><img src="../img/ico_ham.svg" alt=""></div>
<div class="menu_my"><img src="<?php echo egbim_img_url('ico_my.svg'); ?>" alt=""></div>
<div class="menu_ham"><img src="<?php echo egbim_img_url('ico_ham.svg'); ?>" alt=""></div>
</div>
</header>
<!-- //Header -->
@@ -64,7 +65,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
<hgroup>
<div class="pop_close_wrap">
<button class="btn_close">
<div class="close_div"><img src="../img/ico_close.svg" alt=""></div>
<div class="close_div"><img src="<?php echo egbim_img_url('ico_close.svg'); ?>" alt=""></div>
</button>
</div>
</hgroup>
+2 -1
View File
@@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once __DIR__ . '/asset_urls.php';
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0);
@@ -36,7 +37,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
<!--popup_in-->
<div class="popup_in">
<button class="btn_close">
<div class="close_div"><img src="../img/ico_close.svg" alt=""></div>
<div class="close_div"><img src="<?php echo egbim_img_url('ico_close.svg'); ?>" alt=""></div>
</button>
<!--popup_content-->
<div class="popup_container mypage">