Your IP : 216.73.216.240
<?php
/*------------------------------------------------------------------------
# mod_lofk2scroller - Lof K2Scroller Module
# ------------------------------------------------------------------------
# author LandOfCoder
# copyright Copyright (C) 2010 landofcoder.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.landofcoder.com
# Technical Support: Forum - http://www.landofcoder.com/forum.html
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$span = $cols>1?floor( 12/$cols):"";
?>
<div class="responsive-carousel carousel slide" id="carousel<?php echo $module->id;?>">
<div class="carousel-inner" >
<?php $pages = array_chunk( $list, $maxPages);?>
<?php foreach ( $pages as $j=>$news ) : ?>
<div class="item <?php if($j==0) {?>active<?php } ?>">
<?php foreach( $news as $i => $row ): $i=$i+1;?>
<?php if( $i%$cols == 1 && $cols>1) { ?>
<div class="row-fluid">
<?php } ?>
<div class="span<?php echo $span;?>">
<div class="item-inner ">
<?php require( $itemLayoutPath ); ?>
</div>
</div>
<?php if( ($i%$cols == 0 || $i==count($news)) && $cols>1 ) { ?>
</div>
<?php } ?>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
<?php if( $params->get("display_button",1) ): ?>
<div class=" carousel-controls ">
<a class=" left carousel-control" href="#carousel<?php echo $module->id;?>" data-slide="prev"> </a>
<a class=" right carousel-control" href="#carousel<?php echo $module->id;?>" data-slide="next"> </a>
</div>
<?php endif; ?>
<?php if( $params->get("display_pagination",0) ): ?>
<ol class="carousel-indicators">
<?php foreach ( $pages as $j=>$news ) : ?>
<li data-target="#carousel<?php echo $module->id;?>" data-slide-to="<?php echo $j;?>" class="<?php if($j==0) {?>active<?php } ?>"></li>
<?php endforeach ?>
</ol>
<?php endif; ?>
</div>
<script type="text/javascript">
jQuery('#carousel<?php echo $module->id;?>').each(function(index, element) {
jQuery(this)[index].slide = null;
jQuery(this).carousel( {interval:false,auto:false,pause:'hover'} );
});
</script>