var/cache/dev/twig/61/61e3b1ebf569026ecd9bb4cc273ded06.php line 49

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_ddb30360446967c63ac47e3cc817d219 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 "    </div>
  75. ";
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.     }
  81.     // line 15
  82.     public function block_javascripts($context, array $blocks = [])
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  89.         // line 16
  90.         echo "    <script>
  91.         const ytToken = '";
  92.         // line 17
  93.         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.'17$this->source); })()), "request", [], "any"falsefalsefalse17), "server", [], "any"falsefalsefalse17), "get", [=> "YOUTUBE_API_TOKEN"], "method"falsefalsefalse17), "html"nulltrue);
  94.         echo "';
  95.         const playlistTokens = {
  96.             'hydrogen-leaders': 'PLQJ6EDu9E6Cnab9GS-K0OcL1Bwi6X86d3',
  97.             'educational-talks': 'PLtN7wP66Zdw5ZUCcZw_kBp1drGnTPbvjf',
  98.             'expo-highlights': 'PLtN7wP66Zdw563X-nSBHa6eWpykR-yvLv',
  99.             'knowledge-clips': 'PLtN7wP66Zdw4dzNRNhcfjN8LTw3m7rVUH',
  100.             'shorts': 'PLtN7wP66Zdw6Ok7GJWGU-Ji0tJG9mjGyw',
  101.         }
  102.         const videosNotFound = '";
  103.         // line 25
  104.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.tech_videos.videos_not_found"), "html"nulltrue);
  105.         echo "'
  106.     </script>
  107.     ";
  108.         // line 28
  109.         $this->displayParentBlock("javascripts"$context$blocks);
  110.         echo "
  111. ";
  112.         
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  114.         
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116.     }
  117.     public function getTemplateName()
  118.     {
  119.         return "Context/TechVideos/index.html.twig";
  120.     }
  121.     public function isTraitable()
  122.     {
  123.         return false;
  124.     }
  125.     public function getDebugInfo()
  126.     {
  127.         return array (  130 => 28,  124 => 25,  113 => 17,  110 => 16,  100 => 15,  88 => 11,  85 => 10,  82 => 9,  79 => 8,  77 => 7,  73 => 6,  69 => 4,  59 => 3,  36 => 1,);
  128.     }
  129.     public function getSourceContext()
  130.     {
  131.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  132. {% block content %}
  133.     <div class=\"tech-videos-container\">
  134.         {{ render(path('bitbag_sylius_cms_plugin_shop_media_index_by_section_code', {'sectionCode' : 'tech_videos', 'template' : 'Context/TechVideos/topVideosCarousel.html.twig'})) }}
  135.         {% include 'Context/TechVideos/paragraphSection.html.twig' %}
  136.         {% include 'Context/TechVideos/playlists.html.twig' %}
  137.         {% include 'Context/TechVideos/bookMeetingBanner.html.twig' %}
  138.         {% include 'Context/TechVideos/quoteBanner.html.twig' %}
  139.     </div>
  140. {% endblock %}
  141. {% block javascripts %}
  142.     <script>
  143.         const ytToken = '{{ app.request.server.get('YOUTUBE_API_TOKEN') }}';
  144.         const playlistTokens = {
  145.             'hydrogen-leaders': 'PLQJ6EDu9E6Cnab9GS-K0OcL1Bwi6X86d3',
  146.             'educational-talks': 'PLtN7wP66Zdw5ZUCcZw_kBp1drGnTPbvjf',
  147.             'expo-highlights': 'PLtN7wP66Zdw563X-nSBHa6eWpykR-yvLv',
  148.             'knowledge-clips': 'PLtN7wP66Zdw4dzNRNhcfjN8LTw3m7rVUH',
  149.             'shorts': 'PLtN7wP66Zdw6Ok7GJWGU-Ji0tJG9mjGyw',
  150.         }
  151.         const videosNotFound = '{{ 'app.ui.tech_videos.videos_not_found'|trans }}'
  152.     </script>
  153.     {{ parent() }}
  154. {% endblock %}
  155. ""Context/TechVideos/index.html.twig""/srv/open_marketplace/templates/Context/TechVideos/index.html.twig");
  156.     }
  157. }