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: right_sidebar.php

<aside class="col-md-4 widget-area end-sidebar-lg" id="right-sidebar" style="margin-top:0px;"> 
  <div class="sticky">
   
    <!-- 📈 الأكثر قراءة -->
    <aside class="widget">
      <div class="block-title-4">
        <h4 class="h5 title-arrow">
          <span><?= htmlspecialchars($L['most_read']) ?></span>
        </h4>
      </div>
      <div class="small-post">
        <?php foreach ($mostReadNews as $news): 
              $tableId1 = $news['table_id'] ?? 1;   
              echo renderSmallPost($news,$tableId1, $lang, $functions);
            endforeach; ?>
      </div>
      <div class="gap-0"></div>
    </aside>

    <!-- 🎯 مشاركات وفعاليات -->
    <aside class="widget">
      <div class="block-title-4">
        <h4 class="h5 title-arrow">  
        <a href='list-news.php?i=11&lang=<?= $lang ?>'>
                 <span><?= htmlspecialchars($L['education_list']) ?>
              </a>     
          <?= edit_news(7); ?></span>
        </h4>
      </div> 
      
      <div class="big-post">
        <?php if (!empty($newsType7)):   
              echo renderBigPost($newsType7[0],7, $lang, $functions);  
            endif; ?>
      </div>

      <div class="small-post">
        <?php if (!empty($newsType7) && count($newsType7) > 1): 
              foreach (array_slice($newsType7, 1) as $news): 
                echo renderSmallPost($news,7, $lang, $functions);
              endforeach;
             readMore($newsType7,7, $lang , $L);
            endif; ?>
      </div>
      <div class="gap-0"></div>
    </aside>
    
    <!-- 📰 آخر الأخبار -->
    <aside class="widget">
      <div class="block-title-4">
        <h4 class="h5 title-arrow">
          <span><?= htmlspecialchars($L['news']) ?></span>
        </h4>
      </div>

      
<ul class="list-unstyled border-bottom-last-0 rounded mb-3" style="list-style: none;">
  <?php foreach ($lastNews as $index => $news): 
        $title = getLocalizedTitle($news, $lang); ?>
    <li class="d-flex mb-4">
      <div class="number-box  fw-bold me-3"><?= $index + 1 ?></div>
      <div class="title-box flex-grow-1">
        <a class="d-block h6 h6-md h5-lg" href="article.php?id=<?= $news['news_id'] ?>&type=<?= $type ?>&lang=<?= $lang ?>">
          <?= htmlspecialchars($title) ?>
        </a>
      </div>
    </li>
  <?php endforeach; ?>
</ul>

      <div class="gap-0"></div>
    </aside> 

    <!-- 🌐 الشبكات الاجتماعية -->
    <aside class="widget widget_categories widget_categories_custom">
      <div class="block-title-4">
        <h4 class="h5 title-arrow">
          <span><?= htmlspecialchars($L['social_networks']) ?><?= edit_social(); ?></span>
        </h4>
      </div>
      <ul class="list-unstyled social-one">
        <?php foreach ($socialPlatforms as $platform): 
              if (!empty($platform['url'])):
                $name  = htmlspecialchars($platform['name']);
                $url   = htmlspecialchars($platform['url']);
                $icon  = htmlspecialchars($platform['icon']); ?>
            <li class="<?= $icon ?>">
              <a class="bg-<?= $icon ?> text-white" rel="noopener" href="<?= $url ?>" target="_blank" title="<?= $name ?>">
                <?= $name ?>
              </a>
            </li>
        <?php endif; endforeach; ?>
      </ul>
      <div class="gap-1"></div>
    </aside>

    <!-- 📢 إعلانات -->
    <aside class="widget">
      <div class="hover-a text-center">
        <div class="py-2">
          <span class="text-mute small">- <?= htmlspecialchars($L['ads']) ?> - <?= edit_ads(); ?></span>
        </div>
        <a href="<?= $ads_url1 ?>" onclick="event.preventDefault();">
          <?php if (!empty($ads_img1)): ?>
            <img class="img-fluid bg-light" src="<?= $ads_img1 ?>" alt="<?= htmlspecialchars($L['ads']) ?>"> 
          <?php endif; ?>
        </a>
      </div>
      <div class="gap-5"></div>
    </aside> 

  </div>
</aside>