Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/new/Views/layouts
NameTypeSizeActions
📁 .. Folder -
📄 aboutus-layout.php File 1676
Edit Download
📄 article-layout.php File 22554
Edit Download
📄 back-top.php File 706
Edit Download
📄 body-layout.php File 1313
Edit Download
📄 contactus-layout.php File 4025
Edit Download
📄 department-layout.php File 3736
Edit Download
📄 footer-layout.php File 5862
Edit Download
📄 header-layout.php File 451
Edit Download
📄 header-second.php File 827
Edit Download
📄 index-layout.php File 4027
Edit Download
📄 list-languages.php File 5393
Edit Download
📄 list-news-layout.php File 6488
Edit Download
📄 list-pdf-layout.php File 4459
Edit Download
📄 main-func.php File 59071
Edit Download
📄 main-layout.php File 8313
Edit Download
📄 main-menu.php File 3613
Edit Download
📄 mobile-menu.php File 5453
Edit Download
📄 mobile-side.php File 14998
Edit Download
📄 pdf-layout.php File 3
Edit Download
📄 right_sidebar.php File 3970
Edit Download
📄 search-layout.php File 5408
Edit Download
📄 top-menu.php File 1175
Edit Download
📄 top_slider.php File 2320
Edit Download
$html = '
  • $title = htmlspecialchars($item['title'] ?? '', ENT_QUOTES, 'UTF-8'); $href = htmlspecialchars($item['link'] ?? '#', ENT_QUOTES, 'UTF-8'); $html .= ''.$title.''; // الأطفال: dropdown عادي if ($hasChildren && $isDropdown) { $html .= ''; } // الأطفال: mega if ($hasChildren && $isMega) { if ($layout === 'list') { $html .= ''; } else { // layout = grid (شبكة بطاقات المقالات) $html .= ''; } } $html .= '
  • '; return $html; } function renderNewMenu(array $items, string $lang = "ar", bool $isMobile = false, int $level = 0, bool $st = false): string { $html = ''; $m = ''; $currentId = $_GET['i'] ?? 1; foreach ($items as $item) { $title = getItemTitle($item['title'], $lang); $id = $item['id']?? -1; $icon = $item['icon'] ?? ''; $hasChildren = !empty($item['children']); $link = $id == -1 ? '' : (($id == 0) ? 'index.php?lang=' . $lang : 'list-news.php?i=' . $id . '&lang=' . $lang); $iconHtml = $icon ? "" : ''; $isActive = ($id == $currentId) ? ' active-text' : ''; $edit = ($id > 1) ? edit_news($id) : ''; // إنشاء IDs فريدة لكل عنصر أكورديون $parentId = 'parent-' . ($item['parent_id'] ?? 'root'); $accordionId = 'accordion-' . $id . '-' . uniqid(); $headingId = 'heading-' . $accordionId; $collapseId = 'collapse-' . $accordionId; // إضافة كلاس بناءً على وجود أبناء $itemClass = $hasChildren ? 'has-children' : 'no-children'; /* --------------------------------------------------- * فرع الموبايل (أكورديون) * --------------------------------------------------*/ if ($isMobile) { if ($hasChildren) { $html .= "

    " . renderNewMenu($item['children'], $lang, true, $level + 1, true, $accordionId) . "
    "; } else { if (!$st) { $html .= "

    "; } else { $html .= "
    "; } } } else { // ↓↓ التعديل الرئيسى على المسافات ↓↓ $dropdownClass = $hasChildren ? 'dropdown' : ''; $aBaseClass = $hasChildren ? 'nav-link dropdown-toggle' : 'nav-link'; $aClass = $aBaseClass . ' py-2 px-2'; $aAttrs = $hasChildren ? "href='#' role='button' data-bs-toggle='dropdown' aria-expanded='false'" : "href='$link'"; $edit = (!$hasChildren && $id > 1) ? edit_details($id) : ''; $html .= " "; } } return $html; } // ——— الآن نبدأ الشرط ——— if ($showHeaderType == 1): ?>