PageRenderTime 825ms CodeModel.GetById 206ms app.highlight 438ms RepoModel.GetById 165ms app.codeStats 1ms

/tools/smarty/compile/f5f553d6f86b4ae34b596f402bf85945451f2a0d.file.product.tpl.php

http://marocmall.googlecode.com/
PHP | 817 lines | 796 code | 11 blank | 10 comment | 131 complexity | 87ba02ef1d67577af5854f708f18d05b MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1<?php /* Smarty version Smarty-3.0.7, created on 2011-12-29 16:03:51
  2         compiled from "C:\D\prestashoplf\prestashop/themes/ling/product.tpl" */ ?>
  3<?php /*%%SmartyHeaderCode:21664efc8f67eccad3-45201732%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4$_smarty_tpl->decodeProperties(array (
  5  'file_dependency' => 
  6  array (
  7    'f5f553d6f86b4ae34b596f402bf85945451f2a0d' => 
  8    array (
  9      0 => 'C:\\D\\prestashoplf\\prestashop/themes/ling/product.tpl',
 10      1 => 1309352196,
 11      2 => 'file',
 12    ),
 13  ),
 14  'nocache_hash' => '21664efc8f67eccad3-45201732',
 15  'function' => 
 16  array (
 17  ),
 18  'has_nocache_code' => false,
 19)); /*/%%SmartyHeaderCode%%*/?>
 20<?php if (!is_callable('smarty_modifier_escape')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.escape.php';
 21if (!is_callable('smarty_modifier_date_format')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.date_format.php';
 22if (!is_callable('smarty_function_math')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\function.math.php';
 23if (!is_callable('smarty_function_counter')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\function.counter.php';
 24?><?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./errors.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 25 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
 26<?php if (count($_smarty_tpl->getVariable('errors')->value)==0){?>
 27<script type="text/javascript">
 28// <![CDATA[
 29// PrestaShop internal settings
 30var currencySign = '<?php echo html_entity_decode($_smarty_tpl->getVariable('currencySign')->value,2,"UTF-8");?>
 31';
 32var currencyRate = '<?php echo floatval($_smarty_tpl->getVariable('currencyRate')->value);?>
 33';
 34var currencyFormat = '<?php echo intval($_smarty_tpl->getVariable('currencyFormat')->value);?>
 35';
 36var currencyBlank = '<?php echo intval($_smarty_tpl->getVariable('currencyBlank')->value);?>
 37';
 38var taxRate = <?php echo floatval($_smarty_tpl->getVariable('tax_rate')->value);?>
 39;
 40var jqZoomEnabled = <?php if ($_smarty_tpl->getVariable('jqZoomEnabled')->value){?>true<?php }else{ ?>false<?php }?>;
 41//JS Hook
 42var oosHookJsCodeFunctions = new Array();
 43// Parameters
 44var id_product = '<?php echo intval($_smarty_tpl->getVariable('product')->value->id);?>
 45';
 46var productHasAttributes = <?php if (isset($_smarty_tpl->getVariable('groups',null,true,false)->value)){?>true<?php }else{ ?>false<?php }?>;
 47var quantitiesDisplayAllowed = <?php if ($_smarty_tpl->getVariable('display_qties')->value==1){?>true<?php }else{ ?>false<?php }?>;
 48var quantityAvailable = <?php if ($_smarty_tpl->getVariable('display_qties')->value==1&&$_smarty_tpl->getVariable('product')->value->quantity){?><?php echo $_smarty_tpl->getVariable('product')->value->quantity;?>
 49<?php }else{ ?>0<?php }?>;
 50var allowBuyWhenOutOfStock = <?php if ($_smarty_tpl->getVariable('allow_oosp')->value==1){?>true<?php }else{ ?>false<?php }?>;
 51var availableNowValue = '<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->available_now,'quotes','UTF-8');?>
 52';
 53var availableLaterValue = '<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->available_later,'quotes','UTF-8');?>
 54';
 55var productPriceTaxExcluded = <?php echo (($tmp = @$_smarty_tpl->getVariable('product')->value->getPriceWithoutReduct(true))===null||$tmp==='' ? 'null' : $tmp);?>
 56 - <?php echo $_smarty_tpl->getVariable('product')->value->ecotax;?>
 57;
 58var reduction_percent = <?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction_type']=='percentage'){?><?php echo $_smarty_tpl->getVariable('product')->value->specificPrice['reduction']*100;?>
 59<?php }else{ ?>0<?php }?>;
 60var reduction_price = <?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction_type']=='amount'){?><?php echo $_smarty_tpl->getVariable('product')->value->specificPrice['reduction'];?>
 61<?php }else{ ?>0<?php }?>;
 62var specific_price = <?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['price']){?><?php echo $_smarty_tpl->getVariable('product')->value->specificPrice['price'];?>
 63<?php }else{ ?>0<?php }?>;
 64var specific_currency = <?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['id_currency']){?>true<?php }else{ ?>false<?php }?>;
 65var group_reduction = '<?php echo $_smarty_tpl->getVariable('group_reduction')->value;?>
 66';
 67var default_eco_tax = <?php echo $_smarty_tpl->getVariable('product')->value->ecotax;?>
 68;
 69var ecotaxTax_rate = <?php echo $_smarty_tpl->getVariable('ecotaxTax_rate')->value;?>
 70;
 71var currentDate = '<?php echo smarty_modifier_date_format(time(),'%Y-%m-%d %H:%M:%S');?>
 72';
 73var maxQuantityToAllowDisplayOfLastQuantityMessage = <?php echo $_smarty_tpl->getVariable('last_qties')->value;?>
 74;
 75var noTaxForThisProduct = <?php if ($_smarty_tpl->getVariable('no_tax')->value==1){?>true<?php }else{ ?>false<?php }?>;
 76var displayPrice = <?php echo $_smarty_tpl->getVariable('priceDisplay')->value;?>
 77;
 78var productReference = '<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->reference,'htmlall','UTF-8');?>
 79';
 80var productAvailableForOrder = <?php if ((isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&$_smarty_tpl->getVariable('restricted_country_mode')->value)||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>'0'<?php }else{ ?>'<?php echo $_smarty_tpl->getVariable('product')->value->available_for_order;?>
 81'<?php }?>;
 82var productShowPrice = '<?php if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><?php echo $_smarty_tpl->getVariable('product')->value->show_price;?>
 83<?php }else{ ?>0<?php }?>';
 84var productUnitPriceRatio = '<?php echo $_smarty_tpl->getVariable('product')->value->unit_price_ratio;?>
 85';
 86var idDefaultImage = <?php if (isset($_smarty_tpl->getVariable('cover',null,true,false)->value['id_image_only'])){?><?php echo $_smarty_tpl->getVariable('cover')->value['id_image_only'];?>
 87<?php }else{ ?>0<?php }?>;
 88// Customizable field
 89var img_ps_dir = '<?php echo $_smarty_tpl->getVariable('img_ps_dir')->value;?>
 90';
 91var customizationFields = new Array();
 92<?php $_smarty_tpl->tpl_vars['imgIndex'] = new Smarty_variable(0, null, null);?>
 93<?php $_smarty_tpl->tpl_vars['textFieldIndex'] = new Smarty_variable(0, null, null);?>
 94<?php  $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable;
 95 $_from = $_smarty_tpl->getVariable('customizationFields')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 96 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']=-1;
 97if ($_smarty_tpl->_count($_from) > 0){
 98    foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value){
 99 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']++;
100?>
101	<?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable("pictures_".($_smarty_tpl->getVariable('product')->value->id)."_".($_smarty_tpl->tpl_vars['field']->value['id_customization_field']), null, null);?>
102	customizationFields[<?php echo intval($_smarty_tpl->getVariable('smarty')->value['foreach']['customizationFields']['index']);?>
103] = new Array();
104	customizationFields[<?php echo intval($_smarty_tpl->getVariable('smarty')->value['foreach']['customizationFields']['index']);?>
105][0] = '<?php if (intval($_smarty_tpl->tpl_vars['field']->value['type'])==0){?>img<?php echo $_smarty_tpl->getVariable('imgIndex')->value++;?>
106<?php }else{ ?>textField<?php echo $_smarty_tpl->getVariable('textFieldIndex')->value++;?>
107<?php }?>';
108	customizationFields[<?php echo intval($_smarty_tpl->getVariable('smarty')->value['foreach']['customizationFields']['index']);?>
109][1] = <?php if (intval($_smarty_tpl->tpl_vars['field']->value['type'])==0&&isset($_smarty_tpl->getVariable('pictures',null,true,false)->value[$_smarty_tpl->getVariable('key',null,true,false)->value])&&$_smarty_tpl->getVariable('pictures')->value[$_smarty_tpl->getVariable('key')->value]){?>2<?php }else{ ?><?php echo intval($_smarty_tpl->tpl_vars['field']->value['required']);?>
110<?php }?>;
111<?php }} ?>
112// Images
113var img_prod_dir = '<?php echo $_smarty_tpl->getVariable('img_prod_dir')->value;?>
114';
115var combinationImages = new Array();
116<?php if (isset($_smarty_tpl->getVariable('combinationImages',null,true,false)->value)){?>
117	<?php  $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable;
118 $_smarty_tpl->tpl_vars['combinationId'] = new Smarty_Variable;
119 $_from = $_smarty_tpl->getVariable('combinationImages')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
120if ($_smarty_tpl->_count($_from) > 0){
121    foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value){
122 $_smarty_tpl->tpl_vars['combinationId']->value = $_smarty_tpl->tpl_vars['combination']->key;
123?>
124		combinationImages[<?php echo $_smarty_tpl->tpl_vars['combinationId']->value;?>
125] = new Array();
126		<?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable;
127 $_from = $_smarty_tpl->tpl_vars['combination']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
128 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_combinationImage']['index']=-1;
129if ($_smarty_tpl->_count($_from) > 0){
130    foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
131 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_combinationImage']['index']++;
132?>
133			combinationImages[<?php echo $_smarty_tpl->tpl_vars['combinationId']->value;?>
134][<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['f_combinationImage']['index'];?>
135] = <?php echo intval($_smarty_tpl->tpl_vars['image']->value['id_image']);?>
136;
137		<?php }} ?>
138	<?php }} ?>
139<?php }?>
140combinationImages[0] = new Array();
141<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)){?>
142	<?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable;
143 $_from = $_smarty_tpl->getVariable('images')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
144 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_defaultImages']['index']=-1;
145if ($_smarty_tpl->_count($_from) > 0){
146    foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
147 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_defaultImages']['index']++;
148?>
149		combinationImages[0][<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['f_defaultImages']['index'];?>
150] = <?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
151;
152	<?php }} ?>
153<?php }?>
154// Translations
155var doesntExist = '<?php echo smartyTranslate(array('s'=>'The product does not exist in this model. Please choose another.','js'=>1),$_smarty_tpl);?>
156';
157var doesntExistNoMore = '<?php echo smartyTranslate(array('s'=>'This product is no longer in stock','js'=>1),$_smarty_tpl);?>
158';
159var doesntExistNoMoreBut = '<?php echo smartyTranslate(array('s'=>'with those attributes but is available with others','js'=>1),$_smarty_tpl);?>
160';
161var uploading_in_progress = '<?php echo smartyTranslate(array('s'=>'Uploading in progress, please wait...','js'=>1),$_smarty_tpl);?>
162';
163var fieldRequired = '<?php echo smartyTranslate(array('s'=>'Please fill in all required fields, then save the customization.','js'=>1),$_smarty_tpl);?>
164';
165<?php if (isset($_smarty_tpl->getVariable('groups',null,true,false)->value)){?>
166	// Combinations
167	<?php  $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable;
168 $_smarty_tpl->tpl_vars['idCombination'] = new Smarty_Variable;
169 $_from = $_smarty_tpl->getVariable('combinations')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
170if ($_smarty_tpl->_count($_from) > 0){
171    foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value){
172 $_smarty_tpl->tpl_vars['idCombination']->value = $_smarty_tpl->tpl_vars['combination']->key;
173?>
174		addCombination(<?php echo intval($_smarty_tpl->tpl_vars['idCombination']->value);?>
175, new Array(<?php echo $_smarty_tpl->tpl_vars['combination']->value['list'];?>
176), <?php echo $_smarty_tpl->tpl_vars['combination']->value['quantity'];?>
177, <?php echo $_smarty_tpl->tpl_vars['combination']->value['price'];?>
178, <?php echo $_smarty_tpl->tpl_vars['combination']->value['ecotax'];?>
179, <?php echo $_smarty_tpl->tpl_vars['combination']->value['id_image'];?>
180, '<?php echo addslashes($_smarty_tpl->tpl_vars['combination']->value['reference']);?>
181', <?php echo $_smarty_tpl->tpl_vars['combination']->value['unit_impact'];?>
182, <?php echo $_smarty_tpl->tpl_vars['combination']->value['minimal_quantity'];?>
183);
184	<?php }} ?>
185	// Colors
186	<?php if (count($_smarty_tpl->getVariable('colors')->value)>0){?>
187		<?php if ($_smarty_tpl->getVariable('product')->value->id_color_default){?>var id_color_default = <?php echo intval($_smarty_tpl->getVariable('product')->value->id_color_default);?>
188;<?php }?>
189	<?php }?>
190<?php }?>
191//]]>
192</script>
193<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
194 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
195<div id="primary_block" class="clearfix">
196	<h1><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->name,'htmlall','UTF-8');?>
197</h1>
198	<?php if (isset($_smarty_tpl->getVariable('adminActionDisplay',null,true,false)->value)&&$_smarty_tpl->getVariable('adminActionDisplay')->value){?>
199	<div id="admin-action">
200		<p><?php echo smartyTranslate(array('s'=>'This product is not visible to your customers.'),$_smarty_tpl);?>
201
202		<input type="hidden" id="admin-action-product-id" value="<?php echo $_smarty_tpl->getVariable('product')->value->id;?>
203" />
204		<input type="submit" value="<?php echo smartyTranslate(array('s'=>'Publish'),$_smarty_tpl);?>
205" class="exclusive" onclick="submitPublishProduct('<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
206<?php echo $_GET['ad'];?>
207', 0)"/>
208		<input type="submit" value="<?php echo smartyTranslate(array('s'=>'Back'),$_smarty_tpl);?>
209" class="exclusive" onclick="submitPublishProduct('<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
210<?php echo $_GET['ad'];?>
211', 1)"/>
212		</p>
213		<div class="clear" ></div>
214		<p id="admin-action-result"></p>
215		</p>
216	</div>
217	<?php }?>
218	<?php if (isset($_smarty_tpl->getVariable('confirmation',null,true,false)->value)&&$_smarty_tpl->getVariable('confirmation')->value){?>
219	<p class="confirmation">
220		<?php echo $_smarty_tpl->getVariable('confirmation')->value;?>
221
222	</p>
223	<?php }?>
224	<!-- right infos-->
225	<div id="pb-right-column">
226		<!-- product img-->
227		<div id="image-block">
228		<?php if ($_smarty_tpl->getVariable('have_image')->value){?>
229			<img src="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->getVariable('product')->value->link_rewrite,$_smarty_tpl->getVariable('cover')->value['id_image'],'large');?>
230"
231				<?php if ($_smarty_tpl->getVariable('jqZoomEnabled')->value){?>class="jqzoom" alt="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->getVariable('product')->value->link_rewrite,$_smarty_tpl->getVariable('cover')->value['id_image'],'thickbox');?>
232"<?php }else{ ?> title="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->name,'htmlall','UTF-8');?>
233" alt="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->name,'htmlall','UTF-8');?>
234" <?php }?> id="bigpic" width="<?php echo $_smarty_tpl->getVariable('largeSize')->value['width'];?>
235" height="<?php echo $_smarty_tpl->getVariable('largeSize')->value['height'];?>
236" />
237		<?php }else{ ?>
238			<img src="<?php echo $_smarty_tpl->getVariable('img_prod_dir')->value;?>
239<?php echo $_smarty_tpl->getVariable('lang_iso')->value;?>
240-default-large.jpg" id="bigpic" alt="" title="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->name,'htmlall','UTF-8');?>
241" width="<?php echo $_smarty_tpl->getVariable('largeSize')->value['width'];?>
242" height="<?php echo $_smarty_tpl->getVariable('largeSize')->value['height'];?>
243" />
244		<?php }?>
245		</div>
246		<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)&&count($_smarty_tpl->getVariable('images')->value)>0){?>
247		<!-- thumbnails -->
248		<div id="views_block" <?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)&&count($_smarty_tpl->getVariable('images')->value)<2){?>class="hidden"<?php }?>>
249		<div id="thumbs_list">
250			<ul id="thumbs_list">
251				<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)){?>
252					<?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable;
253 $_from = $_smarty_tpl->getVariable('images')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
254 $_smarty_tpl->tpl_vars['image']->index=-1;
255if ($_smarty_tpl->_count($_from) > 0){
256    foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
257 $_smarty_tpl->tpl_vars['image']->index++;
258 $_smarty_tpl->tpl_vars['image']->first = $_smarty_tpl->tpl_vars['image']->index === 0;
259 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['thumbnails']['first'] = $_smarty_tpl->tpl_vars['image']->first;
260?>
261					<?php $_smarty_tpl->tpl_vars['imageIds'] = new Smarty_variable(($_smarty_tpl->getVariable('product')->value->id)."-".($_smarty_tpl->tpl_vars['image']->value['id_image']), null, null);?>
262					<li id="thumbnail_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
263">
264						<a href="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->getVariable('product')->value->link_rewrite,$_smarty_tpl->getVariable('imageIds')->value,'thickbox');?>
265" rel="other-views" class="thickbox <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['thumbnails']['first']){?>shown<?php }?>" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend']);?>
266">
267							<img id="thumb_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
268" src="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->getVariable('product')->value->link_rewrite,$_smarty_tpl->getVariable('imageIds')->value,'medium');?>
269" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend']);?>
270" height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
271" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
272" />
273						</a>
274					</li>
275					<?php }} ?>
276				<?php }?>
277			</ul>
278		</div>
279		</div>
280		<?php }?>
281		<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)&&count($_smarty_tpl->getVariable('images')->value)>1){?><span id="wrapResetImages" style="display:none;"><div><a id="resetImages" href="<?php echo $_smarty_tpl->getVariable('link')->value->getProductLink($_smarty_tpl->getVariable('product')->value);?>
282" onclick="$('span#wrapResetImages').hide('slow');return (false);"><?php echo smartyTranslate(array('s'=>'Display all pictures'),$_smarty_tpl);?>
283</a></div></span><?php }?>
284		<!-- usefull links-->
285		<ul id="usefull_link_block">
286			<?php if ($_smarty_tpl->getVariable('HOOK_EXTRA_LEFT')->value){?><?php echo $_smarty_tpl->getVariable('HOOK_EXTRA_LEFT')->value;?>
287<?php }?>
288			<li><a href="javascript:print();"><?php echo smartyTranslate(array('s'=>'Print'),$_smarty_tpl);?>
289</a></li>
290			<?php if ($_smarty_tpl->getVariable('have_image')->value&&!$_smarty_tpl->getVariable('jqZoomEnabled')->value){?>
291			<li><span id="view_full_size" class="span_link"><?php echo smartyTranslate(array('s'=>'View full size'),$_smarty_tpl);?>
292</span></li>
293			<?php }?>
294		</ul>
295	</div>
296	<!-- left infos-->
297	<div id="pb-left-column">
298		<?php if ($_smarty_tpl->getVariable('product')->value->description_short||count($_smarty_tpl->getVariable('packItems')->value)>0){?>
299		<div id="short_description_block">
300			<?php if ($_smarty_tpl->getVariable('product')->value->description_short){?>
301				<div id="short_description_content" class="rte align_justify"><?php echo preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->getVariable('product')->value->description_short);?>
302</div>
303			<?php }?>
304			<?php if ($_smarty_tpl->getVariable('product')->value->description){?>
305			<p class="buttons_bottom_block"><a href="javascript:{}" class="button"><?php echo smartyTranslate(array('s'=>'More details'),$_smarty_tpl);?>
306</a></p>
307			<?php }?>
308			<?php if (count($_smarty_tpl->getVariable('packItems')->value)>0){?>
309				<h3><?php echo smartyTranslate(array('s'=>'Pack content'),$_smarty_tpl);?>
310</h3>
311				<?php  $_smarty_tpl->tpl_vars['packItem'] = new Smarty_Variable;
312 $_from = $_smarty_tpl->getVariable('packItems')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
313if ($_smarty_tpl->_count($_from) > 0){
314    foreach ($_from as $_smarty_tpl->tpl_vars['packItem']->key => $_smarty_tpl->tpl_vars['packItem']->value){
315?>
316					<div class="pack_content">
317						<?php echo $_smarty_tpl->tpl_vars['packItem']->value['pack_quantity'];?>
318 x <a href="<?php echo $_smarty_tpl->getVariable('link')->value->getProductLink($_smarty_tpl->tpl_vars['packItem']->value['id_product'],$_smarty_tpl->tpl_vars['packItem']->value['link_rewrite'],$_smarty_tpl->tpl_vars['packItem']->value['category']);?>
319"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['packItem']->value['name'],'htmlall','UTF-8');?>
320</a>
321						<p><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['packItem']->value['description_short'],100,'...');?>
322</p>
323					</div>
324				<?php }} ?>
325			<?php }?>
326		</div>
327		<?php }?>
328		<?php if (isset($_smarty_tpl->getVariable('colors',null,true,false)->value)&&$_smarty_tpl->getVariable('colors')->value){?>
329		<!-- colors -->
330		<div id="color_picker">
331			<p><?php echo smartyTranslate(array('s'=>'Pick a color:','js'=>1),$_smarty_tpl);?>
332</p>
333			<div class="clearblock"></div>
334			<ul id="color_to_pick_list">
335			<?php  $_smarty_tpl->tpl_vars['color'] = new Smarty_Variable;
336 $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable;
337 $_from = $_smarty_tpl->getVariable('colors')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
338if ($_smarty_tpl->_count($_from) > 0){
339    foreach ($_from as $_smarty_tpl->tpl_vars['color']->key => $_smarty_tpl->tpl_vars['color']->value){
340 $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['color']->key;
341?>
342				<li><a id="color_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);?>
343" class="color_pick" style="background: <?php echo $_smarty_tpl->tpl_vars['color']->value['value'];?>
344;" onclick="updateColorSelect(<?php echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);?>
345);$('#wrapResetImages').show('slow');" title="<?php echo $_smarty_tpl->tpl_vars['color']->value['name'];?>
346"><?php if (file_exists((($_smarty_tpl->getVariable('col_img_dir')->value).($_smarty_tpl->tpl_vars['id_attribute']->value)).('.jpg'))){?><img src="<?php echo $_smarty_tpl->getVariable('img_col_dir')->value;?>
347<?php echo $_smarty_tpl->tpl_vars['id_attribute']->value;?>
348.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['color']->value['name'];?>
349" width="20" height="20" /><?php }?></a></li>
350			<?php }} ?>
351			</ul>
352			<div class="clearblock"></div>
353		</div>
354		<?php }?>
355		<?php if (($_smarty_tpl->getVariable('product')->value->show_price&&!isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value))||isset($_smarty_tpl->getVariable('groups',null,true,false)->value)||$_smarty_tpl->getVariable('product')->value->reference||(isset($_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS',null,true,false)->value)&&$_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS')->value)){?>
356		<!-- add to cart form-->
357		<form id="buy_block" <?php if ($_smarty_tpl->getVariable('PS_CATALOG_MODE')->value&&!isset($_smarty_tpl->getVariable('groups',null,true,false)->value)&&$_smarty_tpl->getVariable('product')->value->quantity>0){?>class="hidden"<?php }?> action="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('cart.php');?>
358" method="post">
359			<!-- hidden datas -->
360			<p class="hidden">
361				<input type="hidden" name="token" value="<?php echo $_smarty_tpl->getVariable('static_token')->value;?>
362" />
363				<input type="hidden" name="id_product" value="<?php echo intval($_smarty_tpl->getVariable('product')->value->id);?>
364" id="product_page_product_id" />
365				<input type="hidden" name="add" value="1" />
366				<input type="hidden" name="id_product_attribute" id="idCombination" value="" />
367			</p>
368			<!-- prices -->
369			<?php if ($_smarty_tpl->getVariable('product')->value->show_price&&!isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>
370				<p class="price">
371					<?php if (!$_smarty_tpl->getVariable('priceDisplay')->value||$_smarty_tpl->getVariable('priceDisplay')->value==2){?>
372						<?php $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->getVariable('product')->value->getPrice(true,@NULL,2), null, null);?>
373						<?php $_smarty_tpl->tpl_vars['productPriceWithoutRedution'] = new Smarty_variable($_smarty_tpl->getVariable('product')->value->getPriceWithoutReduct(false,@NULL), null, null);?>
374					<?php }elseif($_smarty_tpl->getVariable('priceDisplay')->value==1){?>
375						<?php $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->getVariable('product')->value->getPrice(false,@NULL,2), null, null);?>
376						<?php $_smarty_tpl->tpl_vars['productPriceWithoutRedution'] = new Smarty_variable($_smarty_tpl->getVariable('product')->value->getPriceWithoutReduct(true,@NULL), null, null);?>
377					<?php }?>
378					<?php if ($_smarty_tpl->getVariable('product')->value->on_sale){?>
379						<span class="on_sale"><?php echo smartyTranslate(array('s'=>'On sale!'),$_smarty_tpl);?>
380</span>
381					<?php }elseif($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']&&$_smarty_tpl->getVariable('productPriceWithoutRedution')->value>$_smarty_tpl->getVariable('productPrice')->value){?>
382						<span class="discount"><?php echo smartyTranslate(array('s'=>'Reduced price!'),$_smarty_tpl);?>
383</span>
384					<?php }?>
385					<span class="our_price_display">
386					<?php if ($_smarty_tpl->getVariable('priceDisplay')->value>=0&&$_smarty_tpl->getVariable('priceDisplay')->value<=2){?>
387						<span id="our_price_display"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('productPrice')->value),$_smarty_tpl);?>
388</span>
389							<?php if ($_smarty_tpl->getVariable('tax_enabled')->value&&((isset($_smarty_tpl->getVariable('display_tax_label',null,true,false)->value)&&$_smarty_tpl->getVariable('display_tax_label')->value==1)||!isset($_smarty_tpl->getVariable('display_tax_label',null,true,false)->value))){?>
390								<?php if ($_smarty_tpl->getVariable('priceDisplay')->value==1){?><?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
391<?php }else{ ?><?php echo smartyTranslate(array('s'=>'tax incl.'),$_smarty_tpl);?>
392<?php }?>
393							<?php }?>
394					<?php }?>
395					</span>
396					<?php if ($_smarty_tpl->getVariable('priceDisplay')->value==2){?>
397						<span id="pretaxe_price"><span id="pretaxe_price_display"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('product')->value->getPrice(false,@NULL)),$_smarty_tpl);?>
398</span>&nbsp;<?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
399</span>
400					<?php }?>
401				</p>
402				<div id="other_prices">
403					<?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']){?>
404					<p id="old_price">
405					<?php if ($_smarty_tpl->getVariable('priceDisplay')->value>=0&&$_smarty_tpl->getVariable('priceDisplay')->value<=2){?>
406						<?php if ($_smarty_tpl->getVariable('productPriceWithoutRedution')->value>$_smarty_tpl->getVariable('productPrice')->value){?>
407						<span id="old_price_display"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('productPriceWithoutRedution')->value),$_smarty_tpl);?>
408</span>
409							<?php if ($_smarty_tpl->getVariable('tax_enabled')->value){?>
410								<?php if ($_smarty_tpl->getVariable('priceDisplay')->value==1){?><?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
411<?php }else{ ?><?php echo smartyTranslate(array('s'=>'tax incl.'),$_smarty_tpl);?>
412<?php }?>
413							<?php }?>
414						<?php }?>
415					<?php }?>
416					</p>
417					<?php }?>
418					<?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction_type']=='percentage'){?>
419					<p id="reduction_percent"><?php echo smartyTranslate(array('s'=>'(price reduced by'),$_smarty_tpl);?>
420 <span id="reduction_percent_display"><?php echo $_smarty_tpl->getVariable('product')->value->specificPrice['reduction']*100;?>
421</span> %<?php echo smartyTranslate(array('s'=>')'),$_smarty_tpl);?>
422</p>
423					<?php }?>
424					<?php if (count($_smarty_tpl->getVariable('packItems')->value)){?>
425					<p class="pack_price"><?php echo smartyTranslate(array('s'=>'instead of'),$_smarty_tpl);?>
426 <span style="text-decoration: line-through;"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('product')->value->getNoPackPrice()),$_smarty_tpl);?>
427</span></p>
428					<?php }?>
429					<?php if ($_smarty_tpl->getVariable('product')->value->ecotax!=0){?>
430					<p class="price-ecotax"><?php echo smartyTranslate(array('s'=>'include'),$_smarty_tpl);?>
431 <span id="ecotax_price_display"><?php if ($_smarty_tpl->getVariable('priceDisplay')->value==2){?><?php echo Product::convertAndFormatPrice($_smarty_tpl->getVariable('ecotax_tax_exc')->value);?>
432<?php }else{ ?><?php echo Product::convertAndFormatPrice($_smarty_tpl->getVariable('ecotax_tax_inc')->value);?>
433<?php }?></span> <?php echo smartyTranslate(array('s'=>'for green tax'),$_smarty_tpl);?>
434
435						<?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']){?><br /><?php echo smartyTranslate(array('s'=>'(not impacted by the discount)'),$_smarty_tpl);?>
436<?php }?>
437					</p>
438					<?php }?>
439					<?php if (!empty($_smarty_tpl->getVariable('product',null,true,false)->value->unity)&&$_smarty_tpl->getVariable('product')->value->unit_price_ratio>0.000000){?>
440						<?php echo smarty_function_math(array('equation'=>"pprice / punit_price",'pprice'=>$_smarty_tpl->getVariable('productPrice')->value,'punit_price'=>$_smarty_tpl->getVariable('product')->value->unit_price_ratio,'assign'=>'unit_price'),$_smarty_tpl);?>
441
442						<p class="unit-price"><span id="unit_price_display"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('unit_price')->value),$_smarty_tpl);?>
443</span> <?php echo smartyTranslate(array('s'=>'per'),$_smarty_tpl);?>
444 <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->unity,'htmlall','UTF-8');?>
445</p>
446					<?php }?>
447				</div>
448			<?php }?>
449			<?php if (isset($_smarty_tpl->getVariable('groups',null,true,false)->value)){?>
450			<!-- attributes -->
451			<div id="attributes">
452			<?php  $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable;
453 $_smarty_tpl->tpl_vars['id_attribute_group'] = new Smarty_Variable;
454 $_from = $_smarty_tpl->getVariable('groups')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
455if ($_smarty_tpl->_count($_from) > 0){
456    foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value){
457 $_smarty_tpl->tpl_vars['id_attribute_group']->value = $_smarty_tpl->tpl_vars['group']->key;
458?>
459			<?php if (count($_smarty_tpl->tpl_vars['group']->value['attributes'])){?>
460			<p>
461				<label for="group_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value);?>
462"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['group']->value['name'],'htmlall','UTF-8');?>
463:</label>
464				<?php $_smarty_tpl->tpl_vars["groupName"] = new Smarty_variable("group_".($_smarty_tpl->tpl_vars['id_attribute_group']->value), null, null);?>
465				<select name="<?php echo $_smarty_tpl->getVariable('groupName')->value;?>
466" id="group_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value);?>
467" onchange="javascript:findCombination();<?php if (count($_smarty_tpl->getVariable('colors')->value)>0){?>$('#wrapResetImages').show('slow');<?php }?>;">
468					<?php  $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable;
469 $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable;
470 $_from = $_smarty_tpl->tpl_vars['group']->value['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
471if ($_smarty_tpl->_count($_from) > 0){
472    foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value){
473 $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key;
474?>
475						<option value="<?php echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);?>
476"<?php if ((isset($_GET[$_smarty_tpl->getVariable('groupName',null,true,false)->value])&&intval($_GET[$_smarty_tpl->getVariable('groupName')->value])==$_smarty_tpl->tpl_vars['id_attribute']->value)||$_smarty_tpl->tpl_vars['group']->value['default']==$_smarty_tpl->tpl_vars['id_attribute']->value){?> selected="selected"<?php }?> title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['group_attribute']->value,'htmlall','UTF-8');?>
477"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['group_attribute']->value,'htmlall','UTF-8');?>
478</option>
479					<?php }} ?>
480				</select>
481			</p>
482			<?php }?>
483			<?php }} ?>
484			</div>
485			<?php }?>
486			<p id="product_reference" <?php if (isset($_smarty_tpl->getVariable('groups',null,true,false)->value)||!$_smarty_tpl->getVariable('product')->value->reference){?>style="display:none;"<?php }?>><label for="product_reference"><?php echo smartyTranslate(array('s'=>'Reference :'),$_smarty_tpl);?>
487 </label><span class="editable"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->reference,'htmlall','UTF-8');?>
488</span></p>
489			<!-- quantity wanted -->
490			<p id="quantity_wanted_p"<?php if ((!$_smarty_tpl->getVariable('allow_oosp')->value&&$_smarty_tpl->getVariable('product')->value->quantity==0)||$_smarty_tpl->getVariable('virtual')->value||!$_smarty_tpl->getVariable('product')->value->available_for_order||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display: none;"<?php }?>>
491				<label><?php echo smartyTranslate(array('s'=>'Quantity :'),$_smarty_tpl);?>
492</label>
493				<input type="text" name="qty" id="quantity_wanted" class="text" value="<?php if (isset($_smarty_tpl->getVariable('quantityBackup',null,true,false)->value)){?><?php echo intval($_smarty_tpl->getVariable('quantityBackup')->value);?>
494<?php }else{ ?><?php if ($_smarty_tpl->getVariable('product')->value->minimal_quantity>1){?><?php echo $_smarty_tpl->getVariable('product')->value->minimal_quantity;?>
495<?php }else{ ?>1<?php }?><?php }?>" size="2" maxlength="3" <?php if ($_smarty_tpl->getVariable('product')->value->minimal_quantity>1){?>onkeyup="checkMinimalQuantity(<?php echo $_smarty_tpl->getVariable('product')->value->minimal_quantity;?>
496);"<?php }?> />
497			</p>
498			<!-- minimal quantity wanted -->
499			<p id="minimal_quantity_wanted_p"<?php if ($_smarty_tpl->getVariable('product')->value->minimal_quantity<=1||!$_smarty_tpl->getVariable('product')->value->available_for_order||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display: none;"<?php }?>><?php echo smartyTranslate(array('s'=>'You must add '),$_smarty_tpl);?>
500<b id="minimal_quantity_label"><?php echo $_smarty_tpl->getVariable('product')->value->minimal_quantity;?>
501</b><?php echo smartyTranslate(array('s'=>' as a minimum quantity to buy this product.'),$_smarty_tpl);?>
502</p>
503			<?php if ($_smarty_tpl->getVariable('product')->value->minimal_quantity>1){?>
504			<script type="text/javascript">
505				checkMinimalQuantity();
506			</script>
507			<?php }?>
508			<!-- availability -->
509			<p id="availability_statut"<?php if (($_smarty_tpl->getVariable('product')->value->quantity<=0&&!$_smarty_tpl->getVariable('product')->value->available_later&&$_smarty_tpl->getVariable('allow_oosp')->value)||($_smarty_tpl->getVariable('product')->value->quantity>0&&!$_smarty_tpl->getVariable('product')->value->available_now)||!$_smarty_tpl->getVariable('product')->value->available_for_order||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display:none;"<?php }?>>
510				<span id="availability_label"><?php echo smartyTranslate(array('s'=>'Availability:'),$_smarty_tpl);?>
511</span>
512				<span id="availability_value"<?php if ($_smarty_tpl->getVariable('product')->value->quantity<=0){?> class="warning_inline"<?php }?>>
513					<?php if ($_smarty_tpl->getVariable('product')->value->quantity<=0){?><?php if ($_smarty_tpl->getVariable('allow_oosp')->value){?><?php echo $_smarty_tpl->getVariable('product')->value->available_later;?>
514<?php }else{ ?><?php echo smartyTranslate(array('s'=>'This product is no longer in stock'),$_smarty_tpl);?>
515<?php }?><?php }else{ ?><?php echo $_smarty_tpl->getVariable('product')->value->available_now;?>
516<?php }?>
517				</span>
518			</p>
519			<!-- number of item in stock -->
520			<?php if (($_smarty_tpl->getVariable('display_qties')->value==1&&!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value&&$_smarty_tpl->getVariable('product')->value->available_for_order)){?>
521			<p id="pQuantityAvailable"<?php if ($_smarty_tpl->getVariable('product')->value->quantity<=0){?> style="display:none;"<?php }?>>
522				<span id="quantityAvailable"><?php echo intval($_smarty_tpl->getVariable('product')->value->quantity);?>
523</span>
524				<span <?php if ($_smarty_tpl->getVariable('product')->value->quantity>1){?> style="display:none;"<?php }?> id="quantityAvailableTxt"><?php echo smartyTranslate(array('s'=>'item in stock'),$_smarty_tpl);?>
525</span>
526				<span <?php if ($_smarty_tpl->getVariable('product')->value->quantity==1){?> style="display:none;"<?php }?> id="quantityAvailableTxtMultiple"><?php echo smartyTranslate(array('s'=>'items in stock'),$_smarty_tpl);?>
527</span>
528			</p>
529     		<?php }?>
530			<!-- Out of stock hook -->
531			<p id="oosHook"<?php if ($_smarty_tpl->getVariable('product')->value->quantity>0){?> style="display: none;"<?php }?>>
532				<?php echo $_smarty_tpl->getVariable('HOOK_PRODUCT_OOS')->value;?>
533
534			</p>
535			<p id="last_quantities"<?php if (($_smarty_tpl->getVariable('product')->value->quantity>$_smarty_tpl->getVariable('last_qties')->value||$_smarty_tpl->getVariable('product')->value->quantity<=0)||$_smarty_tpl->getVariable('allow_oosp')->value||!$_smarty_tpl->getVariable('product')->value->available_for_order||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display:none;"<?php }?> ><?php echo smartyTranslate(array('s'=>'Warning: Last items in stock!'),$_smarty_tpl);?>
536</p>
537			<?php if ($_smarty_tpl->getVariable('product')->value->online_only){?><p class="online_only"><?php echo smartyTranslate(array('s'=>'Online only'),$_smarty_tpl);?>
538!</p><?php }?>
539			<p<?php if ((!$_smarty_tpl->getVariable('allow_oosp')->value&&$_smarty_tpl->getVariable('product')->value->quantity<=0)||!$_smarty_tpl->getVariable('product')->value->available_for_order||(isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&$_smarty_tpl->getVariable('restricted_country_mode')->value)||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display: none;"<?php }?> id="add_to_cart" class="buttons_bottom_block">
540				<a class="exclusive" href="javascript:document.getElementById('add2cartbtn').click();"><?php echo smartyTranslate(array('s'=>'Add to cart'),$_smarty_tpl);?>
541</a>
542				<input id="add2cartbtn" type="submit" name="Submit" value="<?php echo smartyTranslate(array('s'=>'Add to cart'),$_smarty_tpl);?>
543" />
544			</p>
545			<?php if (isset($_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS',null,true,false)->value)&&$_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS')->value){?><?php echo $_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS')->value;?>
546<?php }?>
547			<div class="clearblock"></div>
548		</form>
549		<?php }?>
550		<?php if ($_smarty_tpl->getVariable('HOOK_EXTRA_RIGHT')->value){?><?php echo $_smarty_tpl->getVariable('HOOK_EXTRA_RIGHT')->value;?>
551<?php }?>
552	</div>
553</div>
554<?php if ($_smarty_tpl->getVariable('quantity_discounts')->value){?>
555<!-- quantity discount -->
556<ul class="idTabs">
557	<li><a class="selected"><?php echo smartyTranslate(array('s'=>'Quantity discount'),$_smarty_tpl);?>
558</a></li>
559</ul>
560<div id="quantityDiscount">
561	<table class="std">
562		<tr>
563			<?php  $_smarty_tpl->tpl_vars['quantity_discount'] = new Smarty_Variable;
564 $_from = $_smarty_tpl->getVariable('quantity_discounts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
565if ($_smarty_tpl->_count($_from) > 0){
566    foreach ($_from as $_smarty_tpl->tpl_vars['quantity_discount']->key => $_smarty_tpl->tpl_vars['quantity_discount']->value){
567?>
568				<th><?php echo intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity']);?>
569
570				<?php if (intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity'])>1){?>
571					<?php echo smartyTranslate(array('s'=>'quantities'),$_smarty_tpl);?>
572
573				<?php }else{ ?>
574					<?php echo smartyTranslate(array('s'=>'quantity'),$_smarty_tpl);?>
575
576				<?php }?>
577				</th>
578			<?php }} ?>
579		</tr>
580		<tr>
581			<?php  $_smarty_tpl->tpl_vars['quantity_discount'] = new Smarty_Variable;
582 $_from = $_smarty_tpl->getVariable('quantity_discounts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
583if ($_smarty_tpl->_count($_from) > 0){
584    foreach ($_from as $_smarty_tpl->tpl_vars['quantity_discount']->key => $_smarty_tpl->tpl_vars['quantity_discount']->value){
585?>
586				<td>
587				<?php if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price']!=0||$_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type']=='amount'){?>
588					-<?php echo Product::convertPrice(array('price'=>floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])),$_smarty_tpl);?>
589
590				<?php }else{ ?>
591    				-<?php echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']);?>
592%
593				<?php }?>
594				</td>
595			<?php }} ?>
596		</tr>
597	</table>
598</div>
599<?php }?>
600<?php echo $_smarty_tpl->getVariable('HOOK_PRODUCT_FOOTER')->value;?>
601
602<!-- description and features -->
603<?php if ($_smarty_tpl->getVariable('product')->value->description||$_smarty_tpl->getVariable('features')->value||$_smarty_tpl->getVariable('accessories')->value||$_smarty_tpl->getVariable('HOOK_PRODUCT_TAB')->value||$_smarty_tpl->getVariable('attachments')->value){?>
604<div id="more_info_block" class="clear">
605	<ul id="more_info_tabs" class="idTabs idTabsShort">
606		<?php if ($_smarty_tpl->getVariable('product')->value->description){?><li><a id="more_info_tab_more_info" href="#idTab1"><?php echo smartyTranslate(array('s'=>'More info'),$_smarty_tpl);?>
607</a></li><?php }?>
608		<?php if ($_smarty_tpl->getVariable('features')->value){?><li><a id="more_info_tab_data_sheet" href="#idTab2"><?php echo smartyTranslate(array('s'=>'Data sheet'),$_smarty_tpl);?>
609</a></li><?php }?>
610		<?php if ($_smarty_tpl->getVariable('attachments')->value){?><li><a id="more_info_tab_attachments" href="#idTab9"><?php echo smartyTranslate(array('s'=>'Download'),$_smarty_tpl);?>
611</a></li><?php }?>
612		<?php if (isset($_smarty_tpl->getVariable('accessories',null,true,false)->value)&&$_smarty_tpl->getVariable('accessories')->value){?><li><a href="#idTab4"><?php echo smartyTranslate(array('s'=>'Accessories'),$_smarty_tpl);?>
613</a></li><?php }?>
614		<?php echo $_smarty_tpl->getVariable('HOOK_PRODUCT_TAB')->value;?>
615
616	</ul>
617	<div id="more_info_sheets" class="sheets align_justify">
618	<?php if ($_smarty_tpl->getVariable('product')->value->description){?>
619		<!-- full description -->
620		<div id="idTab1"><?php echo $_smarty_tpl->getVariable('product')->value->description;?>
621</div>
622	<?php }?>
623	<?php if ($_smarty_tpl->getVariable('features')->value){?>
624		<!-- product's features -->
625		<ul id="idTab2" class="bullet">
626		<?php  $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable;
627 $_from = $_smarty_tpl->getVariable('features')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
628if ($_smarty_tpl->_count($_from) > 0){
629    foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value){
630?>
631			<li><span><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['feature']->value['name'],'htmlall','UTF-8');?>
632</span> <?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['feature']->value['value'],'htmlall','UTF-8');?>
633</li>
634		<?php }} ?>
635		</ul>
636	<?php }?>
637	<?php if ($_smarty_tpl->getVariable('attachments')->value){?>
638		<ul id="idTab9" class="bullet">
639		<?php  $_smarty_tpl->tpl_vars['attachment'] = new Smarty_Variable;
640 $_from = $_smarty_tpl->getVariable('attachments')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
641if ($_smarty_tpl->_count($_from) > 0){
642    foreach ($_from as $_smarty_tpl->tpl_vars['attachment']->key => $_smarty_tpl->tpl_vars['attachment']->value){
643?>
644			<li><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('attachment.php',true);?>
645?id_attachment=<?php echo $_smarty_tpl->tpl_vars['attachment']->value['id_attachment'];?>
646"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['attachment']->value['name'],'htmlall','UTF-8');?>
647</a><br /><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['attachment']->value['description'],'htmlall','UTF-8');?>
648</li>
649		<?php }} ?>
650		</ul>
651	<?php }?>
652	<?php if (isset($_smarty_tpl->getVariable('accessories',null,true,false)->value)&&$_smarty_tpl->getVariable('accessories')->value){?>
653		<!-- accessories -->
654		<ul id="idTab4">
655			<?php  $_smarty_tpl->tpl_vars['accessory'] = new Smarty_Variable;
656 $_from = $_smarty_tpl->getVariable('accessories')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
657 $_smarty_tpl->tpl_vars['accessory']->total= $_smarty_tpl->_count($_from);
658 $_smarty_tpl->tpl_vars['accessory']->iteration=0;
659 $_smarty_tpl->tpl_vars['accessory']->index=-1;
660if ($_smarty_tpl->tpl_vars['accessory']->total > 0){
661    foreach ($_from as $_smarty_tpl->tpl_vars['accessory']->key => $_smarty_tpl->tpl_vars['accessory']->value){
662 $_smarty_tpl->tpl_vars['accessory']->iteration++;
663 $_smarty_tpl->tpl_vars['accessory']->index++;
664 $_smarty_tpl->tpl_vars['accessory']->first = $_smarty_tpl->tpl_vars['accessory']->index === 0;
665 $_smarty_tpl->tpl_vars['accessory']->last = $_smarty_tpl->tpl_vars['accessory']->iteration === $_smarty_tpl->tpl_vars['accessory']->total;
666 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['accessories_list']['first'] = $_smarty_tpl->tpl_vars['accessory']->first;
667 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['accessories_list']['last'] = $_smarty_tpl->tpl_vars['accessory']->last;
668?>
669			<?php $_smarty_tpl->tpl_vars['accessoryLink'] = new Smarty_variable($_smarty_tpl->getVariable('link')->value->getProductLink($_smarty_tpl->tpl_vars['accessory']->value['id_product'],$_smarty_tpl->tpl_vars['accessory']->value['link_rewrite'],$_smarty_tpl->tpl_vars['accessory']->value['category']), null, null);?>
670			<li class="ajax_block_product <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['accessories_list']['first']){?>first_item<?php }elseif($_smarty_tpl->getVariable('smarty')->value['foreach']['accessories_list']['last']){?>last_item<?php }else{ ?>item<?php }?> product_accessories_description">
671				<div class="accessories_desc">
672					<a class="accessory_image product_img_link" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('accessoryLink')->value,'htmlall','UTF-8');?>
673" title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['legend'],'htmlall','UTF-8');?>
674"><img src="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->tpl_vars['accessory']->value['link_rewrite'],$_smarty_tpl->tpl_vars['accessory']->value['id_image'],'medium');?>
675" alt="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['legend'],'htmlall','UTF-8');?>
676" /></a>
677					<h5><a class="product_link" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('accessoryLink')->value,'htmlall','UTF-8');?>
678"><?php echo smarty_modifier_escape(smarty_modifier_truncate($_smarty_tpl->tpl_vars['accessory']->value['name'],22,'...',true),'htmlall','UTF-8');?>
679</a></h5>
680					<a class="product_descr" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('accessoryLink')->value,'htmlall','UTF-8');?>
681" title="<?php echo smartyTranslate(array('s'=>'More'),$_smarty_tpl);?>
682"><?php echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['accessory']->value['description_short']),70,'...');?>
683</a>
684				</div>
685				<div class="accessories_price">
686					<?php if ($_smarty_tpl->tpl_vars['accessory']->value['show_price']&&!isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><span class="price"><?php if ($_smarty_tpl->getVariable('priceDisplay')->value!=1){?><?php echo Product::displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['accessory']->value['price']),$_smarty_tpl);?>
687<?php }else{ ?><?php echo Product::displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['accessory']->value['pr…

Large files files are truncated, but you can click here to view the full file