Exemplo n.º 1
0
<?php
/**
* Fade Javascript Image Gallery Joomla! 1.5 Native Component
* @version 1.3.0
* @author DesignCompass corp <*****@*****.**>
* @link http://www.designcompasscorp.com
* @license GNU/GPL **/

defined('_JEXEC') or die('Restricted access');

require_once(JPATH_SITE.DS.'components'.DS.'com_fadegallery'.DS.'includes'.DS.'fadegalleryclass.php');


$fg=new FadeGalleryClass;

$galleryid=(int)$params->get( 'galleryid' );



if($galleryid!=0)
{
	$galleryrow=$fg->getGallery($galleryid);
	
	$fg_images=$fg->getFileList($galleryrow->folder, $galleryrow->filelist);
	if(count($fg_images)>0)
	{
	
		$fg_interval=(int)$galleryrow->interval;
		$fg_fadetime=(int)$galleryrow->fadetime;
		$fg_fadestep=(int)$galleryrow->fadestep;
		
Exemplo n.º 2
0
<?php
/**
 * FadeGallery Joomla! 1.5 Native Component
 * @version 1.2.5
 * @author DesignCompass corp< <*****@*****.**>
 * @link http://www.designcompasscorp.com
 * @license GNU/GPL
 **/

// no direct access
defined('_JEXEC') or die('Restricted access');

require_once(JPATH_SITE.DS.'components'.DS.'com_fadegallery'.DS.'includes'.DS.'fadegalleryclass.php');
  
$fg=new FadeGalleryClass;


$fg_images=$fg->getFileList($this->params->get( 'folder' ), $this->params->get( 'filelist' ));
	
	
$fg_interval=(int)$this->params->get( 'interval' );
$fg_fadetime=(int)$this->params->get( 'fadetime' );
$fg_fadestep=(int)$this->params->get( 'fadestep' );

$width=(int)$this->params->get( 'width' );
$height=(int)$this->params->get( 'height' );

	if($width<1)			$width=400;
	if($height<1)			$height=300;

	if($fg_interval==0)		$fg_interval=6000;