PageRenderTime 55ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/protected/runtime/twig_cache/24/41/6fc78b159f4a9e83ef134f25b7f439fa03b2da3b56daec84739a3e2daad0.php

https://gitlab.com/kamags/manutd
PHP | 257 lines | 206 code | 16 blank | 35 comment | 16 complexity | 8bd6671bb049da669a43f18880c30371 MD5 | raw file
  1. <?php
  2. /* layouts/common.twig */
  3. class __TwigTemplate_24416fc78b159f4a9e83ef134f25b7f439fa03b2da3b56daec84739a3e2daad0 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. echo "<!DOCTYPE html>
  16. <html>
  17. <head>
  18. \t<meta name=\"google-site-verification\" content=\"sBfm4F9T96AQQGr6xZpTwcFyCOxFJRUIAFvTZUtWelI\" />
  19. \t<title>Manchester United Poker - Free to Play on your mobile device, social network or online</title>
  20. \t<meta charset=\"UTF-8\">
  21. \t";
  22. // line 7
  23. if ( !twig_test_empty((isset($context["metaKeywords"]) ? $context["metaKeywords"] : null))) {
  24. // line 8
  25. echo "\t<meta name=\"keywords\" content=\"";
  26. echo (isset($context["metaKeywords"]) ? $context["metaKeywords"] : null);
  27. echo "\" />
  28. \t";
  29. }
  30. // line 10
  31. echo "\t";
  32. if ( !twig_test_empty((isset($context["metaDescription"]) ? $context["metaDescription"] : null))) {
  33. // line 11
  34. echo "\t<meta name=\"description\" content=\"";
  35. echo (isset($context["metaDescription"]) ? $context["metaDescription"] : null);
  36. echo "\" />
  37. \t";
  38. }
  39. // line 13
  40. echo "\t";
  41. // line 14
  42. echo "\t<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700' rel='stylesheet' type='text/css'>
  43. \t<link rel=\"stylesheet\" type=\"text/css\" href=\"/vendor/fancybox/jquery.fancybox.css\"/>
  44. \t<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/main.min.css\"/>
  45. \t<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\"/>
  46. \t<link rel=\"stylesheet\" href=\"/vendor/preloader/jpreloader.css\"/>
  47. </head>
  48. ";
  49. // line 22
  50. $context["ROLE_ADMIN"] = "admin";
  51. // line 23
  52. if (( !$this->getAttribute($this->getAttribute((isset($context["App"]) ? $context["App"] : null), "user", array()), "isGuest", array()) && ($this->getAttribute($this->getAttribute((isset($context["App"]) ? $context["App"] : null), "user", array()), "role", array()) != (isset($context["ROLE_ADMIN"]) ? $context["ROLE_ADMIN"] : null)))) {
  53. // line 24
  54. echo "\t";
  55. $context["profile"] = $this->getAttribute($this->getAttribute((isset($context["App"]) ? $context["App"] : null), "player", array()), "profile", array());
  56. }
  57. // line 26
  58. echo "
  59. <body class=\"bg\">
  60. <div class=\"toolbar\">
  61. \t<div class=\"wrapper toolbar__inner\">
  62. \t\t";
  63. // line 30
  64. echo $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["Nav"]) ? $context["Nav"] : null), "getMenu", array(0 => "top"), "method"), "setHtmlOptions", array(0 => array("class" => "toolbar-menu")), "method"), "render", array(0 => array("itemCssClass" => "toolbar-menu__item"), 1 => true), "method");
  65. echo "
  66. \t\t<div class=\"toolbar-sign-in\">
  67. \t\t\t";
  68. // line 33
  69. if (( !$this->getAttribute($this->getAttribute((isset($context["App"]) ? $context["App"] : null), "user", array()), "isGuest", array()) && ($this->getAttribute($this->getAttribute((isset($context["App"]) ? $context["App"] : null), "user", array()), "role", array()) != (isset($context["ROLE_ADMIN"]) ? $context["ROLE_ADMIN"] : null)))) {
  70. // line 34
  71. echo "\t\t\t\t";
  72. // line 35
  73. echo "\t\t\t\t<a href=\"";
  74. echo $this->getAttribute((isset($context["this"]) ? $context["this"] : null), "createUrl", array(0 => "main/signOut"), "method");
  75. echo "\">Sign Out</a>
  76. \t\t\t";
  77. } else {
  78. // line 37
  79. echo "\t\t\t\t<a href=\"";
  80. echo $this->getAttribute((isset($context["this"]) ? $context["this"] : null), "createUrl", array(0 => "main/signIn"), "method");
  81. echo "\">Sign In</a>
  82. \t\t\t";
  83. }
  84. // line 39
  85. echo "\t\t</div>
  86. \t\t<div class=\"lang-toolbar\">
  87. \t\t\t";
  88. // line 41
  89. $context["lang_name"] = $this->getAttribute((isset($context["App"]) ? $context["App"] : null), "language", array());
  90. // line 42
  91. echo "\t\t\t";
  92. if (($this->getAttribute((isset($context["App"]) ? $context["App"] : null), "language", array()) == "en")) {
  93. // line 43
  94. echo "\t\t\t\t";
  95. $context["lang_name"] = "ENG";
  96. // line 44
  97. echo "\t\t\t";
  98. }
  99. // line 45
  100. echo "\t\t\t<a href=\"#lang\"
  101. \t\t\t class=\"lang lang-toolbar__btn lang-toolbar__btn_";
  102. // line 46
  103. echo $this->getAttribute((isset($context["App"]) ? $context["App"] : null), "language", array());
  104. echo " flag flag_";
  105. echo $this->getAttribute((isset($context["App"]) ? $context["App"] : null), "language", array());
  106. echo " flag_usa js-flag\">";
  107. echo (isset($context["lang_name"]) ? $context["lang_name"] : null);
  108. echo "</a>
  109. \t\t</div>
  110. \t\t<div id=\"lang\">
  111. \t\t\t<div class=\"lang-switcher\">
  112. \t\t\t\t<p>";
  113. // line 51
  114. echo $this->getAttribute((isset($context["Yii"]) ? $context["Yii"] : null), "t", array(0 => "ingame", 1 => "lang-title"), "method");
  115. echo "</p>
  116. \t\t\t\t";
  117. // line 52
  118. $context['_parent'] = (array) $context;
  119. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute((isset($context["App"]) ? $context["App"] : null), "params", array()), "languages", array()));
  120. foreach ($context['_seq'] as $context["languageCode"] => $context["language"]) {
  121. // line 53
  122. echo "\t\t\t\t\t";
  123. if (($this->getAttribute($context["language"], "site", array(), "array") == true)) {
  124. // line 54
  125. echo "\t\t\t\t\t\t";
  126. $context["link"] = $this->getAttribute((isset($context["this"]) ? $context["this"] : null), "createUrl", array(0 => $this->getAttribute((isset($context["this"]) ? $context["this"] : null), "route", array()), 1 => twig_array_merge($this->getAttribute((isset($context["this"]) ? $context["this"] : null), "actionParams", array()), array("lang" => $context["languageCode"]))), "method");
  127. // line 55
  128. echo "\t\t\t\t\t\t";
  129. $context["class"] = ((($context["languageCode"] == $this->getAttribute((isset($context["App"]) ? $context["App"] : null), "language", array()))) ? ("active") : (""));
  130. // line 56
  131. echo "\t\t\t\t\t\t<a href=\"";
  132. echo (isset($context["link"]) ? $context["link"] : null);
  133. echo "\" data-lang=\"";
  134. echo $context["languageCode"];
  135. echo "\"
  136. \t\t\t\t\t\t class=\"";
  137. // line 57
  138. echo (isset($context["class"]) ? $context["class"] : null);
  139. echo " flag flag_";
  140. echo $context["languageCode"];
  141. echo " flag_usa lang-switcher__flag\">";
  142. echo $this->getAttribute($context["language"], "originalTitle", array(), "array");
  143. echo "</a>
  144. \t\t\t\t\t";
  145. }
  146. // line 59
  147. echo "\t\t\t\t";
  148. }
  149. $_parent = $context['_parent'];
  150. unset($context['_seq'], $context['_iterated'], $context['languageCode'], $context['language'], $context['_parent'], $context['loop']);
  151. $context = array_intersect_key($context, $_parent) + $_parent;
  152. // line 60
  153. echo "\t\t\t\t<div class=\"lang-soon\"></div>
  154. \t\t\t</div>
  155. \t\t</div>
  156. \t</div>
  157. </div>
  158. <div class=\"toolbar-games\">
  159. \t<div class=\"wrapper\">
  160. \t\t<a class=\"toolbar-games__item toolbar-games__item_poker\"
  161. \t\t href=\"";
  162. // line 69
  163. echo $this->getAttribute((isset($context["this"]) ? $context["this"] : null), "createUrl", array(0 => "main/games", 1 => twig_array_merge($this->getAttribute((isset($context["this"]) ? $context["this"] : null), "actionParams", array()), array("name" => "poker"))), "method");
  164. echo "\"><p>Social</p>poker</a>
  165. \t\t\t <a class=\"toolbar-games__item toolbar-games__item_slots\"
  166. \t\t\t\t\thref=\"";
  167. // line 71
  168. echo $this->getAttribute((isset($context["this"]) ? $context["this"] : null), "createUrl", array(0 => "main/games", 1 => twig_array_merge($this->getAttribute((isset($context["this"]) ? $context["this"] : null), "actionParams", array()), array("name" => "slots"))), "method");
  169. echo "\"><p>Social</p>slots</a>
  170. \t\t<a class=\"toolbar-games__item toolbar-games__item_roulette\"
  171. \t\t href=\"";
  172. // line 73
  173. echo $this->getAttribute((isset($context["this"]) ? $context["this"] : null), "createUrl", array(0 => "main/games", 1 => twig_array_merge($this->getAttribute((isset($context["this"]) ? $context["this"] : null), "actionParams", array()), array("name" => "roulette"))), "method");
  174. echo "\"><p>Social</p>roulette</a>
  175. \t</div>
  176. </div>
  177. ";
  178. // line 77
  179. $this->displayBlock("content", $context, $blocks);
  180. echo "
  181. ";
  182. // line 78
  183. echo twig_include($this->env, $context, "main/casino-popup.twig");
  184. echo "
  185. <script src=\"/js/";
  186. // line 80
  187. echo (((twig_constant("APPLICATION_MODE") == "production")) ? ("main.min.js") : ("main.js"));
  188. echo "\"></script>
  189. <script src=\"/js/dark.js\"></script>
  190. <script src=\"/js/facebook-auth-js-sdk/facebook.js\"></script>
  191. ";
  192. // line 83
  193. $this->displayBlock("scripts", $context, $blocks);
  194. echo "
  195. <script type=\"text/javascript\" src=\"//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-531ff68d79255e1f\"
  196. \t\tasync=\"async\"></script>
  197. <!-- GOOGLE ANALYTICS -->
  198. <script>
  199. \t(function (i, s, o, g, r, a, m) {
  200. \t\ti['GoogleAnalyticsObject'] = r;
  201. \t\ti[r] = i[r] || function () {
  202. \t\t\t(i[r].q = i[r].q || []).push(arguments)
  203. \t\t}, i[r].l = 1 * new Date();
  204. \t\ta = s.createElement(o), m = s.getElementsByTagName(o)[0];
  205. \t\ta.async = 1;
  206. \t\ta.src = g;
  207. \t\tm.parentNode.insertBefore(a, m)
  208. \t})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  209. \tga('create', 'UA-32533540-14', 'auto');
  210. \tga('send', 'pageview');
  211. </script>
  212. <!-- END GOOGLE ANALYTICS -->
  213. ";
  214. // line 105
  215. echo "<div id=\"fb-root\"></div>
  216. <script>(function (d, s, id) {
  217. \t\tvar js, fjs = d.getElementsByTagName(s)[0];
  218. \t\tif (d.getElementById(id)) return;
  219. \t\tjs = d.createElement(s);
  220. \t\tjs.id = id;
  221. \t\tjs.src = \"//connect.facebook.net/ru_RU/all.js#xfbml=1&appId=361272397238551\";
  222. \t\tfjs.parentNode.insertBefore(js, fjs);
  223. \t}(document, 'script', 'facebook-jssdk'));
  224. </script>
  225. </body>
  226. </html>
  227. ";
  228. }
  229. public function getTemplateName()
  230. {
  231. return "layouts/common.twig";
  232. }
  233. public function isTraitable()
  234. {
  235. return false;
  236. }
  237. public function getDebugInfo()
  238. {
  239. return array ( 228 => 105, 204 => 83, 198 => 80, 193 => 78, 189 => 77, 182 => 73, 177 => 71, 172 => 69, 161 => 60, 155 => 59, 146 => 57, 139 => 56, 136 => 55, 133 => 54, 130 => 53, 126 => 52, 122 => 51, 110 => 46, 107 => 45, 104 => 44, 101 => 43, 98 => 42, 96 => 41, 92 => 39, 86 => 37, 80 => 35, 78 => 34, 76 => 33, 70 => 30, 64 => 26, 60 => 24, 58 => 23, 56 => 22, 46 => 14, 44 => 13, 38 => 11, 35 => 10, 29 => 8, 27 => 7, 19 => 1,);
  240. }
  241. }