Your IP : 216.73.216.216


Current Path : /proc/self/root/proc/self/root/tmp/
Upload File :
Current File : //proc/self/root/proc/self/root/tmp/phpP6vv5y

<?php
/**
 *
 * Show the product details page
 *
 * @package    VirtueMart
 * @subpackage
 * @author Max Milbers, Valerie Isaksen
 * @todo handle child products
 * @link https://virtuemart.net
 * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * @version $Id: default_addtocart.php 7833 2014-04-09 15:04:59Z Milbo $
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

/** @var TYPE_NAME $viewData */
$product = $viewData['product'];

if(isset($viewData['rowHeights'])){
	$rowHeights = $viewData['rowHeights'];
} else {
	$rowHeights['customfields'] = TRUE;
}

if(isset($viewData['position'])){
	$positions = $viewData['position'];
} else {
	$positions = 'addtocart';
}
if(!is_array($positions)) $positions = array($positions);



?>
	<div class="addtocart-area">
		<form method="post" class="product js-recalculate" action="<?php echo JRoute::_ ('index.php?option=com_virtuemart',false); ?>" autocomplete="off" >
			<div class="vm-customfields-wrap">
				<?php
				if(!empty($rowHeights['customfields'])) {
					foreach($positions as $pos){
						echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product,'position'=>$pos));
					}
				} ?>
			</div>			
				<?php
				if (!VmConfig::get('use_as_catalog', 0)  and !($product->product_discontinued and !VmConfig::get('discontinuedPrdsBrowseable',1))) {
					echo shopFunctionsF::renderVmSubLayout('addtocartbar',array('product'=>$product));
				} ?>
			<input type="hidden" name="option" value="com_virtuemart"/>
			<input type="hidden" name="view" value="cart"/>
			<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>"/>
			<input type="hidden" name="pname" value="<?php echo $product->product_name ?>"/>
			<input type="hidden" name="pid" value="<?php echo $product->virtuemart_product_id ?>"/>
			<?php
			$itemId=vRequest::getInt('Itemid',false);
			if($itemId){
				echo '<input type="hidden" name="Itemid" value="'.$itemId.'"/>';
			} ?>
		</form>

	</div>

<?php // }
?><?php
/**
 *
 * Show the product details page
 *
 * @package    VirtueMart
 * @subpackage
 * @author Max Milbers
 * @todo handle child products
 * @link https://virtuemart.net
 * @copyright Copyright (c) 2015 - 2021 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * @version $Id: default_addtocart.php 7833 2014-04-09 15:04:59Z Milbo $
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

/** @var TYPE_NAME $viewData */
$product = $viewData['product'];

if(isset($viewData['rowHeights'])){
	$rowHeights = $viewData['rowHeights'];
} else {
	$rowHeights['customfields'] = TRUE;
}

$init = 1;
if(isset($viewData['init'])){
	$init = $viewData['init'];
}

if(!empty($product->min_order_level) and $init<$product->min_order_level){
	$init = $product->min_order_level;
}

$step=1;
if (!empty($product->step_order_level)){
	$step=$product->step_order_level;
	if(!empty($init)){
		if($init<$step){
			$init = $step;
		} else if($init>$step){
			$init = ceil($init/$step) * $step;

		}
	}
	if(empty($product->min_order_level) and !isset($viewData['init'])){
		$init = $step;
	}
}

$maxOrder= '';
if (!empty($product->max_order_level)){
	$maxOrder = ' max="'.$product->max_order_level.'" ';
}

$addtoCartButton = '';
if(!VmConfig::get('use_as_catalog', 0)){
	if(!$product->addToCartButton and $product->addToCartButton!==''){
		$addtoCartButton = self::renderVmSubLayout('addtocartbtn',array('orderable'=>$product->orderable)); //shopFunctionsF::getAddToCartButton ($product->orderable);
	} else {
		$addtoCartButton = $product->addToCartButton;
	}
}
$position = 'addtocart';

if ($product->min_order_level > 0) {
	$minOrderLevel = $product->min_order_level;
}
else {
	$minOrderLevel = 1;
}


