Exemplo n.º 1
0
 function subdirs($dir)
 {
     foreach (glob($dir, GLOB_ONLYDIR) as $i => $k) {
         $this->dirs[] = $k;
         modNivoSliderHelper::subdirs($k . '/*');
     }
 }
Exemplo n.º 2
0
<?php

/**
 * @package     Nivo-Szaki Slider
 * @link        http://szathmari.hu
 * @version     1.2
 * @copyright   Copyright (C) 2012 szathmari.hu
 * @license     GNU/GPL http://www.gnu.org/copyleft/gpl.html
 */
defined('_JEXEC') or die('Restricted access');
modNivoSliderHelper::render($params);
?>

Exemplo n.º 3
0
<?php

/**
 * @package     Nivo-Szaki Slider
 * @link        http://szathmari.hu
 * @version     1.0
 * @copyright   Copyright (C) 2011 szathmari.hu
 * @license     GNU/GPL http://www.gnu.org/copyleft/gpl.html
 */
defined('_JEXEC') or die('Restricted access');
if (!$images) {
    echo JText::_('Images not found');
} else {
    modNivoSliderHelper::render($params, $folders, $images);
}
Exemplo n.º 4
0
<?php

/**
 * @package     Nivo-Szaki Slider
 * @link        http://szathmari.hu
 * @version     1.0
 * @copyright   Copyright (C) 2011 szathmari.hu
 * @license     GNU/GPL http://www.gnu.org/copyleft/gpl.html
 */
defined('_JEXEC') or die('Restricted access');
require_once dirname(__FILE__) . DS . 'helper.php';
$imagesDir = rtrim($params->get('imagesDir', 'images/banners/'), '/\\');
if ($params->get('subDir', 0)) {
    $folders = array();
    modNivoSliderHelper::getSubdirs($imagesDir, $folders);
    $imagesDir = $folders;
} else {
    $imagesDir = array($imagesDir);
}
$images = modNivoSliderHelper::getImages($params, $imagesDir);
require JModuleHelper::getLayoutPath('mod_nivoslider');