HEX
Server: Apache
System: Linux webm002.cluster115.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: centralexf (54246)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/centralexf/www/modules/mod_qtabs/mod_qtabs.php
<?php
/**
 * QTabs Module
 *
 * @version 0.7.0
 * @package qtabs
 * @author Massimo Giagnoni  ( http://www.latenight-coding.com )
 * @copyright Copyright (C) 2008 Massimo Giagnoni. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */
defined('_JEXEC') or die('Restricted access');

require_once (dirname(__FILE__).DS.'helper.php');
JHTML::stylesheet('qtabs_main.css','modules/mod_qtabs/css/');
JHTML::stylesheet('qtabs_'. $params->get('style','default') .'.css','modules/mod_qtabs/css/');
JHTML::script('qtabs.js','modules/mod_qtabs/js/',true);
$document =& JFactory::getDocument();
$options = '';

if($p = (int)$params->get('default_tab')) {
	$options .= "def_tab:$p,";
}
if($p = (int)$params->get('width')) {
	$options .= "contWidth:$p,";
}
if($p = (int)$params->get('height')) {
	$options .= "contHeight:$p,";
}
if($p = (int)$params->get('t_width')) {
	$options .= "tabsWidth:$p,";
}
if($p = (int)$params->get('t_height')) {
	$options .= "tabsHeight:$p,";
}
if($p = $params->get('scrolling',0)) {
	$options .= "scrolling:$p,";
	$p = (int)$params->get('duration');
	if($p) {
		$options .= "duration:$p,";
	}
	if($p = $params->get('transition','Quad')) {
		$options .= "transition:'$p',";
		if($p != 'linear') {
			$options .= "easing:'" . $params->get('easing','easeInOut') . "',";
		}
		
	}
}
if($p = (int)$params->get('autoplay',0)){
	$options .= "autoplay:$p,";
	$options .= "delay:". $params->get('delay',5000) . ",";
}

$options = rtrim($options, ',');
$js = "window.addEvent('domready', function(){ var t=new QTabs('".$module->id."', {". $options. "}); })";
$document->addScriptDeclaration($js);
$tabs_cont = modQTabsHelper::getContent($module->id, $params, $document);
require(JModuleHelper::getLayoutPath('mod_qtabs'));
?>