first commit 2

This commit is contained in:
hmw1001
2026-06-11 18:47:38 +09:00
parent c768729ce6
commit 6f534e33a6
11095 changed files with 1595758 additions and 0 deletions
@@ -0,0 +1,20 @@
<?php
if (!defined('_GNUBOARD_')) exit;
/**
* rb.mod.banner :: image_only/banner.skin.php
* 배너 그룹 스킨 (래퍼)
*/
// CSS 로드
// 배너 목록이 있으면 루프를 돌며 skin.php를 include
if (isset($banners) && is_array($banners)) {
foreach ($banners as $banner) {
include(dirname(__FILE__).'/skin.php');
}
} else if (isset($banner)) {
// 단일 배너인 경우
include(dirname(__FILE__).'/skin.php');
}
?>
+23
View File
@@ -0,0 +1,23 @@
<?php
if (!defined('_GNUBOARD_')) exit;
/**
* rb.mod.banner :: image_only/skin.php
* 단일 배너 아이템 스킨 (이미지만 출력)
*/
// 💡 [핵심 수정] 이 스킨의 CSS 파일을 불러옵니다.
//add_stylesheet('<link rel="stylesheet" href="'.G5_URL.'/rb/rb.mod/banner/skin/image_only/style.css?ver='.G5_SERVER_TIME.'">', 0);
?>
<link rel="stylesheet" href="<?php echo G5_URL; ?>/rb/rb.mod/banner/skin/image_only/style.css?ver=<?php echo G5_SERVER_TIME; ?>">
<div class="rb-banner-image-only">
<a href="<?php echo $banner['bn_url']; ?>"
target="_<?php echo $banner['bn_new_win'] ? 'blank' : 'self'; ?>"
onclick="banner_click_count(this); return true;"
data-banner-id="<?php echo $banner['bn_id']; ?>">
<div class="banner-image">
<?php echo $banner['bn_img']; ?>
</div>
</a>
</div>
@@ -0,0 +1,26 @@
/* Image Only Banner Skin - Final Fix */
/* 💡 [핵심] 부모(.banner-unit-wrapper)의 공간을 100% 채우도록 강제 */
.rb-banner-image-only {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.rb-banner-image-only a,
.rb-banner-image-only .banner-image {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.rb-banner-image-only img {
width: 100%;
height: 100%;
object-fit: fill;
max-height: 85px;
}