if (!VmConfig::get('use_as_catalog', 0)  ) {
	if (empty(VmConfig::get('bootstrap', ''))) {
		$vmbtn = "vm-btn";
		$vmbtnpri ="vm-btn-primary";
		$vmbtnsec = "vm-btn-secondary";
	} else {
		$vmbtn = "btn";
		$vmbtnpri = "btn-primary";
		$vmbtnsec = "btn-secondary";
	}

?>  <div class="addtocart-bar">
	<?php
	// Display the quantity box
	$stockhandle = VmConfig::get('stockhandle_products', false) && $product->product_stockhandle ? $product->product_stockhandle : VmConfig::get('stockhandle','none');
	if ($product->show_notify) { ?>
        <a class="notify <?php echo $vmbtn.' '.$vmbtnsec ?>" href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id=' . $product->virtuemart_product_id); ?>" ><?php echo vmText::_ ('COM_VIRTUEMART_CART_NOTIFY') ?></a><?php
	} else {
		$tmpPrice = (float) $product->prices['costPrice'];
		if (!( VmConfig::get('askprice', true) and empty($tmpPrice) ) ) {
			$editable = 'hidden';
			if ($product->orderable) {
				$editable = 'text';
			} ?>
            <!-- <label for="quantity<?php echo $product->virtuemart_product_id; ?>" class="quantity_box"><?php echo vmText::_ ('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label> -->
            <span class="quantity-box">
				<input type="<?php echo $editable ?>" class="quantity-input js-recalculate" name="quantity[]"
                       data-errStr="<?php echo vmText::_ ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED')?>"
                       value="<?php echo $init; ?>" data-init="<?php echo $init; ?>" data-step="<?php echo $step; ?>" <?php echo $maxOrder; ?> />
			</span>
			<?php if ($product->orderable) { ?>
				<span class="quantity-controls js-recalculate">
					<input type="button" class="quantity-controls quantity-plus"/>
					<input type="button" class="quantity-controls quantity-minus"/>
				</span>
			<?php }

			if(!empty($addtoCartButton)){
				?><span class="addtocart-button">
				<?php echo $addtoCartButton ?>
                </span> <?php
			} ?>
            <input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>"/>
			<?php if(!VmConfig::get('addtocart_popup',true)){
				?><input type="hidden" name="task" value="add"/><?php
			}else{
				?><noscript><input type="hidden" name="task" value="add"/></noscript> <?php
			}
		}
	} ?>

    </div><?php
} ?>
<?php
/**
 *
 * loads the add to cart button
 *
 * @package    VirtueMart
 * @subpackage
 * @author Max Milbers, Valerie Isaksen
 * @link https://virtuemart.net
 * @copyright Copyright (c) 2015 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @version $Id: addtocartbtn.php 8024 2014-06-12 15:08:59Z Milbo $
 */
// Check to ensure this file is included in Joomla!
defined ('_JEXEC') or die('Restricted access');

/** @var TYPE_NAME $viewData */

if($viewData['orderable']) {
	echo '<input type="submit" name="addtocart" class="addtocart-button" value="'.vmText::_( 'COM_VIRTUEMART_CART_ADD_TO' ).'" title="'.vmText::_( 'COM_VIRTUEMART_CART_ADD_TO' ).'" />';
} else {
	echo '<span name="addtocart" class="addtocart-button-disabled" title="'.vmText::_( 'COM_VIRTUEMART_ADDTOCART_CHOOSE_VARIANT' ).'" >'.vmText::_( 'COM_VIRTUEMART_ADDTOCART_CHOOSE_VARIANT' ).'</span>';
}<?php
/**
 *
 * loads the js for ask a question and recommened to a friend.
 *
 * @package    VirtueMart
 * @subpackage
 * @author Max Milbers, Valerie Isaksen
 * @link https://virtuemart.net
 * @copyright Copyright (c) 2004 - 2014 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * @version $Id: default_showprices.php 8024 2014-06-12 15:08:59Z Milbo $
 */
// Check to ensure this file is included in Joomla!
defined ('_JEXEC') or die('Restricted access');

static $ask_recommened_loaded = false;
if($ask_recommened_loaded) return '';

if(vmJsApi::loadPopUpLib()){
	$Modal ="
		$('a.ask-a-question, a.printModal, a.recommened-to-friend, a.manuModal').click(function(event){
		  event.preventDefault();
		  $.fancybox({
			href: $(this).attr('href'),
			type: 'iframe',
			height: 550
			});
		  });
		";
} else {
    $Modal ="
    		$('a.ask-a-question, a.printModal, a.recommened-to-friend, a.manuModal').click(function(event){
		      event.preventDefault();
		      $.facebox({
		        ajax: $(this).attr('href'),
		        rev: 'iframe|550|550'
		        });
		      });
    		";
}

vmJsApi::addJScript('popups',"
	jQuery(document).ready(function($) {
		".$Modal."
	});
");
$ask_recommened_loaded = true;<?php
/**
 *
 * Show the product details page
 *
 * @package    VirtueMart
 * @subpackage
 * @author Max Milbers, Valerie Isaksen
 * @todo handle child products
 * @link http://www.virtuemart.net
 * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * @version $Id: default_addtocart.php 7833 2014-04-09 15:04:59Z Milbo $
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

/** @var TYPE_NAME $viewData */
$product = $viewData['product'];

if(isset($viewData['rowHeights'])){
	$rowHeights = $viewData['rowHeights'];
} else {
	$rowHeights['customfields'] = TRUE;
}

if(isset($viewData['position'])){
	$positions = $viewData['position'];
} else {
	$positions = 'addtocart';
}
if(!is_array($positions)) $positions = array($positions);

?>

<div id="addtocart-area-<?php echo $product->virtuemart_product_id ?>" class="addtocart-area">
	<form method="post" class="product js-recalculate" action="<?php echo JRoute::_ ('index.php?option=com_virtuemart',false); ?>" autocomplete="off" >
	<div class="product-fields-wrapper">
		<?php
			if(!empty($rowHeights['customfields'])) {
				foreach($positions as $pos){
					echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product,'position'=>$pos));
				}
			} ?>
		</div>
		<?php
		if (!VmConfig::get('use_as_catalog', 0)  and !($product->product_discontinued and !VmConfig::get('discontinuedPrdsBrowseable',1))) {

			echo shopFunctionsF::renderVmSubLayout('addtocartbar',array('product'=>$product));

		} ?>
		<input type="hidden" name="option" value="com_virtuemart"/>
		<input type="hidden" name="view" value="cart"/>
		<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>"/>
		<input type="hidden" name="pname" value="<?php echo $product->product_name ?>"/>
		<input type="hidden" name="pid" value="<?php echo $product->virtuemart_product_id ?>"/>

		<?php
		$itemId=vRequest::getInt('Itemid',false);
		if($itemId){
			echo '<input type="hidden" name="Itemid" value="'.$itemId.'"/>';
		} ?>
	</form>

