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

/app/cache/prod/twig/c3/c3f6cb8104ad344bca2a48769776bcac6928c0359df6c8d8400dbe4a04f35044.php

https://bitbucket.org/tippycracker/autokraitis
PHP | 239 lines | 184 code | 20 blank | 35 comment | 5 complexity | 229183df5edd233e269b1c860ab61290 MD5 | raw file
Possible License(s): BSD-2-Clause, GPL-2.0, GPL-3.0, BSD-3-Clause, Apache-2.0
  1. <?php
  2. /* @PrestaShop/Admin/layout.html.twig */
  3. class __TwigTemplate_92eb5f3db75b13a61e9fc0d4cc871343161699ccd3ab4324b88da0dfd1062ef5 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->blocks = array(
  9. 'javascripts' => array($this, 'block_javascripts'),
  10. 'translate_javascripts' => array($this, 'block_translate_javascripts'),
  11. 'content_header' => array($this, 'block_content_header'),
  12. 'sidebar_right' => array($this, 'block_sidebar_right'),
  13. );
  14. }
  15. protected function doGetParent(array $context)
  16. {
  17. // line 25
  18. return $this->loadTemplate(twig_template_from_string($this->env, $this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getLegacyLayout($this->getAttribute($this->getAttribute($this->getAttribute( // line 27
  19. (isset($context["app"]) ? $context["app"] : null), "request", array()), "attributes", array()), "get", array(0 => "_legacy_controller"), "method"), (( // line 28
  20. array_key_exists("layoutTitle", $context)) ? ((isset($context["layoutTitle"]) ? $context["layoutTitle"] : null)) : ("")), (( // line 29
  21. array_key_exists("layoutHeaderToolbarBtn", $context)) ? ((isset($context["layoutHeaderToolbarBtn"]) ? $context["layoutHeaderToolbarBtn"] : null)) : (array())), (( // line 30
  22. array_key_exists("layoutDisplayType", $context)) ? ((isset($context["layoutDisplayType"]) ? $context["layoutDisplayType"] : null)) : ("")), (( // line 31
  23. array_key_exists("showContentHeader", $context)) ? ((isset($context["showContentHeader"]) ? $context["showContentHeader"] : null)) : (true)), (( // line 32
  24. array_key_exists("headerTabContent", $context)) ? ((isset($context["headerTabContent"]) ? $context["headerTabContent"] : null)) : ("")), (( // line 33
  25. array_key_exists("enableSidebar", $context)) ? ((isset($context["enableSidebar"]) ? $context["enableSidebar"] : null)) : (false)), (( // line 34
  26. array_key_exists("help_link", $context)) ? ((isset($context["help_link"]) ? $context["help_link"] : null)) : ("")))), "@PrestaShop/Admin/layout.html.twig", 25);
  27. }
  28. protected function doDisplay(array $context, array $blocks = array())
  29. {
  30. // line 38
  31. $context["ps"] = $this->loadTemplate("PrestaShopBundle:Admin:macros.html.twig", "@PrestaShop/Admin/layout.html.twig", 38);
  32. // line 25
  33. $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
  34. }
  35. // line 40
  36. public function block_javascripts($context, array $blocks = array())
  37. {
  38. // line 41
  39. echo " <script src=\"";
  40. echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/default.js"), "html", null, true);
  41. echo "\"></script>
  42. <script src=\"";
  43. // line 42
  44. echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/right-sidebar.js"), "html", null, true);
  45. echo "\"></script>
  46. ";
  47. }
  48. // line 45
  49. public function block_translate_javascripts($context, array $blocks = array())
  50. {
  51. // line 46
  52. echo " <script>
  53. var translate_javascripts = ";
  54. // line 47
  55. echo twig_jsonencode_filter((isset($context["js_translatable"]) ? $context["js_translatable"] : null));
  56. echo ";
  57. var PS_ALLOW_ACCENTED_CHARS_URL = ";
  58. // line 48
  59. echo twig_escape_filter($this->env, $this->env->getExtension('PrestaShopBundle\Twig\DataFormatterExtension')->intCast($this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_ALLOW_ACCENTED_CHARS_URL")), "html", null, true);
  60. echo ";
  61. </script>
  62. ";
  63. }
  64. // line 52
  65. public function block_content_header($context, array $blocks = array())
  66. {
  67. // line 53
  68. echo " ";
  69. // line 73
  70. echo " ";
  71. $context["layout"] = $this;
  72. // line 74
  73. echo "
  74. ";
  75. // line 75
  76. if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session", array()), "flashbag", array()), "peek", array(0 => "error"), "method")) > 0)) {
  77. // line 76
  78. echo " ";
  79. echo $context["layout"]->getalert("danger", $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session", array()), "flashbag", array()), "get", array(0 => "error"), "method"));
  80. echo "
  81. ";
  82. }
  83. // line 78
  84. echo " ";
  85. if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session", array()), "flashbag", array()), "peek", array(0 => "failure"), "method")) > 0)) {
  86. // line 79
  87. echo " ";
  88. echo $context["layout"]->getalert("danger", $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session", array()), "flashbag", array()), "get", array(0 => "failure"), "method"));
  89. echo "
  90. ";
  91. }
  92. // line 81
  93. echo " ";
  94. if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session", array()), "flashbag", array()), "peek", array(0 => "success"), "method")) > 0)) {
  95. // line 82
  96. echo " ";
  97. echo $context["layout"]->getalert("success", $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session", array()), "flashbag", array()), "get", array(0 => "success"), "method"));
  98. echo "
  99. ";
  100. }
  101. }
  102. // line 86
  103. public function block_sidebar_right($context, array $blocks = array())
  104. {
  105. // line 87
  106. echo " <nav
  107. id=\"right-sidebar\"
  108. role=\"navigation\"
  109. class=\"col-xs-5 col-sm-4 col-md-4 col-lg-3 sidebar sidebar-right sidebar-animate text-sm-center\"
  110. >
  111. <img
  112. src=\"";
  113. // line 93
  114. echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/img/bundle/dashboard_loading.gif"), "html", null, true);
  115. echo "\"
  116. style=\"margin-top: 10em;\" alt=\"";
  117. // line 94
  118. echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Loading...", array(), "Admin.Global"), "html", null, true);
  119. echo "\"
  120. />
  121. </nav>
  122. ";
  123. }
  124. // line 53
  125. public function getalert($__type__ = null, $__flashbagContent__ = null, ...$__varargs__)
  126. {
  127. $context = $this->env->mergeGlobals(array(
  128. "type" => $__type__,
  129. "flashbagContent" => $__flashbagContent__,
  130. "varargs" => $__varargs__,
  131. ));
  132. $blocks = array();
  133. ob_start();
  134. try {
  135. // line 54
  136. echo " <div class=\"alert alert-";
  137. echo twig_escape_filter($this->env, (isset($context["type"]) ? $context["type"] : null), "html", null, true);
  138. echo "\" role=\"alert\">
  139. <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  140. <span aria-hidden=\"true\"><i class=\"material-icons\">close</i></span>
  141. </button>
  142. ";
  143. // line 58
  144. if ((twig_length_filter($this->env, (isset($context["flashbagContent"]) ? $context["flashbagContent"] : null)) > 1)) {
  145. // line 59
  146. echo " <ul class=\"alert-text\">
  147. ";
  148. // line 60
  149. $context['_parent'] = $context;
  150. $context['_seq'] = twig_ensure_traversable((isset($context["flashbagContent"]) ? $context["flashbagContent"] : null));
  151. foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  152. // line 61
  153. echo " <li>";
  154. echo $context["flashMessage"];
  155. echo "</li>
  156. ";
  157. }
  158. $_parent = $context['_parent'];
  159. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
  160. $context = array_intersect_key($context, $_parent) + $_parent;
  161. // line 63
  162. echo " </ul>
  163. ";
  164. } else {
  165. // line 65
  166. echo " <div class=\"alert-text\">
  167. ";
  168. // line 66
  169. $context['_parent'] = $context;
  170. $context['_seq'] = twig_ensure_traversable((isset($context["flashbagContent"]) ? $context["flashbagContent"] : null));
  171. foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  172. // line 67
  173. echo " <p>";
  174. echo $context["flashMessage"];
  175. echo "</p>
  176. ";
  177. }
  178. $_parent = $context['_parent'];
  179. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
  180. $context = array_intersect_key($context, $_parent) + $_parent;
  181. // line 69
  182. echo " </div>
  183. ";
  184. }
  185. // line 71
  186. echo " </div>
  187. ";
  188. } catch (Exception $e) {
  189. ob_end_clean();
  190. throw $e;
  191. } catch (Throwable $e) {
  192. ob_end_clean();
  193. throw $e;
  194. }
  195. return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  196. }
  197. public function getTemplateName()
  198. {
  199. return "@PrestaShop/Admin/layout.html.twig";
  200. }
  201. public function isTraitable()
  202. {
  203. return false;
  204. }
  205. public function getDebugInfo()
  206. {
  207. return array ( 197 => 71, 193 => 69, 184 => 67, 180 => 66, 177 => 65, 173 => 63, 164 => 61, 160 => 60, 157 => 59, 155 => 58, 147 => 54, 134 => 53, 126 => 94, 122 => 93, 114 => 87, 111 => 86, 103 => 82, 100 => 81, 94 => 79, 91 => 78, 85 => 76, 83 => 75, 80 => 74, 77 => 73, 75 => 53, 72 => 52, 65 => 48, 61 => 47, 58 => 46, 55 => 45, 49 => 42, 44 => 41, 41 => 40, 37 => 25, 35 => 38, 29 => 34, 28 => 33, 27 => 32, 26 => 31, 25 => 30, 24 => 29, 23 => 28, 22 => 27, 21 => 25,);
  208. }
  209. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  210. public function getSource()
  211. {
  212. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  213. return $this->getSourceContext()->getCode();
  214. }
  215. public function getSourceContext()
  216. {
  217. return new Twig_Source("", "@PrestaShop/Admin/layout.html.twig", "/home/autokr/domains/autokrai.kraitis.lt/public_html/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig");
  218. }
  219. }