var/cache/test/twig/8e/8e44b95620bb22e0c55fc604ca5219de.php line 148

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. /* @packageFallhaven/modules/News/List/build/sn.html.twig */
  14. class __TwigTemplate_4c0c199164db223e5d7616b4df9f0af6 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@packageFallhaven/modules/News/List/build/sn.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@packageFallhaven/modules/News/List/build/sn.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"cs-module cs-news-list-default\">
  35.     <div class=\"cs-module-header\">
  36.         <div class=\"cs-module-header-heading\">
  37.             <h1 class=\"cs-module-header-title\">";
  38.         // line 4
  39.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["globals"] ?? null), "moduleSettings", [], "any"falsetruefalse4), "title", [], "any"truetruefalse4)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["globals"] ?? null), "moduleSettings", [], "any"falsetruefalse4), "title", [], "any"falsefalsefalse4), (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse4), "name", [], "any"falsefalsefalse4) . " News"))) : ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse4), "name", [], "any"falsefalsefalse4) . " News"))), "html"nulltrue);
  40.         echo "</h1>
  41.             <p class=\"csm-subscribe\"><a href=\"";
  42.         // line 5
  43.         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"falsefalsefalse5), 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"falsefalsefalse5))) ? ($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"falsefalsefalse5), 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"falsefalsefalse5))) : ("#")), "html_attr");
  44.         echo "\">Subscribe</a></p>
  45.         </div>
  46.         ";
  47.         // line 7
  48.         if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse7), "listHtml", [], "any"falsefalsefalse7))) {
  49.             // line 8
  50.             echo "            <div class=\"cs-module-header-body\">
  51.                 ";
  52.             // line 9
  53.             echo twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "listHtml", [], "any"falsefalsefalse9);
  54.             echo "
  55.             </div>
  56.         ";
  57.         }
  58.         // line 12
  59.         echo "    </div>
  60.     ";
  61.         // line 13
  62.         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)) {
  63.             // line 14
  64.             echo "        <div class=\"cs-list-default cs-list-default-thumb-lg\">
  65.             ";
  66.             // line 15
  67.             $context['_parent'] = $context;
  68.             $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); })()));
  69.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  70.                 // line 16
  71.                 echo "                ";
  72.                 $context["item_link"] = (($this->env->getFunction('web_url_view')->getCallable()($context["item"], true)) ? ($this->env->getFunction('web_url_view')->getCallable()($context["item"], true)) : ("#"));
  73.                 // line 17
  74.                 echo "                ";
  75.                 $context["item_opener"] = (twig_get_attribute($this->env$this->source$context["item"], "link", [], "any"falsefalsefalse17) && twig_get_attribute($this->env$this->source$context["item"], "linkExternal", [], "any"falsefalsefalse17));
  76.                 // line 18
  77.                 echo "                <div class=\"cs-li-default\">
  78.                     ";
  79.                 // line 19
  80.                 if ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse19), "thumbnails", [], "any"falsefalsefalse19) === true)) {
  81.                     // line 20
  82.                     echo "                        ";
  83.                     $context["item_feature"] = $this->extensions['App\Twig\Extension\MediaExtension']->decorate_media(twig_get_attribute($this->env$this->source$context["item"], "feature", [], "any"falsefalsefalse20));
  84.                     // line 21
  85.                     echo "                        <div class=\"cs-li-default-image\">
  86.                             <img
  87.                                 src=\"";
  88.                     // line 23
  89.                     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->sourcetwig_get_attribute($this->env$this->source,                     // line 24
  90. (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"falsefalsefalse24), "tiny", [], "any"falsefalsefalse24)) : ($this->extensions['Cms\FileBundle\Service\Twig\UrlExtension']->cms_placeholderUrl("MASKS__RECTANGLE__SMALL""news"))), "html"nulltrue);
  91.                     // line 26
  92.                     echo "\"
  93.                                 onclick=\"return Campussuite.Tools.jslink('";
  94.                     // line 27
  95.                     echo twig_escape_filter($this->envtwig_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"nulltrue);
  96.                     echo "', ";
  97.                     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"));
  98.                     echo ");\"
  99.                                 onkeypress=\"return Campussuite.Tools.jslink('";
  100.                     // line 28
  101.                     echo twig_escape_filter($this->envtwig_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"nulltrue);
  102.                     echo "', ";
  103.                     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"));
  104.                     echo ");\"
  105.                                 tabindex=\"-1\"
  106.                                 alt=\"";
  107.                     // line 30
  108.                     (((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->envtwig_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"falsefalsefalse30), "html"nulltrue))) : (print ("")));
  109.                     echo "\"
  110.                             />
  111.                         </div>
  112.                     ";
  113.                 }
  114.                 // line 34
  115.                 echo "                    <div class=\"cs-li-default-wrap\">
  116.                         <div class=\"cs-li-default-heading\">
  117.                             <h3 class=\"cs-li-default-title\">
  118.                                 <a href=\"";
  119.                 // line 37
  120.                 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");
  121.                 echo "\"";
  122.                 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); })())) {
  123.                     echo " target=\"_blank\"";
  124.                 }
  125.                 echo ">";
  126.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "headline", [], "any"falsefalsefalse37), "html"nulltrue);
  127.                 echo "</a>
  128.                             </h3>
  129.                             <div class=\"cs-li-default-meta\">
  130.                                 <span class=\"cs-li-default-date\">";
  131.                 // line 40
  132.                 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"falsefalsefalse40)), "html"nulltrue);
  133.                 echo "</span>
  134.                             </div>
  135.                         </div>
  136.                         <div class=\"cs-li-default-body\">
  137.                             ";
  138.                 // line 44
  139.                 $context["bdy"] = $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->cms_abstract(twig_get_attribute($this->env$this->source$context["item"], "blurb", [], "any"falsefalsefalse44), twig_get_attribute($this->env$this->source$context["item"], "html", [], "any"falsefalsefalse44));
  140.                 // line 45
  141.                 echo "                            <p>";
  142.                 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"nulltrue);
  143.                 echo "</p>
  144.                             <p class=\"cs-li-default-link\">
  145.                                 <a aria-hidden=\"true\" tabindex=\"-1\" href=\"#\" onclick=\"return Campussuite.Tools.jslink('";
  146.                 // line 47
  147.                 echo twig_escape_filter($this->envtwig_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"nulltrue);
  148.                 echo "', ";
  149.                 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"));
  150.                 echo ");\">
  151.                                     Read Post
  152.                                     <span class=\"sr-only\">";
  153.                 // line 49
  154.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "headline", [], "any"falsefalsefalse49), "html"nulltrue);
  155.                 echo "</span>
  156.                                 </a>
  157.                             </p>
  158.                         </div>
  159.                     </div>
  160.                 </div>
  161.             ";
  162.             }
  163.             $_parent $context['_parent'];
  164.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  165.             $context array_intersect_key($context$_parent) + $_parent;
  166.             // line 56
  167.             echo "        </div>
  168.     ";
  169.         } else {
  170.             // line 58
  171.             echo "        <div class=\"cs-data-na\">
  172.             <p>We're sorry, no posts were found for this listing.</p>
  173.         </div>
  174.     ";
  175.         }
  176.         // line 62
  177.         echo "    ";
  178.         $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"falsefalsefalse62)), "@packageFallhaven/modules/News/List/build/sn.html.twig"62)->display(twig_array_merge($context, ['_args' => []]));
  179.         // line 63
  180.         echo "</div>
  181. ";
  182.         
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184.         
  185.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  186.     }
  187.     public function getTemplateName()
  188.     {
  189.         return "@packageFallhaven/modules/News/List/build/sn.html.twig";
  190.     }
  191.     public function isTraitable()
  192.     {
  193.         return false;
  194.     }
  195.     public function getDebugInfo()
  196.     {
  197.         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,);
  198.     }
  199.     public function getSourceContext()
  200.     {
  201.         return new Source("<div class=\"cs-module cs-news-list-default\">
  202.     <div class=\"cs-module-header\">
  203.         <div class=\"cs-module-header-heading\">
  204.             <h1 class=\"cs-module-header-title\">{{ globals.moduleSettings.title|default(globals.container.name ~ ' News') }}</h1>
  205.             <p class=\"csm-subscribe\"><a href=\"{{- (web_url_subscribe(globals.container, globals.module) ?: '#')|e('html_attr') -}}\">Subscribe</a></p>
  206.         </div>
  207.         {% if globals.moduleSettings.listHtml is not empty %}
  208.             <div class=\"cs-module-header-body\">
  209.                 {{ globals.moduleSettings.listHtml|raw }}
  210.             </div>
  211.         {% endif %}
  212.     </div>
  213.     {% if items|length > 0 %}
  214.         <div class=\"cs-list-default cs-list-default-thumb-lg\">
  215.             {% for item in items %}
  216.                 {% set item_link = web_url_view(item, true) ?: '#' %}
  217.                 {% set item_opener = (item.link and item.linkExternal) %}
  218.                 <div class=\"cs-li-default\">
  219.                     {% if globals.moduleSettings.thumbnails is same as(true) %}
  220.                         {% set item_feature = item.feature|decorate_media %}
  221.                         <div class=\"cs-li-default-image\">
  222.                             <img
  223.                                 src=\"{{- item_feature
  224.                                     ? item_feature._urls.tiny
  225.                                     : cms_placeholderUrl('MASKS__RECTANGLE__SMALL', 'news')
  226.                                 -}}\"
  227.                                 onclick=\"return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});\"
  228.                                 onkeypress=\"return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});\"
  229.                                 tabindex=\"-1\"
  230.                                 alt=\"{{- item_feature ? item_feature.alt : '' -}}\"
  231.                             />
  232.                         </div>
  233.                     {% endif %}
  234.                     <div class=\"cs-li-default-wrap\">
  235.                         <div class=\"cs-li-default-heading\">
  236.                             <h3 class=\"cs-li-default-title\">
  237.                                 <a href=\"{{- item_link|e('html_attr') -}}\"{% if item_opener %} target=\"_blank\"{% endif %}>{{ item.headline }}</a>
  238.                             </h3>
  239.                             <div class=\"cs-li-default-meta\">
  240.                                 <span class=\"cs-li-default-date\">{{ item.createdAt|cms_date }}</span>
  241.                             </div>
  242.                         </div>
  243.                         <div class=\"cs-li-default-body\">
  244.                             {% set bdy = cms_abstract(item.blurb, item.html) %}
  245.                             <p>{{ bdy }}</p>
  246.                             <p class=\"cs-li-default-link\">
  247.                                 <a aria-hidden=\"true\" tabindex=\"-1\" href=\"#\" onclick=\"return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});\">
  248.                                     Read Post
  249.                                     <span class=\"sr-only\">{{ item.headline }}</span>
  250.                                 </a>
  251.                             </p>
  252.                         </div>
  253.                     </div>
  254.                 </div>
  255.             {% endfor %}
  256.         </div>
  257.     {% else %}
  258.         <div class=\"cs-data-na\">
  259.             <p>We're sorry, no posts were found for this listing.</p>
  260.         </div>
  261.     {% endif %}
  262.     {% include cms_theme_override('/modules/includes/pagination.html.twig', globals.theme) %}
  263. </div>
  264. ""@packageFallhaven/modules/News/List/build/sn.html.twig""/var/www/campussuite/themes/bases/Campussuite2015/modules/News/List/build/sn.html.twig");
  265.     }
  266. }