Your IP : 216.73.216.84


Current Path : /home/helpink/www/components/com_jbusinessdirectory/views/offer/tmpl/
Upload File :
Current File : /home/helpink/www/components/com_jbusinessdirectory/views/offer/tmpl/default.php

<?php // no direct access
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

defined('_JEXEC') or die('Restricted access');

$action = JFactory::getApplication()->input->get('action');
if(!empty($action) && $action=="print"){
    $document = JFactory::getDocument();
    $document->setMetaData('ROBOTS', 'NOINDEX, FOLLOW');
}
$newTab = ($this->appSettings->open_listing_on_new_tab)?" target='_blank'":"";
$offer = $this->offer;

$layout = JFactory::getApplication()->input->get('offer-layout');
$offerLayout = $this->appSettings->offer_view;

if(!empty($layout)){
    $offerLayout = $layout;    
}

?>

<?php require_once BD_CLASSES_PATH.'/attributes/attributeservice.php'; ?>
<?php require_once 'header.php'; ?>

<?php
    if(!empty($offerLayout)){
        require "default_style_{$offerLayout}.php";
    }else{
        require "default_style_1.php";
    }
?>  

<?php echo OfferSellingService::getCartModal() ?>

<div id="login-notice" class="jbd-container" style="display:none">
    <div class="jmodal-sm">
        <div class="jmodal-header">
            <p class="jmodal-header-title"><?php echo JText::_('LNG_INFO') ?></p>
            <a href="#close-modal" rel="modal:close" class="close-btn"><i class="la la-close "></i></a>
        </div>
        <div class="jmodal-body">
            <p>
                <?php echo JText::_('LNG_YOU_HAVE_TO_BE_LOGGED_IN') ?>
            </p>
            <p>
                <a href="<?php echo JBusinessUtil::getLoginUrl($url); ?>"><?php echo JText::_('LNG_CLICK_LOGIN') ?></a>
            </p>
        </div>
    </div>
</div>

<?php
jimport('joomla.application.module.helper');
// this is where you want to load your module position
$modules = JModuleHelper::getModules('dir-offer');

if(isset($modules) && count($modules)>0){
    $fullWidth = false; ?>
    <div class="dir-offer">
        <?php foreach($modules as $module) {
            echo JModuleHelper::renderModule($module, array("style"=>"xhtml"));
        } ?>
    </div>
<?php }
?>

<script>
	// starting the script on page load
	window.addEventListener('load', function() {
		jQuery("img.image-prv").click(function(e) {
			jQuery("#image-preview").attr('src', this.src);	
		});
		jbdOffers.checkAddToCartStatus();
	});
</script>