var/cache/dev/twig/fe/fe01cf2ed60208094ae88ef52bd0911c.php line 42

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* base.html.twig */
  16. class __TwigTemplate_d1a874b414dacdd4f80a15426b1972d9 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. 'title' => [$this, 'block_title'],
  30. 'stylesheets' => [$this, 'block_stylesheets'],
  31. 'javascripts' => [$this, 'block_javascripts'],
  32. 'content' => [$this, 'block_content'],
  33. ];
  34. }
  35. protected function doDisplay(array $context, array $blocks = []): iterable
  36. {
  37. $macros = $this->macros;
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
  42. // line 1
  43. yield "<!DOCTYPE html>
  44. <html>
  45. <head>
  46. <meta charset=\"UTF-8\">
  47. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1.0\"/>
  48. <title>STV ADMIN ";
  49. // line 6
  50. yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
  51. yield "</title>
  52. <link rel=\"icon\" href=\"/images/favicon.png\">
  53. ";
  54. // line 8
  55. yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
  56. // line 11
  57. yield " <script>
  58. var sspmgr = {
  59. roles: ";
  60. // line 13
  61. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 13, $this->source); })()), "user", [], "any", false, false, false, 13)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  62. yield json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 13, $this->source); })()), "user", [], "any", false, false, false, 13), "roles", [], "any", false, false, false, 13));
  63. } else {
  64. yield "[]";
  65. }
  66. // line 14
  67. yield " }
  68. </script>
  69. ";
  70. // line 16
  71. yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
  72. // line 19
  73. yield "</head>
  74. <body>
  75. <nav class=\"stv-grey\" role=\"navigation\">
  76. <div class=\"nav-wrapper\">
  77. <a id=\"logo-container\" href=\"/\" class=\"brand-logo\">
  78. <img src=\"/images/logo.png\" /><span>SSP</span>
  79. </a>
  80. <a class=\"user right tooltipped ";
  81. // line 26
  82. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 26, $this->source); })()), "user", [], "any", false, false, false, 26)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 26, $this->source); })()), "user", [], "any", false, false, false, 26), "html", null, true)) : ("empty"));
  83. yield "\" href=\"/logout\" data-position=\"bottom\" data-margin=\"20\" data-tooltip=\"Logout ";
  84. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 26, $this->source); })()), "user", [], "any", false, false, false, 26), "html", null, true);
  85. yield "\">
  86. <svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">
  87. <path fill=\"currentColor\" d=\"M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z\" />
  88. </svg>
  89. </a>
  90. <ul class=\"right hide-on-med-and-down\">
  91. ";
  92. // line 32
  93. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  94. // line 33
  95. yield " <li><a href=\"/publisher\" ";
  96. if (((is_string($_v0 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "get", ["_route"], "method", false, false, false, 33)) && is_string($_v1 = "app_publisher") && str_starts_with($_v0, $_v1)) || (is_string($_v2 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "get", ["_route"], "method", false, false, false, 33)) && is_string($_v3 = "app_inventory") && str_starts_with($_v2, $_v3)))) {
  97. yield "class=\"stv-pink-text\"";
  98. }
  99. yield ">Inventory</a></li>
  100. <li><a class=\"dropdown-trigger ";
  101. // line 34
  102. if ((is_string($_v4 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "get", ["_route"], "method", false, false, false, 34)) && is_string($_v5 = "app_demand") && str_starts_with($_v4, $_v5))) {
  103. yield "stv-pink-text";
  104. }
  105. yield "\" href=\"#!\" data-target=\"dsp-dropdown\">
  106. Demand
  107. <span class=\"white-text\">
  108. <svg style=\"width:15px;height:15px;\" viewBox=\"5 4 12 12\">
  109. <path fill=\"currentColor\" d=\"M7,10L12,15L17,10H7Z\" />
  110. </svg>
  111. </span>
  112. </a></li>
  113. ";
  114. }
  115. // line 43
  116. yield " </ul>
  117. <ul id=\"nav-mobile\" class=\"sidenav stv-grey\">
  118. ";
  119. // line 45
  120. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  121. // line 47
  122. yield " <li><a href=\"/publisher\" ";
  123. if (((is_string($_v6 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 47, $this->source); })()), "request", [], "any", false, false, false, 47), "get", ["_route"], "method", false, false, false, 47)) && is_string($_v7 = "app_publisher") && str_starts_with($_v6, $_v7)) || (is_string($_v8 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 47, $this->source); })()), "request", [], "any", false, false, false, 47), "get", ["_route"], "method", false, false, false, 47)) && is_string($_v9 = "app_inventory") && str_starts_with($_v8, $_v9)))) {
  124. yield "class=\"stv-pink-text\"";
  125. }
  126. yield ">Inventory</a></li>
  127. ";
  128. // line 48
  129. $context['_parent'] = $context;
  130. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["dsp"]) || array_key_exists("dsp", $context) ? $context["dsp"] : (function () { throw new RuntimeError('Variable "dsp" does not exist.', 48, $this->source); })()), "getList", [], "any", false, false, false, 48));
  131. foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  132. // line 49
  133. yield " <li><a href=\"/demand/";
  134. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 49), "html", null, true);
  135. yield "/general\" class=\"";
  136. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 49), "attributes", [], "any", false, true, false, 49), "get", ["_route_params"], "method", false, true, false, 49), "slug", [], "array", true, true, false, 49) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 49, $this->source); })()), "request", [], "any", false, false, false, 49), "attributes", [], "any", false, false, false, 49), "get", ["_route_params"], "method", false, false, false, 49), "slug", [], "array", false, false, false, 49) === CoreExtension::getAttribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 49)))) {
  137. yield "stv-pink-text";
  138. } else {
  139. yield "white-text";
  140. }
  141. yield "\">";
  142. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 49), "html", null, true);
  143. yield "</a></li>
  144. ";
  145. }
  146. $_parent = $context['_parent'];
  147. unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  148. $context = array_intersect_key($context, $_parent) + $_parent;
  149. // line 51
  150. yield " ";
  151. }
  152. // line 52
  153. yield " </ul>
  154. <a href=\"#\" data-target=\"nav-mobile\" class=\"sidenav-trigger\">
  155. <svg style=\"\" viewBox=\"0 0 24 24\">
  156. <path fill=\"currentColor\" d=\"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z\" />
  157. </svg>
  158. </a>
  159. </div>
  160. </nav>
  161. <ul id=\"dsp-dropdown\" class=\"dropdown-content stv-grey\">
  162. ";
  163. // line 61
  164. if (array_key_exists("dsps", $context)) {
  165. // line 62
  166. yield " ";
  167. $context['_parent'] = $context;
  168. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["dsps"]) || array_key_exists("dsps", $context) ? $context["dsps"] : (function () { throw new RuntimeError('Variable "dsps" does not exist.', 62, $this->source); })()));
  169. foreach ($context['_seq'] as $context["_key"] => $context["dsp"]) {
  170. // line 63
  171. yield " ";
  172. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  173. // line 64
  174. yield " <li><a href=\"/demand/";
  175. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["dsp"], "id", [], "any", false, false, false, 64), "html", null, true);
  176. yield "/general\" class=\" white-text\" style=\"font-size:15px\">";
  177. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["dsp"], "name", [], "any", false, false, false, 64), "html", null, true);
  178. yield "</a></li>
  179. ";
  180. } else {
  181. // line 66
  182. yield " <li><a href=\"/demand/";
  183. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["dsp"], "id", [], "any", false, false, false, 66), "html", null, true);
  184. yield "/deals\" class=\" white-text\" style=\"font-size:15px\">";
  185. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["dsp"], "name", [], "any", false, false, false, 66), "html", null, true);
  186. yield "</a></li>
  187. ";
  188. }
  189. // line 68
  190. yield " ";
  191. }
  192. $_parent = $context['_parent'];
  193. unset($context['_seq'], $context['_key'], $context['dsp'], $context['_parent']);
  194. $context = array_intersect_key($context, $_parent) + $_parent;
  195. // line 69
  196. yield " ";
  197. }
  198. // line 70
  199. yield "</ul>
  200. <section id=\"stv-content\">
  201. ";
  202. // line 72
  203. if (((is_string($_v10 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 72, $this->source); })()), "request", [], "any", false, false, false, 72), "get", ["_route"], "method", false, false, false, 72)) && is_string($_v11 = "app_publisher") && str_starts_with($_v10, $_v11)) || (is_string($_v12 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 72, $this->source); })()), "request", [], "any", false, false, false, 72), "get", ["_route"], "method", false, false, false, 72)) && is_string($_v13 = "app_inventory") && str_starts_with($_v12, $_v13)))) {
  204. // line 73
  205. yield " <div class=\"subnavigation\" style=\"box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14)\">
  206. <div class=\"items\" ref=\"items\">
  207. <a href=\"/publisher\">Publisher</a>
  208. <a href=\"/inventory\">Inventory Groups</a>
  209. </div>
  210. <div class=\"indicator\" style=\"left: ";
  211. // line 78
  212. yield (((is_string($_v14 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 78, $this->source); })()), "request", [], "any", false, false, false, 78), "get", ["_route"], "method", false, false, false, 78)) && is_string($_v15 = "app_publisher") && str_starts_with($_v14, $_v15))) ? (0) : (50));
  213. yield "%; width: 50%;\"></div>
  214. </div>
  215. ";
  216. }
  217. // line 81
  218. yield " ";
  219. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  220. // line 82
  221. yield "</section>
  222. <div class=\"stv-separator\"></div>
  223. <footer class=\"stv-grey right-align\">
  224. &copy; ";
  225. // line 85
  226. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y"), "html", null, true);
  227. yield " <a class=\"stv-pink-text\" href=\"https://smartstream.tv\" target=\"_blank\">SMARTSTREAM.TV</a>
  228. </footer>
  229. </body>
  230. </html>
  231. ";
  232. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  233. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  234. yield from [];
  235. }
  236. // line 6
  237. /**
  238. * @return iterable<null|scalar|\Stringable>
  239. */
  240. public function block_title(array $context, array $blocks = []): iterable
  241. {
  242. $macros = $this->macros;
  243. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  244. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  245. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  246. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  247. yield "Welcome!";
  248. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  249. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  250. yield from [];
  251. }
  252. // line 8
  253. /**
  254. * @return iterable<null|scalar|\Stringable>
  255. */
  256. public function block_stylesheets(array $context, array $blocks = []): iterable
  257. {
  258. $macros = $this->macros;
  259. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  260. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  261. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  262. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  263. // line 9
  264. yield " ";
  265. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("index");
  266. yield "
  267. ";
  268. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  269. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  270. yield from [];
  271. }
  272. // line 16
  273. /**
  274. * @return iterable<null|scalar|\Stringable>
  275. */
  276. public function block_javascripts(array $context, array $blocks = []): iterable
  277. {
  278. $macros = $this->macros;
  279. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  280. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  281. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  282. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  283. // line 17
  284. yield " ";
  285. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("index");
  286. yield "
  287. ";
  288. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  289. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  290. yield from [];
  291. }
  292. // line 81
  293. /**
  294. * @return iterable<null|scalar|\Stringable>
  295. */
  296. public function block_content(array $context, array $blocks = []): iterable
  297. {
  298. $macros = $this->macros;
  299. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  300. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  301. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  302. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  303. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  304. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  305. yield from [];
  306. }
  307. /**
  308. * @codeCoverageIgnore
  309. */
  310. public function getTemplateName(): string
  311. {
  312. return "base.html.twig";
  313. }
  314. /**
  315. * @codeCoverageIgnore
  316. */
  317. public function isTraitable(): bool
  318. {
  319. return false;
  320. }
  321. /**
  322. * @codeCoverageIgnore
  323. */
  324. public function getDebugInfo(): array
  325. {
  326. return array ( 328 => 81, 314 => 17, 301 => 16, 287 => 9, 274 => 8, 251 => 6, 235 => 85, 230 => 82, 227 => 81, 221 => 78, 214 => 73, 212 => 72, 208 => 70, 205 => 69, 199 => 68, 191 => 66, 183 => 64, 180 => 63, 175 => 62, 173 => 61, 162 => 52, 159 => 51, 142 => 49, 138 => 48, 131 => 47, 129 => 45, 125 => 43, 111 => 34, 104 => 33, 102 => 32, 91 => 26, 82 => 19, 80 => 16, 76 => 14, 70 => 13, 66 => 11, 64 => 8, 59 => 6, 52 => 1,);
  327. }
  328. public function getSourceContext(): Source
  329. {
  330. return new Source("<!DOCTYPE html>
  331. <html>
  332. <head>
  333. <meta charset=\"UTF-8\">
  334. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1.0\"/>
  335. <title>STV ADMIN {% block title %}Welcome!{% endblock %}</title>
  336. <link rel=\"icon\" href=\"/images/favicon.png\">
  337. {% block stylesheets %}
  338. {{ encore_entry_link_tags('index') }}
  339. {% endblock %}
  340. <script>
  341. var sspmgr = {
  342. roles: {% if app.user %}{{ app.user.roles | json_encode | raw}}{% else %}[]{% endif %}
  343. }
  344. </script>
  345. {% block javascripts %}
  346. {{ encore_entry_script_tags('index') }}
  347. {% endblock %}
  348. </head>
  349. <body>
  350. <nav class=\"stv-grey\" role=\"navigation\">
  351. <div class=\"nav-wrapper\">
  352. <a id=\"logo-container\" href=\"/\" class=\"brand-logo\">
  353. <img src=\"/images/logo.png\" /><span>SSP</span>
  354. </a>
  355. <a class=\"user right tooltipped {{ app.user ? : 'empty' }}\" href=\"/logout\" data-position=\"bottom\" data-margin=\"20\" data-tooltip=\"Logout {{ app.user }}\">
  356. <svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">
  357. <path fill=\"currentColor\" d=\"M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z\" />
  358. </svg>
  359. </a>
  360. <ul class=\"right hide-on-med-and-down\">
  361. {% if is_granted('ROLE_USER') %}
  362. <li><a href=\"/publisher\" {% if app.request.get('_route') starts with 'app_publisher' or app.request.get('_route') starts with 'app_inventory'%}class=\"stv-pink-text\"{%endif%}>Inventory</a></li>
  363. <li><a class=\"dropdown-trigger {% if app.request.get('_route') starts with 'app_demand' %}stv-pink-text{%endif%}\" href=\"#!\" data-target=\"dsp-dropdown\">
  364. Demand
  365. <span class=\"white-text\">
  366. <svg style=\"width:15px;height:15px;\" viewBox=\"5 4 12 12\">
  367. <path fill=\"currentColor\" d=\"M7,10L12,15L17,10H7Z\" />
  368. </svg>
  369. </span>
  370. </a></li>
  371. {% endif %}
  372. </ul>
  373. <ul id=\"nav-mobile\" class=\"sidenav stv-grey\">
  374. {% if is_granted('ROLE_USER') %}
  375. {# <li><a href=\"/dashboard\" class=\"{% if app.request.get('_route') starts with 'app_dashboard' %}stv-pink-text{%else%}white-text{%endif%}\">Dashboard</a></li>#}
  376. <li><a href=\"/publisher\" {% if app.request.get('_route') starts with 'app_publisher' or app.request.get('_route') starts with 'app_inventory'%}class=\"stv-pink-text\"{%endif%}>Inventory</a></li>
  377. {% for item in dsp.getList %}
  378. <li><a href=\"/demand/{{ item.id }}/general\" class=\"{% if app.request.attributes.get('_route_params')['slug'] is defined and app.request.attributes.get('_route_params')['slug'] is same as(item.id) %}stv-pink-text{%else%}white-text{%endif%}\">{{ item.name }}</a></li>
  379. {% endfor %}
  380. {% endif %}
  381. </ul>
  382. <a href=\"#\" data-target=\"nav-mobile\" class=\"sidenav-trigger\">
  383. <svg style=\"\" viewBox=\"0 0 24 24\">
  384. <path fill=\"currentColor\" d=\"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z\" />
  385. </svg>
  386. </a>
  387. </div>
  388. </nav>
  389. <ul id=\"dsp-dropdown\" class=\"dropdown-content stv-grey\">
  390. {% if dsps is defined %}
  391. {% for dsp in dsps%}
  392. {% if is_granted('ROLE_ADMIN') %}
  393. <li><a href=\"/demand/{{ dsp.id }}/general\" class=\" white-text\" style=\"font-size:15px\">{{ dsp.name }}</a></li>
  394. {% else %}
  395. <li><a href=\"/demand/{{ dsp.id }}/deals\" class=\" white-text\" style=\"font-size:15px\">{{ dsp.name }}</a></li>
  396. {% endif %}
  397. {% endfor %}
  398. {% endif %}
  399. </ul>
  400. <section id=\"stv-content\">
  401. {% if app.request.get('_route') starts with 'app_publisher' or app.request.get('_route') starts with 'app_inventory'%}
  402. <div class=\"subnavigation\" style=\"box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14)\">
  403. <div class=\"items\" ref=\"items\">
  404. <a href=\"/publisher\">Publisher</a>
  405. <a href=\"/inventory\">Inventory Groups</a>
  406. </div>
  407. <div class=\"indicator\" style=\"left: {{ app.request.get('_route') starts with 'app_publisher' ? 0 : 50 }}%; width: 50%;\"></div>
  408. </div>
  409. {% endif %}
  410. {% block content %}{% endblock %}
  411. </section>
  412. <div class=\"stv-separator\"></div>
  413. <footer class=\"stv-grey right-align\">
  414. &copy; {{ \"now\"|date(\"Y\") }} <a class=\"stv-pink-text\" href=\"https://smartstream.tv\" target=\"_blank\">SMARTSTREAM.TV</a>
  415. </footer>
  416. </body>
  417. </html>
  418. ", "base.html.twig", "/var/www/ssp-mgr-dev.smartstream.tv/templates/base.html.twig");
  419. }
  420. }