var/cache/dev/twig/ba/bab075f05cd803c72566b0b3f5cf0756.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Context/TechVideos/index.html.twig */
  14. class __TwigTemplate_5c5026028c2e48d4e9e944dc5f8fb84d extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@SyliusShop/layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Context/TechVideos/index.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Context/TechVideos/index.html.twig"));
  39.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""Context/TechVideos/index.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         echo "
  56.     <div class=\"tech-videos-container\">
  57.         ";
  58.         // line 6
  59.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_media_index_by_section_code", ["sectionCode" => "tech_videos""template" => "Context/TechVideos/topVideosCarousel.html.twig"]));
  60.         echo "
  61.         ";
  62.         // line 7
  63.         $this->loadTemplate("Context/TechVideos/paragraphSection.html.twig""Context/TechVideos/index.html.twig"7)->display($context);
  64.         // line 8
  65.         echo "        ";
  66.         $this->loadTemplate("Context/TechVideos/playlists.html.twig""Context/TechVideos/index.html.twig"8)->display($context);
  67.         // line 9
  68.         echo "        ";
  69.         $this->loadTemplate("Context/TechVideos/bookMeetingBanner.html.twig""Context/TechVideos/index.html.twig"9)->display($context);
  70.         // line 10
  71.         echo "        ";
  72.         $this->loadTemplate("Context/TechVideos/quoteBanner.html.twig""Context/TechVideos/index.html.twig"10)->display($context);
  73.         // line 11
  74.         echo "        ";
  75.         $this->loadTemplate("@SyliusShop/Common/Sections/digitalEcosystem.html.twig""Context/TechVideos/index.html.twig"11)->display($context);
  76.         // line 12
  77.         echo "    </div>
  78. ";
  79.         
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  81.         
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  83.     }
  84.     // line 16
  85.     public function block_javascripts($context, array $blocks = [])
  86.     {
  87.         $macros $this->macros;
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  92.         // line 17
  93.         echo "    <script>
  94.         const ytToken = '";
  95.         // line 18
  96.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'18$this->source); })()), "request", [], "any"falsefalsefalse18), "server", [], "any"falsefalsefalse18), "get", [=> "YOUTUBE_API_TOKEN"], "method"falsefalsefalse18), "html"nulltrue);
  97.         echo "';
  98.         const playlistTokens = {
  99.             'educational-talks': 'PLtN7wP66Zdw5ZUCcZw_kBp1drGnTPbvjf',
  100.             'expo-highlights': 'PLtN7wP66Zdw563X-nSBHa6eWpykR-yvLv',
  101.             'knowledge-clips': 'PLtN7wP66Zdw4dzNRNhcfjN8LTw3m7rVUH',
  102.             'shorts': 'PLtN7wP66Zdw6Ok7GJWGU-Ji0tJG9mjGyw',
  103.         }
  104.         const videosNotFound = '";
  105.         // line 25
  106.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.tech_videos.videos_not_found"), "html"nulltrue);
  107.         echo "'
  108.     </script>
  109.     ";
  110.         // line 28
  111.         $this->displayParentBlock("javascripts"$context$blocks);
  112.         echo "
  113. ";
  114.         
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  116.         
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  118.     }
  119.     public function getTemplateName()
  120.     {
  121.         return "Context/TechVideos/index.html.twig";
  122.     }
  123.     public function isTraitable()
  124.     {
  125.         return false;
  126.     }
  127.     public function getDebugInfo()
  128.     {
  129.         return array (  132 => 28,  126 => 25,  116 => 18,  113 => 17,  103 => 16,  91 => 12,  88 => 11,  85 => 10,  82 => 9,  79 => 8,  77 => 7,  73 => 6,  69 => 4,  59 => 3,  36 => 1,);
  130.     }
  131.     public function getSourceContext()
  132.     {
  133.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  134. {% block content %}
  135.     <div class=\"tech-videos-container\">
  136.         {{ render(path('bitbag_sylius_cms_plugin_shop_media_index_by_section_code', {'sectionCode' : 'tech_videos', 'template' : 'Context/TechVideos/topVideosCarousel.html.twig'})) }}
  137.         {% include 'Context/TechVideos/paragraphSection.html.twig' %}
  138.         {% include 'Context/TechVideos/playlists.html.twig' %}
  139.         {% include 'Context/TechVideos/bookMeetingBanner.html.twig' %}
  140.         {% include 'Context/TechVideos/quoteBanner.html.twig' %}
  141.         {% include '@SyliusShop/Common/Sections/digitalEcosystem.html.twig' %}
  142.     </div>
  143. {% endblock %}
  144. {% block javascripts %}
  145.     <script>
  146.         const ytToken = '{{ app.request.server.get('YOUTUBE_API_TOKEN') }}';
  147.         const playlistTokens = {
  148.             'educational-talks': 'PLtN7wP66Zdw5ZUCcZw_kBp1drGnTPbvjf',
  149.             'expo-highlights': 'PLtN7wP66Zdw563X-nSBHa6eWpykR-yvLv',
  150.             'knowledge-clips': 'PLtN7wP66Zdw4dzNRNhcfjN8LTw3m7rVUH',
  151.             'shorts': 'PLtN7wP66Zdw6Ok7GJWGU-Ji0tJG9mjGyw',
  152.         }
  153.         const videosNotFound = '{{ 'app.ui.tech_videos.videos_not_found'|trans }}'
  154.     </script>
  155.     {{ parent() }}
  156. {% endblock %}
  157. ""Context/TechVideos/index.html.twig""/srv/open_marketplace/templates/Context/TechVideos/index.html.twig");
  158.     }
  159. }