</div>

<?php <?php
/**
 *
 * Show the product details page
 *
 * @package    VirtueMart
 * @subpackage
 * @author Max Milbers
 * @todo handle child products
 * @link http://www.virtuemart.net
 * @copyright Copyright (c) 2015 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * @version $Id: default_addtocart.php 7833 2014-04-09 15:04:59Z Milbo $
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

/** @var TYPE_NAME $viewData */
$product = $viewData['product'];

if(isset($viewData['rowHeights'])){
	$rowHeights = $viewData['rowHeights'];
} else {
	$rowHeights['customfields'] = TRUE;
}

$init = 1;
if(isset($viewData['init'])){
	$init = $viewData['init'];
}

if(!empty($product->min_order_level) and $init<$product->min_order_level){
	$init = $product->min_order_level;
}

$step=1;
if (!empty($product->step_order_level)){
	$step=$product->step_order_level;
	if(!empty($init)){
		if($init<$step){
			$init = $step;
		} else {
			$init = ceil($init/$step) * $step;
		}
	}
	if(empty($product->min_order_level) and !isset($viewData['init'])){
		$init = $step;
	}
}

$maxOrder= '';
if (!empty($product->max_order_level)){
	$maxOrder = ' max="'.$product->max_order_level.'" ';
}

$addtoCartButton = '';
if(!VmConfig::get('use_as_catalog', 0)){
	if(!$product->addToCartButton and $product->addToCartButton!==''){
		$addtoCartButton = self::renderVmSubLayout('addtocartbtn',array('orderable'=>$product->orderable)); //shopFunctionsF::getAddToCartButton ($product->orderable);
	} else {
		$addtoCartButton = $product->addToCartButton;
	}

}
$position = 'addtocart';

