PageRenderTime 54ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/smarty/compile/a2107c262e7d844996c23421a8f4590a61f3986a.file.blockcms.tpl.php

http://marocmall.googlecode.com/
PHP | 109 lines | 107 code | 2 blank | 0 comment | 23 complexity | 2ec43fb74ff0cd707cc13f643ca3cbcf MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version Smarty-3.0.7, created on 2011-12-30 10:15:18
  2. compiled from "C:\D\prestashoplf\prestashop/modules/blockcms/blockcms.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:61314efd8f36723e87-82713368%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'a2107c262e7d844996c23421a8f4590a61f3986a' =>
  8. array (
  9. 0 => 'C:\\D\\prestashoplf\\prestashop/modules/blockcms/blockcms.tpl',
  10. 1 => 1324980811,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '61314efd8f36723e87-82713368',
  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. ?>
  22. <?php if ($_smarty_tpl->getVariable('block')->value==1){?>
  23. <!-- Block CMS module -->
  24. <?php $_smarty_tpl->tpl_vars['cms_title'] = new Smarty_Variable;
  25. $_smarty_tpl->tpl_vars['cms_key'] = new Smarty_Variable;
  26. $_from = $_smarty_tpl->getVariable('cms_titles')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  27. if ($_smarty_tpl->_count($_from) > 0){
  28. foreach ($_from as $_smarty_tpl->tpl_vars['cms_title']->key => $_smarty_tpl->tpl_vars['cms_title']->value){
  29. $_smarty_tpl->tpl_vars['cms_key']->value = $_smarty_tpl->tpl_vars['cms_title']->key;
  30. ?>
  31. <div id="informations_block_left_<?php echo $_smarty_tpl->tpl_vars['cms_key']->value;?>
  32. " class="block informations_block_left">
  33. <h4><a href="<?php echo $_smarty_tpl->tpl_vars['cms_title']->value['category_link'];?>
  34. "><?php if (!empty($_smarty_tpl->tpl_vars['cms_title']->value['name'])){?><?php echo $_smarty_tpl->tpl_vars['cms_title']->value['name'];?>
  35. <?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['cms_title']->value['category_name'];?>
  36. <?php }?></a></h4>
  37. <ul class="block_content">
  38. <?php $_smarty_tpl->tpl_vars['cms_page'] = new Smarty_Variable;
  39. $_from = $_smarty_tpl->tpl_vars['cms_title']->value['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  40. if ($_smarty_tpl->_count($_from) > 0){
  41. foreach ($_from as $_smarty_tpl->tpl_vars['cms_page']->key => $_smarty_tpl->tpl_vars['cms_page']->value){
  42. ?>
  43. <?php if (isset($_smarty_tpl->tpl_vars['cms_page']->value['link'])){?><li class="bullet"><b style="margin-left:2em;">
  44. <a href="<?php echo $_smarty_tpl->tpl_vars['cms_page']->value['link'];?>
  45. " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cms_page']->value['name'],'html','UTF-8');?>
  46. "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cms_page']->value['name'],'html','UTF-8');?>
  47. </a>
  48. </b></li><?php }?>
  49. <?php }} ?>
  50. <?php $_smarty_tpl->tpl_vars['cms_page'] = new Smarty_Variable;
  51. $_from = $_smarty_tpl->tpl_vars['cms_title']->value['cms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  52. if ($_smarty_tpl->_count($_from) > 0){
  53. foreach ($_from as $_smarty_tpl->tpl_vars['cms_page']->key => $_smarty_tpl->tpl_vars['cms_page']->value){
  54. ?>
  55. <?php if (isset($_smarty_tpl->tpl_vars['cms_page']->value['link'])){?><li><a href="<?php echo $_smarty_tpl->tpl_vars['cms_page']->value['link'];?>
  56. " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cms_page']->value['meta_title'],'html','UTF-8');?>
  57. "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cms_page']->value['meta_title'],'html','UTF-8');?>
  58. </a></li><?php }?>
  59. <?php }} ?>
  60. <?php if ($_smarty_tpl->tpl_vars['cms_title']->value['display_store']){?><li><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('stores.php');?>
  61. " title="<?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
  62. "><?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
  63. </a></li><?php }?>
  64. </ul>
  65. </div>
  66. <?php }} ?>
  67. <!-- /Block CMS module -->
  68. <?php }else{ ?>
  69. <!-- MODULE Block footer -->
  70. <div id="block_various_links_footer">
  71. <ul>
  72. <?php if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><li class="first_item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('prices-drop.php');?>
  73. " title="<?php echo smartyTranslate(array('s'=>'Specials','mod'=>'blockcms'),$_smarty_tpl);?>
  74. "><?php echo smartyTranslate(array('s'=>'Specials','mod'=>'blockcms'),$_smarty_tpl);?>
  75. </a></li><?php }?>
  76. <li class="<?php if ($_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>first_<?php }?>item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('new-products.php');?>
  77. " title="<?php echo smartyTranslate(array('s'=>'New products','mod'=>'blockcms'),$_smarty_tpl);?>
  78. "><?php echo smartyTranslate(array('s'=>'New products','mod'=>'blockcms'),$_smarty_tpl);?>
  79. </a></li>
  80. <?php if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><li class="item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('best-sales.php');?>
  81. " title="<?php echo smartyTranslate(array('s'=>'Top sellers','mod'=>'blockcms'),$_smarty_tpl);?>
  82. "><?php echo smartyTranslate(array('s'=>'Top sellers','mod'=>'blockcms'),$_smarty_tpl);?>
  83. </a></li><?php }?>
  84. <?php if ($_smarty_tpl->getVariable('display_stores_footer')->value){?><li class="item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('stores.php');?>
  85. " title="<?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
  86. "><?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
  87. </a></li><?php }?>
  88. <li class="item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('contact-form.php',true);?>
  89. " title="<?php echo smartyTranslate(array('s'=>'Contact us','mod'=>'blockcms'),$_smarty_tpl);?>
  90. "><?php echo smartyTranslate(array('s'=>'Contact us','mod'=>'blockcms'),$_smarty_tpl);?>
  91. </a></li>
  92. <?php $_smarty_tpl->tpl_vars['cmslink'] = new Smarty_Variable;
  93. $_from = $_smarty_tpl->getVariable('cmslinks')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  94. if ($_smarty_tpl->_count($_from) > 0){
  95. foreach ($_from as $_smarty_tpl->tpl_vars['cmslink']->key => $_smarty_tpl->tpl_vars['cmslink']->value){
  96. ?>
  97. <?php if ($_smarty_tpl->tpl_vars['cmslink']->value['meta_title']!=''){?>
  98. <li class="item"><a href="<?php echo addslashes($_smarty_tpl->tpl_vars['cmslink']->value['link']);?>
  99. " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cmslink']->value['meta_title'],'htmlall','UTF-8');?>
  100. "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cmslink']->value['meta_title'],'htmlall','UTF-8');?>
  101. </a></li>
  102. <?php }?>
  103. <?php }} ?>
  104. </ul>
  105. </div>
  106. <!-- /MODULE Block footer -->
  107. <?php }?>