Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->_table_prefix = '#__redshop_';
     $this->_producthelper = new producthelper();
     $this->_carthelper = new rsCarthelper();
     $this->_userhelper = new rsUserhelper();
     $this->_objshipping = new shipping();
     if (JModuleHelper::isEnabled('redshop_cart')) {
         $cart_param = JModuleHelper::getModule('redshop_cart');
         $cart_param_main = new JRegistry($cart_param->params);
         $use_cookies_value = $cart_param_main->get('use_cookies_value', '');
         if ($use_cookies_value == 0) {
             $this->emptyExpiredCartProducts();
         }
     } else {
         $this->emptyExpiredCartProducts();
     }
     $user = JFactory::getUser();
     $session = JFactory::getSession();
     $cart = $session->get('cart');
     $task = JRequest::getVar('task');
     if (!empty($cart)) {
         if (!$cart) {
             $cart = array();
             $cart['idx'] = 0;
         }
         $user_id = $user->id;
         $usersess = $session->get('rs_user');
         $shopperGroupId = $this->_userhelper->getShopperGroup($user_id);
         if (array_key_exists('user_shopper_group_id', $cart)) {
             $userArr = $this->_producthelper->getVatUserinfo($user_id);
             // Removed due to discount issue $usersess['vatCountry']
             if ($cart['user_shopper_group_id'] != $shopperGroupId || ($usersess['vatCountry'] != $userArr->country_code || $usersess['vatState'] != $userArr->state_code)) {
                 $cart = $this->_carthelper->modifyCart($cart, $user_id);
                 $cart['user_shopper_group_id'] = $shopperGroupId;
                 if ($task != 'coupon' && $task != 'voucher') {
                     $cart = $this->_carthelper->modifyDiscount($cart);
                 }
             }
         }
         $session->set('cart', $cart);
     }
 }
