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

/prestashop/_/cache/smarty/compile/82/f9/85/82f9856e4ee0c308539588cbfc82bb67bd3b911c.file.page.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 201 lines | 193 code | 8 blank | 0 comment | 14 complexity | 8cc15cc2579163604824ea2114035210 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:42:00
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\admin2200io4fc\themes\default\template\controllers\modules\page.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:659057c49e181f78a1-81498649%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '82f9856e4ee0c308539588cbfc82bb67bd3b911c' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\admin2200io4fc\\themes\\default\\template\\controllers\\modules\\page.tpl',
  10. 1 => 1472500723,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '659057c49e181f78a1-81498649',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'logged_on_addons' => 0,
  21. 'addons_register_link' => 0,
  22. 'kpis' => 0,
  23. 'add_permission' => 0,
  24. 'currentIndex' => 0,
  25. 'token' => 0,
  26. 'upgrade_available' => 0,
  27. 'module' => 0,
  28. 'categoryFiltered' => 0,
  29. 'nb_modules_favorites' => 0,
  30. 'nb_modules' => 0,
  31. 'list_modules_categories' => 0,
  32. 'module_category_key' => 0,
  33. 'module_category' => 0,
  34. ),
  35. 'has_nocache_code' => false,
  36. 'version' => 'Smarty-3.1.19',
  37. 'unifunc' => 'content_57c49e1832c876_74584218',
  38. ),false); /*/%%SmartyHeaderCode%%*/?>
  39. <?php if ($_valid && !is_callable('content_57c49e1832c876_74584218')) {function content_57c49e1832c876_74584218($_smarty_tpl) {?>
  40. <?php if (!isset($_smarty_tpl->tpl_vars['logged_on_addons']->value)||!$_smarty_tpl->tpl_vars['logged_on_addons']->value) {?>
  41. <div class="alert bg-info">
  42. <div class="row modules-addons-info">
  43. <h4><?php echo smartyTranslate(array('s'=>'Addons membership provides access to all our PrestaShop modules.'),$_smarty_tpl);?>
  44. </h4>
  45. <p><?php echo smartyTranslate(array('s'=>'Once connected, your new modules will be automatically installed.'),$_smarty_tpl);?>
  46. </p>
  47. </div>
  48. <div class="row modules-addons-buttons">
  49. <a class="btn btn-default btn-primary _blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addons_register_link']->value, ENT_QUOTES, 'UTF-8', true);?>
  50. "><i class="icon-pencil"></i> <?php echo smartyTranslate(array('s'=>'Sign up'),$_smarty_tpl);?>
  51. </a><a href="#" class="addons_connect btn btn-default" data-toggle="modal" data-target="#modal_addons_connect" title="<?php echo smartyTranslate(array('s'=>'Connect to PrestaShop Marketplace account'),$_smarty_tpl);?>
  52. "><i class="icon-user"></i> <?php echo smartyTranslate(array('s'=>'Log in'),$_smarty_tpl);?>
  53. </a>
  54. </div>
  55. </div>
  56. <?php }?>
  57. <?php echo $_smarty_tpl->tpl_vars['kpis']->value;?>
  58. <?php if ($_smarty_tpl->tpl_vars['add_permission']->value=='1') {?>
  59. <div id="module_install" class="row" style="<?php if (!isset($_POST['downloadflag'])) {?>display: none;<?php }?>">
  60. <div class="panel col-lg-12">
  61. <form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
  62. &amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
  63. " method="post" enctype="multipart/form-data" class="form-horizontal">
  64. <h3><?php echo smartyTranslate(array('s'=>'Add a new module'),$_smarty_tpl);?>
  65. </h3>
  66. <p class="alert alert-info"><?php echo smartyTranslate(array('s'=>'The module must either be a Zip file (.zip) or a tarball file (.tar, .tar.gz, .tgz).'),$_smarty_tpl);?>
  67. </p>
  68. <div class="form-group">
  69. <label for="file" class="control-label col-lg-3">
  70. <span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'Upload a module from your computer.'),$_smarty_tpl);?>
  71. ">
  72. <?php echo smartyTranslate(array('s'=>'Module file'),$_smarty_tpl);?>
  73. </span>
  74. </label>
  75. <div class="col-sm-9">
  76. <div class="row">
  77. <div class="col-lg-7">
  78. <input id="file" type="file" name="file" class="hide" />
  79. <div class="dummyfile input-group">
  80. <span class="input-group-addon"><i class="icon-file"></i></span>
  81. <input id="file-name" type="text" class="disabled" name="filename" readonly />
  82. <span class="input-group-btn">
  83. <button id="file-selectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
  84. <i class="icon-folder-open"></i> <?php echo smartyTranslate(array('s'=>'Choose a file'),$_smarty_tpl);?>
  85. </button>
  86. </span>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <div class="col-lg-9 col-lg-push-3">
  94. <button class="btn btn-default" type="submit" name="download">
  95. <i class="icon-upload-alt" ></i>
  96. <?php echo smartyTranslate(array('s'=>'Upload this module'),$_smarty_tpl);?>
  97. </button>
  98. </div>
  99. </div>
  100. </form>
  101. </div>
  102. </div>
  103. <?php }?>
  104. <?php if (count($_smarty_tpl->tpl_vars['upgrade_available']->value)) {?>
  105. <div class="alert alert-info">
  106. <?php echo smartyTranslate(array('s'=>'An upgrade is available for some of your modules!'),$_smarty_tpl);?>
  107. <ul>
  108. <?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
  109. $_from = $_smarty_tpl->tpl_vars['upgrade_available']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  110. foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
  111. $_smarty_tpl->tpl_vars['module']->_loop = true;
  112. ?>
  113. <li><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
  114. &amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
  115. &amp;anchor=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value['anchor'], ENT_QUOTES, 'UTF-8', true);?>
  116. "><b><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value['displayName'], ENT_QUOTES, 'UTF-8', true);?>
  117. </b></a></li>
  118. <?php } ?>
  119. </ul>
  120. </div>
  121. <?php }?>
  122. <div class="panel">
  123. <div class="panel-heading">
  124. <i class="icon-list-ul"></i>
  125. <?php echo smartyTranslate(array('s'=>'Modules list'),$_smarty_tpl);?>
  126. </div>
  127. <!--start sidebar module-->
  128. <div class="row">
  129. <div class="categoriesTitle col-md-3">
  130. <div class="list-group">
  131. <form id="filternameForm" method="post" class="list-group-item form-horizontal">
  132. <div class="input-group">
  133. <span class="input-group-addon">
  134. <i class="icon-search"></i>
  135. </span>
  136. <input class="form-control" placeholder="<?php echo smartyTranslate(array('s'=>'Search'),$_smarty_tpl);?>
  137. " type="text" value="" name="moduleQuicksearch" id="moduleQuicksearch" autocomplete="off" />
  138. </div>
  139. </form>
  140. <a class="categoryModuleFilterLink list-group-item <?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value['favorites'])) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
  141. &amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
  142. &amp;filterCategory=favorites" id="filter_favorite">
  143. <?php echo smartyTranslate(array('s'=>'Favorites'),$_smarty_tpl);?>
  144. <span id="favorite-count" class="badge pull-right"><?php echo $_smarty_tpl->tpl_vars['nb_modules_favorites']->value;?>
  145. </span>
  146. </a>
  147. <a class="categoryModuleFilterLink list-group-item <?php if (count($_smarty_tpl->tpl_vars['categoryFiltered']->value)<=0) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
  148. &amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
  149. &amp;unfilterCategory=yes" id="filter_all">
  150. <?php echo smartyTranslate(array('s'=>'All'),$_smarty_tpl);?>
  151. <span class="badge pull-right"><?php echo $_smarty_tpl->tpl_vars['nb_modules']->value;?>
  152. </span>
  153. </a>
  154. <?php $_smarty_tpl->tpl_vars['module_category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module_category']->_loop = false;
  155. $_smarty_tpl->tpl_vars['module_category_key'] = new Smarty_Variable;
  156. $_from = $_smarty_tpl->tpl_vars['list_modules_categories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  157. foreach ($_from as $_smarty_tpl->tpl_vars['module_category']->key => $_smarty_tpl->tpl_vars['module_category']->value) {
  158. $_smarty_tpl->tpl_vars['module_category']->_loop = true;
  159. $_smarty_tpl->tpl_vars['module_category_key']->value = $_smarty_tpl->tpl_vars['module_category']->key;
  160. ?>
  161. <a class="categoryModuleFilterLink list-group-item <?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value[$_smarty_tpl->tpl_vars['module_category_key']->value])) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
  162. &amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
  163. &amp;<?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value[$_smarty_tpl->tpl_vars['module_category_key']->value])) {?>un<?php }?>filterCategory=<?php echo $_smarty_tpl->tpl_vars['module_category_key']->value;?>
  164. " id="filter_<?php echo $_smarty_tpl->tpl_vars['module_category_key']->value;?>
  165. ">
  166. <?php echo $_smarty_tpl->tpl_vars['module_category']->value['name'];?>
  167. <span class="badge pull-right"><?php echo $_smarty_tpl->tpl_vars['module_category']->value['nb'];?>
  168. </span>
  169. </a>
  170. <?php } ?>
  171. </div>
  172. </div>
  173. <div id="moduleContainer" class="col-md-9">
  174. <?php echo $_smarty_tpl->getSubTemplate ('controllers/modules/list.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
  175. </div>
  176. </div>
  177. </div>
  178. <script type="text/javascript">
  179. $(document).ready(function(){
  180. $('#file-selectbutton').click(function(e){
  181. $('#file').trigger('click');
  182. });
  183. $('#file-name').click(function(e){
  184. $('#file').trigger('click');
  185. });
  186. $('#file').change(function(e){
  187. var val = $(this).val();
  188. var file = val.split(/[\\/]/);
  189. $('#file-name').val(file[file.length-1]);
  190. });
  191. });
  192. </script>
  193. <?php }} ?>