<?php /** * com_bix_printshop - Online-PrintStore for Joomla * Copyright (C) 2010-2012 Matthijs Alles * Bixie.nl * */ // no direct access defined('_JEXEC') or die; require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_bixprintshop' . DS . 'classes' . DS . 'bixtools.php'; BixTools::loadCss(); $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); if ($params->get('layout', 'default') == '_:messages') { $bixPlugin = new BixPlugin(array('bixprintshop_betaal', 'bixprintshop_mail', 'bixprintshop')); $result = $bixPlugin->trigger('BPSshowJsDebug', array()); if ($bixPlugin->getError()) { echo $bixPlugin->getError(); } } require JModuleHelper::getLayoutPath('mod_bps_debug', $params->get('layout', 'default'));
<?php /** * com_bix_printshop - Online-PrintStore for Joomla * Copyright (C) 2010-2012 Matthijs Alles * Bixie.nl * */ // no direct access defined('_JEXEC') or die; require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_bixprintshop' . DS . 'classes' . DS . 'bixtools.php'; $document = JFactory::getDocument(); $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); $bixCart = BixTools::getCartClass(); $bixCart->loadJS(); $layoutRaw = str_replace('_:', '', $params->get('layout', 'default')) . '_raw'; $script = "bixCart.addModule('bpsCartModule',{" . "name:'mod_bps_cart'," . "layout:'" . $layoutRaw . "'," . "elementID:'bix-cart-default'," . "floatHeightAdj:" . $params->get('floatHeightAdj', 0) . "," . "floatMod:" . $params->get('floatMod', 0) . "," . "linkEl:" . $params->get('linkEl', 0) . "" . "});"; $document->addScriptDeclaration($script); if ($params->get('floatMod', 0)) { //$document->addScript(BIX_JS.'/scrollspy/mootools-more-1.4.0.1.js'); $document->addScript(BIX_JS . '/scrollspy/ScrollSpy.js'); } require JModuleHelper::getLayoutPath('mod_bps_cart', $params->get('layout', 'default'));
$module = JModuleHelper::getModule('mod_bps_cart'); $params = new JRegistry(); $params->loadString($module->params); } ?> <div class="cartItems"> <?php require JModuleHelper::getLayoutPath('mod_bps_cart', 'default_raw'); ?> <?php if ($bixCart->get('nrOrders', 0) > 0) { ?> <div class="grid-block"> <a class="tocartlink float-left" href="<?php echo JRoute::_('index.php?Itemid=' . BixTools::config('algemeen.cartItemid')); ?> "><?php echo JText::_('MOD_BPS_TOCARTLINK'); ?> </a> </div> </div> <?php } ?> <?php if ($params->get('showPrices', 0) > 0) { ?> <div id="productPriceHolder"> <div class="prijshold totaalText"><?php
defined('_JEXEC') or die; require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_bixprintshop' . DS . 'classes' . DS . 'bixtools.php'; $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); JFactory::getDocument()->addStyleSheet('modules/mod_bps_aanbieding/assets/bps_aanbieding.css'); $titel = $params->get('titel'); $aantal = number_format($params->get('aantal'), 0, '', '.'); $percentage = $params->get('percentage'); $tekst = nl2br($params->get('tekst', '')); $prijs = $params->get('prijs', ''); $image = $params->get('image', ''); $imageinfo = getimagesize(JPATH_ROOT . DS . $image); $width = $imageinfo[0]; $height = $imageinfo[1]; $productID = $params->get('productID', 0); $prijsID = trim($params->get('prijsID', 0)); $prijsOptie = $params->get('prijsOptie', 0); if ($productID) { $item = BixTools::getItem('product', $productID); $prijsSfx = $prijsID ? '&p=' . $prijsID : ''; $optionSfx = $prijsOptie ? '&o=' . $prijsOptie : ''; if ($item->params['itemId'] > 0) { $item->prodLink = JRoute::_('index.php?Itemid=' . $item->params['itemId'] . $prijsSfx . $optionSfx); } else { $item->prodLink = JRoute::_('index.php?option=com_bixprintshop&view=productdetails&catid=' . $item->catid . '&productID=' . $item->productID . $prijsSfx); } $sLink = $item->prodLink; } if ($params->get('moduleLink', '') != '') { $sLink = $params->get('moduleLink', ''); } require JModuleHelper::getLayoutPath('mod_bps_aanbieding', $params->get('layout', 'default'));
JFactory::getDocument()->addStylesheet(str_replace(JPATH_ROOT, '', dirname(__FILE__)) . '/assets/headerimage.css'); $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); //init vars $sTekstregel1 = false; $sTekstregel2 = false; $sImagepath = false; $iWidth = 0; $iHeight = 0; //joomla request uitlezen $option = JRequest::getCmd('option'); $view = JRequest::getCmd('view'); //productpagina? if ($option == 'com_bixprintshop' && $view == 'productdetails') { $iProductID = JRequest::getInt('productID', 0); if ($iProductID) { $bixProduct = BixTools::getproductClass($iProductID); $sTekstregel1 = $bixProduct->get('tekstregel1', '-', 'params', true); $sTekstregel2 = $bixProduct->get('tekstregel2', '-', 'params', true); $sImagepath = $bixProduct->get('image', '', 'params', true); } } //contentcategorie? if ($option == 'com_content' && $view == 'article') { $iArticleID = JRequest::getInt('id', 0); if ($iArticleID) { $db = JFactory::getDbo(); $db->setQuery("SELECT images FROM #__content WHERE id = {$iArticleID}"); $sImages = $db->loadResult(); if ($sImages) { $rImages = new JRegistry(); $rImages->loadString($sImages);
<?php /** * com_bix_printshop - Online-PrintStore for Joomla * Copyright (C) 2010-2012 Matthijs Alles * Bixie.nl * */ // no direct access defined('_JEXEC') or die; if (BixTools::config('algemeen.debugging.jsDebug', false)) { ?> <div id="bpsDebug"></div> <?php }