PageRenderTime 23ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/prestashop/_/cache/smarty/compile/40/99/94/40999492bfbe2193affb274f28fcc2fafc54258a.file.favorites.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 174 lines | 171 code | 3 blank | 0 comment | 30 complexity | ef04ca360661786c8fa63fa1436e8cef MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:39
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\admin\themes\default\template\controllers\modules\favorites.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:1714157c495cfc939a9-58346487%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '40999492bfbe2193affb274f28fcc2fafc54258a' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\admin\\themes\\default\\template\\controllers\\modules\\favorites.tpl',
  10. 1 => 1472500724,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '1714157c495cfc939a9-58346487',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'modules' => 0,
  21. 'module' => 0,
  22. 'tabs' => 0,
  23. 't' => 0,
  24. 'module_name' => 0,
  25. 'tab_modules_preferences' => 0,
  26. 't2' => 0,
  27. ),
  28. 'has_nocache_code' => false,
  29. 'version' => 'Smarty-3.1.19',
  30. 'unifunc' => 'content_57c495d0290208_37546081',
  31. ),false); /*/%%SmartyHeaderCode%%*/?>
  32. <?php if ($_valid && !is_callable('content_57c495d0290208_37546081')) {function content_57c495d0290208_37546081($_smarty_tpl) {?>
  33. <div class="panel">
  34. <div class="panel-heading">
  35. <i class="icon-list-ul"></i>
  36. <?php echo smartyTranslate(array('s'=>'Modules list'),$_smarty_tpl);?>
  37. </div>
  38. <div class="row">
  39. <div class="col-lg-12">
  40. <div class="btn-group pull-right">
  41. <a class="btn btn-default <?php if (!isset($_GET['select'])) {?> active<?php }?>" href="index.php?controller=<?php echo htmlentities($_GET['controller']);?>
  42. &amp;token=<?php echo htmlentities($_GET['token']);?>
  43. ">
  44. <i class="icon-list"></i>
  45. <?php echo smartyTranslate(array('s'=>'Normal view'),$_smarty_tpl);?>
  46. </a>
  47. <a class="btn btn-default <?php if ($_GET['select']=='favorites') {?> active<?php }?>" href="javascript:void(0);">
  48. <i class="icon-star"></i>
  49. <?php echo smartyTranslate(array('s'=>'Favorites view'),$_smarty_tpl);?>
  50. </a>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="row">
  55. <div id="container" class="col-lg-12">
  56. <div id="moduleContainer">
  57. <table class="table">
  58. <thead>
  59. <tr class="nodrag nodrop">
  60. <th colspan="2"></th>
  61. <th><?php echo smartyTranslate(array('s'=>'Module'),$_smarty_tpl);?>
  62. </th>
  63. <th><?php echo smartyTranslate(array('s'=>'Tab'),$_smarty_tpl);?>
  64. </th>
  65. <th><?php echo smartyTranslate(array('s'=>'Categories'),$_smarty_tpl);?>
  66. </th>
  67. <th><?php echo smartyTranslate(array('s'=>'Interest'),$_smarty_tpl);?>
  68. </th>
  69. <th><?php echo smartyTranslate(array('s'=>'Favorite'),$_smarty_tpl);?>
  70. </th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
  75. $_smarty_tpl->tpl_vars['km'] = new Smarty_Variable;
  76. $_from = $_smarty_tpl->tpl_vars['modules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  77. foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
  78. $_smarty_tpl->tpl_vars['module']->_loop = true;
  79. $_smarty_tpl->tpl_vars['km']->value = $_smarty_tpl->tpl_vars['module']->key;
  80. ?>
  81. <?php $_smarty_tpl->_capture_stack[0][] = array("moduleStatusClass", null, null); ob_start(); ?>
  82. <?php if (isset($_smarty_tpl->tpl_vars['module']->value->id)&&$_smarty_tpl->tpl_vars['module']->value->id>0) {?>
  83. module_active
  84. <?php } else { ?>
  85. module_inactive
  86. <?php }?>
  87. <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  88. if (!empty($_capture_buffer)) {
  89. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  90. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  91. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  92. } else $_smarty_tpl->capture_error();?>
  93. <tr>
  94. <td width="10px" class="<?php echo Smarty::$_smarty_vars['capture']['moduleStatusClass'];?>
  95. "></td>
  96. <td width="40px">
  97. <img src="<?php if (isset($_smarty_tpl->tpl_vars['module']->value->image)) {?><?php echo $_smarty_tpl->tpl_vars['module']->value->image;?>
  98. <?php } else { ?>../modules/<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?>
  99. /<?php echo $_smarty_tpl->tpl_vars['module']->value->logo;?>
  100. <?php }?>" width="32" height="32" />
  101. </td>
  102. <td class="moduleName">
  103. <h4><?php echo $_smarty_tpl->tpl_vars['module']->value->displayName;?>
  104. </h4>
  105. <span class="moduleFavDesc text-muted"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['module']->value->description,80,'...');?>
  106. </span>
  107. </td>
  108. <td width="240px">
  109. <?php $_smarty_tpl->tpl_vars["module_name"] = new Smarty_variable($_smarty_tpl->tpl_vars['module']->value->name, null, 0);?>
  110. <select name="t_<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?>
  111. " multiple="multiple" class="chosen moduleTabPreferencesChoise">
  112. <?php $_smarty_tpl->tpl_vars['t'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['t']->_loop = false;
  113. $_from = $_smarty_tpl->tpl_vars['tabs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  114. foreach ($_from as $_smarty_tpl->tpl_vars['t']->key => $_smarty_tpl->tpl_vars['t']->value) {
  115. $_smarty_tpl->tpl_vars['t']->_loop = true;
  116. ?>
  117. <?php if ($_smarty_tpl->tpl_vars['t']->value['active']) {?>
  118. <option <?php if (isset($_smarty_tpl->tpl_vars['tab_modules_preferences']->value[$_smarty_tpl->tpl_vars['module_name']->value])&&in_array($_smarty_tpl->tpl_vars['t']->value['id_tab'],$_smarty_tpl->tpl_vars['tab_modules_preferences']->value[$_smarty_tpl->tpl_vars['module_name']->value])) {?> selected="selected" <?php }?> class="group" value="<?php echo $_smarty_tpl->tpl_vars['t']->value['id_tab'];?>
  119. "><?php if ($_smarty_tpl->tpl_vars['t']->value['name']=='') {?><?php echo $_smarty_tpl->tpl_vars['t']->value['class_name'];?>
  120. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['t']->value['name'];?>
  121. <?php }?></option>
  122. <?php $_smarty_tpl->tpl_vars['t2'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['t2']->_loop = false;
  123. $_from = $_smarty_tpl->tpl_vars['t']->value['sub_tabs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  124. foreach ($_from as $_smarty_tpl->tpl_vars['t2']->key => $_smarty_tpl->tpl_vars['t2']->value) {
  125. $_smarty_tpl->tpl_vars['t2']->_loop = true;
  126. ?>
  127. <?php if ($_smarty_tpl->tpl_vars['t2']->value['active']) {?>
  128. <?php $_smarty_tpl->tpl_vars["id_tab"] = new Smarty_variable($_smarty_tpl->tpl_vars['t']->value['id_tab'], null, 0);?>
  129. <option <?php if (isset($_smarty_tpl->tpl_vars['tab_modules_preferences']->value[$_smarty_tpl->tpl_vars['module_name']->value])&&in_array($_smarty_tpl->tpl_vars['t2']->value['id_tab'],$_smarty_tpl->tpl_vars['tab_modules_preferences']->value[$_smarty_tpl->tpl_vars['module_name']->value])) {?> selected="selected" <?php }?> value="<?php echo $_smarty_tpl->tpl_vars['t2']->value['id_tab'];?>
  130. "><?php if ($_smarty_tpl->tpl_vars['t2']->value['name']=='') {?><?php echo $_smarty_tpl->tpl_vars['t2']->value['class_name'];?>
  131. <?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t2']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
  132. <?php }?></option>
  133. <?php }?>
  134. <?php } ?>
  135. <?php }?>
  136. <?php } ?>
  137. </select>
  138. </td>
  139. <td>
  140. <span><?php echo $_smarty_tpl->tpl_vars['module']->value->categoryName;?>
  141. </span>
  142. </td>
  143. <td>
  144. <select name="i_<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?>
  145. " class="moduleFavorite">
  146. <option value="" selected="selected">-</option>
  147. <option value="1" <?php if (isset($_smarty_tpl->tpl_vars['module']->value->preferences['interest'])&&$_smarty_tpl->tpl_vars['module']->value->preferences['interest']=='1') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
  148. </option>
  149. <option value="0" <?php if (isset($_smarty_tpl->tpl_vars['module']->value->preferences['interest'])&&$_smarty_tpl->tpl_vars['module']->value->preferences['interest']=='0') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
  150. </option>
  151. </select>
  152. </td>
  153. <td>
  154. <select name="f_<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?>
  155. " class="moduleFavorite">
  156. <option value="" selected="selected">-</option>
  157. <option value="1" <?php if (isset($_smarty_tpl->tpl_vars['module']->value->preferences['favorite'])&&$_smarty_tpl->tpl_vars['module']->value->preferences['favorite']=='1') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
  158. </option>
  159. <option value="0" <?php if (isset($_smarty_tpl->tpl_vars['module']->value->preferences['favorite'])&&$_smarty_tpl->tpl_vars['module']->value->preferences['favorite']=='0') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
  160. </option>
  161. </select>
  162. </td>
  163. </tr>
  164. <?php } ?>
  165. </tbody>
  166. </table>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <?php }} ?>