| Current Path : /opt/allsoanup/public_html/modules/mod_vp_compare/ |
| Current File : //opt/allsoanup/public_html/modules/mod_vp_compare/mod_vp_compare.php |
<?php
/**
*---------------------------------------------------------------------------------------
* @package VP Framework for Joomla!
*---------------------------------------------------------------------------------------
* @copyright Copyright (C) 2012-2015 VirtuePlanet Services LLP. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @authors Abhishek Das
* @email info@virtueplanet.com
* @link http://www.virtueplanet.com
*---------------------------------------------------------------------------------------
*/
defined('_JEXEC') or die;
if(!class_exists('ModVPCompareHelper')) require dirname(__FILE__) . '/helper.php';
if(JPluginHelper::isEnabled('system', 'vpframework'))
{
$_template = plgSystemVPFrameworkHelper::getTemplate();
if($_template->params->get('vpframework', 0))
{
$app = JFactory::getApplication();
$document = JFactory::getDocument();
$products = VPFrameworkVM::getCompareList();
$url = '';
$article_id = (int) $_template->params->get('compare_article_id', 0);
$Itemid = !empty($article_id) ? $_template->getArticleItemid($article_id) : 0;
$Itemid = !empty($Itemid) ? '&Itemid=' . $Itemid : '';
if(!empty($article_id))
{
$url = JRoute::_('index.php?option=com_content&view=article&id=' . $article_id . $Itemid, false);
$url = str_replace('&', '&', $url);
}
$product_count = count($products);
$currencyDisplay = CurrencyDisplay::getInstance();
$menuid = $app->input->getInt('Itemid', 0);
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
require JModuleHelper::getLayoutPath('mod_vp_compare', $params->get('layout', 'default'));
}
}