<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* @PumukitWebTV/Resources/template_video.html.twig */
class __TwigTemplate_661d909865ce00f53b3f5e6eb7f8e6e0 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "@PumukitWebTV/Resources/template_video.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PumukitWebTV/Resources/template_video.html.twig"));
// line 1
if ((($tmp = !array_key_exists("videoPath", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 2
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 2, $this->source); })()), "isPublished", [], "any", false, false, false, 2)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 3
yield " ";
$context["videoPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pumukit_webtv_multimediaobject_index", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 3, $this->source); })()), "id", [], "any", false, false, false, 3)]);
// line 4
yield " ";
} else {
// line 5
yield " ";
$context["videoPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pumukit_webtv_multimediaobject_magicindex", ["secret" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 5, $this->source); })()), "secret", [], "any", false, false, false, 5)]);
// line 6
yield " ";
}
}
// line 8
$context["videoTitle"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["object"] ?? null), "title", [], "any", true, true, false, 8)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 8, $this->source); })()), "title", [], "any", false, false, false, 8), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No title"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No title")));
// line 9
$context["seriesTitle"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["object"] ?? null), "getSeriesTitle", [], "method", true, true, false, 9)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 9, $this->source); })()), "getSeriesTitle", [], "method", false, false, false, 9), "")) : (""));
// line 10
yield "
<div class=\"";
// line 11
if ((($tmp = $this->extensions['Pumukit\NewAdminBundle\Twig\PumukitAdminExtension']->isNaked($this->env)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield "col-xs-6";
} else {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Pumukit\WebTVBundle\Twig\BootstrapExtension']->getCols(((array_key_exists("objectByCol", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["objectByCol"]) || array_key_exists("objectByCol", $context) ? $context["objectByCol"] : (function () { throw new RuntimeError('Variable "objectByCol" does not exist.', 11, $this->source); })()), 1)) : (1))), "html", null, true);
}
yield " image_representation\">
<div class=\"thumbnail\">
<a class=\"multimediaobject ";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 13, $this->source); })()), "getStringType", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 13, $this->source); })()), "getType", [], "method", false, false, false, 13)], "method", false, false, false, 13)), "html", null, true);
yield "\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["videoPath"]) || array_key_exists("videoPath", $context) ? $context["videoPath"] : (function () { throw new RuntimeError('Variable "videoPath" does not exist.', 13, $this->source); })()), "html", null, true);
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["videoTitle"]) || array_key_exists("videoTitle", $context) ? $context["videoTitle"] : (function () { throw new RuntimeError('Variable "videoTitle" does not exist.', 13, $this->source); })()), "html", null, true);
yield "\">
<div>
<div class=\"embed-responsive embed-responsive-16by9\">
<div class=\"embed-responsive-item text-center\">
<img alt=\"";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["videoTitle"]) || array_key_exists("videoTitle", $context) ? $context["videoTitle"] : (function () { throw new RuntimeError('Variable "videoTitle" does not exist.', 17, $this->source); })()), "html", null, true);
yield "\" src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Pumukit\WebTVBundle\Twig\PumukitExtension']->getFirstUrlPicFilter((isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 17, $this->source); })())), "html", null, true);
yield "\" class=\"img-responsive img_adapter_4_3 dynamic_image\"
data-dynamic-pic=\"";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Pumukit\WebTVBundle\Twig\PumukitExtension']->getDynamicPic((isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 18, $this->source); })()), true), "html", null, true);
yield "\"
data-static-pic=\"";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Pumukit\WebTVBundle\Twig\PumukitExtension']->getFirstUrlPicFilter((isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 19, $this->source); })())), "html", null, true);
yield "\"
/>
";
// line 21
if ((array_key_exists("show_video_options", $context) && ((isset($context["show_video_options"]) || array_key_exists("show_video_options", $context) ? $context["show_video_options"] : (function () { throw new RuntimeError('Variable "show_video_options" does not exist.', 21, $this->source); })()) === true))) {
// line 22
yield " <div class=\"multimedia_object_edit_button\" data-multimedia-object=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 22, $this->source); })()), "id", [], "any", false, false, false, 22), "html", null, true);
yield "\" data-multimedia-object-status=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 22, $this->source); })()), "getStatus", [], "method", false, false, false, 22), "html", null, true);
yield "\" data-multimedia-object-title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 22, $this->source); })()), "getTitle", [], "method", false, false, false, 22), "html", null, true);
yield "\">
<i class=\"fa fa-cog fa-2x\"></i>
</div>
";
}
// line 26
yield "
";
// line 27
if ((((array_key_exists("show_inside_video_duration", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["show_inside_video_duration"]) || array_key_exists("show_inside_video_duration", $context) ? $context["show_inside_video_duration"] : (function () { throw new RuntimeError('Variable "show_inside_video_duration" does not exist.', 27, $this->source); })()), true)) : (true)) && $this->extensions['Pumukit\WebTVBundle\Twig\PumukitExtension']->getMmobjDuration((isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 27, $this->source); })())))) {
// line 28
yield " <span class=\"inside-video-duration\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Pumukit\WebTVBundle\Twig\PumukitExtension']->getDurationString($this->extensions['Pumukit\WebTVBundle\Twig\PumukitExtension']->getMmobjDuration((isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 28, $this->source); })()))), "html", null, true);
yield "</span>
";
}
// line 30
yield " </div>
</div>
";
// line 32
if ((array_key_exists("show_info", $context) && (isset($context["show_info"]) || array_key_exists("show_info", $context) ? $context["show_info"] : (function () { throw new RuntimeError('Variable "show_info" does not exist.', 32, $this->source); })()))) {
// line 33
yield " <p class=\"title_image_representation\">
";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["videoTitle"]) || array_key_exists("videoTitle", $context) ? $context["videoTitle"] : (function () { throw new RuntimeError('Variable "videoTitle" does not exist.', 34, $this->source); })()), "html", null, true);
yield "
</p>
";
}
// line 37
yield " </div>
</a>
";
// line 40
if ((array_key_exists("show_info", $context) && (isset($context["show_info"]) || array_key_exists("show_info", $context) ? $context["show_info"] : (function () { throw new RuntimeError('Variable "show_info" does not exist.', 40, $this->source); })()))) {
// line 41
yield " <ul class=\"caption list-group\">
";
// line 42
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 42, $this->source); })()), "line2", [], "any", false, false, false, 42))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 43
yield " <li class=\"second_line_image_representation\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 43, $this->source); })()), "line2", [], "any", false, false, false, 43), "html", null, true);
yield "</li>
";
} elseif ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 44
(isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 44, $this->source); })()), "subtitle", [], "any", false, false, false, 44))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 45
yield " <li class=\"second_line_image_representation\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 45, $this->source); })()), "subtitle", [], "any", false, false, false, 45), "html", null, true);
yield "</li>
";
} elseif ((($tmp = // line 46
(isset($context["seriesTitle"]) || array_key_exists("seriesTitle", $context) ? $context["seriesTitle"] : (function () { throw new RuntimeError('Variable "seriesTitle" does not exist.', 46, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 47
yield " <li class=\"list-group-item list-group-item-custom\">
<a href=\"";
// line 48
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pumukit_webtv_series_index", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 48, $this->source); })()), "getSeries", [], "method", false, false, false, 48), "getId", [], "method", false, false, false, 48)]), "html", null, true);
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["seriesTitle"]) || array_key_exists("seriesTitle", $context) ? $context["seriesTitle"] : (function () { throw new RuntimeError('Variable "seriesTitle" does not exist.', 48, $this->source); })()), "html", null, true);
yield "\">
<p class=\"second_line_image_representation\" title=\"";
// line 49
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("i18n.one.Series") . " ") . (isset($context["seriesTitle"]) || array_key_exists("seriesTitle", $context) ? $context["seriesTitle"] : (function () { throw new RuntimeError('Variable "seriesTitle" does not exist.', 49, $this->source); })())), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["seriesTitle"]) || array_key_exists("seriesTitle", $context) ? $context["seriesTitle"] : (function () { throw new RuntimeError('Variable "seriesTitle" does not exist.', 49, $this->source); })()), "html", null, true);
yield "</p>
</a>
</li>
";
}
// line 53
yield "
";
// line 54
if ((($tmp = ((array_key_exists("show_info", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["show_info"]) || array_key_exists("show_info", $context) ? $context["show_info"] : (function () { throw new RuntimeError('Variable "show_info" does not exist.', 54, $this->source); })()), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 55
yield " ";
if ((array_key_exists("with_publicdate", $context) && (isset($context["with_publicdate"]) || array_key_exists("with_publicdate", $context) ? $context["with_publicdate"] : (function () { throw new RuntimeError('Variable "with_publicdate" does not exist.', 55, $this->source); })()))) {
// line 56
yield " <li class=\"list-group-item list-group-item-custom date_and_visits text-left\">
";
// line 57
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 57, $this->source); })()), "publicDate", [], "any", false, false, false, 57), "medium", "none", "", null, "gregorian", 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.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "getLocale", [], "method", false, false, false, 57)), "html", null, true);
yield "
</li>
";
} else {
// line 60
yield " ";
if (((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.', 60, $this->source); })()), "request", [], "any", false, false, false, 60), "attributes", [], "any", false, false, false, 60), "get", ["_route"], "method", false, false, false, 60) != "pumukit_webtv_announces_latestuploads_pager") && !CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 60, $this->source); })()), "isExternalType", [], "method", false, false, false, 60))) {
// line 61
yield " <li class=\"list-group-item list-group-item-custom date_and_visits text-left language\">
";
// line 62
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Language", [], "messages");
yield ":
";
// line 63
$context["lang"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["object"] ?? null), "getDisplayTrack", [], "method", false, true, false, 63), "getLanguage", [], "method", true, true, false, 63)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 63, $this->source); })()), "getDisplayTrack", [], "method", false, false, false, 63), "getLanguage", [], "method", false, false, false, 63), 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.', 63, $this->source); })()), "request", [], "any", false, false, false, 63), "getLocale", [], "method", false, false, false, 63))) : (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.', 63, $this->source); })()), "request", [], "any", false, false, false, 63), "getLocale", [], "method", false, false, false, 63)));
// line 64
yield " ";
yield (((($tmp = $this->extensions['Pumukit\NewAdminBundle\Twig\PumukitAdminExtension']->isAddonLanguage((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 64, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Pumukit\NewAdminBundle\Twig\PumukitAdminExtension']->getLanguageName((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 64, $this->source); })())), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $this->extensions['Twig\Extra\Intl\IntlExtension']->getLanguageName((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 64, $this->source); })()))), "html", null, true)));
yield "
</li>
";
}
// line 67
yield " <li class=\"list-group-item list-group-item-custom text-right date_and_visits\">
";
// line 68
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Viewed", [], "messages");
yield ":
";
// line 69
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 69, $this->source); })()), "getNumview", [], "method", false, false, false, 69), "html", null, true);
yield "
";
// line 70
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("{0}times|{1}time|]1,Inf]times", ["%count%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 70, $this->source); })()), "getNumview", [], "method", false, false, false, 70)]), "html", null, true);
yield "
</li>
";
}
// line 73
yield " ";
}
// line 74
yield " </ul>
";
}
// line 76
yield " </div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@PumukitWebTV/Resources/template_video.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 252 => 76, 248 => 74, 245 => 73, 239 => 70, 235 => 69, 231 => 68, 228 => 67, 221 => 64, 219 => 63, 215 => 62, 212 => 61, 209 => 60, 203 => 57, 200 => 56, 197 => 55, 195 => 54, 192 => 53, 183 => 49, 177 => 48, 174 => 47, 172 => 46, 167 => 45, 165 => 44, 160 => 43, 158 => 42, 155 => 41, 153 => 40, 148 => 37, 142 => 34, 139 => 33, 137 => 32, 133 => 30, 127 => 28, 125 => 27, 122 => 26, 110 => 22, 108 => 21, 103 => 19, 99 => 18, 93 => 17, 82 => 13, 73 => 11, 70 => 10, 68 => 9, 66 => 8, 62 => 6, 59 => 5, 56 => 4, 53 => 3, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if videoPath is not defined %}
{% if object.isPublished %}
{% set videoPath = path('pumukit_webtv_multimediaobject_index', {'id': object.id}) %}
{% else %}
{% set videoPath = path('pumukit_webtv_multimediaobject_magicindex', {'secret': object.secret}) %}
{% endif %}
{% endif %}
{% set videoTitle = object.title | default('No title'|trans) %}
{% set seriesTitle = object.getSeriesTitle()|default('') %}
<div class=\"{% if is_naked() %}col-xs-6{% else %}{{ col_calculator(objectByCol|default(1)) }}{% endif %} image_representation\">
<div class=\"thumbnail\">
<a class=\"multimediaobject {{ object.getStringType(object.getType())|lower }}\" href=\"{{ videoPath }}\" title=\"{{ videoTitle }}\">
<div>
<div class=\"embed-responsive embed-responsive-16by9\">
<div class=\"embed-responsive-item text-center\">
<img alt=\"{{ videoTitle }}\" src=\"{{ object|first_url_pic() }}\" class=\"img-responsive img_adapter_4_3 dynamic_image\"
data-dynamic-pic=\"{{ object|first_dynamic_pic(true) }}\"
data-static-pic=\"{{ object|first_url_pic() }}\"
/>
{% if show_video_options is defined and show_video_options is same as (true)%}
<div class=\"multimedia_object_edit_button\" data-multimedia-object=\"{{ object.id }}\" data-multimedia-object-status=\"{{ object.getStatus() }}\" data-multimedia-object-title=\"{{ object.getTitle() }}\">
<i class=\"fa fa-cog fa-2x\"></i>
</div>
{% endif %}
{% if show_inside_video_duration|default(true) and mmobj_duration(object) %}
<span class=\"inside-video-duration\">{{ mmobj_duration(object) | duration_string }}</span>
{% endif %}
</div>
</div>
{% if show_info is defined and show_info %}
<p class=\"title_image_representation\">
{{ videoTitle }}
</p>
{% endif %}
</div>
</a>
{% if show_info is defined and show_info %}
<ul class=\"caption list-group\">
{% if object.line2 is not empty %}
<li class=\"second_line_image_representation\">{{ object.line2 }}</li>
{% elseif object.subtitle is not empty %}
<li class=\"second_line_image_representation\">{{ object.subtitle }}</li>
{% elseif seriesTitle %}
<li class=\"list-group-item list-group-item-custom\">
<a href=\"{{ path('pumukit_webtv_series_index', {'id': object.getSeries().getId() }) }}\" title=\"{{ seriesTitle }}\">
<p class=\"second_line_image_representation\" title=\"{{ \"i18n.one.Series\"|trans ~ \" \" ~ seriesTitle }}\">{{ seriesTitle }}</p>
</a>
</li>
{% endif %}
{% if show_info|default(false) %}
{% if with_publicdate is defined and with_publicdate %}
<li class=\"list-group-item list-group-item-custom date_and_visits text-left\">
{{ object.publicDate| format_datetime('medium','none',locale=app.request.getLocale()) }}
</li>
{% else %}
{% if app.request.attributes.get('_route') != 'pumukit_webtv_announces_latestuploads_pager' and not object.isExternalType() %}
<li class=\"list-group-item list-group-item-custom date_and_visits text-left language\">
{% trans %}Language{% endtrans %}:
{% set lang = object.getDisplayTrack().getLanguage()|default(app.request.getLocale()) %}
{{ is_addon_language(lang) ? lang | language_name_custom : lang | language_name | capitalize }}
</li>
{% endif %}
<li class=\"list-group-item list-group-item-custom text-right date_and_visits\">
{% trans %}Viewed{% endtrans %}:
{{ object.getNumview() }}
{{ \"{0}times|{1}time|]1,Inf]times\"|trans({'%count%': object.getNumview()}) }}
</li>
{% endif %}
{% endif %}
</ul>
{% endif %}
</div>
</div>
", "@PumukitWebTV/Resources/template_video.html.twig", "/srv/pumukit/src/Pumukit/WebTVBundle/Resources/views/Resources/template_video.html.twig");
}
}