Beispiel #1
0
?>
">
								<div style="<?php 
echo $css_total_panel_width;
?>
">
								<?php 
for ($i = 0; $i < $items; $i++) {
    ?>
									<div class="slide" style="<?php 
    echo $css_panel_width;
    echo $css_slide_position;
    ?>
">
										<?php 
    modYOOcarouselHelper::renderItem($list[$i], $params, $access);
    ?>
									</div>
								<?php 
}
?>
								</div>
							</div>
							
						</div>
					</div>
				</div>
			
				<?php 
if ($buttons) {
    ?>
defined('_JEXEC') or die('Restricted access');
global $mainframe;
// count instances
if (!isset($GLOBALS['yoo_carousels'])) {
    $GLOBALS['yoo_carousels'] = 1;
} else {
    $GLOBALS['yoo_carousels']++;
}
// include the syndicate functions only once
require_once dirname(__FILE__) . DS . 'helper.php';
// disable edit ability icon
$access = new stdClass();
$access->canEdit = 0;
$access->canEditOwn = 0;
$access->canPublish = 0;
$list = modYOOcarouselHelper::getList($params, $access);
// check if any results returned
$items = count($list);
if (!$items) {
    return;
}
// init vars
$style = $params->get('style', 'default');
$module_width = $params->get('module_width', '400');
$module_height = $params->get('module_height', '200');
$tab_width = $params->get('tab_width', '200');
$slide_interval = $params->get('slide_interval', '3000');
$transition_effect = $params->get('transition_effect', 'scroll');
$transition_duration = $params->get('transition_duration', '700');
$control_panel = $params->get('control_panel', 'top');
$rotate_action = $params->get('rotate_action', 'click');