/**
* @subpackage TD-Okini v3.0
* @copyright Copyright (C) 2013 TempoDesign - All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
JHTML::_('behavior.framework');
$BoxOn = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$LeftMenuOn = ($this->countModules('position-4') or $this->countModules('position-5') or $this->countModules('position-7'));
$RightMenuOn = ($this->countModules('position-6') or $this->countModules('position-8'));
$app = JFactory::getApplication();
$sitename = $app->getCfg('sitename');
// Header Settings
$logopath = $this->baseurl . '/templates/' . $this->template . '/images/logo.gif';
$logo = $this->params->get('logo', $logopath);
$logoimage = $this->params->get('logoimage');
$sitetitle = $this->params->get('sitetitle');
$sitedescription = $this->params->get('sitedescription');
// Slideshow Settings
$slides = $this->params->get('slides');
$slideseffect = $this->params->get('slideseffect');
$slidesanimSpeed = $this->params->get('slidesanimSpeed');
$slidesinterval = $this->params->get('slidesinterval');
$slidesheight = $this->params->get('slidesheight');
$slidesfolder = $this->params->get('slidesfolder','-1');
if ($slides == "0") {
// Show Slider on all pages
$slideson = TRUE;
} elseif ($slides == "1") {
// Show Slider on homepage only
$menu = $app->getMenu();
$lang = JFactory::getLanguage();
if ($menu->getActive() == $menu->getDefault($lang->getTag())) {
$slideson = TRUE;
} else {
// Hide Slider
$slideson = FALSE;
}
} else {
// Hide Slider
$slideson = FALSE;
}
if ($slidesfolder != '-1' && $slideson) {
// Use images from Media Manager
$slidesdir = "images/" . $slidesfolder . "/";
} elseif ($slideson) {
// Use default image folder
$slidesdir = 'templates/' . $this->template . '/images/slides/';
}
if ($slideson) {
if (file_exists($slidesdir) && is_readable($slidesdir)) {
$images = preg_grep("/(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG)$/i",glob($slidesdir . "*"));
} else {
echo ' - Slideshow image folder not found! - ';
}
}
?>
<script>baseurl ?>/templates/template; ?>/js/sfhover.js"></script>
<script>baseurl ?>/templates/template; ?>/js/NivooSlider.js"></script>
<script>
window.addEvent('domready', function () {
new NivooSlider($('Slider'), {
animSpeed: ,
interval: ,
controlNavItem: 'disc',
effect: '',
directionNavHide: true
});
});
</script>