| Server IP : 104.21.80.248 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/www/news/datacenter/home/ |
Upload File : |
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<?php
// SLIDER INDICATORS
$slider_items = getSliderItems(); // array
$counter = 0;
foreach($slider_items as $item)
{
?>
<li data-target="#carouselExampleIndicators" data-slide-to="<?php echo $counter;?>" <?php if($counter==0) echo 'class="active"';?>></li>
<?php
$counter = $counter + 1;
}
?>
</ol>
<div class="carousel-inner">
<?php
// SLIDER ITEMS
$item_number = 0;
foreach($slider_items as $item)
{
?>
<div class="carousel-item <?php if($item_number==0) echo 'active';?>">
<img class="d-block w-100" src="<?php echo UPLOADS_DIR;?>/images/<?php echo $item['image'];?>" alt="<?php echo $item['title'];?>">
<div class="carousel-caption d-md-block">
<?php if($item['url']) { ?><div class="slide-title"><a href="<?php echo $item['url'];?>"><?php echo $item['title'];?></a></div><?php }
else { ?><div class="slide-title"><?php echo $item['title'];?></div> <?php } ?>
<p class="slide-content d-none d-md-block"><?php echo $item['content'] ;?></p>
</div>
</div>
<?php
$item_number = $item_number + 1;
}
?>
</div>
<a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>