', 0); //add_stylesheet('', 0); // ============================================================================== // [설정 영역] 이곳의 변수만 변경하면 전체 내용이 적용됩니다. // ============================================================================== // 💡 [추가] Hero 섹션 우측 바로가기 박스 표시 여부 (true: 보임, false: 숨김) $show_hero_visual = false; function get_bo_table_from_url_regex_index($url) { if (preg_match('/bo_table=([^&]+)/', $url, $matches)) { return $matches[1]; } return ''; } // 동적 데이터 생성 로직 $hero_box_config = []; $board_groups = []; $icons = ['📊', '🔬', '🆕', '📅', '📷', '💡', '📦']; // 아이콘 목록 $hero_box_config[] = [ 'title' =>'정기 구독 & 광고 문의', 'icon' => $icons[5] ?? '📄', 'bo_table' => '정기구독', 'desc' => '정기 구독 & 광고 문의' ]; // 메뉴 데이터 가져오기 (그누보드 공통 함수 사용) $menu_datas = get_menu_db(0, false); foreach ($menu_datas as $i=> $row) { if($i===1 || $i===2) { foreach ($row['sub'] as $sub) { $menu_name = $sub['me_name']; list($sub_ko, $sub_en) = split_menu_name($sub['me_name']); $menu_name = $sub_ko . '
'. $sub_en; $board_name = get_bo_table_from_url_regex_index($sub['me_link']); $board_groups[$board_name] = [ 'bo_table' => $board_name, 'title' => $menu_name, 'latest_rows' => 5, 'latest_subject_len' => 10, ]; } } } // 💡 [수정] 레이아웃 그리드 설정 (다차원 배열 구조) // 각 행(row) 안에 열(columns)을 정의하고, 각 열 안에 행(rows) 개수를 정의합니다. $layout_grid_config = [ 'top' => [ 'columns' => [ ['rows' => 1], // 1번 열: 1행 (통짜) ['rows' => 2], // 2번 열: 2행 (상하 분할) ] ], 'middle' => [ 'columns' => [ ['rows' => 2], // 1번 열: 2행 ['rows' => 2], // 2번 열: 2행 ], ], 'bottom' => [ 'columns' => [ ['rows' => 1] // 1번 열: 1행 (통짜) ] ] ]; ?>
Laser Technology 2026
환경설정 > 기본환경설정 > 여분필드 2번에 입력된 값을 출력 // 값이 없으면 기본 텍스트 출력 $hero_title_line = (isset($config['cf_1']) && $config['cf_1']) ? nl2br($config['cf_1']) : '2026 레이저 산업'; $hero_title_line_text = (isset($config['cf_2']) && $config['cf_2']) ? nl2br($config['cf_2']) : '전시 지형이 움직인다'; ?>

환경설정 > 기본환경설정 > 여분필드 2번에 입력된 값을 출력 // 값이 없으면 기본 텍스트 출력 $hero_subtitle = (isset($config['cf_3']) && $config['cf_3']) ? nl2br($config['cf_3']) : '기술 경쟁에서 시장 전략으로, 국내 전시회의 재조명.
월간 레이저 기술이 제안하는 2026년 산업 로드맵을 확인하십시오.'; $hero_subtitle_but = (isset($config['cf_4']) && $config['cf_4']) ? $config['cf_4'] : '#journal-list'; // 💡 [추가] URL 도메인 자동 보정 로직 // 저장된 URL이 http:// 또는 https:// 로 시작하는 경우, 현재 접속한 도메인으로 교체합니다. if (preg_match('/^https?:\/\/[^\/]+(.*)$/i', $hero_subtitle_but, $matches)) { // $matches[1]은 도메인 이후의 경로 (예: /bbs/board.php?bo_table=...) // 현재 접속 프로토콜과 도메인을 가져옴 $current_domain = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST']; $hero_subtitle_but = $current_domain . $matches[1]; } ?>

$box): ?>

환경설정 > 기본환경설정 > 여분필드 1번에 입력된 값을 출력 // 값이 없으면 기본값 '이달의 주요 섹션' 출력 $section_title = (isset($config['cf_5']) && $config['cf_5']) ? $config['cf_5'] : '이달의 주요 섹션'; ?>

$group): ?>
$group): $bo_table = $group['bo_table']; $write_table = $g5['write_prefix'] . $bo_table; // wr_8 값이 있는 게시물만 조회 (최신순) // wr_is_comment = 0 (댓글 제외) $sql = " SELECT * FROM {$write_table} WHERE wr_is_comment = 0 AND wr_8 <> '' ORDER BY wr_id DESC LIMIT {$group['latest_rows']} "; $result = sql_query($sql); while ($row = sql_fetch_array($result)) { $row['bo_table'] = $bo_table; $row['group_key'] = $key; $row['group_title'] = $group['title']; $all_items[] = $row; } endforeach; $cols = 4; // 한 줄에 보여줄 개수 $total_count = count($all_items); // 첫 줄은 무조건 출력 $first_row_count = min($total_count, $cols); for ($i = 0; $i < $first_row_count; $i++) { $lt = $all_items[$i]; $thumb = get_list_thumbnail($lt['bo_table'], $lt['wr_id'], 400, 300); $img_src = $thumb['src'] ? $thumb['src'] : G5_THEME_URL.'/img/no_img.png'; $link = get_pretty_url($lt['bo_table'], $lt['wr_id']); $subject = $lt['wr_subject']; $content = cut_str(strip_tags($lt['wr_content']), 80); ?> $cols) { $remaining_items = array_slice($all_items, $cols); $remaining_count = count($remaining_items); $valid_count = floor($remaining_count / $cols) * $cols; for ($i = 0; $i < $valid_count; $i++) { $lt = $remaining_items[$i]; $thumb = get_list_thumbnail($lt['bo_table'], $lt['wr_id'], 400, 300); $img_src = $thumb['src'] ? $thumb['src'] : G5_THEME_URL.'/img/no_img.png'; $link = get_pretty_url($lt['bo_table'], $lt['wr_id']); $subject = $lt['wr_subject']; $content = cut_str(strip_tags($lt['wr_content']), 80); ?>
$row_config): ?>