Esempio n. 2
0
function checkThirdPartyVersion($namephp, $namexml, $namedetailled, $path, $plggroup = null, $components = 0, $module = 0, $plugin = 0)
{
    jimport('joomla.filesystem.file');
    if ($components) {
        if (JFile::exists(JPATH_SITE . '/' . $path . '/' . $namephp . '.php')) {
            $check = false;
            foreach ($namexml as $filexml) {
                if (JFile::exists(JPATH_ADMINISTRATOR . '/' . $path . '/' . $filexml . '.xml')) {
                    $xml_com = JFactory::getXMLparser('Simple');
                    $xml_com->loadFile(JPATH_ADMINISTRATOR . '/' . $path . '/' . $filexml . '.xml');
                    $com_version = $xml_com->document->version[0];
                    $com_version = '[u]' . $namedetailled . '[/u] ' . $com_version->data();
                    $check = true;
                }
            }
            if (!$check) {
                $com_version = '[u]' . $namedetailled . ':[/u] The file doesn\'t exist ' . $namexml . '.xml !';
            }
        } else {
            $com_version = '';
        }
        return $com_version;
    } elseif ($module) {
        if (JModuleHelper::isEnabled($namephp) && JFile::exists(JPATH_SITE . '/' . $path . '/' . $namephp . '.php')) {
            if (JFile::exists(JPATH_SITE . '/' . $path . '/' . $namexml . '.xml')) {
                $xml_mod = JFactory::getXMLparser('Simple');
                $xml_mod->loadFile(JPATH_SITE . '/' . $path . '/' . $namexml . '.xml');
                $mod_version = $xml_mod->document->version[0];
                $mod_version = '[u]' . $namedetailled . '[/u] ' . $mod_version->data();
            } else {
                $mod_version = '[u]' . $namedetailled . ':[/u] The file doesn\'t exist ' . $namexml . '.xml !';
            }
        } else {
            $mod_version = '';
        }
        return $mod_version;
    } elseif ($plugin) {
        if (KUNENA_JOOMLA_COMPAT == '1.5') {
            $pathphp = JPATH_SITE . '/' . $path . '/' . $namephp;
            $pathxml = JPATH_SITE . '/' . $path . '/' . $namexml;
        } else {
            $pathphp = JPATH_SITE . '/' . $path . '/' . $namephp . '/' . $namephp;
            $pathxml = JPATH_SITE . '/' . $path . '/' . $namephp . '/' . $namexml;
        }
        if (JPluginHelper::isEnabled($plggroup, $namephp) && JFile::exists($pathphp . '.php')) {
            if (JFile::exists($pathxml . '.xml')) {
                $xml_plg = JFactory::getXMLparser('Simple');
                $xml_plg->loadFile($pathxml . '.xml');
                $plg_version = $xml_plg->document->version[0];
                $plg_version = '[u]' . $namedetailled . '[/u] ' . $plg_version->data();
            } else {
                $plg_version = '[u]' . $namedetailled . ':[/u] The file doesn\'t exist ' . $namexml . '.xml !';
            }
        } else {
            $plg_version = '';
        }
        return $plg_version;
    }
}
Esempio n. 3
0
 /**
  * Render the module
  *
  * @param Int $moduleid The module ID to load
  * @param JRegistry $params
  * @param Array $modulesList The list of all module objects published
  *
  * @return string with HTML
  */
 static function GenModuleById($moduleid, $params, $modulesList, $style)
 {
     $attribs['style'] = $style;
     // get the title of the module to load
     $modtitle = $modulesList[$moduleid]->title;
     $modname = $modulesList[$moduleid]->module;
     //$modname = preg_replace('/mod_/', '', $modname);
     // load the module
     if (JModuleHelper::isEnabled($modname)) {
         $module = JModuleHelper::getModule($modname, $modtitle);
         return JModuleHelper::renderModule($module, $attribs);
     }
     return 'Module ID=' . $moduleid . ' not found !';
 }
 /**
  * Test JModuleHelper::isEnabled
  *
  * @return  void
  *
  * @since   3.2
  */
 public function testIsEnabled()
 {
     $this->assertTrue((bool) JModuleHelper::isEnabled('mod_search'), 'mod_search should be enabled');
 }
Esempio n. 5
0
 public function checkMagicMagnity()
 {
     jimport('joomla.application.module.helper');
     return JModuleHelper::isEnabled('redmagicmagnifyplus');
 }
Esempio n. 6
0
 static function genModuleById($moduleId, $modulesList, $style)
 {
     $attributes['style'] = $style;
     $moduleTitle = $modulesList[$moduleId]->title;
     $moduleName = $modulesList[$moduleId]->module;
     if (JModuleHelper::isEnabled($moduleName)) {
         $module = JModuleHelper::getModule($moduleName, $moduleTitle);
         return JModuleHelper::renderModule($module, $attributes);
     }
     return 'Module ID=' . $moduleId . ' not found !';
 }
Esempio n. 7
0
 function GenModuleById($paramsVT, &$params, &$modulesList)
 {
     $paramsVT = preg_replace('/modid=/', '', $paramsVT);
     $modtitle = $modulesList[$paramsVT]->title;
     $modname = $modulesList[$paramsVT]->module;
     $modname = preg_replace('/mod_/', '', $modname);
     if (JModuleHelper::isEnabled($modname)) {
         $module = JModuleHelper::getModule($modname, $modtitle);
         $attribs['style'] = 'xhtml';
         return JModuleHelper::renderModule($module, $attribs);
     }
 }
Esempio n. 8
0
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link href="templates/<?php echo  $this->template ?>/css/template.css" rel="stylesheet" type="text/css" />
<link href="templates/<?php echo  $this->template ?>/css/960_fluid.css" rel="stylesheet" type="text/css" media="screen and (min-width:1025px)" />
<link href="templates/tablet/css/960_fluid.css" rel="stylesheet" type="text/css" media="screen and (max-width: 1024px)" />