if ($product->min_order_level > 0) {
	$minOrderLevel = $product->min_order_level;
}
else {
	$minOrderLevel = 1;
}


if (!VmConfig::get('use_as_catalog', 0)  ) { ?>

	<div class="addtocart-bar text-center" data-mh="addtocart">
	<?php
	// Display the quantity box
	$stockhandle = VmConfig::get('stockhandle_products', false) && $product->product_stockhandle ? $product->product_stockhandle : VmConfig::get('stockhandle','none');
	if ($product->show_notify) { ?>
		<a class="notify btn btn-primary btn-block" href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id=' . $product->virtuemart_product_id); ?>"><?php echo vmText::_ ('COM_VIRTUEMART_CART_NOTIFY') ?></a><?php
	} else {
		$tmpPrice = (float) $product->prices['costPrice'];
		if (!( VmConfig::get('askprice', true) and empty($tmpPrice) ) ) { ?>
			<?php
			$editable = 'hidden';
			if ($product->orderable) {
				$editable = 'text';
			} ?>
			<?php if ($product->orderable) { ?>
				<!-- <label for="quantity<?php echo $product->virtuemart_product_id; ?>" class="quantity_box"><?php echo vmText::_ ('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label> -->
		<div class="quantity-controls js-recalculate input-group margin-top-15">
			<span class="input-group-btn">
				<button type="button" class="quantity-controls quantity-minus btn btn-default">
					<span class="glyphicon glyphicon-minus"></span>
				</button>
			</span>
			<!--<span class="quantity-box">-->
			<input type="text" class="quantity-input js-recalculate text-center form-control" name="quantity[]"
			data-errStr="<?php echo vmText::_ ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED')?>"
			value="<?php echo $init; ?>" data-init="<?php echo $init; ?>" data-step="<?php echo $step; ?>" <?php echo $maxOrder; ?> />
			<!--</span>-->
			<span class="input-group-btn">
				<button type="button" class="quantity-controls quantity-plus btn btn-default">
					<span class="glyphicon glyphicon-plus"></span>
				</button>
			</span>
			<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>"/>
		</div>
		<?php }

		if(!empty($addtoCartButton)){ ?>
		<div class="addtocart-button margin-top-15">
		<?php //echo $addtoCartButton
		if($product->orderable) {
		echo '<input type="submit" name="addtocart" class="addtocart-button btn btn-primary btn-block" value="'.vmText::_( 'COM_VIRTUEMART_CART_ADD_TO' ).'" title="'.vmText::_( 'COM_VIRTUEMART_CART_ADD_TO' ).'" />';
		} else {
		echo '<button type="button" class="addtocart-button-disabled btn btn-block disabled" title="'.vmText::_( 'COM_VIRTUEMART_ADDTOCART_CHOOSE_VARIANT' ).'">'. vmText::_( 'COM_VIRTUEMART_ADDTOCART_CHOOSE_VARIANT' ) .'</button>';
		}
		?>
		</div> <?php
		} ?>
		<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>"/>
			<?php if(!VmConfig::get('addtocart_popup',true)){
				?><input type="hidden" name="task" value="add"/><?php
			}else{
				?><noscript><input type="hidden" name="task" value="add"/></noscript> <?php
			}
		}
	} ?>

	</div><?php
}<?php
/**
*
* Shows the products/categories of a category
*
* @package	VirtueMart
* @subpackage
* @author Max Milbers
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2014 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
 * @version $Id: default.php 6104 2012-06-13 14:15:29Z alatak $
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

/** @var TYPE_NAME $viewData */
$categories = $viewData['categories'];

if ($categories) {

$categories_per_row = !empty($viewData['categories_per_row'])? $viewData['categories_per_row']:VmConfig::get ( 'categories_per_row', 3 );
if(empty($categories_per_row)) $categories_per_row = 3;

// Calculating Categories Per Row
$category_cellwidth = ' col-xs-6 col-md-' . floor ( 12 / $categories_per_row ) . ' col-sm-' . floor ( 12 / $categories_per_row );

$ajaxUpdate = '';
if(VmConfig::get ('ajax_category', false)){
	$ajaxUpdate = 'data-dynamic-update="1"';
}
?>

<div class="category-view">
	<div class="row flex">
	<?php
	// Start the Output
	foreach ( $categories as $category ) {
	// Category Link
	$caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id , FALSE);

	// Show Category ?>
	<div class="category <?php echo $category_cellwidth ?>">
		<div class="thumbnail">
			<a href="<?php echo $caturl ?>" <?php echo $ajaxUpdate?> >
				<div class="text-center" data-mh="image-wrapper">
				<?php echo $category->images[0]->displayMediaThumb('class="browseCategoryImage"',false); ?>
				</div>
				<div class="caption text-center" data-mh="cat-name">
					<h2 class="vm-cat-title">
					<?php echo vmText::_($category->category_name) ?>
					</h2>
				</div>
			</a>
		</div>
	</div>
	<?php } ?>
	</div>
</div>
<?php }<?php
/**
* sublayout products
*
* @package	VirtueMart
* @author Max Milbers
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2014 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL2, see LICENSE.php
* @version $Id: cart.php 7682 2014-02-26 17:07:20Z Milbo $
*/

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

