Your IP : 216.73.216.240


Current Path : /home/juvelize/www/modules/mod_simple_unite_gallery/
Upload File :
Current File : /home/juvelize/www/modules/mod_simple_unite_gallery/mod_simple_unite_gallery.php

<?php
/**
* Simple Unit Gallery - Joomla Module 
* Version			: 1.2.6
* Package			: Joomla 3.6.x
* copyright 		: Copyright (C) 2016 ConseilGouz. All rights reserved.
* license    		: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* From              : Unit Gallery, https://github.com/vvvmax/unitegallery
* Updated on        : December, 2016
*/
// no direct access
defined('_JEXEC') or die;

// Include the syndicate functions only once
require_once __DIR__ . '/helper.php';

$document 		= JFactory::getDocument();
$baseurl 		= JURI::base();
$modulefield	= ''.JURI::base(true).'/modules/mod_simple_unite_gallery/';

//Get this module id
$nummod_sf		= $module->id;
$num_sf		= 'mod'.$nummod_sf;

$ug_type	= $params->get('ug_type', '');
$ug_texte	= $params->get('ug_texte', '');
$ug_tiles_type = $params->get('ug_tiles_type', '' );
$ug_big_dir = $params->get('ug_big_dir','');
$ug_grid_num_rows = $params->get('ug_grid_num_rows');
$ug_space_between_rows = $params->get('ug_space_between_rows');
$ug_space_between_cols = $params->get('ug_space_between_cols');
JHtml::_('bootstrap.framework');						 // on force le chargement de jquery
$document->addStyleSheet($modulefield.'unitegallery/css/unite-gallery.css');
$document->addScript($modulefield.'unitegallery/js/unitegallery.min.js');
if ($ug_type == "tiles") {
	if ($ug_tiles_type == "tilesgrid") {
	$document->addScript($modulefield.'unitegallery/themes/tilesgrid/ug-theme-tilesgrid.js');
	} else {
	$document->addScript($modulefield.'unitegallery/themes/tiles/ug-theme-tiles.js');
	}
}
if ($ug_type == "grid") {
$document->addScript($modulefield.'unitegallery/themes/grid/ug-theme-grid.js');
}
if ($ug_type == "carousel") {
$document->addScript($modulefield.'unitegallery/themes/carousel/ug-theme-carousel.js');
}
if ($ug_type == "slider") {
$document->addScript($modulefield.'unitegallery/themes/slider/ug-theme-slider.js');
}
require JModuleHelper::getLayoutPath('mod_simple_unite_gallery', $params->get('layout', 'default'));
?>