<?php if($this->direction == 'rtl') : ?>
	<link href="templates/<?php echo  $this->template ?>/css/template_rtl.css" rel="stylesheet" type="text/css" />
<?php endif; ?>

<script type="text/javascript" src="templates/<?php echo  $this->template ?>/js/chromatable.js"></script>

<?php if(JModuleHelper::isEnabled('menu')) : ?>
	<script type="text/javascript" src="templates/<?php echo  $this->template ?>/js/index.js"></script>
<?php endif; ?>

<!--[if IE]>
<script src="http://domassistant.googlecode.com/svn/branches/2.8/DOMAssistantCompressed.js" type="text/javascript"></script>
<script type="text/javascript" src="templates/<?php echo  $this->template ?>/js/flexie.js"></script>
<link href="templates/<?php echo  $this->template ?>/css/ie.css" rel="stylesheet" type="text/css" />
 <![endif]-->
 
<?php if(strpos(KRequest::get('server.HTTP_USER_AGENT', 'word'), 'Titanium')) : ?>
     <link href="templates/desktop/css/template.css" rel="stylesheet" type="text/css" />
 <?php endif ?>

</head>
<body id="minwidth-body" class="<?php echo JRequest::getVar('option', 'cmd'); ?>">
Esempio n. 9
0
	/**
	 * Method to check if third party plugin/module/component is here and in which version.
	 *
	 * @return	string
	 * @since	1.6
	 */
	protected function _checkThirdPartyVersion($namephp, $namexml, $namedetailled, $path, $plggroup=null, $components=0, $module=0, $plugin=0) {
	// need update
		if ($components) {
		if ( JFile::exists(JPATH_SITE.'/'.$path.'/'.$namephp.'.php') ) {
			if ( JFile::exists(JPATH_ADMINISTRATOR.'/'.$path.'/'.$namexml.'.xml') ) {
				$xml_com = JFactory::getXMLparser('Simple');
				$xml_com->loadFile(JPATH_ADMINISTRATOR.'/'.$path.'/'.$namexml.'.xml');
				$com_version = $xml_com->document->version[0];
				$com_version = '[u]'.$namedetailled.':[/u] Installed (Version : '.$com_version->data().')';
			} else {
				$com_version = '[u]'.$namedetailled.'[/u] The file doesn\'t exist '.$namexml.'.xml !';
			}
		} else {
			$com_version = '';
		}
		return $com_version;
	} elseif ($module) {
		if ( JModuleHelper::isEnabled($namephp) && JFile::exists(JPATH_SITE.'/'.$path.'/'.$namephp.'.php') ) {
			if ( JFile::exists(JPATH_SITE.'/'.$path.'/'.$namexml.'.xml') ) {
				$xml_mod = JFactory::getXMLparser('Simple');
				$xml_mod->loadFile(JPATH_SITE.'/'.$path.'/'.$namexml.'.xml');
				$mod_version = $xml_mod->document->version[0];
				$mod_version = '[u]'.$namedetailled.':[/u] Enabled (Version : '.$mod_version->data().')';
			} else {
				$mod_version = '[u]'.$namedetailled.'[/u] The file doesn\'t exist '.$namexml.'.xml !';
			}
		} else {
			$mod_version = '';
		}
		return $mod_version;
	} elseif ($plugin) {
		$jversion = new JVersion ();
		if ($jversion->RELEASE == '1.5') {
			$pathphp = JPATH_SITE.'/'.$path.'/'.$namephp;
			$pathxml = JPATH_SITE.'/'.$path.'/'.$namexml;
		} else {
			$pathphp = JPATH_SITE.'/'.$path.'/'.$namephp.'/'.$namephp;
			$pathxml =JPATH_SITE.'/'.$path.'/'.$namephp.'/'.$namexml;
		}
		if ( JPluginHelper::isEnabled($plggroup, $namephp) && JFile::exists($pathphp.'.php') ) {
			if ( JFile::exists($pathxml.'.xml') ) {
				$xml_plg = JFactory::getXMLparser('Simple');
				$xml_plg->loadFile($pathxml.'.xml');
				$plg_version = $xml_plg->document->version[0];
				$plg_version = '[u]'.$namedetailled.'[/u] '.$plg_version->data();
			}	else {
				$plg_version = '[u]'.$namedetailled.':[/u] The file doesn\'t exist '.$namexml.'.xml !';
			}
		} else {
			$plg_version = '';
		}
		return $plg_version;
	}
}
Esempio n. 10
0
 static function GenModuleById($title, &$params, &$modulesList)
 {
     $attribs['style'] = 'none';
     if (!isset($modulesList[$title])) {
         return "<p>No module found !</p>";
     }
     $modtitle = $modulesList[$title]->title;
     $modname = $modulesList[$title]->module;
     //$modname = preg_replace('/mod_/', '', $modname);
     // load the module
     if (JModuleHelper::isEnabled($modname)) {
         $module = JModuleHelper::getModule($modname, $modtitle);
         if ($module) {
             return JModuleHelper::renderModule($module, $attribs);
         }
     }
     return "<p>No module found !</p>";
 }