/** @var TYPE_NAME $viewData */
$product = $viewData['product'];
$position = $viewData['position'];
$customTitle = isset($viewData['customTitle'])? $viewData['customTitle']: false;;
if(isset($viewData['class'])){
	$class = $viewData['class'];
} else {
	$class = 'product-fields';
}

if (!empty($product->customfieldsSorted[$position])) {
	?>
	<div class="<?php echo $class?> text-center clearfix">
		<?php
		if($customTitle and isset($product->customfieldsSorted[$position][0])){
			$field = $product->customfieldsSorted[$position][0]; ?>
		<div class="product-fields-title-wrapper">
			<span class="product-fields-title small">
			<?php echo vmText::_ ($field->custom_title) ?>
			<?php if ($field->custom_tip) {
				//echo JHtml::tooltip (vmText::_($field->custom_tip), vmText::_ ($field->custom_title), 'tooltip.png');
			echo '<span class="glyphicon glyphicon-exclamation-sign hasTooltip" title="' . vmText::_($field->custom_title) . '"></span>';
			} ?>
			</span>
		</div>
		<?php
		}
		$custom_title = null;
		foreach ($product->customfieldsSorted[$position] as $field) {
			if ( $field->is_hidden ) continue; //OSP http://forum.virtuemart.net/index.php?topic=99320.0
			?>
		<div class="product-field product-field-type-<?php echo $field->field_type ?> clearfix">
			<?php if (!$customTitle and $field->custom_title != $custom_title and $field->show_title) { ?>
			<div class="product-fields-title-wrapper">
				<span class="product-fields-title small">
				<?php echo vmText::_ ($field->custom_title) ?>
				<?php if ($field->custom_tip) {
				//echo JHtml::tooltip (vmText::_($field->custom_tip), vmText::_ ($field->custom_title), 'tooltip.png');
				echo '<span class="glyphicon glyphicon-exclamation-sign hasTooltip small" title="' . vmText::_($field->custom_tip) . '"></span>';
				} ?>
				</span>
			</div>
			<?php }
			if (!empty($field->display)){ ?>
			<div class="product-field-display"><?php echo $field->display ?></div>
			<?php
			}
			if (!empty($field->custom_desc)){ ?>
			<div class="product-field-desc small"><?php echo vmText::_($field->custom_desc) ?></div>
			<?php
			}
			?>
		</div>
		<?php
			$custom_title = $field->custom_title;
		} ?>
	</div>
<?php
}<?php
defined ('_JEXEC') or die();

