# Copyright (C) 2010 Matamko.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.matamko.com # Technical Support: Visit our forum at www.matamko.com -------------------------------------------------------------------------*/ require_once JPATH_ADMINISTRATOR . DS . "components" . DS . "com_enmasse" . DS . "helpers" . DS . "EnmasseHelper.class.php"; require_once JPATH_ADMINISTRATOR . DS . "components" . DS . "com_enmasse" . DS . "helpers" . DS . "DatetimeWrapper.class.php"; $theme = EnmasseHelper::getThemeFromSetting(); //--------- add stylesheet and javascript JFactory::getDocument()->addStyleSheet("components/com_enmasse/theme/" . $theme . "/css/blinds.css"); JFactory::getDocument()->addStyleSheet('components/com_enmasse/theme/' . $theme . '/css/screen.css'); JFactory::getDocument()->addScript("components/com_enmasse/theme/js/jquery/jquery-1.6.2.min.js"); JFactory::getDocument()->addScript("components/com_enmasse/theme/js/DD_roundies_0.0.2a-min.js"); JFactory::getDocument()->addScript("components/com_enmasse/theme/js/jquery/jquery.blinds-0.9.js"); //set default timezone DatetimeWrapper::setTimezone(DatetimeWrapper::getTimezone()); $deal = $this->deal; $merchant = $deal->merchant; //------- to set the meta data and page title for SEO $document = JFactory::getDocument(); $document->setMetadata('Keywords', $deal->name); $version = new JVersion(); $joomla = $version->getShortVersion(); if (substr($joomla, 0, 3) >= 1.6) { $document = JFactory::getDocument(); $document->setTitle($deal->name); } else { $mainframe->setPageTitle($deal->name); } // load the deal image size $dealImageSize = EnmasseHelper::getDealImageSize();