Ejemplo n.º 1
0
 public static function loadGridItems()
 {
     $tplparams = JFactory::getApplication()->getTemplate(true)->params;
     $doc = jFactory::getDocument();
     $doc->addScriptDeclaration('
         var T3JSVars = {
            baseUrl: "' . JUri::base(true) . '",
            tplUrl: "' . T3_TEMPLATE_URL . '",
            finishedMsg: "' . addslashes(JText::_('TPL_JSLANG_FINISHEDMSG')) . '",
            itemlg : "' . $tplparams->get('itemlg', 4) . '",
            itemmd : "' . $tplparams->get('itemmd', 3) . '",
            itemsm : "' . $tplparams->get('itemsm', 2) . '",
            itemsmx : "' . $tplparams->get('itemsmx', 2) . '",
            itemxs : "' . $tplparams->get('itemxs', 1) . '",
            gutter : "' . $tplparams->get('gutter', 5) . '"
         };
     ');
     return;
 }
Ejemplo n.º 2
0
 /**
  *
  * @param array $params An object containing the module parameters
  * @access public
  */
 public static function getCart($params)
 {
     $document = jFactory::getDocument();
     $document->addScript('media/zoo/applications/product/elements/cart/assets/js/jquery.cookie.js');
     $document->addScript('media/zoo/applications/product/elements/cart/assets/js/cart.js');
 }