아파트 평면도 상세 페이지 추가

This commit is contained in:
yangsh
2025-12-29 13:50:46 +09:00
parent ab39be9602
commit e0672d325c
7 changed files with 1432 additions and 36 deletions

View File

@@ -93,6 +93,21 @@
<?php
// 이 부모(menu)의 자식 중 현재 path와 일치하는 메뉴가 있는지 체크
$hasActiveChild = false;
$path = parse_url($path, PHP_URL_PATH);
// 2. 숫자 파라미터 제거 (/detail/123 → /detail)
$path = preg_replace('#/\d+#', '', $path);
// 3. 끝 슬래시 정리
$path = rtrim($path, '/');
switch ($path) {
case "/article/apt/detail":
$path = "/article/apt/lists";
break;
case "/article/apt/ground/detail":
$path = "/article/apt/lists2";
break;
}
foreach ($sMenu as $subMenu) {
if ($menu["mnu_id"] == $subMenu["mnu_pid"] && $path === $subMenu["mnu_url"]) {
$hasActiveChild = true;