Your IP : 216.73.216.240
<?php
/**
* @package mod_geekfacebookembed
* @version 1.2.0
*
* @copyright Copyright (C) 2015 - 2017 JoomlaGeek. All Rights Reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author JoomlaGeek <admin@joomlageek.com>
* @link http://www.joomlageek.com
*/
defined('JPATH_BASE') or die;
$cols = (int) $params->get('display_columns', 2);
$numItems = count($items);
if(!$cols) $cols = 1;
$size = 12/$cols;
$carouselid = 'geek-facebook-embed-wrapper-'.$module->id;
?>
<?php if(count($items)): ?>
<div class="geek-facebook-embed-wrapper<?php echo $moduleclass_sfx; ?>">
<div id="<?php echo $carouselid; ?>" class="carousel slide" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<?php for($index=0; $index<$numItems; $index++):
list($item_type, $url) = $items[$index];
?>
<?php if($index % $cols ==0): ?>
<div class="item<?php echo ($index == 0 ? ' active' : ''); ?>">
<?php endif; ?>
<div class="facebook-item pull-left">
<?php if($item_type == 'fb-event'): ?>
<?php echo $url; ?>
<?php else: ?>
<div class="<?php echo $item_type; ?>" data-href="<?php echo $url; ?>" style="width:<?php echo $width; ?>px;" data-width="<?php echo $width; ?>"></div>
<?php endif; ?>
</div>
<?php if(($index + 1) % $cols ==0 || $index == $numItems -1): ?>
</div>
<?php endif; ?>
<?php endfor; ?>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#<?php echo $carouselid; ?>" data-slide="prev">‹</a>
<a class="carousel-control right" href="#<?php echo $carouselid; ?>" data-slide="next">›</a>
</div>
</div>
<?php endif; ?>