> <a<?php echo AriHtmlHelper::getAttrStr($aAttr); ?> > <?php echo stripslashes(J1_6 ? $menuItem->title : $menuItem->name); ?> <?php if ($hasChilds) { ?> <span class="ux-menu-arrow"></span> <?php } ?> </a> <div class="left-circ-2"></div> <div class="left-circ"></div> <?php if ($hasChilds && ($menuEndLevel < 0 || $menuLevel + 1 <= $menuEndLevel)) { AriTemplate::display(__FILE__, array('menu' => $menu, 'menuStartLevel' => $menuStartLevel, 'menuEndLevel' => $menuEndLevel, 'menuLevel' => $menuLevel + 1, 'menuDirection' => $menuDirection, 'parent' => $menuItem->id, 'hlCurrentItem' => $hlCurrentItem, 'hlOnlyActiveItems' => $hlOnlyActiveItems, 'activeTopId' => $activeTopId)); } ?> </li> <?php ++$i; } ?> </ul> <?php }
function execute($modelParams, $params, $templatePath) { $flickrProvider = new AriFlickrProvider($modelParams, null, 'mod_arisexylightbox'); $flickrData = $this->getData( $flickrProvider->getData($modelParams), $modelParams, $params); if ($modelParams['type'] == 'customtext') { $cId = uniqid('asb_', false); $modelParams['customtemplate'] = '<div id="' . $cId . '" style="cursor: pointer;">' . $modelParams['customtemplate'] . '</div>'; $document =& JFactory::getDocument(); $document->addScriptDeclaration(sprintf('jQuery(document).ready(function($){ $("#%1$s").click(function(event) { $("#%1$s").closest(".ari_lightbox_container").find("a[rel^=\'sexylightbox\']").eq(0).click(); }); });', $cId)); } else if ($modelParams['type'] == 'flickrimage') { $photoId = $modelParams['flickrimage']['photoId']; $photo = AriUtils::getParam($flickrData['photos'], $photoId); $repeater = new AriRepeaterWebControl(ASEXYBOX_SINGLEIMAGEGALLERYTEMPLATE, $flickrData['photos']); AriTemplate::display( $templatePath . 'flickrimage.html.php', array( 'repeater' => $repeater, 'template' => AriSimpleTemplate::parse($modelParams['flickrimage']['template'], array('data' => $photo)) ) ); return ; } else if ($modelParams['type'] == 'flickrphotosets') { $captionTemplate = AriUtils2::getParam($modelParams, 'caption', '{$Title}'); $needParseTemplate = strpos($captionTemplate, '{$') !== false; $firstPhotosetsPhoto = array(); $photosetsPhoto = array(); $modal = AriUtils2::parseValueBySample($params['_default']['modal'], false); foreach ($flickrData['photos'] as $dataItem) { $photosetId = $dataItem['photosetId']; $title = $needParseTemplate ? AriSimpleTemplate::parse($captionTemplate, $dataItem, true) : $captionTemplate; if (!isset($firstPhotosetsPhoto[$photosetId])) { $photoset = AriUtils2::getParam($flickrData['photosets'], $photosetId); $aAttrs = array('href' => $dataItem['imgUrl'] . ($modal ? '?modal=1' : ''), 'rel' => 'sexylightbox[ps_' . $photosetId . ']', 'title' => $title); $imgAttrs = array('src' => $dataItem['thumbUrl'], 'border' => '0', 'alt' => $dataItem['Title']); $dataItem['Caption'] = AriUtils2::getParam($photoset, 'title', ''); $dataItem['sexyimage'] = sprintf('<a%1$s><img%2$s/></a>', AriHtmlHelper::getAttrStr($aAttrs), AriHtmlHelper::getAttrStr($imgAttrs)); $firstPhotosetsPhoto[$photosetId] = $dataItem; } else { $aAttrs = array('href' => $dataItem['imgUrl'] . ($modal ? '?modal=1' : ''), 'rel' => 'sexylightbox[ps_' . $photosetId . ']', 'title' => $title); $dataItem['sexyimage'] = sprintf('<a%1$s></a>', AriHtmlHelper::getAttrStr($aAttrs)); $photosetsPhoto[] = $dataItem; } } $showTitle = (bool)$modelParams['flickrphotosets']['showTitle']; $rptParams = $modelParams['flickrphotosets']; $rptParams['GalleryCaption'] = $showTitle ? '{$data:Caption}' : ''; $repeater = new AriRepeaterWebControl( AriSimpleTemplate::parse( ASEXYBOX_SIMPLEGALLERYTEMPLATE, $rptParams ), $firstPhotosetsPhoto); AriTemplate::display( $templatePath . 'flickrphotosets.html.php', array( 'repeater' => $repeater, 'photos' => $photosetsPhoto ) ); return ; } parent::execute( $flickrData['photos'], array( 'simpleGallery' => ASEXYBOX_SIMPLEGALLERYTEMPLATE, 'singleGallery' => ASEXYBOX_SINGLEIMAGEGALLERYTEMPLATE, 'hiddenItems' => ASEXYBOX_HIDDENITEMSTEMPLATE, 'slickGallery' => ASEXYBOX_SLICKGALLERYTEMPLATE), $modelParams, $params, $templatePath); }
<?php /* * ARI Ext menu Joomla! module * * @package ARI Ext Menu Joomla! module. * @version 1.0.0 * @author ARI Soft * @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved * @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html) * */ defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.'); ?> <div id="<?php echo $menuId; ?> _container" class="ux-menu-container ux-menu-clearfix"> <?php AriTemplate::display(dirname(__FILE__) . DS . 'menu.php', array('menuId' => $menuId, 'menu' => $menu, 'menuStartLevel' => $menuStartLevel, 'menuEndLevel' => $menuEndLevel, 'menuLevel' => $menuLevel, 'menuDirection' => $menuDirection, 'hlCurrentItem' => $hlCurrentItem, 'hlOnlyActiveItems' => $hlOnlyActiveItems, 'activeTopId' => $activeTopId, 'parent' => 0)); ?> </div>
if ($isMainLevel && !$i) $liClass .= ' first-of-type'; ?> <li class="<?php echo $liClass; ?>"> <a<?php echo AriHtmlHelper::getAttrStr($aAttr); ?>><?php echo stripslashes(htmlspecialchars(J1_6 ? $menuItem->title : $menuItem->name)); ?></a> <?php if ($hasChilds && ($menuEndLevel < 0 || $menuLevel + 1 <= $menuEndLevel)): AriTemplate::display( __FILE__, array( 'menu' => $menu, 'menuStartLevel' => $menuStartLevel, 'menuEndLevel' => $menuEndLevel, 'menuLevel' => $menuLevel + 1, 'menuDirection' => $menuDirection, 'parent' => $menuItem->id, 'hlCurrentItem' => $hlCurrentItem, 'hlOnlyActiveItems' => $hlOnlyActiveItems, 'showHiddenItems' => $showHiddenItems, 'remainActive' => $remainActive, 'advSeparator' => $advSeparator, 'activeTopId' => $activeTopId ) ); endif; ?> </li> <?php ++$i; endforeach; ?>
function execute($modelParams, $params, $templatePath) { $modelName = $this->getModelName(); AriTemplate::display($templatePath . strtolower($modelName) . '.html.php', $modelParams); }
* @author ARI Soft * @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved * @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html) * */ defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.'); ?> <div class="yui-skin-sam" id="<?php echo $menuId; ?>"> <?php AriTemplate::display( dirname(__FILE__) . DS . 'menu.php', array( 'menu' => $menu, 'menuId' => $menuId . '_menu', 'menuStartLevel' => $menuStartLevel, 'menuEndLevel' => $menuEndLevel, 'menuLevel' => $menuLevel, 'menuDirection' => $menuDirection, 'hlCurrentItem' => $hlCurrentItem, 'hlOnlyActiveItems' => $hlOnlyActiveItems, 'showHiddenItems' => (bool)$params->get('showHiddenItems', false), 'remainActive' => (bool)$params->get('remainActive', false), 'advSeparator' => (bool)$params->get('advSeparator', false), 'activeTopId' => $activeTopId, 'parent' => 0 ) ); ?> </div>