<?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;
/* @packageFallhaven/widgets/FeedList/build/tpl.html.twig */
class __TwigTemplate_054c92fe68130bbe974baf49b17370eb extends \Twig\Template
{
private $source;
private $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 = [])
{
$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", "@packageFallhaven/widgets/FeedList/build/tpl.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@packageFallhaven/widgets/FeedList/build/tpl.html.twig"));
// line 1
echo "<style type=\"text/css\">
.cs-list-default.cs-list-default-thumb-sm .cs-li-date-block {
width: 64px;
}
.cs-list-default.cs-list-default-thumb-md .cs-li-date-block {
width: 120px;
}
.cs-list-default.cs-list-default-thumb-lg .cs-li-date-block {
width: 250px;
}
</style>
<div class=\"csmw cs-feed-list-default\">
";
// line 13
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 13, $this->source); })()), "heading", [], "any", false, false, false, 13))) {
// line 14
echo " <div class=\"cs-widget-header\">
<div class=\"cs-widget-header-heading\">
<";
// line 16
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "headingSize", [], "any", true, true, false, 16)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "headingSize", [], "any", false, false, false, 16), "h2")) : ("h2")), "html", null, true);
echo " class=\"cs-widget-header-title\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 16, $this->source); })()), "heading", [], "any", false, false, false, 16), "html", null, true);
echo "</";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "headingSize", [], "any", true, true, false, 16)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "headingSize", [], "any", false, false, false, 16), "h2")) : ("h2")), "html", null, true);
echo ">
</div>
";
// line 18
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 18, $this->source); })()), "description", [], "any", false, false, false, 18))) {
// line 19
echo " <div class=\"cs-widget-header-body\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 19, $this->source); })()), "description", [], "any", false, false, false, 19), "html", null, true);
echo "</div>
";
}
// line 21
echo " </div>
";
}
// line 23
echo " ";
if ((twig_length_filter($this->env, (isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 23, $this->source); })())) > 0)) {
// line 24
echo " <div class=\"cs-list-default";
if ( !(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 24, $this->source); })()), "thumbnails", [], "any", false, false, false, 24) === "na")) {
echo " cs-list-default-thumb-";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "thumbnails", [], "any", true, true, false, 24)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "thumbnails", [], "any", false, false, false, 24), "md")) : ("md")), "html", null, true);
}
echo "\">
";
// line 25
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 25, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 26
echo " ";
$context["item"] = twig_get_attribute($this->env, $this->source, $context["item"], "entry", [], "any", false, false, false, 26);
// line 27
echo " ";
$context["school"] = $this->extensions['App\Twig\Extension\MiscellaneousExtension']->schoolify(twig_get_attribute($this->env, $this->source, $context["item"], "department", [], "any", false, false, false, 27));
// line 28
echo " ";
$context["item_link"] = (($this->env->getFunction('web_url_view')->getCallable()($context["item"], true)) ? ($this->env->getFunction('web_url_view')->getCallable()($context["item"], true)) : ("#"));
// line 29
echo " ";
$context["item_opener"] = (twig_get_attribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 29) && twig_get_attribute($this->env, $this->source, $context["item"], "linkExternal", [], "any", false, false, false, 29));
// line 30
echo " <div class=\"cs-li-default\">
";
// line 31
if ( !(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 31, $this->source); })()), "thumbnails", [], "any", false, false, false, 31) === "na")) {
// line 32
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 32) == "event")) {
// line 33
echo " <div class=\"cs-li-date-block\">
<div class=\"cs-li-date-block-month\">";
// line 34
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->cms_dt(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "object", [], "any", false, false, false, 34), "startsAt", [], "any", false, false, false, 34), "M")), "html", null, true);
echo "</div>
<div class=\"cs-li-date-block-date\">";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->cms_dt(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "object", [], "any", false, false, false, 35), "stopsAt", [], "any", false, false, false, 35), "j"), "html", null, true);
echo "</div>
</div>
";
} else {
// line 38
echo " <div class=\"cs-li-default-image\">
";
// line 39
$context["feature"] = $this->extensions['App\Twig\Extension\MediaExtension']->decorate_media(twig_get_attribute($this->env, $this->source, $context["item"], "feature", [], "any", false, false, false, 39));
// line 40
echo " <img
src=\"";
// line 41
echo twig_escape_filter($this->env, (($this->extensions['App\Twig\Extension\MediaExtension']->decorate_media((isset($context["feature"]) || array_key_exists("feature", $context) ? $context["feature"] : (function () { throw new RuntimeError('Variable "feature" does not exist.', 41, $this->source); })()))) ? (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 42
($context["feature"] ?? null), "_urls", [], "any", false, true, false, 42), "tiny", [], "any", true, true, false, 42)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["feature"]) || array_key_exists("feature", $context) ? $context["feature"] : (function () { throw new RuntimeError('Variable "feature" does not exist.', 42, $this->source); })()), "_urls", [], "any", false, false, false, 42), "tiny", [], "any", false, false, false, 42)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["feature"]) || array_key_exists("feature", $context) ? $context["feature"] : (function () { throw new RuntimeError('Variable "feature" does not exist.', 42, $this->source); })()), "_urls", [], "any", false, false, false, 42), "thumb", [], "any", false, false, false, 42)))) : ($this->extensions['Cms\FileBundle\Service\Twig\UrlExtension']->cms_placeholderUrl("MASKS__RECTANGLE__SMALL", "news"))), "html", null, true);
// line 44
echo "\"
onclick=\"return Campussuite.Tools.jslink('";
// line 45
echo twig_escape_filter($this->env, twig_escape_filter($this->env, (isset($context["item_link"]) || array_key_exists("item_link", $context) ? $context["item_link"] : (function () { throw new RuntimeError('Variable "item_link" does not exist.', 45, $this->source); })()), "js"), "html", null, true);
echo "', ";
echo (((isset($context["item_opener"]) || array_key_exists("item_opener", $context) ? $context["item_opener"] : (function () { throw new RuntimeError('Variable "item_opener" does not exist.', 45, $this->source); })())) ? ("true") : ("false"));
echo ");\"
onkeypress=\"return Campussuite.Tools.jslink('";
// line 46
echo twig_escape_filter($this->env, twig_escape_filter($this->env, (isset($context["item_link"]) || array_key_exists("item_link", $context) ? $context["item_link"] : (function () { throw new RuntimeError('Variable "item_link" does not exist.', 46, $this->source); })()), "js"), "html", null, true);
echo "', ";
echo (((isset($context["item_opener"]) || array_key_exists("item_opener", $context) ? $context["item_opener"] : (function () { throw new RuntimeError('Variable "item_opener" does not exist.', 46, $this->source); })())) ? ("true") : ("false"));
echo ");\"
tabindex=\"-1\"
alt=\"";
// line 48
(((isset($context["feature"]) || array_key_exists("feature", $context) ? $context["feature"] : (function () { throw new RuntimeError('Variable "feature" does not exist.', 48, $this->source); })())) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["feature"]) || array_key_exists("feature", $context) ? $context["feature"] : (function () { throw new RuntimeError('Variable "feature" does not exist.', 48, $this->source); })()), "alt", [], "any", false, false, false, 48), "html", null, true))) : (print ("")));
echo "\"
/>
</div>
";
}
// line 52
echo " ";
}
// line 53
echo " <div class=\"cs-li-default-wrap\">
<div class=\"cs-li-default-heading\">
<";
// line 55
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "titleSizes", [], "any", true, true, false, 55)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "titleSizes", [], "any", false, false, false, 55), "h3")) : ("h3")), "html", null, true);
echo " class=\"cs-li-default-title\">
<a href=\"";
// line 56
echo twig_escape_filter($this->env, (isset($context["item_link"]) || array_key_exists("item_link", $context) ? $context["item_link"] : (function () { throw new RuntimeError('Variable "item_link" does not exist.', 56, $this->source); })()), "html_attr");
echo "\"";
if ((isset($context["item_opener"]) || array_key_exists("item_opener", $context) ? $context["item_opener"] : (function () { throw new RuntimeError('Variable "item_opener" does not exist.', 56, $this->source); })())) {
echo " target=\"_blank\"";
}
echo ">";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 57), "html", null, true);
// line 58
echo "</a>
</";
// line 59
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "titleSizes", [], "any", true, true, false, 59)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "titleSizes", [], "any", false, false, false, 59), "h3")) : ("h3")), "html", null, true);
echo ">
";
// line 60
if ((twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 60, $this->source); })()), "timestamps", [], "any", false, false, false, 60) === true)) {
// line 61
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 61) == "event")) {
// line 62
echo " ";
$context["dts"] = $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->cms_calendar_span(twig_get_attribute($this->env, $this->source, $context["item"], "object", [], "any", false, false, false, 62), ["dateFormat" => "M j, Y", "timeFormat" => "g:i A"]);
// line 66
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 66, $this->source); })()), "hasStartOrEnd", [], "any", false, false, false, 66)) {
// line 67
echo " ";
$this->loadTemplate($this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->cms_theme_override($context, "/includes/calendarEventItem.html.twig"), "@packageFallhaven/widgets/FeedList/build/tpl.html.twig", 67)->display(twig_array_merge(twig_array_merge($context, ["dts" => // line 68
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 68, $this->source); })()), "primaryClass" => "cs-li-default-meta", "startLabel" => ((twig_get_attribute($this->env, $this->source, // line 70
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 70, $this->source); })()), "multiday", [], "any", false, false, false, 70)) ? ("Start:") : (null)), "endLabel" => ((twig_get_attribute($this->env, $this->source, // line 71
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 71, $this->source); })()), "multiday", [], "any", false, false, false, 71)) ? ("End:") : (null)), "showStartDate" => ((twig_get_attribute($this->env, $this->source, // line 72
(isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 72, $this->source); })()), "thumbnails", [], "any", false, false, false, 72) === "na") || twig_get_attribute($this->env, $this->source, (isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 72, $this->source); })()), "multiday", [], "any", false, false, false, 72)), "showEndDate" => twig_get_attribute($this->env, $this->source, // line 73
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 73, $this->source); })()), "multiday", [], "any", false, false, false, 73), "separator" => ((( !(twig_get_attribute($this->env, $this->source, // line 74
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 74, $this->source); })()), "allday", [], "any", false, false, false, 74) || twig_get_attribute($this->env, $this->source, (isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 74, $this->source); })()), "multiday", [], "any", false, false, false, 74)) && twig_get_attribute($this->env, $this->source, (isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 74, $this->source); })()), "hasStartTimeAndEndTime", [], "any", false, false, false, 74))) ? ("-") : (null))]), ['_args' => twig_to_array(["dts" => // line 68
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 68, $this->source); })()), "primaryClass" => "cs-li-default-meta", "startLabel" => ((twig_get_attribute($this->env, $this->source, // line 70
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 70, $this->source); })()), "multiday", [], "any", false, false, false, 70)) ? ("Start:") : (null)), "endLabel" => ((twig_get_attribute($this->env, $this->source, // line 71
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 71, $this->source); })()), "multiday", [], "any", false, false, false, 71)) ? ("End:") : (null)), "showStartDate" => ((twig_get_attribute($this->env, $this->source, // line 72
(isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 72, $this->source); })()), "thumbnails", [], "any", false, false, false, 72) === "na") || twig_get_attribute($this->env, $this->source, (isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 72, $this->source); })()), "multiday", [], "any", false, false, false, 72)), "showEndDate" => twig_get_attribute($this->env, $this->source, // line 73
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 73, $this->source); })()), "multiday", [], "any", false, false, false, 73), "separator" => ((( !(twig_get_attribute($this->env, $this->source, // line 74
(isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 74, $this->source); })()), "allday", [], "any", false, false, false, 74) || twig_get_attribute($this->env, $this->source, (isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 74, $this->source); })()), "multiday", [], "any", false, false, false, 74)) && twig_get_attribute($this->env, $this->source, (isset($context["dts"]) || array_key_exists("dts", $context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.', 74, $this->source); })()), "hasStartTimeAndEndTime", [], "any", false, false, false, 74))) ? ("-") : (null))])]));
// line 76
echo " ";
}
// line 77
echo " ";
} else {
// line 78
echo " <div class=\"cs-li-default-meta\">
<span class=\"cs-li-default-date\">";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->cms_date(twig_get_attribute($this->env, $this->source, $context["item"], "timestamp", [], "any", false, false, false, 79)), "html", null, true);
echo "</span>
</div>
";
}
// line 82
echo " ";
}
// line 83
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 83, $this->source); })()), "district", [], "any", false, false, false, 83) === true)) {
// line 84
echo " <div class=\"cs-li-default-meta\">
<span class=\"cs-li-default-date\">
<small>";
// line 86
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["school"]) || array_key_exists("school", $context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.', 86, $this->source); })()), "name", [], "any", false, false, false, 86), "html", null, true);
echo "</small>
</span>
</div>
";
}
// line 90
echo " </div>
";
// line 91
if ((twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 91, $this->source); })()), "teasers", [], "any", false, false, false, 91) === true)) {
// line 92
echo " ";
$context["bdy"] = $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->cms_abstract(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "object", [], "any", false, false, false, 92), "blurb", [], "any", false, false, false, 92), twig_get_attribute($this->env, $this->source, $context["item"], "preview", [], "any", false, false, false, 92));
// line 93
echo " ";
if ( !twig_test_empty((isset($context["bdy"]) || array_key_exists("bdy", $context) ? $context["bdy"] : (function () { throw new RuntimeError('Variable "bdy" does not exist.', 93, $this->source); })()))) {
// line 94
echo " <div class=\"cs-li-default-body\">
<p>";
// line 95
echo twig_escape_filter($this->env, (isset($context["bdy"]) || array_key_exists("bdy", $context) ? $context["bdy"] : (function () { throw new RuntimeError('Variable "bdy" does not exist.', 95, $this->source); })()), "html", null, true);
echo "</p>
";
// line 96
if ((twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 96, $this->source); })()), "readLinks", [], "any", false, false, false, 96) === true)) {
// line 97
echo " <p class=\"cs-li-default-link\">
<a class=\"cs-li-default-more-link\" tabindex=\"-1\" aria-hidden=\"true\" href=\"#\" onclick=\"return Campussuite.Tools.jslink('";
// line 98
echo twig_escape_filter($this->env, twig_escape_filter($this->env, (isset($context["item_link"]) || array_key_exists("item_link", $context) ? $context["item_link"] : (function () { throw new RuntimeError('Variable "item_link" does not exist.', 98, $this->source); })()), "js"), "html", null, true);
echo "', ";
echo (((isset($context["item_opener"]) || array_key_exists("item_opener", $context) ? $context["item_opener"] : (function () { throw new RuntimeError('Variable "item_opener" does not exist.', 98, $this->source); })())) ? ("true") : ("false"));
echo ");\">
Read Story
<span class=\"sr-only\">";
// line 100
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 100), "html", null, true);
echo "</span>
</a>
</p>
";
}
// line 104
echo " </div>
";
}
// line 106
echo " ";
}
// line 107
echo " </div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 110
echo " </div>
";
} else {
// line 112
echo " <div class=\"cs-data-na\">
<p>We're sorry, no stories were found.</p>
</div>
";
}
// line 116
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 116, $this->source); })()), "linkText", [], "any", false, false, false, 116))) {
// line 117
echo " <div class=\"csw-footer\">
";
// line 118
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 118, $this->source); })()), "linkText", [], "any", false, false, false, 118))) {
// line 119
echo " <a href=\"";
echo twig_escape_filter($this->env, (($this->env->getFunction('web_url_landing')->getCallable()((isset($context["department"]) || array_key_exists("department", $context) ? $context["department"] : (function () { throw new RuntimeError('Variable "department" does not exist.', 119, $this->source); })()), "feed")) ? ($this->env->getFunction('web_url_landing')->getCallable()((isset($context["department"]) || array_key_exists("department", $context) ? $context["department"] : (function () { throw new RuntimeError('Variable "department" does not exist.', 119, $this->source); })()), "feed")) : ("#")), "html_attr");
echo "\" class=\"csw-view-more\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 119, $this->source); })()), "linkText", [], "any", false, false, false, 119), "html", null, true);
echo "</a>
";
}
// line 121
echo " </div>
";
}
// line 123
echo "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@packageFallhaven/widgets/FeedList/build/tpl.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 354 => 123, 350 => 121, 342 => 119, 340 => 118, 337 => 117, 334 => 116, 328 => 112, 324 => 110, 308 => 107, 305 => 106, 301 => 104, 294 => 100, 287 => 98, 284 => 97, 282 => 96, 278 => 95, 275 => 94, 272 => 93, 269 => 92, 267 => 91, 264 => 90, 257 => 86, 253 => 84, 250 => 83, 247 => 82, 241 => 79, 238 => 78, 235 => 77, 232 => 76, 230 => 74, 229 => 73, 228 => 72, 227 => 71, 226 => 70, 225 => 68, 224 => 74, 223 => 73, 222 => 72, 221 => 71, 220 => 70, 219 => 68, 217 => 67, 214 => 66, 211 => 62, 208 => 61, 206 => 60, 202 => 59, 199 => 58, 197 => 57, 190 => 56, 186 => 55, 182 => 53, 179 => 52, 172 => 48, 165 => 46, 159 => 45, 156 => 44, 154 => 42, 153 => 41, 150 => 40, 148 => 39, 145 => 38, 139 => 35, 135 => 34, 132 => 33, 129 => 32, 127 => 31, 124 => 30, 121 => 29, 118 => 28, 115 => 27, 112 => 26, 95 => 25, 87 => 24, 84 => 23, 80 => 21, 74 => 19, 72 => 18, 63 => 16, 59 => 14, 57 => 13, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<style type=\"text/css\">
.cs-list-default.cs-list-default-thumb-sm .cs-li-date-block {
width: 64px;
}
.cs-list-default.cs-list-default-thumb-md .cs-li-date-block {
width: 120px;
}
.cs-list-default.cs-list-default-thumb-lg .cs-li-date-block {
width: 250px;
}
</style>
<div class=\"csmw cs-feed-list-default\">
{% if _widget.heading is not empty %}
<div class=\"cs-widget-header\">
<div class=\"cs-widget-header-heading\">
<{{ _widget.headingSize|default('h2') }} class=\"cs-widget-header-title\">{{ _widget.heading }}</{{ _widget.headingSize|default('h2') }}>
</div>
{% if _widget.description is not empty %}
<div class=\"cs-widget-header-body\">{{ _widget.description }}</div>
{% endif %}
</div>
{% endif %}
{% if items|length > 0 %}
<div class=\"cs-list-default{% if _widget.thumbnails is not same as('na') %} cs-list-default-thumb-{{ _widget.thumbnails|default('md') }}{% endif %}\">
{% for item in items %}
{% set item = item.entry %}
{% set school = item.department|schoolify %}
{% set item_link = web_url_view(item, true) ?: '#' %}
{% set item_opener = (item.link and item.linkExternal) %}
<div class=\"cs-li-default\">
{% if _widget.thumbnails is not same as('na') %}
{% if item.type == 'event' %}
<div class=\"cs-li-date-block\">
<div class=\"cs-li-date-block-month\">{{ item.object.startsAt|cms_dt('M')|upper }}</div>
<div class=\"cs-li-date-block-date\">{{ item.object.stopsAt|cms_dt('j') }}</div>
</div>
{% else %}
<div class=\"cs-li-default-image\">
{% set feature = item.feature|decorate_media %}
<img
src=\"{{- feature|decorate_media
? (feature._urls.tiny is defined) ? feature._urls.tiny : feature._urls.thumb
: cms_placeholderUrl('MASKS__RECTANGLE__SMALL', 'news')
-}}\"
onclick=\"return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});\"
onkeypress=\"return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});\"
tabindex=\"-1\"
alt=\"{{- feature ? feature.alt : '' -}}\"
/>
</div>
{% endif %}
{% endif %}
<div class=\"cs-li-default-wrap\">
<div class=\"cs-li-default-heading\">
<{{ _widget.titleSizes|default('h3') }} class=\"cs-li-default-title\">
<a href=\"{{- item_link|e('html_attr') -}}\"{% if item_opener %} target=\"_blank\"{% endif %}>
{{- item.label -}}
</a>
</{{ _widget.titleSizes|default('h3') }}>
{% if _widget.timestamps is same as(true) %}
{% if item.type == 'event' %}
{% set dts = item.object|cms_calendar_span({
dateFormat: 'M j, Y',
timeFormat: 'g:i A',
}) %}
{% if dts.hasStartOrEnd %}
{% include cms_theme_override('/includes/calendarEventItem.html.twig') with {
dts: dts,
primaryClass: 'cs-li-default-meta',
startLabel: (dts.multiday) ? 'Start:' : null,
endLabel: (dts.multiday) ? 'End:': null,
showStartDate: (_widget.thumbnails is same as('na') or dts.multiday),
showEndDate: (dts.multiday),
separator: ( not (dts.allday or dts.multiday) and dts.hasStartTimeAndEndTime) ? '-' : null,
} %}
{% endif %}
{% else %}
<div class=\"cs-li-default-meta\">
<span class=\"cs-li-default-date\">{{ item.timestamp|cms_date }}</span>
</div>
{% endif %}
{% endif %}
{% if _widget.district is same as(true) %}
<div class=\"cs-li-default-meta\">
<span class=\"cs-li-default-date\">
<small>{{- school.name -}}</small>
</span>
</div>
{% endif %}
</div>
{% if _widget.teasers is same as(true) %}
{% set bdy = cms_abstract(item.object.blurb, item.preview) %}
{% if bdy is not empty %}
<div class=\"cs-li-default-body\">
<p>{{ bdy }}</p>
{% if _widget.readLinks is same as(true) %}
<p class=\"cs-li-default-link\">
<a class=\"cs-li-default-more-link\" tabindex=\"-1\" aria-hidden=\"true\" href=\"#\" onclick=\"return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});\">
Read Story
<span class=\"sr-only\">{{ item.label }}</span>
</a>
</p>
{% endif %}
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endfor %}
</div>
{% else %}
<div class=\"cs-data-na\">
<p>We're sorry, no stories were found.</p>
</div>
{% endif %}
{% if _widget.linkText is not empty %}
<div class=\"csw-footer\">
{% if _widget.linkText is not empty %}
<a href=\"{{- (web_url_landing(department, 'feed') ?: '#')|e('html_attr') -}}\" class=\"csw-view-more\">{{ _widget.linkText }}</a>
{% endif %}
</div>
{% endif %}
</div>
", "@packageFallhaven/widgets/FeedList/build/tpl.html.twig", "/var/www/campussuite/themes/bases/Campussuite2015/widgets/FeedList/build/tpl.html.twig");
}
}