{@ // "신규" 판정 기준 시각 $_dur = (int)($module_info->duration_new ?? 0); if (!$_dur) $_dur = 12; $_new_threshold = date('YmdHis', time() - 60 * 60 * $_dur); // 카테고리별 색상 클래스 (c1~c5 순환) $_cat_color = array(); $_ci = 0; foreach (($category_list ?? array()) as $_cs => $_cv): $_cat_color[$_cs] = 'c' . (($_ci % 5) + 1); $_ci++; endforeach; // 활성 보기 형태: URL 파라미터(ddgg_view) > 스킨 설정(list_type) > list $_allowed_views = array('list', 'webzine', 'gallery'); $_view = Context::get('ddgg_view'); if (!in_array($_view, $_allowed_views, true)) $_view = $module_info->list_type ?? 'list'; if (!in_array($_view, $_allowed_views, true)) $_view = 'list'; $_gallery_cols = (int)($module_info->gallery_columns ?? 3); if ($_gallery_cols < 2 || $_gallery_cols > 4) $_gallery_cols = 3; $_show_switch = ($module_info->show_view_switch ?? 'Y') !== 'N'; // 카테고리 사용 여부 $_use_cate = ($module_info->use_category ?? 'N') === 'Y' && count($category_list ?? array()); }
{$module_info->mobile_header_text}
{$module_info->header_text}