0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
pshoptuscamisetaspersonalizadas
/
cache
/
smarty
/
compile
/
6c
/
96
/
7f
/
[
Home
]
Name File: 6c967f3144820e2aeba54761c97b01cb17e1be51.file.product-sort.tpl.php
< back
<?php /* Smarty version Smarty-3.1.13, created on 2013-07-23 13:18:10 compiled from "/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/themes/default/product-sort.tpl" */ ?> <?php /*%%SmartyHeaderCode:72626383451ee667207c814-30276856%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '6c967f3144820e2aeba54761c97b01cb17e1be51' => array ( 0 => '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/themes/default/product-sort.tpl', 1 => 1369705038, 2 => 'file', ), ), 'nocache_hash' => '72626383451ee667207c814-30276856', 'function' => array ( ), 'variables' => array ( 'orderby' => 0, 'orderway' => 0, 'request' => 0, 'category' => 0, 'link' => 0, 'manufacturer' => 0, 'supplier' => 0, 'orderbydefault' => 0, 'orderwaydefault' => 0, 'PS_CATALOG_MODE' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.13', 'unifunc' => 'content_51ee66721e4a23_94313521', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_51ee66721e4a23_94313521')) {function content_51ee66721e4a23_94313521($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_escape')) include '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/tools/smarty/plugins/modifier.escape.php'; ?> <?php if (isset($_smarty_tpl->tpl_vars['orderby']->value)&&isset($_smarty_tpl->tpl_vars['orderway']->value)){?> <?php if (!isset($_smarty_tpl->tpl_vars['request']->value)){?> <!-- Sort products --> <?php if (isset($_GET['id_category'])&&$_GET['id_category']){?> <?php $_smarty_tpl->tpl_vars['request'] = new Smarty_variable($_smarty_tpl->tpl_vars['link']->value->getPaginationLink('category',$_smarty_tpl->tpl_vars['category']->value,false,true), null, 0);?> <?php }elseif(isset($_GET['id_manufacturer'])&&$_GET['id_manufacturer']){?> <?php $_smarty_tpl->tpl_vars['request'] = new Smarty_variable($_smarty_tpl->tpl_vars['link']->value->getPaginationLink('manufacturer',$_smarty_tpl->tpl_vars['manufacturer']->value,false,true), null, 0);?> <?php }elseif(isset($_GET['id_supplier'])&&$_GET['id_supplier']){?> <?php $_smarty_tpl->tpl_vars['request'] = new Smarty_variable($_smarty_tpl->tpl_vars['link']->value->getPaginationLink('supplier',$_smarty_tpl->tpl_vars['supplier']->value,false,true), null, 0);?> <?php }else{ ?> <?php $_smarty_tpl->tpl_vars['request'] = new Smarty_variable($_smarty_tpl->tpl_vars['link']->value->getPaginationLink(false,false,false,true), null, 0);?> <?php }?> <?php }?> <script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $('.selectProductSort').change(function() { var requestSortProducts = '<?php echo $_smarty_tpl->tpl_vars['request']->value;?> '; var splitData = $(this).val().split(':'); document.location.href = requestSortProducts + ((requestSortProducts.indexOf('?') < 0) ? '?' : '&') + 'orderby=' + splitData[0] + '&orderway=' + splitData[1]; }); }); //]]> </script> <form id="productsSortForm" action="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['request']->value, 'htmlall', 'UTF-8');?> "> <p class="select"> <label for="selectPrductSort"><?php echo smartyTranslate(array('s'=>'Sort by'),$_smarty_tpl);?> </label> <select id="selectPrductSort" class="selectProductSort"> <option value="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['orderbydefault']->value, 'htmlall', 'UTF-8');?> :<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['orderwaydefault']->value, 'htmlall', 'UTF-8');?> " <?php if ($_smarty_tpl->tpl_vars['orderby']->value==$_smarty_tpl->tpl_vars['orderbydefault']->value){?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'--'),$_smarty_tpl);?> </option> <?php if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value){?> <option value="price:asc" <?php if ($_smarty_tpl->tpl_vars['orderby']->value=='price'&&$_smarty_tpl->tpl_vars['orderway']->value=='asc'){?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Price: Lowest first'),$_smarty_tpl);?> </option> <option value="price:desc" <?php if ($_smarty_tpl->tpl_vars['orderby']->value=='price'&&$_smarty_tpl->tpl_vars['orderway']->value=='desc'){?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Price: Highest first'),$_smarty_tpl);?> </option> <?php }?> <option value="name:asc" <?php if ($_smarty_tpl->tpl_vars['orderby']->value=='name'&&$_smarty_tpl->tpl_vars['orderway']->value=='asc'){?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Product Name: A to Z'),$_smarty_tpl);?> </option> <option value="name:desc" <?php if ($_smarty_tpl->tpl_vars['orderby']->value=='name'&&$_smarty_tpl->tpl_vars['orderway']->value=='desc'){?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Product Name: Z to A'),$_smarty_tpl);?> </option> <?php if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value){?> <option value="quantity:desc" <?php if ($_smarty_tpl->tpl_vars['orderby']->value=='quantity'&&$_smarty_tpl->tpl_vars['orderway']->value=='desc'){?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'In stock'),$_smarty_tpl);?> </option> <?php }?> </select> </p> </form> <!-- /Sort products --> <?php }?> <?php }} ?>
©
2018. | Recode by D7net