false, 'right_ad' => false);
}
$current_page_skin = 'team';
// 3. 스킨 경로 정의
$page_skin_url = G5_THEME_URL . '/skin/page/' . $current_page_skin;
$page_skin_path = G5_THEME_PATH . '/skin/page/' . $current_page_skin;
// 4. CSS/JS 로드
add_stylesheet('', 0);
add_javascript('', 0);
// 5. 기본 데이터 정의
$page_data = array(
'title' => '팀 소개',
'subtitle' => '레이저월드를 만들어가는 사람들',
'content' => '
레이저월드는 편집팀, 취재팀, 디자인팀, 마케팅팀 등으로 구성되어 전문 콘텐츠를 제작합니다.
- 대표 박준성
- 편집장 김편집
- 취재팀장 이취재
- 디자인팀장 장디자인
',
'image_url' => '',
'image_alt' => '',
'sign_name' => '',
'sign_company' => ''
);
// 6. 모듈 설정 연동
if (!isset($module_config) && isset($md_id) && $md_id) {
$module_config = sql_fetch(" SELECT * FROM rb_module WHERE md_id = '{$md_id}' ");
}
if (isset($module_config) && $module_config['md_type'] == 'page') {
$target_bo_table = $module_config['md_bo_table_page'];
$target_wr_id = $module_config['md_wr_id_page'];
if ($target_bo_table && $target_wr_id) {
$write_table = $g5['write_prefix'] . $target_bo_table;
$view = sql_fetch(" SELECT * FROM {$write_table} WHERE wr_id = '{$target_wr_id}' ");
if ($view) {
$page_data['title'] = $view['wr_subject'];
$page_data['subtitle'] = $view['wr_1'];
$page_data['content'] = conv_content($view['wr_content'], 1);
$sql_file = " select bf_file, bf_source from {$g5['board_file_table']} where bo_table = '$target_bo_table' and wr_id = '$target_wr_id' order by bf_no limit 1 ";
$row_file = sql_fetch($sql_file);
if ($row_file['bf_file']) {
$page_data['image_url'] = G5_DATA_URL.'/file/'.$target_bo_table.'/'.$row_file['bf_file'];
$page_data['image_alt'] = $row_file['bf_source'];
} else {
$matches = get_editor_image($view['wr_content'], false);
if($matches) {
$img_src = $matches[1][0];
if (!preg_match("/^(http|https):/i", $img_src)) {
$page_data['image_url'] = G5_URL . $img_src;
} else {
$page_data['image_url'] = $img_src;
}
$page_data['image_alt'] = $view['wr_subject'];
} else {
$page_data['image_url'] = '';
}
}
$page_data['sign_name'] = $view['wr_2'];
$page_data['sign_company'] = $view['wr_3'];
}
}
}
?>