PageRenderTime 102ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/smarty/compile/f45017e4339997e50d309ff45e7a1ee530344a8f.file.stores.tpl.php

http://marocmall.googlecode.com/
PHP | 135 lines | 133 code | 0 blank | 2 comment | 10 complexity | 4704708ce6c8f132854368c6f6d4e6c3 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version Smarty-3.0.7, created on 2011-12-29 15:15:36
  2. compiled from "C:\D\prestashoplf\prestashop/themes/ling/stores.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:78954efc84182f0c71-51240322%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'f45017e4339997e50d309ff45e7a1ee530344a8f' =>
  8. array (
  9. 0 => 'C:\\D\\prestashoplf\\prestashop/themes/ling/stores.tpl',
  10. 1 => 1307008552,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '78954efc84182f0c71-51240322',
  15. 'function' =>
  16. array (
  17. ),
  18. 'has_nocache_code' => false,
  19. )); /*/%%SmartyHeaderCode%%*/?>
  20. <?php if (!is_callable('smarty_modifier_escape')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.escape.php';
  21. ?><?php ob_start(); ?><?php echo smartyTranslate(array('s'=>'Our stores'),$_smarty_tpl);?>
  22. <?php Smarty::$_smarty_vars['capture']['path']=ob_get_clean();?>
  23. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  24. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  25. <script src="http://maps.google.com/maps/api/js?sensor=true">// DEBUG </script>
  26. <h1><?php echo smartyTranslate(array('s'=>'Our stores'),$_smarty_tpl);?>
  27. </h1>
  28. <div id="stores_block">
  29. <?php if ($_smarty_tpl->getVariable('simplifiedStoresDiplay')->value){?>
  30. <?php if (count($_smarty_tpl->getVariable('stores')->value)){?>
  31. <p><?php echo smartyTranslate(array('s'=>'Here are the details of our stores, feel free to contact us:'),$_smarty_tpl);?>
  32. </p>
  33. <?php $_smarty_tpl->tpl_vars['store'] = new Smarty_Variable;
  34. $_from = $_smarty_tpl->getVariable('stores')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  35. if ($_smarty_tpl->_count($_from) > 0){
  36. foreach ($_from as $_smarty_tpl->tpl_vars['store']->key => $_smarty_tpl->tpl_vars['store']->value){
  37. ?>
  38. <div class="store-small">
  39. <?php if ($_smarty_tpl->tpl_vars['store']->value['has_picture']){?><p><img src="<?php echo $_smarty_tpl->getVariable('img_store_dir')->value;?>
  40. <?php echo $_smarty_tpl->tpl_vars['store']->value['id_store'];?>
  41. -medium.jpg" alt="" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
  42. " height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
  43. " /></p><?php }?>
  44. <p>
  45. <b><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['store']->value['name'],'htmlall','UTF-8');?>
  46. </b><br />
  47. <?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['store']->value['address1'],'htmlall','UTF-8');?>
  48. <br />
  49. <?php if ($_smarty_tpl->tpl_vars['store']->value['address2']){?><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['store']->value['address2'],'htmlall','UTF-8');?>
  50. <?php }?><br />
  51. <?php echo $_smarty_tpl->tpl_vars['store']->value['postcode'];?>
  52. <?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['store']->value['city'],'htmlall','UTF-8');?>
  53. <?php if ($_smarty_tpl->tpl_vars['store']->value['state']){?>, <?php echo $_smarty_tpl->tpl_vars['store']->value['state'];?>
  54. <?php }?><br />
  55. <?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['store']->value['country'],'htmlall','UTF-8');?>
  56. <br />
  57. <?php if ($_smarty_tpl->tpl_vars['store']->value['phone']){?><?php echo smartyTranslate(array('s'=>'Phone:','js'=>0),$_smarty_tpl);?>
  58. <?php echo $_smarty_tpl->tpl_vars['store']->value['phone'];?>
  59. <?php }?>
  60. </p>
  61. </div>
  62. <?php }} ?>
  63. <?php }?>
  64. <?php }else{ ?>
  65. <script type="text/javascript">
  66. // <![CDATA[
  67. var map;
  68. var markers = [];
  69. var infoWindow;
  70. var locationSelect;
  71. var defaultLat = '<?php echo $_smarty_tpl->getVariable('defaultLat')->value;?>
  72. ';
  73. var defaultLong = '<?php echo $_smarty_tpl->getVariable('defaultLong')->value;?>
  74. ';
  75. var translation_1 = '<?php echo smartyTranslate(array('s'=>'No store found, try to select a wider radius','js'=>1),$_smarty_tpl);?>
  76. ';
  77. var translation_2 = '<?php echo smartyTranslate(array('s'=>'store found - see details:','js'=>1),$_smarty_tpl);?>
  78. ';
  79. var translation_3 = '<?php echo smartyTranslate(array('s'=>'stores found - see all results:','js'=>1),$_smarty_tpl);?>
  80. ';
  81. var translation_4 = '<?php echo smartyTranslate(array('s'=>'Phone:','js'=>1),$_smarty_tpl);?>
  82. ';
  83. var translation_5 = '<?php echo smartyTranslate(array('s'=>'Get Directions','js'=>1),$_smarty_tpl);?>
  84. ';
  85. var translation_6 = '<?php echo smartyTranslate(array('s'=>'Not found','js'=>1),$_smarty_tpl);?>
  86. ';
  87. var hasStoreIcon = '<?php echo $_smarty_tpl->getVariable('hasStoreIcon')->value;?>
  88. ';
  89. var distance_unit = '<?php echo $_smarty_tpl->getVariable('distance_unit')->value;?>
  90. ';
  91. var img_store_dir = '<?php echo $_smarty_tpl->getVariable('img_store_dir')->value;?>
  92. ';
  93. var img_ps_dir = '<?php echo $_smarty_tpl->getVariable('img_ps_dir')->value;?>
  94. ';
  95. var searchUrl = '<?php echo $_smarty_tpl->getVariable('searchUrl')->value;?>
  96. ';
  97. //]]>
  98. </script>
  99. <p><?php echo smartyTranslate(array('s'=>'Enter a location (eg.: a zip/postal code, an address, a city or a country) in order to find the nearest stores.'),$_smarty_tpl);?>
  100. </p>
  101. <p class="text"><label><?php echo smartyTranslate(array('s'=>'Your location:'),$_smarty_tpl);?>
  102. </label><input type="text" name="location" id="addressInput" value="<?php echo smartyTranslate(array('s'=>'Address, zip/postal code, city, state or country'),$_smarty_tpl);?>
  103. " onclick="this.value='';" /></p>
  104. <p class="select">
  105. <label><?php echo smartyTranslate(array('s'=>'Radius:'),$_smarty_tpl);?>
  106. </label>
  107. <select name="radius" id="radiusSelect">
  108. <option value="15">15</option>
  109. <option value="25">25</option>
  110. <option value="50">50</option>
  111. <option value="100">100</option>
  112. </select> <span><?php echo $_smarty_tpl->getVariable('distance_unit')->value;?>
  113. </span>
  114. <img src="<?php echo $_smarty_tpl->getVariable('img_ps_dir')->value;?>
  115. loader.gif" class="middle" alt="" id="stores_loader" />
  116. </p>
  117. <div class="clearblock"></div>
  118. <input type="button" class="button" onclick="searchLocations();" value="<?php echo smartyTranslate(array('s'=>'Search'),$_smarty_tpl);?>
  119. " />
  120. <select id="locationSelect"></select>
  121. <div id="map"></div>
  122. <table cellpadding="0" cellspacing="0" id="stores-table" class="std">
  123. <tr>
  124. <th><?php echo smartyTranslate(array('s'=>'#'),$_smarty_tpl);?>
  125. </th>
  126. <th><?php echo smartyTranslate(array('s'=>'Store'),$_smarty_tpl);?>
  127. </th>
  128. <th><?php echo smartyTranslate(array('s'=>'Address'),$_smarty_tpl);?>
  129. </th>
  130. <th><?php echo smartyTranslate(array('s'=>'Distance'),$_smarty_tpl);?>
  131. </th>
  132. </tr>
  133. </table>
  134. <?php }?>
  135. </div>