PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/smarty_v2/compile/%%66^664^6640D0F6%%addresses.tpl.php

http://marocmall.googlecode.com/
PHP | 183 lines | 141 code | 40 blank | 2 comment | 23 complexity | ef0c2b8bd2feb961cd9e45472339be99 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version 2.6.20, created on 2011-12-03 00:33:37
  2. compiled from C:%5CD%5CMarocMall/themes/prestashop/addresses.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'counter', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 49, false),array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 90, false),array('modifier', 'explode', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 105, false),array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 109, false),array('modifier', 'intval', 'C:\\D\\MarocMall/themes/prestashop/addresses.tpl', 114, false),)), $this); ?>
  5. <?php if (! isset ( $this->_tpl_vars['multipleAddresses'] )): ?>
  6. <?php echo $this->_tpl_vars['ignoreList']['0']; ?>
  7. <?php echo $this->_tpl_vars['ignoreList']['1']; ?>
  8. <?php echo $this->_tpl_vars['ignoreList']['2']; ?>
  9. <?php echo $this->_tpl_vars['ignoreList']['3']; ?>
  10. <?php echo $this->_tpl_vars['ignoreList']['4']; ?>
  11. <?php echo $this->_tpl_vars['ignoreList']['5']; ?>
  12. <?php echo $this->_tpl_vars['ignoreList']['6']; ?>
  13. <?php echo $this->_tpl_vars['ignoreList']['7']; ?>
  14. <?php echo $this->_tpl_vars['ignoreList']['8']; ?>
  15. <?php echo $this->_tpl_vars['ignoreList']['9']; ?>
  16. <?php if (isset ( $this->_tpl_vars['addresses'] )): ?>
  17. <?php echo $this->_tpl_vars['address_number']; ?>
  18. <?php $_from = $this->_tpl_vars['addresses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  19. foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['address']):
  20. ?>
  21. <?php echo smarty_function_counter(array('start' => 0,'skip' => 1,'assign' => 'address_key_number'), $this);?>
  22. <?php $_from = $this->_tpl_vars['address']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  23. foreach ($_from as $this->_tpl_vars['address_key'] => $this->_tpl_vars['address_content']):
  24. ?>
  25. <?php if (! in_array ( $this->_tpl_vars['address_key'] , $this->_tpl_vars['ignoreList'] )): ?>
  26. <?php echo $this->_tpl_vars['multipleAddresses'][$this->_tpl_vars['address_number']]['ordered'][$this->_tpl_vars['address_key_number']]; ?>
  27. <?php echo $this->_tpl_vars['multipleAddresses'][$this->_tpl_vars['address_number']]['formated'][$this->_tpl_vars['address_key']]; ?>
  28. <?php echo smarty_function_counter(array(), $this);?>
  29. <?php endif; ?>
  30. <?php endforeach; endif; unset($_from); ?>
  31. <?php echo $this->_tpl_vars['multipleAddresses'][$this->_tpl_vars['address_number']]['object']; ?>
  32. <?php echo $this->_tpl_vars['address_number']; ?>
  33. <?php endforeach; endif; unset($_from); ?>
  34. <?php endif; ?>
  35. <?php endif; ?>
  36. <?php if (! isset ( $this->_tpl_vars['addresses_style'] )): ?>
  37. <?php echo $this->_tpl_vars['addresses_style']['company']; ?>
  38. <?php echo $this->_tpl_vars['addresses_style']['vat_number']; ?>
  39. <?php echo $this->_tpl_vars['addresses_style']['firstname']; ?>
  40. <?php echo $this->_tpl_vars['addresses_style']['lastname']; ?>
  41. <?php echo $this->_tpl_vars['addresses_style']['address1']; ?>
  42. <?php echo $this->_tpl_vars['addresses_style']['address2']; ?>
  43. <?php echo $this->_tpl_vars['addresses_style']['city']; ?>
  44. <?php echo $this->_tpl_vars['addresses_style']['country']; ?>
  45. <?php echo $this->_tpl_vars['addresses_style']['phone']; ?>
  46. <?php echo $this->_tpl_vars['addresses_style']['phone_mobile']; ?>
  47. <?php echo $this->_tpl_vars['addresses_style']['alias']; ?>
  48. <?php endif; ?>
  49. <script type="text/javascript">
  50. //<![CDATA[
  51. <?php echo '
  52. $(document).ready(function()
  53. {
  54. resizeAddressesBox();
  55. });
  56. '; ?>
  57. //]]>
  58. </script>
  59. <?php ob_start(); ?><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
  60. "><?php echo smartyTranslate(array('s' => 'My account'), $this);?>
  61. </a><span class="navigation-pipe"><?php echo $this->_tpl_vars['navigationPipe']; ?>
  62. </span><?php echo smartyTranslate(array('s' => 'My addresses'), $this);?>
  63. <?php $this->_smarty_vars['capture']['path'] = ob_get_contents(); ob_end_clean(); ?>
  64. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  65. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
  66. $this->_tpl_vars = $_smarty_tpl_vars;
  67. unset($_smarty_tpl_vars);
  68. ?>
  69. <h1><?php echo smartyTranslate(array('s' => 'My addresses'), $this);?>
  70. </h1>
  71. <p><?php echo smartyTranslate(array('s' => 'Please configure the desired billing and delivery addresses to be preselected when placing an order. You may also add additional addresses, useful for sending gifts or receiving your order at the office.'), $this);?>
  72. </p>
  73. <?php if (isset ( $this->_tpl_vars['multipleAddresses'] ) && $this->_tpl_vars['multipleAddresses']): ?>
  74. <div class="addresses">
  75. <h3><?php echo smartyTranslate(array('s' => 'Your addresses are listed below.'), $this);?>
  76. </h3>
  77. <p><?php echo smartyTranslate(array('s' => 'Be sure to update them if they have changed.'), $this);?>
  78. </p>
  79. <?php $this->assign('adrs_style', $this->_tpl_vars['addresses_style']); ?>
  80. <?php $_from = $this->_tpl_vars['multipleAddresses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['myLoop'] = array('total' => count($_from), 'iteration' => 0);
  81. if ($this->_foreach['myLoop']['total'] > 0):
  82. foreach ($_from as $this->_tpl_vars['address']):
  83. $this->_foreach['myLoop']['iteration']++;
  84. ?>
  85. <ul class="address <?php if (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php elseif (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php endif; ?> <?php if (($this->_foreach['myLoop']['iteration']-1) % 2): ?>alternate_item<?php else: ?>item<?php endif; ?>">
  86. <li class="address_title"><?php echo $this->_tpl_vars['address']['object']['alias']; ?>
  87. </li>
  88. <?php $_from = $this->_tpl_vars['address']['ordered']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['adr_loop'] = array('total' => count($_from), 'iteration' => 0);
  89. if ($this->_foreach['adr_loop']['total'] > 0):
  90. foreach ($_from as $this->_tpl_vars['pattern']):
  91. $this->_foreach['adr_loop']['iteration']++;
  92. ?>
  93. <?php $this->assign('addressKey', ((is_array($_tmp=' ')) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['pattern']) : explode($_tmp, $this->_tpl_vars['pattern']))); ?>
  94. <li>
  95. <?php $_from = $this->_tpl_vars['addressKey']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['word_loop'] = array('total' => count($_from), 'iteration' => 0);
  96. if ($this->_foreach['word_loop']['total'] > 0):
  97. foreach ($_from as $this->_tpl_vars['key']):
  98. $this->_foreach['word_loop']['iteration']++;
  99. ?>
  100. <span class="<?php if (isset ( $this->_tpl_vars['addresses_style'][$this->_tpl_vars['key']] )): ?><?php echo $this->_tpl_vars['addresses_style'][$this->_tpl_vars['key']]; ?>
  101. <?php endif; ?>">
  102. <?php echo ((is_array($_tmp=$this->_tpl_vars['address']['formated'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  103. </span>
  104. <?php endforeach; endif; unset($_from); ?>
  105. </li>
  106. <?php endforeach; endif; unset($_from); ?>
  107. <li class="address_update"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('address.php',true); ?>
  108. ?id_address=<?php echo ((is_array($_tmp=$this->_tpl_vars['address']['object']['id'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  109. " title="<?php echo smartyTranslate(array('s' => 'Update'), $this);?>
  110. "><?php echo smartyTranslate(array('s' => 'Update'), $this);?>
  111. </a></li>
  112. <li class="address_delete"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('address.php',true); ?>
  113. ?id_address=<?php echo ((is_array($_tmp=$this->_tpl_vars['address']['object']['id'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  114. &amp;delete" onclick="return confirm('<?php echo smartyTranslate(array('s' => 'Are you sure?'), $this);?>
  115. ');" title="<?php echo smartyTranslate(array('s' => 'Delete'), $this);?>
  116. "><?php echo smartyTranslate(array('s' => 'Delete'), $this);?>
  117. </a></li>
  118. </ul>
  119. <?php endforeach; endif; unset($_from); ?>
  120. <p class="clear" />
  121. </div>
  122. <?php else: ?>
  123. <p class="warning"><?php echo smartyTranslate(array('s' => 'No addresses available.'), $this);?>
  124. &nbsp;<a href="<?php echo $this->_tpl_vars['link']->getPageLink('address.php',true); ?>
  125. "><?php echo smartyTranslate(array('s' => 'Add new address'), $this);?>
  126. </a></p>
  127. <?php endif; ?>
  128. <div class="clear address_add"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('address.php',true); ?>
  129. " title="<?php echo smartyTranslate(array('s' => 'Add an address'), $this);?>
  130. " class="button_large"><?php echo smartyTranslate(array('s' => 'Add an address'), $this);?>
  131. </a></div>
  132. <ul class="footer_links">
  133. <li><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
  134. "><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
  135. icon/my-account.gif" alt="" class="icon" /></a><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
  136. "><?php echo smartyTranslate(array('s' => 'Back to Your Account'), $this);?>
  137. </a></li>
  138. <li><a href="<?php echo $this->_tpl_vars['base_dir']; ?>
  139. "><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
  140. icon/home.gif" alt="" class="icon" /></a><a href="<?php echo $this->_tpl_vars['base_dir']; ?>
  141. "><?php echo smartyTranslate(array('s' => 'Home'), $this);?>
  142. </a></li>
  143. </ul>