Esempio n. 11
0
 /**
  * Render the module
  *
  * @param Int $moduleid The module ID to load
  * @param JRegistry $params
  * @param Array $modulesList The list of all module objects published
  *
  * @return string with HTML
  */
 static function GenModuleById($moduleid, $params, $modulesList, $style, $level = '1')
 {
     $attribs['style'] = $style;
     // get the title of the module to load
     $modtitle = $modulesList[$moduleid]->title;
     $modname = $modulesList[$moduleid]->module;
     //$modname = preg_replace('/mod_/', '', $modname);
     // load the module
     if (JModuleHelper::isEnabled($modname)) {
         $module = JModuleHelper::getModule($modname, $modtitle);
         // set the module param to know the calling level
         $paramstmp = new JRegistry();
         $paramstmp->loadString($module->params);
         $paramstmp->set('calledfromlevel', $level);
         $module->params = $paramstmp->toString();
         return JModuleHelper::renderModule($module, $attribs);
     }
     return 'Module ID=' . $moduleid . ' not found !';
 }
Esempio n. 12
0
 function extensionIsEnabled($extension_name = '')
 {
     if (!$extension_name) {
         return false;
     }
     $extension_type = substr($extension_name, 0, 3);
     $setNewBody = false;
     switch ($extension_type) {
         case 'com':
             jimport('joomla.application.component.helper');
             if (JComponentHelper::isEnabled($extension_name, true)) {
                 return true;
             }
             break;
         case 'mod':
             jimport('joomla.application.module.helper');
             // name has to be without "mod_" string at start
             if (JModuleHelper::isEnabled(substr($extension_name, 4))) {
                 return true;
             }
             break;
         case 'plg':
             jimport('joomla.plugin.helper');
             $extname = substr($extension_name, 4);
             // name has to be without "plg_" at start
             $plgname = substr($extname, strpos($extname, '_') + 1);
             $plgtype = substr($extname, 0, strlen($plgname) * -1 - 1);
             if (JPluginHelper::isEnabled($plgtype, $plgname)) {
                 return true;
             }
             break;
         default:
             break;
     }
     return false;
 }
Esempio n. 13
0
            ?>
:&nbsp;<a class="colorbox" href="<?php 
            echo JRoute::_("index.php?option=com_dtregister&controller=location&task=show&id=" . $Tevent->location_id . "&tmpl=component", $xhtml_url, false);
            ?>
"   ><?php 
            echo stripslashes($locationTable->name);
            ?>
