first commit
This commit is contained in:
29
templates/banner/banners.php
Normal file
29
templates/banner/banners.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<div id="banners-container">
|
||||
<ul class="rslides">
|
||||
<? if ( is_array( $this -> banners ) ): foreach ( $this -> banners as $banner ):?>
|
||||
<li>
|
||||
<? if ( $banner['languages']['url'] ):?><a href="<?= $banner['languages']['url'];?>"><? endif;?>
|
||||
<img src="<?= $banner['languages']['src'];?>">
|
||||
<? if ( $banner['languages']['url'] ):?></a><? endif;?>
|
||||
</li>
|
||||
<? endforeach; endif;?>
|
||||
</ul>
|
||||
<? if ( is_array( $this -> banners ) ): foreach ( $this -> banners as $banner ):?>
|
||||
<? if ( $banner['languages']['html'] ): $banner['languages']['html']; endif;?>
|
||||
<? if ( $banner['languages']['text'] ): $banner['languages']['text']; endif;?>
|
||||
<? endforeach; endif;?>
|
||||
</div>
|
||||
<link class="footer" rel="stylesheet" href="/plugins/responsive-slides/responsiveslides.css">
|
||||
<script class="footer" type="text/javascript" src="/plugins/responsive-slides/responsiveslides.js"></script>
|
||||
<script class="footer" type="text/javascript">
|
||||
$( function ()
|
||||
{
|
||||
$( ".rslides" ).responsiveSlides({
|
||||
speed: 800,
|
||||
pager: true,
|
||||
nav: true,
|
||||
prevText: '<i class="fa fa-chevron-left"><\/i>',
|
||||
nextText: '<i class="fa fa-chevron-right"><\/i>'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user