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

/prestashop/_/cache/smarty/compile/61/f0/cf/61f0cfe87db8473147386c67847d05fb424b632d.file.page_header_toolbar.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 174 lines | 152 code | 20 blank | 2 comment | 46 complexity | f0f743aff5fbdf2595f85b98c7c30cd7 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:20:21
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\admin2200io4fc\themes\default\template\page_header_toolbar.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:1929257c4990542c1d0-08905491%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '61f0cfe87db8473147386c67847d05fb424b632d' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\admin2200io4fc\\themes\\default\\template\\page_header_toolbar.tpl',
  10. 1 => 1472500716,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '1929257c4990542c1d0-08905491',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'title' => 0,
  21. 'page_header_toolbar_title' => 0,
  22. 'page_header_toolbar_btn' => 0,
  23. 'breadcrumbs2' => 0,
  24. 'toolbar_btn' => 0,
  25. 'k' => 0,
  26. 'table' => 0,
  27. 'btn' => 0,
  28. 'help_link' => 0,
  29. 'tab_modules_open' => 0,
  30. 'tab_modules_list' => 0,
  31. ),
  32. 'has_nocache_code' => false,
  33. 'version' => 'Smarty-3.1.19',
  34. 'unifunc' => 'content_57c49905717cb7_99456891',
  35. ),false); /*/%%SmartyHeaderCode%%*/?>
  36. <?php if ($_valid && !is_callable('content_57c49905717cb7_99456891')) {function content_57c49905717cb7_99456891($_smarty_tpl) {?>
  37. <?php if (!isset($_smarty_tpl->tpl_vars['title']->value)&&isset($_smarty_tpl->tpl_vars['page_header_toolbar_title']->value)) {?>
  38. <?php $_smarty_tpl->tpl_vars['title'] = new Smarty_variable($_smarty_tpl->tpl_vars['page_header_toolbar_title']->value, null, 0);?>
  39. <?php }?>
  40. <?php if (isset($_smarty_tpl->tpl_vars['page_header_toolbar_btn']->value)) {?>
  41. <?php $_smarty_tpl->tpl_vars['toolbar_btn'] = new Smarty_variable($_smarty_tpl->tpl_vars['page_header_toolbar_btn']->value, null, 0);?>
  42. <?php }?>
  43. <div class="bootstrap">
  44. <div class="page-head">
  45. <h2 class="page-title">
  46. <?php if (is_array($_smarty_tpl->tpl_vars['title']->value)) {?><?php echo preg_replace('!<[^>]*?>!', ' ', end($_smarty_tpl->tpl_vars['title']->value));?>
  47. <?php } else { ?><?php echo preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['title']->value);?>
  48. <?php }?>
  49. </h2>
  50. <ul class="breadcrumb page-breadcrumb">
  51. <?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name']!='') {?>
  52. <li class="breadcrumb-container">
  53. <?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href']!='') {?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href'], ENT_QUOTES, 'UTF-8', true);?>
  54. "><?php }?>
  55. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name'], ENT_QUOTES, 'UTF-8', true);?>
  56. <?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href']!='') {?></a><?php }?>
  57. </li>
  58. <?php }?>
  59. <?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name']!=''&&$_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name']!=$_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name']) {?>
  60. <li class="breadcrumb-current">
  61. <?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href']!='') {?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href'], ENT_QUOTES, 'UTF-8', true);?>
  62. "><?php }?>
  63. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name'], ENT_QUOTES, 'UTF-8', true);?>
  64. <?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href']!='') {?></a><?php }?>
  65. </li>
  66. <?php }?>
  67. </ul>
  68. <div class="page-bar toolbarBox">
  69. <div class="btn-toolbar">
  70. <a href="#" class="toolbar_btn dropdown-toolbar navbar-toggle" data-toggle="collapse" data-target="#toolbar-nav"><i class="process-icon-dropdown"></i><div><?php echo smartyTranslate(array('s'=>'Menu'),$_smarty_tpl);?>
  71. </div></a>
  72. <ul id="toolbar-nav" class="nav nav-pills pull-right collapse navbar-collapse">
  73. <?php $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['btn']->_loop = false;
  74. $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
  75. $_from = $_smarty_tpl->tpl_vars['toolbar_btn']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  76. foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
  77. $_smarty_tpl->tpl_vars['btn']->_loop = true;
  78. $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
  79. ?>
  80. <?php if ($_smarty_tpl->tpl_vars['k']->value!='back'&&$_smarty_tpl->tpl_vars['k']->value!='modules-list') {?>
  81. <li>
  82. <a id="page-header-desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
  83. -<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['imgclass'], ENT_QUOTES, 'UTF-8', true);?>
  84. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
  85. <?php }?>" class="toolbar_btn <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['target'])&&$_smarty_tpl->tpl_vars['btn']->value['target']) {?> _blank<?php }?> pointer"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
  86. "<?php }?> title="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['help'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['help'];?>
  87. <?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['desc'], ENT_QUOTES, 'UTF-8', true);?>
  88. <?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js'])&&$_smarty_tpl->tpl_vars['btn']->value['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js'];?>
  89. "<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['modal_target'])&&$_smarty_tpl->tpl_vars['btn']->value['modal_target']) {?> data-target="<?php echo $_smarty_tpl->tpl_vars['btn']->value['modal_target'];?>
  90. " data-toggle="modal"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['help'])) {?> data-toggle="tooltip" data-placement="bottom"<?php }?>>
  91. <i class="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['icon'], ENT_QUOTES, 'UTF-8', true);?>
  92. <?php } else { ?>process-icon-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['imgclass'], ENT_QUOTES, 'UTF-8', true);?>
  93. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
  94. <?php }?><?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['class'], ENT_QUOTES, 'UTF-8', true);?>
  95. <?php }?>"></i>
  96. <div<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['force_desc'])&&$_smarty_tpl->tpl_vars['btn']->value['force_desc']==true) {?> class="locked"<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['desc'], ENT_QUOTES, 'UTF-8', true);?>
  97. </div>
  98. </a>
  99. </li>
  100. <?php }?>
  101. <?php } ?>
  102. <?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list'])) {?>
  103. <li>
  104. <a id="page-header-desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
  105. -<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'];?>
  106. <?php } else { ?>modules-list<?php }?>" class="toolbar_btn<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'];?>
  107. <?php }?><?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target']) {?> _blank<?php }?>" <?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'])) {?>href="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'];?>
  108. "<?php }?> title="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['desc'];?>
  109. "<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js'];?>
  110. "<?php }?>>
  111. <i class="<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'];?>
  112. <?php } else { ?>process-icon-<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'];?>
  113. <?php } else { ?>modules-list<?php }?><?php }?>"></i>
  114. <div<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['force_desc'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['force_desc']==true) {?> class="locked"<?php }?>><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['desc'];?>
  115. </div>
  116. </a>
  117. </li>
  118. <?php }?>
  119. <?php if (isset($_smarty_tpl->tpl_vars['help_link']->value)) {?>
  120. <li>
  121. <a class="toolbar_btn btn-help" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['help_link']->value, ENT_QUOTES, 'UTF-8', true);?>
  122. " title="<?php echo smartyTranslate(array('s'=>'Help'),$_smarty_tpl);?>
  123. ">
  124. <i class="process-icon-help"></i>
  125. <div><?php echo smartyTranslate(array('s'=>'Help'),$_smarty_tpl);?>
  126. </div>
  127. </a>
  128. </li>
  129. <?php }?>
  130. </ul>
  131. <?php if ((isset($_smarty_tpl->tpl_vars['tab_modules_open']->value)&&$_smarty_tpl->tpl_vars['tab_modules_open']->value)||isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)) {?>
  132. <script type="text/javascript">
  133. //<![CDATA[
  134. var modules_list_loaded = false;
  135. <?php if (isset($_smarty_tpl->tpl_vars['tab_modules_open']->value)&&$_smarty_tpl->tpl_vars['tab_modules_open']->value) {?>
  136. $(function() {
  137. $('#modules_list_container').modal('show');
  138. openModulesList();
  139. });
  140. <?php }?>
  141. <?php if (isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)) {?>
  142. $('.process-icon-modules-list').parent('a').unbind().bind('click', function (){
  143. $('#modules_list_container').modal('show');
  144. openModulesList();
  145. });
  146. <?php }?>
  147. //]]>
  148. </script>
  149. <?php }?>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <?php }} ?>