<?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/modules/News/List/build/sn.html.twig */
class __TwigTemplate_4c0c199164db223e5d7616b4df9f0af6 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/modules/News/List/build/sn.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/modules/News/List/build/sn.html.twig"));
// line 1
echo "<div class=\"cs-module cs-news-list-default\">
<div class=\"cs-module-header\">
<div class=\"cs-module-header-heading\">
<h1 class=\"cs-module-header-title\">";
// line 4
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["globals"] ?? null), "moduleSettings", [], "any", false, true, false, 4), "title", [], "any", true, true, false, 4)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["globals"] ?? null), "moduleSettings", [], "any", false, true, false, 4), "title", [], "any", false, false, false, 4), (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 4, $this->source); })()), "container", [], "any", false, false, false, 4), "name", [], "any", false, false, false, 4) . " News"))) : ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 4, $this->source); })()), "container", [], "any", false, false, false, 4), "name", [], "any", false, false, false, 4) . " News"))), "html", null, true);
echo "</h1>
<p class=\"csm-subscribe\"><a href=\"";
// line 5
echo twig_escape_filter($this->env, (($this->env->getFunction('web_url_subscribe')->getCallable()(twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 5, $this->source); })()), "container", [], "any", false, false, false, 5), twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 5, $this->source); })()), "module", [], "any", false, false, false, 5))) ? ($this->env->getFunction('web_url_subscribe')->getCallable()(twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 5, $this->source); })()), "container", [], "any", false, false, false, 5), twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 5, $this->source); })()), "module", [], "any", false, false, false, 5))) : ("#")), "html_attr");
echo "\">Subscribe</a></p>
</div>
";
// line 7
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 7, $this->source); })()), "moduleSettings", [], "any", false, false, false, 7), "listHtml", [], "any", false, false, false, 7))) {
// line 8
echo " <div class=\"cs-module-header-body\">
";
// line 9
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 9, $this->source); })()), "moduleSettings", [], "any", false, false, false, 9), "listHtml", [], "any", false, false, false, 9);
echo "
</div>
";
}
// line 12
echo " </div>
";
// line 13
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.', 13, $this->source); })())) > 0)) {
// line 14
echo " <div class=\"cs-list-default cs-list-default-thumb-lg\">
";
// line 15
$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.', 15, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 16
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 17
echo " ";
$context["item_opener"] = (twig_get_attribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 17) && twig_get_attribute($this->env, $this->source, $context["item"], "linkExternal", [], "any", false, false, false, 17));
// line 18
echo " <div class=\"cs-li-default\">
";
// line 19
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 19, $this->source); })()), "moduleSettings", [], "any", false, false, false, 19), "thumbnails", [], "any", false, false, false, 19) === true)) {
// line 20
echo " ";
$context["item_feature"] = $this->extensions['App\Twig\Extension\MediaExtension']->decorate_media(twig_get_attribute($this->env, $this->source, $context["item"], "feature", [], "any", false, false, false, 20));
// line 21
echo " <div class=\"cs-li-default-image\">
<img
src=\"";
// line 23
echo twig_escape_filter($this->env, (((isset($context["item_feature"]) || array_key_exists("item_feature", $context) ? $context["item_feature"] : (function () { throw new RuntimeError('Variable "item_feature" does not exist.', 23, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 24
(isset($context["item_feature"]) || array_key_exists("item_feature", $context) ? $context["item_feature"] : (function () { throw new RuntimeError('Variable "item_feature" does not exist.', 24, $this->source); })()), "_urls", [], "any", false, false, false, 24), "tiny", [], "any", false, false, false, 24)) : ($this->extensions['Cms\FileBundle\Service\Twig\UrlExtension']->cms_placeholderUrl("MASKS__RECTANGLE__SMALL", "news"))), "html", null, true);
// line 26
echo "\"
onclick=\"return Campussuite.Tools.jslink('";
// line 27
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.', 27, $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.', 27, $this->source); })())) ? ("true") : ("false"));
echo ");\"
onkeypress=\"return Campussuite.Tools.jslink('";
// line 28
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.', 28, $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.', 28, $this->source); })())) ? ("true") : ("false"));
echo ");\"
tabindex=\"-1\"
alt=\"";
// line 30
(((isset($context["item_feature"]) || array_key_exists("item_feature", $context) ? $context["item_feature"] : (function () { throw new RuntimeError('Variable "item_feature" does not exist.', 30, $this->source); })())) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["item_feature"]) || array_key_exists("item_feature", $context) ? $context["item_feature"] : (function () { throw new RuntimeError('Variable "item_feature" does not exist.', 30, $this->source); })()), "alt", [], "any", false, false, false, 30), "html", null, true))) : (print ("")));
echo "\"
/>
</div>
";
}
// line 34
echo " <div class=\"cs-li-default-wrap\">
<div class=\"cs-li-default-heading\">
<h3 class=\"cs-li-default-title\">
<a href=\"";
// line 37
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.', 37, $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.', 37, $this->source); })())) {
echo " target=\"_blank\"";
}
echo ">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "headline", [], "any", false, false, false, 37), "html", null, true);
echo "</a>
</h3>
<div class=\"cs-li-default-meta\">
<span class=\"cs-li-default-date\">";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->cms_date(twig_get_attribute($this->env, $this->source, $context["item"], "createdAt", [], "any", false, false, false, 40)), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"cs-li-default-body\">
";
// line 44
$context["bdy"] = $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->cms_abstract(twig_get_attribute($this->env, $this->source, $context["item"], "blurb", [], "any", false, false, false, 44), twig_get_attribute($this->env, $this->source, $context["item"], "html", [], "any", false, false, false, 44));
// line 45
echo " <p>";
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.', 45, $this->source); })()), "html", null, true);
echo "</p>
<p class=\"cs-li-default-link\">
<a aria-hidden=\"true\" tabindex=\"-1\" href=\"#\" onclick=\"return Campussuite.Tools.jslink('";
// line 47
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.', 47, $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.', 47, $this->source); })())) ? ("true") : ("false"));
echo ");\">
Read Post
<span class=\"sr-only\">";
// line 49
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "headline", [], "any", false, false, false, 49), "html", null, true);
echo "</span>
</a>
</p>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 56
echo " </div>
";
} else {
// line 58
echo " <div class=\"cs-data-na\">
<p>We're sorry, no posts were found for this listing.</p>
</div>
";
}
// line 62
echo " ";
$this->loadTemplate($this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->cms_theme_override($context, "/modules/includes/pagination.html.twig", twig_get_attribute($this->env, $this->source, (isset($context["globals"]) || array_key_exists("globals", $context) ? $context["globals"] : (function () { throw new RuntimeError('Variable "globals" does not exist.', 62, $this->source); })()), "theme", [], "any", false, false, false, 62)), "@packageFallhaven/modules/News/List/build/sn.html.twig", 62)->display(twig_array_merge($context, ['_args' => []]));
// line 63
echo "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@packageFallhaven/modules/News/List/build/sn.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 189 => 63, 186 => 62, 180 => 58, 176 => 56, 163 => 49, 156 => 47, 150 => 45, 148 => 44, 141 => 40, 129 => 37, 124 => 34, 117 => 30, 110 => 28, 104 => 27, 101 => 26, 99 => 24, 98 => 23, 94 => 21, 91 => 20, 89 => 19, 86 => 18, 83 => 17, 80 => 16, 76 => 15, 73 => 14, 71 => 13, 68 => 12, 62 => 9, 59 => 8, 57 => 7, 52 => 5, 48 => 4, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"cs-module cs-news-list-default\">
<div class=\"cs-module-header\">
<div class=\"cs-module-header-heading\">
<h1 class=\"cs-module-header-title\">{{ globals.moduleSettings.title|default(globals.container.name ~ ' News') }}</h1>
<p class=\"csm-subscribe\"><a href=\"{{- (web_url_subscribe(globals.container, globals.module) ?: '#')|e('html_attr') -}}\">Subscribe</a></p>
</div>
{% if globals.moduleSettings.listHtml is not empty %}
<div class=\"cs-module-header-body\">
{{ globals.moduleSettings.listHtml|raw }}
</div>
{% endif %}
</div>
{% if items|length > 0 %}
<div class=\"cs-list-default cs-list-default-thumb-lg\">
{% for item in items %}
{% set item_link = web_url_view(item, true) ?: '#' %}
{% set item_opener = (item.link and item.linkExternal) %}
<div class=\"cs-li-default\">
{% if globals.moduleSettings.thumbnails is same as(true) %}
{% set item_feature = item.feature|decorate_media %}
<div class=\"cs-li-default-image\">
<img
src=\"{{- item_feature
? item_feature._urls.tiny
: 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=\"{{- item_feature ? item_feature.alt : '' -}}\"
/>
</div>
{% endif %}
<div class=\"cs-li-default-wrap\">
<div class=\"cs-li-default-heading\">
<h3 class=\"cs-li-default-title\">
<a href=\"{{- item_link|e('html_attr') -}}\"{% if item_opener %} target=\"_blank\"{% endif %}>{{ item.headline }}</a>
</h3>
<div class=\"cs-li-default-meta\">
<span class=\"cs-li-default-date\">{{ item.createdAt|cms_date }}</span>
</div>
</div>
<div class=\"cs-li-default-body\">
{% set bdy = cms_abstract(item.blurb, item.html) %}
<p>{{ bdy }}</p>
<p class=\"cs-li-default-link\">
<a aria-hidden=\"true\" tabindex=\"-1\" href=\"#\" onclick=\"return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});\">
Read Post
<span class=\"sr-only\">{{ item.headline }}</span>
</a>
</p>
</div>
</div>
</div>
{% endfor %}
</div>
{% else %}
<div class=\"cs-data-na\">
<p>We're sorry, no posts were found for this listing.</p>
</div>
{% endif %}
{% include cms_theme_override('/modules/includes/pagination.html.twig', globals.theme) %}
</div>
", "@packageFallhaven/modules/News/List/build/sn.html.twig", "/var/www/campussuite/themes/bases/Campussuite2015/modules/News/List/build/sn.html.twig");
}
}