</a>
           <?php 
        }
    }
}
$document =& JFactory::getDocument();
$document->addScript(JURI::root(true) . '/components/com_dtregister/assets/js/dt_jquery.js');
$document->addScript(JURI::root(true) . '/components/com_dtregister/assets/js/jquery.lightbox.js');
if (!JModuleHelper::isEnabled('s5_box')) {
    $document->addStyleSheet(JURI::root(true) . '/components/com_dtregister/assets/css/jquery.lightbox.css');
}
$document->addStyleSheet(JURI::root(true) . '/components/com_dtregister/assets/css/main.css');
if ($config->getGlobal('googlekey', '') !== "") {
    $document->addScript("http://maps.google.com/maps?file=api" . $amp . "v=2.x" . $amp . "key=" . $googlekey);
}
?>
 <script type="text/javascript">

    //<![CDATA[

	DTjQuery(function(){ 

	  window.status='test';
Esempio n. 14
0
    function termsField($eventId)
    {
        global $amp, $xhtml, $terms_conditions;
        if (!$terms_conditions) {
            return;
        }
        require_once JPATH_SITE . "/components/com_dtregister/views/field/view.html.php";
        $fieldView = new DtregisterViewField(array());
        foreach ($fieldView->_path['template'] as $path) {
            if (file_exists($path)) {
                $basepath = $path;
                break;
            }
        }
        $file = $basepath . "default.php";
        $label = JText::_('DT_CHECK_TERMS_CONDITIONS');
        $value = '<input type="checkbox" name="terms_conditions" id="terms_conditionscheck" value="terms" class="required" />';
        $value .= '<a href="' . JRoute::_('index.php?option=com_dtregister&controller=event&task=terms&no_html=1&eventId=' . $eventId) . '" id="terms_conditions_popup" class="lbOn">' . htmlspecialchars(JText::_('DT_TERMS_CONDITIONS_READ')) . '</a> <label for="terms_conditions" style="display:none" generated="true" class="error"></label> ';
        $constants = array('[label]', '[value]', '[description]');
        $replace = array($label, $value, '');
        $tpl = file_get_contents($file);
        $html = str_replace($constants, $replace, $tpl);
        $document =& JFactory::getDocument();
        if (!JModuleHelper::isEnabled('s5_box')) {
            $document->addStyleSheet(JURI::root(true) . '/components/com_dtregister/assets/css/jquery.lightbox.css');
        }
        $document->addScript(JURI::root(true) . '/components/com_dtregister/assets/js/jquery.lightbox.js');
        ob_start();
        ?>
             DTjQuery(function(){
                 DTjQuery("#terms_conditions_popup").live('click',function(){
                
			var href = DTjQuery(this).attr('href');
            
			DTjQuery.fn.colorbox({href:DTjQuery(this).attr('href'), open:true,iframe:true,  innerWidth:'50%',innerHeight:'50%' });
			
			return false;

		});
                
             });
          <?php 
        $js = ob_get_clean();
        $document->addScriptDeclaration($js);
        return $html;
    }
Esempio n. 15
0
 public function getCategoryTemplet()
 {
     $app = JFactory::getApplication();
     $context = 'search';
     $layout = $app->getUserStateFromRequest($context . 'layout', 'layout', '');
     $templateid = $app->getUserStateFromRequest($context . 'templateid', 'templateid', '');
     $params = JComponentHelper::getParams('com_redshop');
     $menu = $app->getMenu();
     $item = $menu->getActive();
     $cid = 0;
     $cid = 0;
     if ($layout == 'newproduct') {
         $cid = $item->query['categorytemplate'];
     } elseif ($layout == 'productonsale') {
         $cid = $item->params->get('categorytemplate');
     }
     if ($layout == 'productonsale' || $layout == 'featuredproduct') {
         $templateid = $item->params->get('template_id');
         if ($templateid != 0) {
             $cid = 0;
         }
         if ($templateid == 0 && $cid == 0) {
             $templateid = $app->getUserStateFromRequest($context . 'templateid', 'templateid', '');
         }
     }
     if ($templateid == "" && JModuleHelper::isEnabled('redPRODUCTFILTER')) {
         $module = JModuleHelper::getModule('redPRODUCTFILTER');
         $module_params = new JRegistry($module->params);
         if ($module_params->get('filtertemplate') != "") {
             $templateid = $module_params->get('filtertemplate');
         }
     }
     $and = "";
     if ($cid != 0) {
         $and .= " AND c.category_id = " . (int) $cid . " ";
     }
     if ($templateid != 0) {
         $and .= " AND t.template_id = " . (int) $templateid . " ";
     }
     $query = "SELECT c.category_template, t.* FROM " . $this->_table_prefix . "template AS t " . "LEFT JOIN " . $this->_table_prefix . "category AS c ON t.template_id = c.category_template " . "WHERE t.template_section='category' AND t.published=1 " . $and;
     return $this->_getList($query);
 }
Esempio n. 16
0
 public function modifyDiscount($cart)
 {
     $calArr = $this->calculation($cart);
     $cart['product_subtotal'] = $calArr[1];
     $cart['product_subtotal_excl_vat'] = $calArr[2];
     $c_index = 0;
     $v_index = 0;
     $discount_amount = 0;
     $voucherDiscount = 0;
     $couponDiscount = 0;
     $discount_excl_vat = 0;
     if (!empty($cart['coupon'])) {
         $c_index = count($cart['coupon']);
     }
     if (!empty($cart['voucher'])) {
         $v_index = count($cart['voucher']);
     }
     $totaldiscount = 0;
     if (DISCOUNT_ENABLE == 1) {
         $discount_amount = $this->_producthelper->getDiscountAmount($cart);
         if ($discount_amount > 0) {
             $cart = $this->_session->get('cart');
         }
     }
     if (!isset($cart['quotation_id']) || isset($cart['quotation_id']) && !$cart['quotation_id']) {
         $cart['cart_discount'] = $discount_amount;
     }
     for ($v = 0; $v < $v_index; $v++) {
         $voucher_code = $cart['voucher'][$v]['voucher_code'];
         unset($cart['voucher'][$v]);
         $voucher_code = JRequest::setVar('discount_code', $voucher_code);
         $cart = $this->voucher($cart);
     }
     if (array_key_exists('voucher', $cart)) {
         $voucherDiscount = $this->calculateDiscount('voucher', $cart['voucher']);
     }
     $cart['voucher_discount'] = $voucherDiscount;
     for ($c = 0; $c < $c_index; $c++) {
         $coupon_code = $cart['coupon'][$c]['coupon_code'];
         unset($cart['coupon'][$c]);
         $coupon_code = JRequest::setVar('discount_code', $coupon_code);
         $cart = $this->coupon($cart);
     }
     if (array_key_exists('coupon', $cart)) {
         $couponDiscount = $this->calculateDiscount('coupon', $cart['coupon']);
     }
     $cart['coupon_discount'] = $couponDiscount;
     $codeDsicount = $voucherDiscount + $couponDiscount;
     $totaldiscount = $cart['cart_discount'] + $codeDsicount;
     $calArr = $this->calculation($cart);
     $tax = $calArr[5];
     $Discountvat = 0;
     $chktag = $this->_producthelper->taxexempt_addtocart();
     if (VAT_RATE_AFTER_DISCOUNT && !empty($chktag) && !APPLY_VAT_ON_DISCOUNT) {
         $vatData = $this->_producthelper->getVatRates();
         if (isset($vatData->tax_rate) && !empty($vatData->tax_rate)) {
             $productPriceExclVAT = $cart['product_subtotal_excl_vat'];
             $productVAT = $cart['product_subtotal'] - $cart['product_subtotal_excl_vat'];
             $avgVAT = ($productPriceExclVAT + $productVAT) / $productPriceExclVAT - 1;
             $Discountvat = $avgVAT * $totaldiscount / (1 + $avgVAT);
         }
     }
     $cart['total'] = $calArr[0] - $totaldiscount;
     if ($cart['total'] < 0) {
         $cart['total'] = 0;
     }
     $cart['subtotal'] = $calArr[1] + $calArr[3] - $totaldiscount;
     if ($cart['subtotal'] < 0) {
         $cart['subtotal'] = 0;
     }
     $cart['subtotal_excl_vat'] = $calArr[2] + ($calArr[3] - $calArr[6]) - ($totaldiscount - $Discountvat);
     if ($cart['total'] <= 0) {
         $cart['subtotal_excl_vat'] = 0;
     }
     $cart['product_subtotal'] = $calArr[1];
     $cart['product_subtotal_excl_vat'] = $calArr[2];
     $cart['shipping'] = $calArr[3];
     $cart['tax'] = $tax;
     $cart['sub_total_vat'] = $tax + $calArr[6];
     $cart['discount_vat'] = $Discountvat;
     $cart['shipping_tax'] = $calArr[6];
     $cart['discount_ex_vat'] = $totaldiscount - $Discountvat;
     $cart['mod_cart_total'] = $this->GetCartModuleCalc($cart);
     $this->_session->set('cart', $cart);
     if (JModuleHelper::isEnabled('redshop_cart')) {
         JLoader::import('joomla.html.parameter');
         $cart_param = JModuleHelper::getModule('redshop_cart');
         $cart_param_main = new JRegistry($cart_param->params);
         $use_cookies_value = $cart_param_main->get('use_cookies_value', '');
         if ($use_cookies_value == 1) {
             setcookie("redSHOPcart", serialize($cart), time() + 60 * 60 * 24 * 365);
         }
     }
     return $cart;
 }
Esempio n. 17
0
    echo $this->template;
    ?>
/css/rounded.css" />
<?php 
} else {
    ?>
	<link rel="stylesheet" type="text/css" href="templates/<?php 
    echo $this->template;
    ?>
/css/norounded.css" />
<?php 
}
?>

<?php 
if (JModuleHelper::isEnabled('menu')) {
    ?>
	<script type="text/javascript" src="templates/<?php 
    echo $this->template;
    ?>
/js/menu.js"></script>
	<script type="text/javascript" src="templates/<?php 
    echo $this->template;
    ?>
/js/index.js"></script>
<?php 
}
?>

</head>
<body id="minwidth-body">
Esempio n. 18
0
$letter = $this->input->getString('letter', '');
$Itemid = JRequest::getInt('Itemid');
$letter = JRequest::getString('letter');
$objhelper = new redhelper();
$model = $this->getModel('category');
$view = $this->input->getString('view', 'category');
$user = JFactory::getUser();
$session = JFactory::getSession();
$document = JFactory::getDocument();
$extraField = new extraField();
$texts = new text_library();
$producthelper = new producthelper();
$redshopconfig = new Redconfiguration();
$redTemplate = new Redtemplate();
$stockroomhelper = new rsstockroomhelper();
$module = JModuleHelper::isEnabled('redshop_lettersearch');
$module_data = JModuleHelper::getModule('redshop_lettersearch');
$params = new JRegistry($module_data->params);
$list_of_fields = $params->get('list_of_fields', '');
if (!$module) {
    $msg = JText::_('COM_REDSHOP_PUBLISHED_LETTER_SEARCH_MODULE');
    JError::raiseWarning('', $msg);
    return false;
}
$mod_title = urldecode(JRequest::getString('modulename'));
$module = JModuleHelper::getModule('redshop_lettersearch', $mod_title);
$params = $module->params;
$param = new JRegistry($params);
$lettersearchtemplate_id = $param->get('lettersearchtemplate');
$getAllproductArrayListwithfirst = $model->getAllproductArrayListwithfirst($letter, $list_of_fields);
$loadCategorytemplate = $redTemplate->getTemplate('searchletter', $lettersearchtemplate_id);