0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
pshoptuscamisetaspersonalizadas
/
cache
/
smarty
/
compile
/
29
/
69
/
3b
/
[
Home
]
Name File: 29693b1c31e300ec427a452fb8ce7b8eae46f2e3.file.blocknewproducts.tpl.php
< back
<?php /* Smarty version Smarty-3.1.13, created on 2013-07-23 13:17:44 compiled from "/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/themes/default/modules/blocknewproducts/blocknewproducts.tpl" */ ?> <?php /*%%SmartyHeaderCode:174125224151ee6658d4c1a3-80234631%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '29693b1c31e300ec427a452fb8ce7b8eae46f2e3' => array ( 0 => '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/themes/default/modules/blocknewproducts/blocknewproducts.tpl', 1 => 1369705066, 2 => 'file', ), ), 'nocache_hash' => '174125224151ee6658d4c1a3-80234631', 'function' => array ( ), 'variables' => array ( 'link' => 0, 'new_products' => 0, 'product' => 0, 'mediumSize' => 0, 'newproduct' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.13', 'unifunc' => 'content_51ee66591877d6_89915908', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_51ee66591877d6_89915908')) {function content_51ee66591877d6_89915908($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_escape')) include '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/tools/smarty/plugins/modifier.escape.php'; ?> <!-- MODULE Block new products --> <div id="new-products_block_right" class="block products_block"> <p class="title_block"><a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('new-products');?> " title="<?php echo smartyTranslate(array('s'=>'New products','mod'=>'blocknewproducts'),$_smarty_tpl);?> "><?php echo smartyTranslate(array('s'=>'New products','mod'=>'blocknewproducts'),$_smarty_tpl);?> </a></p> <div class="block_content"> <?php if ($_smarty_tpl->tpl_vars['new_products']->value!==false){?> <ul class="product_images clearfix"> <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false; $_from = $_smarty_tpl->tpl_vars['new_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} $_smarty_tpl->tpl_vars['product']->index=-1; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['newProducts']['index']=-1; foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){ $_smarty_tpl->tpl_vars['product']->_loop = true; $_smarty_tpl->tpl_vars['product']->index++; $_smarty_tpl->tpl_vars['product']->first = $_smarty_tpl->tpl_vars['product']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['newProducts']['first'] = $_smarty_tpl->tpl_vars['product']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['newProducts']['index']++; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['newProducts']['index']<2){?> <li<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['newProducts']['first']){?> class="first"<?php }?>><a href="<?php echo $_smarty_tpl->tpl_vars['product']->value['link'];?> " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['legend'], 'html', 'UTF-8');?> "><img src="<?php echo $_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['id_image'],'medium_default');?> " height="<?php echo $_smarty_tpl->tpl_vars['mediumSize']->value['height'];?> " width="<?php echo $_smarty_tpl->tpl_vars['mediumSize']->value['width'];?> " alt="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['legend'], 'html', 'UTF-8');?> " /></a></li> <?php }?> <?php } ?> </ul> <dl class="products"> <?php $_smarty_tpl->tpl_vars['newproduct'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['newproduct']->_loop = false; $_from = $_smarty_tpl->tpl_vars['new_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} $_smarty_tpl->tpl_vars['newproduct']->total= $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['newproduct']->iteration=0; $_smarty_tpl->tpl_vars['newproduct']->index=-1; foreach ($_from as $_smarty_tpl->tpl_vars['newproduct']->key => $_smarty_tpl->tpl_vars['newproduct']->value){ $_smarty_tpl->tpl_vars['newproduct']->_loop = true; $_smarty_tpl->tpl_vars['newproduct']->iteration++; $_smarty_tpl->tpl_vars['newproduct']->index++; $_smarty_tpl->tpl_vars['newproduct']->first = $_smarty_tpl->tpl_vars['newproduct']->index === 0; $_smarty_tpl->tpl_vars['newproduct']->last = $_smarty_tpl->tpl_vars['newproduct']->iteration === $_smarty_tpl->tpl_vars['newproduct']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['newproduct']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['newproduct']->last; ?> <dt class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']){?>first_item<?php }elseif($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']){?>last_item<?php }else{ ?>item<?php }?>"><a href="<?php echo $_smarty_tpl->tpl_vars['newproduct']->value['link'];?> " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['newproduct']->value['name'], 'html', 'UTF-8');?> "><?php echo smarty_modifier_escape(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['newproduct']->value['name']), 'html', 'UTF-8');?> </a></dt> <?php if ($_smarty_tpl->tpl_vars['newproduct']->value['description_short']){?><dd class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']){?>first_item<?php }elseif($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']){?>last_item<?php }else{ ?>item<?php }?>"><a href="<?php echo $_smarty_tpl->tpl_vars['newproduct']->value['link'];?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(strip_tags($_smarty_tpl->tpl_vars['newproduct']->value['description_short']),75,'...');?> </a><br /><a href="<?php echo $_smarty_tpl->tpl_vars['newproduct']->value['link'];?> " class="lnk_more"><?php echo smartyTranslate(array('s'=>'Read more','mod'=>'blocknewproducts'),$_smarty_tpl);?> </a></dd><?php }?> <?php } ?> </dl> <p><a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('new-products');?> " title="<?php echo smartyTranslate(array('s'=>'All new products','mod'=>'blocknewproducts'),$_smarty_tpl);?> " class="button_large">» <?php echo smartyTranslate(array('s'=>'All new products','mod'=>'blocknewproducts'),$_smarty_tpl);?> </a></p> <?php }else{ ?> <p>» <?php echo smartyTranslate(array('s'=>'No new products at this time','mod'=>'blocknewproducts'),$_smarty_tpl);?> </p> <?php }?> </div> </div> <!-- /MODULE Block new products --><?php }} ?>
©
2018. | Recode by D7net