first commit 2
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
.tech-section-module {
|
||||
padding: 30px; /* 모듈 전체 여백 */
|
||||
background-color: #fff;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
.tech-section-module h2 {
|
||||
font-size: 1.8rem; /* 제목 크기 증가 */
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px; /* 여백 증가 */
|
||||
color: #222;
|
||||
border-bottom: 2px solid #0056b3; /* 하단 테두리 */
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.tech-section-module ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tech-section-module li {
|
||||
margin-bottom: 10px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px dashed #eee;
|
||||
}
|
||||
|
||||
.tech-section-module li:last-child {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.tech-section-module li a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
color: #555;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.tech-section-module li a:hover {
|
||||
color: #0056b3;
|
||||
}
|
||||
|
||||
.tech-section-module li a strong {
|
||||
flex-grow: 1;
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tech-section-module li a .datetime {
|
||||
flex-shrink: 0;
|
||||
font-size: 0.85rem;
|
||||
color: #888;
|
||||
margin-left: 10px;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// tech_section 모듈을 위한 JavaScript
|
||||
window.initTechModule = function(moduleId) {
|
||||
// 이 모듈은 현재 특별한 JavaScript 로직이 필요 없습니다.
|
||||
// console.log(`Tech Module (ID: ${moduleId}) initialized.`);
|
||||
};
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
|
||||
/**
|
||||
* rb.custom :: tech_section/module.php
|
||||
* '신기술' 최신글 모듈
|
||||
*/
|
||||
|
||||
// 💡 [최종 수정] 이 모듈은 독립적으로 동작하므로, 다른 모듈과 충돌하지 않는 자신만의 고유 ID를 생성합니다.
|
||||
$tech_id = 'ts_' . uniqid();
|
||||
?>
|
||||
|
||||
<div class="tech-section-module" id="<?php echo $tech_id; ?>">
|
||||
<!-- <h2>신기술</h2>-->
|
||||
<?php
|
||||
// 💡 [최종 수정] latest() 함수의 4번째 인자(subject_len)를 0으로 설정하여 제목과 '더보기' 링크를 모두 제거합니다.
|
||||
echo latest('theme/pic_block', 'newtech', 5, 0);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_THEME_URL; ?>/rb.custom/tech_section/module.css?ver=<?php echo G5_CSS_VER; ?>">
|
||||
<script>
|
||||
(function() {
|
||||
var currentModuleId = '<?php echo $tech_id; ?>';
|
||||
var initFunctionName = 'initTechModule';
|
||||
var scriptId = 'tech-module-script-' + currentModuleId;
|
||||
|
||||
if (document.getElementById(scriptId)) {
|
||||
if (typeof window[initFunctionName] === 'function') {
|
||||
window[initFunctionName](currentModuleId);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
var script = document.createElement('script');
|
||||
script.id = scriptId;
|
||||
script.src = '<?php echo G5_THEME_URL; ?>/rb.custom/tech_section/module.js?ver=<?php echo G5_JS_VER; ?>';
|
||||
script.async = true;
|
||||
|
||||
script.onload = function() {
|
||||
if (typeof window[initFunctionName] === 'function') {
|
||||
window[initFunctionName](currentModuleId);
|
||||
}
|
||||
};
|
||||
document.head.appendChild(script);
|
||||
})();
|
||||
</script>
|
||||
Reference in New Issue
Block a user