<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Context/TechVideos/index.html.twig */
class __TwigTemplate_5c5026028c2e48d4e9e944dc5f8fb84d extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Context/TechVideos/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Context/TechVideos/index.html.twig"));
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "Context/TechVideos/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo "
<div class=\"tech-videos-container\">
";
// line 6
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"]));
echo "
";
// line 7
$this->loadTemplate("Context/TechVideos/paragraphSection.html.twig", "Context/TechVideos/index.html.twig", 7)->display($context);
// line 8
echo " ";
$this->loadTemplate("Context/TechVideos/playlists.html.twig", "Context/TechVideos/index.html.twig", 8)->display($context);
// line 9
echo " ";
$this->loadTemplate("Context/TechVideos/bookMeetingBanner.html.twig", "Context/TechVideos/index.html.twig", 9)->display($context);
// line 10
echo " ";
$this->loadTemplate("Context/TechVideos/quoteBanner.html.twig", "Context/TechVideos/index.html.twig", 10)->display($context);
// line 11
echo " ";
$this->loadTemplate("@SyliusShop/Common/Sections/digitalEcosystem.html.twig", "Context/TechVideos/index.html.twig", 11)->display($context);
// line 12
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 17
echo " <script>
const ytToken = '";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 18), "server", [], "any", false, false, false, 18), "get", [0 => "YOUTUBE_API_TOKEN"], "method", false, false, false, 18), "html", null, true);
echo "';
const playlistTokens = {
'educational-talks': 'PLtN7wP66Zdw5ZUCcZw_kBp1drGnTPbvjf',
'expo-highlights': 'PLtN7wP66Zdw563X-nSBHa6eWpykR-yvLv',
'knowledge-clips': 'PLtN7wP66Zdw4dzNRNhcfjN8LTw3m7rVUH',
'shorts': 'PLtN7wP66Zdw6Ok7GJWGU-Ji0tJG9mjGyw',
}
const videosNotFound = '";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.tech_videos.videos_not_found"), "html", null, true);
echo "'
</script>
";
// line 28
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Context/TechVideos/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% block content %}
<div class=\"tech-videos-container\">
{{ render(path('bitbag_sylius_cms_plugin_shop_media_index_by_section_code', {'sectionCode' : 'tech_videos', 'template' : 'Context/TechVideos/topVideosCarousel.html.twig'})) }}
{% include 'Context/TechVideos/paragraphSection.html.twig' %}
{% include 'Context/TechVideos/playlists.html.twig' %}
{% include 'Context/TechVideos/bookMeetingBanner.html.twig' %}
{% include 'Context/TechVideos/quoteBanner.html.twig' %}
{% include '@SyliusShop/Common/Sections/digitalEcosystem.html.twig' %}
</div>
{% endblock %}
{% block javascripts %}
<script>
const ytToken = '{{ app.request.server.get('YOUTUBE_API_TOKEN') }}';
const playlistTokens = {
'educational-talks': 'PLtN7wP66Zdw5ZUCcZw_kBp1drGnTPbvjf',
'expo-highlights': 'PLtN7wP66Zdw563X-nSBHa6eWpykR-yvLv',
'knowledge-clips': 'PLtN7wP66Zdw4dzNRNhcfjN8LTw3m7rVUH',
'shorts': 'PLtN7wP66Zdw6Ok7GJWGU-Ji0tJG9mjGyw',
}
const videosNotFound = '{{ 'app.ui.tech_videos.videos_not_found'|trans }}'
</script>
{{ parent() }}
{% endblock %}
", "Context/TechVideos/index.html.twig", "/srv/open_marketplace/templates/Context/TechVideos/index.html.twig");
}
}