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

/tools/smarty/compile/19d48b80b97c52d421d15614b76a9b0774ce2b42.file.cms.tpl.php

http://marocmall.googlecode.com/
PHP | 99 lines | 96 code | 3 blank | 0 comment | 13 complexity | 5d17476fd9dd65301a2b5250c3b2c599 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version Smarty-3.0.7, created on 2011-12-27 12:13:29
  2. compiled from "C:\D\prestashoplf\prestashop/themes/prestashop/cms.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:251684ef9b669a71bc2-86487568%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '19d48b80b97c52d421d15614b76a9b0774ce2b42' =>
  8. array (
  9. 0 => 'C:\\D\\prestashoplf\\prestashop/themes/prestashop/cms.tpl',
  10. 1 => 1306141904,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '251684ef9b669a71bc2-86487568',
  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 (isset($_smarty_tpl->getVariable('cms',null,true,false)->value)&&$_smarty_tpl->getVariable('cms')->value->id!=$_smarty_tpl->getVariable('cgv_id')->value){?>
  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. <?php }?>
  26. <?php if (isset($_smarty_tpl->getVariable('cms',null,true,false)->value)&&!isset($_smarty_tpl->getVariable('category',null,true,false)->value)){?>
  27. <?php if (!$_smarty_tpl->getVariable('cms')->value->active){?>
  28. <br />
  29. <div id="admin-action-cms">
  30. <p><?php echo smartyTranslate(array('s'=>'This CMS page is not visible to your customers.'),$_smarty_tpl);?>
  31. <input type="hidden" id="admin-action-cms-id" value="<?php echo $_smarty_tpl->getVariable('cms')->value->id;?>
  32. " />
  33. <input type="submit" value="<?php echo smartyTranslate(array('s'=>'Publish'),$_smarty_tpl);?>
  34. " class="exclusive" onclick="submitPublishCMS('<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
  35. <?php echo $_GET['ad'];?>
  36. ', 0)"/>
  37. <input type="submit" value="<?php echo smartyTranslate(array('s'=>'Back'),$_smarty_tpl);?>
  38. " class="exclusive" onclick="submitPublishCMS('<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
  39. <?php echo $_GET['ad'];?>
  40. ', 1)"/>
  41. </p>
  42. <div class="clear" ></div>
  43. <p id="admin-action-result"></p>
  44. </p>
  45. </div>
  46. <?php }?>
  47. <div class="rte<?php if ($_smarty_tpl->getVariable('content_only')->value){?> content_only<?php }?>">
  48. <?php echo $_smarty_tpl->getVariable('cms')->value->content;?>
  49. </div>
  50. <?php }elseif(isset($_smarty_tpl->getVariable('category',null,true,false)->value)){?>
  51. <div>
  52. <h1><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('category')->value->name,'htmlall','UTF-8');?>
  53. </h1>
  54. <?php if (isset($_smarty_tpl->getVariable('sub_category',null,true,false)->value)&!empty($_smarty_tpl->getVariable('sub_category',null,true,false)->value)){?>
  55. <h4><?php echo smartyTranslate(array('s'=>'List of sub categories in '),$_smarty_tpl);?>
  56. <?php echo $_smarty_tpl->getVariable('category')->value->name;?>
  57. <?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  58. </h4>
  59. <ul class="bullet">
  60. <?php $_smarty_tpl->tpl_vars['subcategory'] = new Smarty_Variable;
  61. $_from = $_smarty_tpl->getVariable('sub_category')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  62. if ($_smarty_tpl->_count($_from) > 0){
  63. foreach ($_from as $_smarty_tpl->tpl_vars['subcategory']->key => $_smarty_tpl->tpl_vars['subcategory']->value){
  64. ?>
  65. <li>
  66. <a href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('link')->value->getCMSCategoryLink($_smarty_tpl->tpl_vars['subcategory']->value['id_cms_category'],$_smarty_tpl->tpl_vars['subcategory']->value['link_rewrite']),'htmlall','UTF-8');?>
  67. "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['subcategory']->value['name'],'htmlall','UTF-8');?>
  68. </a>
  69. </li>
  70. <?php }} ?>
  71. </ul>
  72. <?php }?>
  73. <?php if (isset($_smarty_tpl->getVariable('cms_pages',null,true,false)->value)&!empty($_smarty_tpl->getVariable('cms_pages',null,true,false)->value)){?>
  74. <h4><?php echo smartyTranslate(array('s'=>'List of pages in '),$_smarty_tpl);?>
  75. <?php echo $_smarty_tpl->getVariable('category')->value->name;?>
  76. <?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  77. </h4>
  78. <ul class="bullet">
  79. <?php $_smarty_tpl->tpl_vars['cmspages'] = new Smarty_Variable;
  80. $_from = $_smarty_tpl->getVariable('cms_pages')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  81. if ($_smarty_tpl->_count($_from) > 0){
  82. foreach ($_from as $_smarty_tpl->tpl_vars['cmspages']->key => $_smarty_tpl->tpl_vars['cmspages']->value){
  83. ?>
  84. <li>
  85. <a href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('link')->value->getCMSLink($_smarty_tpl->tpl_vars['cmspages']->value['id_cms'],$_smarty_tpl->tpl_vars['cmspages']->value['link_rewrite']),'htmlall','UTF-8');?>
  86. "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cmspages']->value['meta_title'],'htmlall','UTF-8');?>
  87. </a>
  88. </li>
  89. <?php }} ?>
  90. </ul>
  91. <?php }?>
  92. </div>
  93. <?php }else{ ?>
  94. <?php echo smartyTranslate(array('s'=>'This page does not exist.'),$_smarty_tpl);?>
  95. <?php }?>
  96. <br />