?
Path : /home/admin/public_html/old/modules/mod_responsivegallery/ |
Current File : /home/admin/public_html/old/modules/mod_responsivegallery/mod_responsivegallery.php |
<?php /*------------------------------------------------------------------------ # mod_responsivegallery - Responsive Photo Gallery for Joomla 3.0 v2.9.2 # ------------------------------------------------------------------------ # author GraphicAholic # copyright Copyright (C) 2011 GraphicAholic.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.graphicaholic.com -------------------------------------------------------------------------*/ // No direct access defined('_JEXEC') or die('Restricted access'); defined('DS') or define('DS', DIRECTORY_SEPARATOR); JHtml::_('bootstrap.framework'); // Import the file / foldersystem jimport('joomla.filesystem.file'); jimport('joomla.filesystem.folder'); $LiveSite = JURI::base(); $document = JFactory::getDocument(); $modbase = JURI::base(true).'/modules/mod_responsivegallery/'; $imageFeed = $params->get('imageFeed'); $lightboxEffect = $params->get('lightboxEffect', '1'); $lightboxScript = $params->get('lightboxScript', '1'); $styles = $params->get('styles', '1'); $itemTitle = $params->get('itemTitle',1); $moduleID = $module->id; if ($lightboxEffect == "1") { $document->addScript($modbase.'js/gallery.js'); } else { $document->addScript($modbase.'js/gallery_NL.js'); } if ($styles == "light") { $document->addStyleSheet($modbase.'css/style_light.css'); $document->addStyleSheet($modbase.'css/elastislide_light.css'); } elseif ($styles == "dark") { $document->addStyleSheet($modbase.'css/style_dark.css'); $document->addStyleSheet($modbase.'css/elastislide_dark.css'); } elseif ($styles == "custom") { $document->addStyleSheet($modbase.'css/style_custom.css'); $document->addStyleSheet($modbase.'css/elastislide_custom.css'); } if ($lightboxScript == "1") { $document->addScript ($modbase.'js/jquery.fancybox.js'); $document->addStyleSheet($modbase.'css/jquery.fancybox.css'); } $document->addScript ($modbase.'js/jquery.tmpl.js'); $document->addScript ($modbase.'js/jquery.easing.1.3.js'); $document->addScript ($modbase.'js/jquery.elastislide.js'); $moduleId = $module->id; if ($imageFeed == "5") { require_once __DIR__ . '/helpers/jhelper.php'; $param = modResponsiveGalleryHelper::render($params); require (JModuleHelper::getLayoutPath('mod_responsivegallery',$params->get('layout', 'default'))); } else { require_once (dirname(__FILE__).DS.'helper.php'); $list = modResponsiveGalleryHelper::getimgList($params, $moduleID); require(JModuleHelper::getLayoutPath('mod_responsivegallery')); } ?>