| Current Path : /home/bijouxly/www/templates/themler20160_160429/includes/ |
| Current File : /home/bijouxly/www/templates/themler20160_160429/includes/cartlink_4.php |
<?php
function cartlink_4() {
$view = JFactory::getDocument()->view;
$modulesContains = $view->containsModules('cart');
$isPreview = $GLOBALS['theme_settings']['is_preview'];
if (isset($GLOBALS['isModuleContentExists']) && false == $GLOBALS['isModuleContentExists'])
$GLOBALS['isModuleContentExists'] = $view->containsModules('cart') ? true : false;
?>
<?php if ($isPreview || $modulesContains) : ?>
<div class=" bd-cartlink-4">
<?php if ($modulesContains) : ?>
<?php echo $view->position('cart', '', '4', 'cart'); ?>
<?php else: ?>
Please add a cart module in the 'cart' position
<?php endif; ?>
</div>
<?php endif; ?>
<?php
}