/** @var TYPE_NAME $viewData */
$product = $viewData['product'];
// Availability
$stockhandle = VmConfig::get('stockhandle_products', false) && $product->product_stockhandle ? $product->product_stockhandle : VmConfig::get('stockhandle','none');
$product_available_date = substr($product->product_available_date,0,10);
$current_date = date("Y-m-d");
if (($product->product_in_stock - $product->product_ordered) < 1) {
	if ($product_available_date != '0000-00-00' and $current_date < $product_available_date) {
	?>	<div class="availability">
		<?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?>
	</div>
	<?php
	} else if ($stockhandle == 'risetime' and VmConfig::get('rised_availability') and empty($product->product_availability)) {
		?>	<div class="availability">
			<?php echo (file_exists(JPATH_BASE . '/' . VmConfig::get('assets_general_path') . 'images/availability/' . VmConfig::get('rised_availability'))) ? JHtml::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' . VmConfig::get('rised_availability', '7d.gif'), VmConfig::get('rised_availability', '7d.gif'), array('class' => 'availability')) : vmText::_(VmConfig::get('rised_availability')); ?>
		</div>
	<?php
	} else if (!empty($product->product_availability)) {
		?>
		<div class="availability">
			<?php echo (file_exists(JPATH_BASE . '/' . VmConfig::get('assets_general_path') . 'images/availability/' . $product->product_availability)) ? JHtml::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' . $product->product_availability, $product->product_availability, array('class' => 'availability')) : vmText::_($product->product_availability); ?>
		</div>
	<?php
	}
}
else if ($product_available_date != '0000-00-00' and $current_date < $product_available_date) {
	?>	<div class="availability">
		<?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?>
	</div>
<?php
}
?><?php
/**
* sublayout products
*
* @package	VirtueMart
* @author Max Milbers
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2014 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL2, see LICENSE.php
* @version $Id: cart.php 7682 2014-02-26 17:07:20Z Milbo $
*/

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

/** @var TYPE_NAME $viewData */
$product = $viewData['product'];
$position = $viewData['position'];
$customTitle = isset($viewData['customTitle'])? $viewData['customTitle']: false;;
if(isset($viewData['class'])){
	$class = $viewData['class'];
} else {
	$class = 'product-fields';
}

if (!empty($product->customfieldsSorted[$position])) {
	?>
	<div class="<?php echo $class?> clearfix small margin-top-15">
		<?php
		if($customTitle and isset($product->customfieldsSorted[$position][0])){
			$field = $product->customfieldsSorted[$position][0]; ?>
		<div class="product-fields-title-wrapper">
			<h6 class="product-fields-title">
			<?php echo vmText::_ ($field->custom_title) ?>
			<?php if ($field->custom_tip) {
			echo '<span class="glyphicon glyphicon-exclamation-sign hasTooltip" title="' . vmText::_ ($field->custom_title) . '"></span>';
			} ?>
			</h6>
		</div>
		<?php
		}
		$custom_title = null;
		foreach ($product->customfieldsSorted[$position] as $field) {
			if ( $field->is_hidden ) //OSP http://forum.virtuemart.net/index.php?topic=99320.0
			continue;
			?>
		<div class="product-field product-field-type-<?php echo $field->field_type ?> panel panel-default">
			<?php if (!$customTitle and $field->custom_title != $custom_title and $field->show_title) { ?>
			<div class="product-fields-title-wrapper panel-heading">
				<strong><?php echo vmText::_ ($field->custom_title) ?></strong>
				<?php if ($field->custom_tip) {
				echo '<span class="glyphicon glyphicon-exclamation-sign hasTooltip small" title="' . vmText::_($field->custom_tip) . '"></span>';
				} ?>
			</div>
			<?php }
			if (!empty($field->display)) { ?>
			<div class="product-field-display panel-body"><?php echo $field->display ?></div>
			<?php
			}
			if (!empty($field->custom_desc)) { ?>
			<div class="product-field-desc panel-footer small"><?php echo vmText::_($field->custom_desc) ?></div>
			<?php
			}
			?>
		</div>
		<?php
			$custom_title = $field->custom_title;
		} ?>
	</div>
<?php
}