Base Directory:
/home/ecedu/public_html/new/Views/layouts
View File: top_slider.php
<!-- شريط الأخبار العاجلة -->
<div class="row py-0">
<!-- عنوان صندوق الأخبار العاجلة -->
<div class="col-2 col-sm-1 col-md-3 col-lg-2 py-1 pe-md-0 mb-md-1">
<a href='list-news.php?i=2&lang=<?= $lang ?>'><div class="d-inline-block d-md-block bg-primary text-white text-center breaking-caret py-1 px-2">
<svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" fill="currentColor" class="bi bi-lightning-fill" viewBox="0 0 16 16">
<path d="M11.251.068a.5.5 0 0 1 .227.58L9.677 6.5H13a.5.5 0 0 1 .364.843l-8 8.5a.5.5 0 0 1-.842-.49L6.323 9.5H3a.5.5 0 0 1-.364-.843l8-8.5a.5.5 0 0 1 .615-.09z" />
</svg>
<span class="d-none d-md-inline-block"> <?= htmlspecialchars($L['breaking_news']) ?></span>
</div></a><?= edit_news(1);?>
</div>
<!-- قائمة الأخبار العاجلة -->
<div class="col-10 col-sm-11 col-md-9 col-lg-10 ps-1 ps-md-2">
<div class="breaking-box position-relative py-2">
<div class="box-carousel" data-flickity='{
"cellAlign": "left",
"rightToLeft": true,
"wrapAround": true,
"adaptiveHeight": true,
"prevNextButtons": true,
"autoPlay": 5000,
"pageDots": false,
"imagesLoaded": true
}'>
<?php if (!empty($sliderNews)): ?>
<?php foreach ($sliderNews as $news): ?>
<?php
$title = getLocalizedTitle( $news, $lang);
$type = 1;
?>
<div class="col-12 aribudin">
<a class="h6 font-weight-light" href="article.php?id=<?= $news['news_id'] ?>&type=<?= $type ?>&lang=<?= $lang ?>">
<?= htmlspecialchars($title) ?>
</a>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-12 mt-05">
<div class="row featured-1 mb-4">
<?= renderMainSlider($lastNews, $lang, 1) ?>
<?= renderSideSliderDesktop($newsType1, $lang, 1, 8) ?>
<?= renderSideSliderMobile($newsType1, $lang, 1, 4) ?>
</div>
</div>