Ejemplo n.º 1
0
defined('_JEXEC') or die('Restricted access');
global $mainframe;
// count instances
if (!isset($GLOBALS['yoo_drawers'])) {
    $GLOBALS['yoo_drawers'] = 1;
} else {
    $GLOBALS['yoo_drawers']++;
}
// 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 = modYOOdrawerHelper::getList($params, $access);
// check if any results returned
$items = count($list);
if (!$items) {
    return;
}
// init vars
$style = $params->get('style', 'default-v');
$module_height = $params->get('module_height', '150');
$item_size = $params->get('item_size', '220');
$item_minimized = $params->get('item_minimized', '90');
$title = $params->get('title', 'Title');
$module_base = JURI::base() . 'modules/mod_yoo_drawer/';
// css parameters
$drawer_id = 'yoo-drawer-' . $GLOBALS['yoo_drawers'];
switch ($style) {
Ejemplo n.º 2
0
    ?>

			<li class="<?php 
    echo $item_class;
    ?>
" style="<?php 
    echo $item_style;
    ?>
">
				<span class="item-bg">
					<span class="item-m" style="<?php 
    echo $css_item_height;
    ?>
">
						<?php 
    modYOOdrawerHelper::renderItem($listitem, $params, $access);
    ?>
					</span>
				</span>
				<span class="item-bl">
					<span class="item-br">
						<span class="item-b">
						</span>
					</span>
				</span>
			</li>
			
		<?php 
}
?>
		</ul>