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

View File: list-languages.php

<!-- Language switcher -->
<li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle d-inline-flex align-items-center"
       href="#"  onclick="event.preventDefault();" id="langDropdown"
       data-bs-toggle="dropdown" aria-expanded="false"> 
       <?php if($lang === 'ar'): ?>
           <!-- علم العراق -->
           <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 640 480" class="me-2">
               <g fill-rule="evenodd">
                   <path fill="#ce1126" d="M0 0h640v160H0z"/>
                   <path fill="#ffffff" d="M0 160h640v160H0z"/>
                   <path fill="#000000" d="M0 320h640v160H0z"/>
               </g>
               <text x="50%" y="275" text-anchor="middle" font-size="90" fill="#007a3d" font-family="Arial, sans-serif" style="font-weight:bold;">
                   الله أكبر
               </text>
           </svg>
       <?php elseif($lang === 'ku'): ?>
           <!-- علم كردستان -->
           <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 640 480" class="me-2">
               <path fill="#ff0000" d="M0 0h640v160H0z"/>
               <path fill="#fff" d="M0 160h640v160H0z"/>
               <path fill="#009e49" d="M0 320h640v160H0z"/>
               <circle fill="#ffcc00" cx="320" cy="240" r="50"/>
           </svg>
       <?php else: ?>
           <!-- علم بريطانيا -->
           <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 60 30" class="me-2">
               <clipPath id="t">
                   <path d="M0,0 v30 h60 v-30 z"/>
               </clipPath>
               <g clip-path="url(#t)">
                   <path d="M0,0 v30 h60 v-30 z" fill="#012169"/>
                   <path d="M0,0 L60,30 M60,0 L0,30" stroke="#fff" stroke-width="6"/>
                   <path d="M0,0 L60,30 M60,0 L0,30" stroke="#c8102e" stroke-width="4" stroke-dasharray="10,10"/>
                   <path d="M30,0 v30 M0,15 h60" stroke="#fff" stroke-width="10"/>
                   <path d="M30,0 v30 M0,15 h60" stroke="#c8102e" stroke-width="6"/>
               </g>
           </svg>
       <?php endif; ?>
       <span class="fw-semibold"><?= $currentLangName; ?></span>
    </a>

    <?php
    // إعداد روابط اللغات مع الاحتفاظ بجميع البارامترات الأخرى
    $params = $_GET;
    $params_ar = $params_ku = $params_en = $params;

    $params_ar['lang'] = 'ar';
    $params_ku['lang'] = 'ku';
    $params_en['lang'] = 'en';

    $url_ar = $_SERVER['PHP_SELF'] . '?' . http_build_query($params_ar);
    $url_ku = $_SERVER['PHP_SELF'] . '?' . http_build_query($params_ku);
    $url_en = $_SERVER['PHP_SELF'] . '?' . http_build_query($params_en);
    ?>

    <ul class="dropdown-menu dropdown-menu-end shadow-sm text-start" aria-labelledby="langDropdown">
        <!-- Arabic -->
        <li>
            <a class="dropdown-item d-flex align-items-center <?= $lang==='ar'?'active':''; ?>" href="<?= $url_ar ?>">
                <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 640 480" class="me-2">
                    <g fill-rule="evenodd">
                        <path fill="#ce1126" d="M0 0h640v160H0z"/>
                        <path fill="#ffffff" d="M0 160h640v160H0z"/>
                        <path fill="#000000" d="M0 320h640v160H0z"/>
                    </g>
                    <text x="50%" y="275" text-anchor="middle" font-size="90" fill="#007a3d" font-family="Arial, sans-serif" style="font-weight:bold;">
                        الله أكبر
                    </text>
                </svg>
                عربي
            </a>
        </li>

        <!-- Kurdish -->
        <li>
            <a class="dropdown-item d-flex align-items-center <?= $lang==='ku'?'active':''; ?>" href="<?= $url_ku ?>">
                <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 640 480" class="me-2">
                    <path fill="#ff0000" d="M0 0h640v160H0z"/>
                    <path fill="#fff" d="M0 160h640v160H0z"/>
                    <path fill="#009e49" d="M0 320h640v160H0z"/>
                    <circle fill="#ffcc00" cx="320" cy="240" r="50"/>
                </svg>
                کوردی
            </a>
        </li>

        <!-- English -->
        <li>
            <a class="dropdown-item d-flex align-items-center <?= $lang==='en'?'active':''; ?>" href="<?= $url_en ?>">
                <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 60 30" class="me-2">
                    <clipPath id="t">
                        <path d="M0,0 v30 h60 v-30 z"/>
                    </clipPath>
                    <g clip-path="url(#t)">
                        <path d="M0,0 v30 h60 v-30 z" fill="#012169"/>
                        <path d="M0,0 L60,30 M60,0 L0,30" stroke="#fff" stroke-width="6"/>
                        <path d="M0,0 L60,30 M60,0 L0,30" stroke="#c8102e" stroke-width="4" stroke-dasharray="10,10"/>
                        <path d="M30,0 v30 M0,15 h60" stroke="#fff" stroke-width="10"/>
                        <path d="M30,0 v30 M0,15 h60" stroke="#c8102e" stroke-width="6"/>
                    </g>
                </svg>
                English
            </a>
        </li>
    </ul>
</li>