PageRenderTime 53ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/cache/smarty/compile/fe/60/0b/fe600b33e86b4eccedcff28f9d43a798285df20d.file.addresses.tpl.php

https://gitlab.com/nghiep5890/prestashop
PHP | 145 lines | 143 code | 2 blank | 0 comment | 22 complexity | bdd63914d85e1ed11506d0b29f292c4d MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-11-24 17:38:12
  2. compiled from "C:\xampp\htdocs\prestashop\themes\default-bootstrap\addresses.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:616058371774d10265-17348848%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'fe600b33e86b4eccedcff28f9d43a798285df20d' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\themes\\default-bootstrap\\addresses.tpl',
  10. 1 => 1452073828,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '616058371774d10265-17348848',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'link' => 0,
  21. 'navigationPipe' => 0,
  22. 'multipleAddresses' => 0,
  23. 'addresses_style' => 0,
  24. 'address' => 0,
  25. 'pattern' => 0,
  26. 'addressKey' => 0,
  27. 'key' => 0,
  28. 'force_ssl' => 0,
  29. 'base_dir_ssl' => 0,
  30. 'base_dir' => 0,
  31. ),
  32. 'has_nocache_code' => false,
  33. 'version' => 'Smarty-3.1.19',
  34. 'unifunc' => 'content_583717750a0988_84899217',
  35. ),false); /*/%%SmartyHeaderCode%%*/?>
  36. <?php if ($_valid && !is_callable('content_583717750a0988_84899217')) {function content_583717750a0988_84899217($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_replace')) include 'C:\\xampp\\htdocs\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php';
  37. ?>
  38. <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  39. "><?php echo smartyTranslate(array('s'=>'My account'),$_smarty_tpl);?>
  40. </a><span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value;?>
  41. </span><span class="navigation_page"><?php echo smartyTranslate(array('s'=>'My addresses'),$_smarty_tpl);?>
  42. </span><?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  43. if (!empty($_capture_buffer)) {
  44. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  45. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  46. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  47. } else $_smarty_tpl->capture_error();?>
  48. <h1 class="page-heading"><?php echo smartyTranslate(array('s'=>'My addresses'),$_smarty_tpl);?>
  49. </h1>
  50. <p><?php echo smartyTranslate(array('s'=>'Please configure your default billing and delivery addresses when placing an order. You may also add additional addresses, which can be useful for sending gifts or receiving an order at your office.'),$_smarty_tpl);?>
  51. </p>
  52. <?php if (isset($_smarty_tpl->tpl_vars['multipleAddresses']->value)&&$_smarty_tpl->tpl_vars['multipleAddresses']->value) {?>
  53. <div class="addresses">
  54. <p><strong class="dark"><?php echo smartyTranslate(array('s'=>'Your addresses are listed below.'),$_smarty_tpl);?>
  55. </strong></p>
  56. <p class="p-indent"><?php echo smartyTranslate(array('s'=>'Be sure to update your personal information if it has changed.'),$_smarty_tpl);?>
  57. </p>
  58. <?php $_smarty_tpl->tpl_vars["adrs_style"] = new Smarty_variable($_smarty_tpl->tpl_vars['addresses_style']->value, null, 0);?>
  59. <div class="bloc_adresses row">
  60. <?php $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['address']->_loop = false;
  61. $_from = $_smarty_tpl->tpl_vars['multipleAddresses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  62. $_smarty_tpl->tpl_vars['address']->total= $_smarty_tpl->_count($_from);
  63. $_smarty_tpl->tpl_vars['address']->iteration=0;
  64. $_smarty_tpl->tpl_vars['address']->index=-1;
  65. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']=-1;
  66. foreach ($_from as $_smarty_tpl->tpl_vars['address']->key => $_smarty_tpl->tpl_vars['address']->value) {
  67. $_smarty_tpl->tpl_vars['address']->_loop = true;
  68. $_smarty_tpl->tpl_vars['address']->iteration++;
  69. $_smarty_tpl->tpl_vars['address']->index++;
  70. $_smarty_tpl->tpl_vars['address']->first = $_smarty_tpl->tpl_vars['address']->index === 0;
  71. $_smarty_tpl->tpl_vars['address']->last = $_smarty_tpl->tpl_vars['address']->iteration === $_smarty_tpl->tpl_vars['address']->total;
  72. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['address']->first;
  73. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++;
  74. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['address']->last;
  75. ?>
  76. <div class="col-xs-12 col-sm-6 address">
  77. <ul class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {?>last_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {?>first_item<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index']%2) {?> alternate_item<?php } else { ?> item<?php }?> box">
  78. <li><h3 class="page-subheading"><?php echo $_smarty_tpl->tpl_vars['address']->value['object']['alias'];?>
  79. </h3></li>
  80. <?php $_smarty_tpl->tpl_vars['pattern'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pattern']->_loop = false;
  81. $_from = $_smarty_tpl->tpl_vars['address']->value['ordered']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  82. foreach ($_from as $_smarty_tpl->tpl_vars['pattern']->key => $_smarty_tpl->tpl_vars['pattern']->value) {
  83. $_smarty_tpl->tpl_vars['pattern']->_loop = true;
  84. ?>
  85. <?php $_smarty_tpl->tpl_vars['addressKey'] = new Smarty_variable(explode(" ",$_smarty_tpl->tpl_vars['pattern']->value), null, 0);?>
  86. <li>
  87. <?php $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['key']->_loop = false;
  88. $_from = $_smarty_tpl->tpl_vars['addressKey']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  89. foreach ($_from as $_smarty_tpl->tpl_vars['key']->key => $_smarty_tpl->tpl_vars['key']->value) {
  90. $_smarty_tpl->tpl_vars['key']->_loop = true;
  91. ?>
  92. <span <?php if (isset($_smarty_tpl->tpl_vars['addresses_style']->value[$_smarty_tpl->tpl_vars['key']->value])) {?> class="<?php echo $_smarty_tpl->tpl_vars['addresses_style']->value[$_smarty_tpl->tpl_vars['key']->value];?>
  93. "<?php }?>>
  94. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address']->value['formated'][smarty_modifier_replace($_smarty_tpl->tpl_vars['key']->value,',','')], ENT_QUOTES, 'UTF-8', true);?>
  95. </span>
  96. <?php } ?>
  97. </li>
  98. <?php } ?>
  99. <li class="address_update">
  100. <a class="btn btn-default button button-small" href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['address']->value['object']['id']);?>
  101. <?php $_tmp1=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('address',true,null,"id_address=".$_tmp1), ENT_QUOTES, 'UTF-8', true);?>
  102. " title="<?php echo smartyTranslate(array('s'=>'Update'),$_smarty_tpl);?>
  103. "><span><?php echo smartyTranslate(array('s'=>'Update'),$_smarty_tpl);?>
  104. <i class="icon-chevron-right right"></i></span></a>
  105. <a class="btn btn-default button button-small" href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['address']->value['object']['id']);?>
  106. <?php $_tmp2=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('address',true,null,"id_address=".$_tmp2."&delete"), ENT_QUOTES, 'UTF-8', true);?>
  107. " data-id="addresses_confirm" title="<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
  108. "><span><?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
  109. <i class="icon-remove right"></i></span></a></li>
  110. </ul>
  111. </div>
  112. <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index']%2&&!$_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {?>
  113. </div>
  114. <div class="bloc_adresses row">
  115. <?php }?>
  116. <?php } ?>
  117. </div>
  118. </div>
  119. <?php } else { ?>
  120. <p class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'No addresses are available.'),$_smarty_tpl);?>
  121. &nbsp;<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('address',true), ENT_QUOTES, 'UTF-8', true);?>
  122. "><?php echo smartyTranslate(array('s'=>'Add a new address'),$_smarty_tpl);?>
  123. </a></p>
  124. <?php }?>
  125. <div class="clearfix main-page-indent">
  126. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('address',true), ENT_QUOTES, 'UTF-8', true);?>
  127. " title="<?php echo smartyTranslate(array('s'=>'Add an address'),$_smarty_tpl);?>
  128. " class="btn btn-default button button-medium"><span><?php echo smartyTranslate(array('s'=>'Add a new address'),$_smarty_tpl);?>
  129. <i class="icon-chevron-right right"></i></span></a>
  130. </div>
  131. <ul class="footer_links clearfix">
  132. <li><a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  133. "><span><i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Back to your account'),$_smarty_tpl);?>
  134. </span></a></li>
  135. <li><a class="btn btn-default button button-small" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value)&&$_smarty_tpl->tpl_vars['force_ssl']->value) {?><?php echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value;?>
  136. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
  137. <?php }?>"><span><i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Home'),$_smarty_tpl);?>
  138. </span></a></li>
  139. </ul>
  140. <?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'addressesConfirm')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'addressesConfirm'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
  141. <?php echo smartyTranslate(array('s'=>'Are you sure?','js'=>1),$_smarty_tpl);?>
  142. <?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'addressesConfirm'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
  143. <?php }} ?>