Documente Academic
Documente Profesional
Documente Cultură
"/template/com
mon/config.tpl" );
$themeConfig = (array)$this->config->get('themecontrol');
$productConfig = array(
'product_enablezoom'
=> 1,
'product_zoommode'
=> 'basic',
'product_zoomeasing'
=> 1,
'product_zoomlensshape'
=> "round",
'product_zoomlenssize'
=> "150",
'product_zoomgallery'
=> 0,
'enable_product_customtab' => 0,
'product_customtab_name'
=> '',
'product_customtab_content' => '',
'quickview'
=> 0,
'show_swap_image'
=> 0,
'product_related_column'
=> 0,
'category_pzoom'
=> 1,
);
$languageID = $this->config->get('config_language_id');
$productConfig = array_merge( $productConfig, $themeConfig );
$quickview
= $productConfig['quickview'];
$swapimg
= $productConfig['show_swap_image'];
$categoryPzoom
= $productConfig['category_pzoom'];
?>
<?php echo $header; ?>
<?php require( DIR_TEMPLATE.$this->config->get('config_template')."/template/com
mon/breadcrumb.tpl" ); ?>
<?php if( $SPAN[0] ): ?>
<aside class="col-lg-<?php echo $SPAN[0];?> col-md-<?php echo $SPAN[0];?
> col-sm-12 col-xs-12">
<?php echo $column_left; ?>
</aside>
<?php endif; ?>
<section class="col-lg-<?php echo $SPAN[1];?> col-md-<?php echo $SPAN[1];?> colsm-12 col-xs-12">
<div id="content"><?php echo $content_top; ?>
<div class="product-info">
<div class="row">
<?php if ($thumb || $images) { ?>
<div class="col-lg-6 col-md-6 image-container">
<?php if ($thumb) { ?>
<div class="image">
<?php if( $special ) { ?>
<div class="product-label-special label"><?php echo $this->language->g
et( 'text_sale' ); ?></div>
<?php } ?>
<a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>"
class="colorbox">
<img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>"
alt="<?php echo $heading_title; ?>" id="image" data-zoom-image="<?php echo $po
pup; ?>" class="product-image-zoom"/></a></div>
<?php } ?>
<?php if ($images) { ?>
<div class="image-additional slide carousel" id="image-additional"><div
id="image-additional-carousel" class="carousel-inner">
<?php
if( $productConfig['product_zoomgallery'] == 'slider' && $thumb ) {
$eimages = array( 0=> array( 'popup'=>$popup,'thumb'=> $thumb ) );
$images = array_merge( $eimages, $images );
}
$icols = 3; $i= 0;
foreach ($images as $image) { ?>
<?php if( (++$i)%$icols == 1 ) { ?>
<div class="item">
<?php } ?>
<a href="<?php echo $image['popup']; ?>" title="<?php echo $headin
g_title; ?>" class="colorbox" data-zoom-image="<?php echo $image['popup']; ?>" d
ata-image="<?php echo $image['popup']; ?>">
<img src="<?php echo $image['thumb']; ?>" style="max-width:<?php
echo $this->config->get('config_image_additional_width');?>px" title="<?php ec
ho $heading_title; ?>" alt="<?php echo $heading_title; ?>" data-zoom-image="<?ph
p echo $image['popup']; ?>" class="product-image-zoom" />
</a>
<?php if( $i%$icols == 0 || $i==count($images) ) { ?>
</div>
<?php } ?>
<?php } ?>
</div>
<a class="carousel-control left icon-angle-left" href="#image-addition
al" data-slide="prev"></a>
<a class="carousel-control right icon-angle-right" href="#image-additi
onal" data-slide="next"></a>
</div>
<script type="text/javascript">
$('#image-additional .item:first').addClass('active');
$('#image-additional').carousel({interval:false})
</script>
<?php } ?>
</div>
<?php } ?>
<div class="col-lg-6 col-md-6">
<h1><?php echo $heading_title; ?></h1>
<?php if ($review_status) { ?>
<div class="review">
<div><img src="catalog/view/theme/<?php echo $this->config->get('config_
template');?>/image/stars-<?php echo $rating; ?>.png" alt="<?php echo $reviews;
?>" /> <a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?
php echo $reviews; ?></a> | <a onclick="$('a[href=\'#tab-r
eview\']').trigger('click');"><?php echo $text_write; ?></a></div>
</div>
<?php } ?>
<div class="share clearfix">
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php
echo urlencode('http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']); ?> &
amp;layout=standard&show_faces=true&share=true&width=400&action=
like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="tr
ue" style="border:none; overflow:hidden; width:320px; height:35px; margin-top:10
px; margin-bottom: 0px"></iframe>
</div>
<div class="description">
</div>
<div id="tab-description" class="tab-content"><?php echo $description; ?></div
>
<?php if ($attribute_groups) { ?>
<div id="tab-attribute" class="tab-content">
<table class="attribute">
<?php foreach ($attribute_groups as $attribute_group) { ?>
<thead>
<tr>
<td colspan="2"><?php echo $attribute_group['name']; ?></td>
</tr>
</thead>
<tbody>
<?php foreach ($attribute_group['attribute'] as $attribute) { ?>
<tr>
<td><?php echo $attribute['name']; ?></td>
<td><?php echo $attribute['text']; ?></td>
</tr>
<?php } ?>
</tbody>
<?php } ?>
</table>
</div>
<?php } ?>
<?php if ($review_status) { ?>
<div id="tab-review" class="tab-content">
<div id="review"></div>
<h2 id="review-title"><?php echo $text_write; ?></h2>
<div class="form-review">
<div class="option"><label><?php echo $entry_name; ?></label>
<input class="form-control" type="text" name="name" value="" />
</div>
<div class="option">
<label><?php echo $entry_review; ?></label>
<textarea class="form-control" name="text" cols="40" rows="8"></textarea>
<span style="font-size: 11px;"><?php echo $text_note; ?></span><br />
</div>
<div class="option">
<label><?php echo $entry_rating; ?></label> <span><?php echo $entry_bad; ?><
/span>
<input type="radio" name="rating" value="1" />
<input type="radio" name="rating" value="2" />
<input type="radio" name="rating" value="3" />
<input type="radio" name="rating" value="4" />
<input type="radio" name="rating" value="5" />
<span><?php echo $entry_good; ?></span><br />
</div>
<div class=" option form-inline">
<label><?php echo $entry_captcha; ?></label>
<span class="form-group"><img src="index.php?route=product/product/cap
tcha" alt="" id="captcha" /></span>
<span class="form-group"><input class="form-control" type="text" name="captc
ha" value="" /></span>
</div>
<div><a id="button-review" class="button"><?php echo $button_continue; ?><
/a></div>
</div>
<?php } ?>
</div>
<?php if( $productConfig['enable_product_customtab'] && isset($productConfig
['product_customtab_content'][$languageID]) ) { ?>
<div id="tab-customtab" class="tab-content custom-tab">
<div class="inner">
<?php echo html_entity_decode( $productConfig['product_customtab_content
'][$languageID], ENT_QUOTES, 'UTF-8'); ?>
</div></div>
<?php } ?>
</div>
<?php if ($products) { ?>
<?php
$cols = ($productConfig['product_related_column'] == 0)?3:$productConfig
['product_related_column'];
$span = 12/$cols;
?>
<div class="product-related box">
<div class="box-heading"><span>Clientii au mai cumparat si</span></div>
<div id="related" class="slide product-grid" data-interval="0">
<div class="carousel-controls">
<a class="carousel-control left icon-angle-left" href="#related" data-slid
e="prev"></a>
<a class="carousel-control right icon-angle-right" href="#related" data-sl
ide="next"></a>
</div>
<div class="box-content products-block carousel-inner">
<?php foreach ($products as $i => $product) { $i=$i+1; ?>
<?php if( $i%$cols == 1 && $cols > 1 ) { ?>
<div class= "item <?php if($i==1) {?>active<?php } ?>">
<div class="row">
<?php } ?>
<div class="col-lg-<?php echo $span;?> col-md-<?php echo $span;?> col-sm
-6 col-xs-12 product-block">
<?php if ($product['thumb']) { ?>
<div class="image">
<?php if( $product['special'] ) { ?>
<span class="product-label-special label">PROMO</span>
<?php } ?>
<?php $zimage = str_replace( "cache/","", preg_replace("#-\d+x\d
+#", "", $product['thumb'] )); ?>
<a class="img" href="<?php echo $product['href']; ?>"><img src="<?
php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?p
hp echo $product['name']; ?>" /></a>
<script type="text/javascript">
$(document).ready(function() {
var id = <?php echo $product['product_id'];?>;
$('#colorbox_' + id).colorbox();
});
</script>
<?php if( $categoryPzoom ) { $zimage = str_replace( "cache/","", preg_
replace("#-\d+x\d+#", "", $product['thumb'] )); ?>
<a href="<?php echo $zimage;?>" class="related-colorbox product-zoom h
idden-sm hidden-xs" rel="nofollow" title="<?php echo $product['name']; ?>"><span
class="icon-zoom-in"></span></a>
<?php } ?>
//--></script>
<?php } ?>
<script type="text/javascript"><!-$('select[name="profile_id"], input[name="quantity"]').change(function(){
$.ajax({
url: 'index.php?route=product/product/getRecurringDescription',
type: 'post',
data: $('input[name="product_id"], input[name="quantity"], select[name="prof
ile_id"]'),
dataType: 'json',
beforeSend: function() {
$('#profile-description').html('');
},
success: function(json) {
$('.success, .warning, .attention, information, .error').remove();
if (json['success']) {
$('#profile-description').html(json['success']);
}
}
});
});
$('#button-cart').bind('click', function() {
$.ajax({
url: 'index.php?route=checkout/cart/add',
type: 'post',
data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidd
en\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'c
heckbox\']:checked, .product-info select, .product-info textarea'),
dataType: 'json',
success: function(json) {
$('.success, .warning, .attention, information, .error').remove();
if (json['error']) {
if (json['error']['option']) {
for (i in json['error']['option']) {
$('#option-' + i).after('<span class="error">' + json['error']['opti
on'][i] + '</span>');
}
}
if (json['error']['profile']) {
$('select[name="profile_id"]').after('<span class="error">'
+ json['error']['profile'] + '</span>');
}
}
if (json['success']) {
$('#notification').html('<div class="success" style="display: none;">' +
json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt=""
class="close" /></div>');
$('.success').fadeIn('slow');
$('#cart-total').html(json['total']);
$('html, body').animate({ scrollTop: 0 }, 'slow');
}
}
});
});
//--></script>
<?php if ($options) { ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/ajaxupload.js
"></script>
<?php foreach ($options as $option) { ?>
<?php if ($option['type'] == 'file') { ?>
<script type="text/javascript"><!-new AjaxUpload('#button-option-<?php echo $option['product_option_id']; ?>', {
action: 'index.php?route=product/product/upload',
name: 'file',
autoSubmit: true,
responseType: 'json',
onSubmit: function(file, extension) {
$('#button-option-<?php echo $option['product_option_id']; ?>').after('<img
src="catalog/view/theme/default/image/loading.gif" class="loading" style="paddin
g-left: 5px;" />');
$('#button-option-<?php echo $option['product_option_id']; ?>').attr('disabl
ed', true);
},
onComplete: function(file, json) {
$('#button-option-<?php echo $option['product_option_id']; ?>').attr('disabl
ed', false);
$('.error').remove();
if (json['success']) {
alert(json['success']);
$('input[name=\'option[<?php echo $option['product_option_id']; ?>]\']').a
ttr('value', json['file']);
}
if (json['error']) {
$('#option-<?php echo $option['product_option_id']; ?>').after('<span clas
s="error">' + json['error'] + '</span>');
}
$('.loading').remove();
}
});
//--></script>
<?php } ?>
<?php } ?>
<?php } ?>
<script type="text/javascript"><!-$('#review .pagination a').live('click', function() {
$('#review').fadeOut('slow');
$('#review').load(this.href);
$('#review').fadeIn('slow');
return false;
});
$('#review').load('index.php?route=product/product/review&product_id=<?php echo
$product_id; ?>');
$('#button-review').bind('click', function() {
$.ajax({
url: 'index.php?route=product/product/write&product_id=<?php echo $product_i
d; ?>',
type: 'post',
dataType: 'json',
data: 'name=' + encodeURIComponent($('input[name=\'name\']').val()) + '&text
=' + encodeURIComponent($('textarea[name=\'text\']').val()) + '&rating=' + encod
eURIComponent($('input[name=\'rating\']:checked').val() ? $('input[name=\'rating
\']:checked').val() : '') + '&captcha=' + encodeURIComponent($('input[name=\'cap
tcha\']').val()),
beforeSend: function() {
$('.success, .warning').remove();
$('#button-review').attr('disabled', true);
$('#review-title').after('<div class="attention"><img src="catalog/view/th
eme/default/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>');
},
complete: function() {
$('#button-review').attr('disabled', false);
$('.attention').remove();
},
success: function(data) {
if (data['error']) {
$('#review-title').after('<div class="warning">' + data['error'] + '</di
v>');
}
if (data['success']) {
$('#review-title').after('<div class="success">' + data['success'] + '</
div>');
$('input[name=\'name\']').val('');
$('textarea[name=\'text\']').val('');
$('input[name=\'rating\']:checked').attr('checked', '');
$('input[name=\'captcha\']').val('');
}
}
});
});
//--></script>
<script type="text/javascript"><!-$('#tabs a').tabs();
//--></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-uitimepicker-addon.js"></script>
<script type="text/javascript"><!-$(document).ready(function() {
if ($.browser.msie && $.browser.version == 6) {
$('.date, .datetime, .time').bgIframe();
}
$('.date').datepicker({dateFormat: 'yy-mm-dd'});
$('.datetime').datetimepicker({
dateFormat: 'yy-mm-dd',
timeFormat: 'h:m'
});
$('.time').timepicker({timeFormat: 'h:m'});
});
//--></script>
</section>
<?php if( $SPAN[2] ): ?>
<aside class="col-lg-<?php echo $SPAN[2];?> col-md-<?php echo $SPAN[2];?
> col-sm-12 col-xs-12">
<?php echo $column_right; ?>
</aside>
<?php endif; ?>
<?php echo $footer; ?>