PageRenderTime 50ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/prestashop/_/cache/smarty/compile/d5/4c/7a/d54c7a514770455520533750c438a66f80468226.file.favoriteproducts-account.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 105 lines | 100 code | 5 blank | 0 comment | 10 complexity | 29cad72d56d22aa3b06348608d964a8b MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:53
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\modules\favoriteproducts\views\templates\front\favoriteproducts-account.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:273757c495ddaab520-57423355%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'd54c7a514770455520533750c438a66f80468226' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\themes\\default-bootstrap\\modules\\favoriteproducts\\views\\templates\\front\\favoriteproducts-account.tpl',
  10. 1 => 1472500929,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '273757c495ddaab520-57423355',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'link' => 0,
  21. 'navigationPipe' => 0,
  22. 'favoriteProducts' => 0,
  23. 'favoriteProduct' => 0,
  24. ),
  25. 'has_nocache_code' => false,
  26. 'version' => 'Smarty-3.1.19',
  27. 'unifunc' => 'content_57c495ddc474f1_76527115',
  28. ),false); /*/%%SmartyHeaderCode%%*/?>
  29. <?php if ($_valid && !is_callable('content_57c495ddc474f1_76527115')) {function content_57c495ddc474f1_76527115($_smarty_tpl) {?>
  30. <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?>
  31. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  32. ">
  33. <?php echo smartyTranslate(array('s'=>'My account','mod'=>'favoriteproducts'),$_smarty_tpl);?>
  34. </a>
  35. <span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value;?>
  36. </span>
  37. <span class="navigation_page"><?php echo smartyTranslate(array('s'=>'My favorite products','mod'=>'favoriteproducts'),$_smarty_tpl);?>
  38. </span>
  39. <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  40. if (!empty($_capture_buffer)) {
  41. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  42. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  43. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  44. } else $_smarty_tpl->capture_error();?>
  45. <div id="favoriteproducts_block_account">
  46. <h1 class="page-heading"><?php echo smartyTranslate(array('s'=>'My favorite products','mod'=>'favoriteproducts'),$_smarty_tpl);?>
  47. </h1>
  48. <?php if ($_smarty_tpl->tpl_vars['favoriteProducts']->value) {?>
  49. <ul class="row">
  50. <?php $_smarty_tpl->tpl_vars['favoriteProduct'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['favoriteProduct']->_loop = false;
  51. $_from = $_smarty_tpl->tpl_vars['favoriteProducts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  52. foreach ($_from as $_smarty_tpl->tpl_vars['favoriteProduct']->key => $_smarty_tpl->tpl_vars['favoriteProduct']->value) {
  53. $_smarty_tpl->tpl_vars['favoriteProduct']->_loop = true;
  54. ?>
  55. <li class="col-xs-12">
  56. <div class="favoriteproduct clearfix inner-content">
  57. <a
  58. class="product_img_link"
  59. href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['favoriteProduct']->value['id_product'],null,null,null,null,$_smarty_tpl->tpl_vars['favoriteProduct']->value['id_shop']), ENT_QUOTES, 'UTF-8', true);?>
  60. ">
  61. <img
  62. src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['favoriteProduct']->value['link_rewrite'],$_smarty_tpl->tpl_vars['favoriteProduct']->value['image'],'medium_default'), ENT_QUOTES, 'UTF-8', true);?>
  63. "
  64. alt=""/>
  65. </a>
  66. <p class="s_title_block">
  67. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['favoriteProduct']->value['id_product'],null,null,null,null,$_smarty_tpl->tpl_vars['favoriteProduct']->value['id_shop']), ENT_QUOTES, 'UTF-8', true);?>
  68. ">
  69. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['favoriteProduct']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
  70. </a>
  71. </p>
  72. <div class="product_desc"><?php echo htmlspecialchars(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['favoriteProduct']->value['description_short']), ENT_QUOTES, 'UTF-8', true);?>
  73. </div>
  74. <div class="remove">
  75. <a href="#" rel="ajax_id_favoriteproduct_<?php echo $_smarty_tpl->tpl_vars['favoriteProduct']->value['id_product'];?>
  76. ">
  77. <i class="icon-remove"></i>
  78. </a>
  79. </div>
  80. </div>
  81. </li>
  82. <?php } ?>
  83. </ul>
  84. <?php } else { ?>
  85. <p class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'No favorite products have been determined just yet. ','mod'=>'favoriteproducts'),$_smarty_tpl);?>
  86. </p>
  87. <?php }?>
  88. <ul class="footer_links clearfix">
  89. <li>
  90. <a
  91. class="btn btn-default button button-small"
  92. href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  93. ">
  94. <span>
  95. <i class="icon-chevron-left"></i><?php echo smartyTranslate(array('s'=>'Back to your account','mod'=>'favoriteproducts'),$_smarty_tpl);?>
  96. </span>
  97. </a>
  98. </li>
  99. </ul>
  100. </div><?php }} ?>