|
@@ -37,7 +37,7 @@ $featured = loadListByChannelName(6, "热门新闻");
|
|
|
|
|
|
|
|
<!-- 轮播图 -->
|
|
<!-- 轮播图 -->
|
|
|
<div class="swiper mySwiper" style="width: 100%; height: 400px;">
|
|
<div class="swiper mySwiper" style="width: 100%; height: 400px;">
|
|
|
- <div class="swiper-wrapper">
|
|
|
|
|
|
|
+ <div class="swiper-wrapper bg-secondary">
|
|
|
<?php foreach ($carouselItems as $item): ?>
|
|
<?php foreach ($carouselItems as $item): ?>
|
|
|
<div class="swiper-slide">
|
|
<div class="swiper-slide">
|
|
|
<?php if (!empty($item['url'])): ?>
|
|
<?php if (!empty($item['url'])): ?>
|
|
@@ -105,9 +105,9 @@ $featured = loadListByChannelName(6, "热门新闻");
|
|
|
<div class="swiper-wrapper">
|
|
<div class="swiper-wrapper">
|
|
|
<?php if (!empty($carouselItems2)): ?>
|
|
<?php if (!empty($carouselItems2)): ?>
|
|
|
<?php foreach ($carouselItems2 as $item): ?>
|
|
<?php foreach ($carouselItems2 as $item): ?>
|
|
|
- <div class="swiper-slide featured-image">
|
|
|
|
|
|
|
+ <div class="swiper-slide featured-image bg-secondary" style="background-image: url('<?php echo $item['image']; ?>'); background-size: cover;">
|
|
|
<a href="/xinWenXiangQing/?id=<?php echo $item['id']; ?>">
|
|
<a href="/xinWenXiangQing/?id=<?php echo $item['id']; ?>">
|
|
|
- <img src="<?php echo $item['image']; ?>" alt="<?php echo $item['desc']; ?>" style="width: 100%; height: 100%; object-fit: cover;">
|
|
|
|
|
|
|
+ <img src="<?php echo $item['image']; ?>" alt="<?php echo $item['desc']; ?>" style="width: 100%; height: 100%; object-fit: contain;">
|
|
|
<div class="caption">
|
|
<div class="caption">
|
|
|
<h3><?php echo $item['title']; ?></h3>
|
|
<h3><?php echo $item['title']; ?></h3>
|
|
|
<p><?php echo $item['desc']; ?></p>
|
|
<p><?php echo $item['desc']; ?></p>
|
|
@@ -123,9 +123,14 @@ $featured = loadListByChannelName(6, "热门新闻");
|
|
|
</div>
|
|
</div>
|
|
|
<div class="swiper-pagination"></div>
|
|
<div class="swiper-pagination"></div>
|
|
|
</div>
|
|
</div>
|
|
|
- <a href="https://www.12371.cn/special/xxzd/">
|
|
|
|
|
- <img src="images/xuexi.png" class="mt-3" style="width: 100%; height:130px;object-fit:cover;" />
|
|
|
|
|
- </a>
|
|
|
|
|
|
|
+ <div class="d-flex flex-row justify-content-between">
|
|
|
|
|
+ <a href="http://cpc.people.com.cn/GB/67481/448544/index.html" class="w-50">
|
|
|
|
|
+ <img src="https://wlj.xm.gov.cn/ztzl/202211/W020221213510920336898.jpg" class="mt-3" style="width: 100%; height:130px;object-fit:cover;" />
|
|
|
|
|
+ </a>
|
|
|
|
|
+ <a href="https://www.12371.cn/special/xxzd/" class="w-50">
|
|
|
|
|
+ <img src="images/xuexi.png" class="mt-3" style="width: 100%; height:130px;object-fit:cover;" />
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|