var/cache/test/twig/66/669ac742ee761e857d96bb126dd26234.php line 270

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/widgets/FeedList/build/tpl.html.twig */
  14. class __TwigTemplate_054c92fe68130bbe974baf49b17370eb 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/widgets/FeedList/build/tpl.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/widgets/FeedList/build/tpl.html.twig"));
  33.         // line 1
  34.         echo "<style type=\"text/css\">
  35.     .cs-list-default.cs-list-default-thumb-sm .cs-li-date-block {
  36.         width: 64px;
  37.     }
  38.     .cs-list-default.cs-list-default-thumb-md .cs-li-date-block {
  39.         width: 120px;
  40.     }
  41.     .cs-list-default.cs-list-default-thumb-lg .cs-li-date-block {
  42.         width: 250px;
  43.     }
  44. </style>
  45. <div class=\"csmw cs-feed-list-default\">
  46.     ";
  47.         // line 13
  48.         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"falsefalsefalse13))) {
  49.             // line 14
  50.             echo "        <div class=\"cs-widget-header\">
  51.             <div class=\"cs-widget-header-heading\">
  52.                 <";
  53.             // line 16
  54.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "headingSize", [], "any"truetruefalse16)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "headingSize", [], "any"falsefalsefalse16), "h2")) : ("h2")), "html"nulltrue);
  55.             echo " class=\"cs-widget-header-title\">";
  56.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse16), "html"nulltrue);
  57.             echo "</";
  58.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "headingSize", [], "any"truetruefalse16)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "headingSize", [], "any"falsefalsefalse16), "h2")) : ("h2")), "html"nulltrue);
  59.             echo ">
  60.         </div>
  61.         ";
  62.             // line 18
  63.             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"falsefalsefalse18))) {
  64.                 // line 19
  65.                 echo "            <div class=\"cs-widget-header-body\">";
  66.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse19), "html"nulltrue);
  67.                 echo "</div>
  68.         ";
  69.             }
  70.             // line 21
  71.             echo "    </div>
  72.     ";
  73.         }
  74.         // line 23
  75.         echo "    ";
  76.         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)) {
  77.             // line 24
  78.             echo "        <div class=\"cs-list-default";
  79.             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"falsefalsefalse24) === "na")) {
  80.                 echo " cs-list-default-thumb-";
  81.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "thumbnails", [], "any"truetruefalse24)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "thumbnails", [], "any"falsefalsefalse24), "md")) : ("md")), "html"nulltrue);
  82.             }
  83.             echo "\">
  84.             ";
  85.             // line 25
  86.             $context['_parent'] = $context;
  87.             $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); })()));
  88.             $context['loop'] = [
  89.               'parent' => $context['_parent'],
  90.               'index0' => 0,
  91.               'index'  => 1,
  92.               'first'  => true,
  93.             ];
  94.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  95.                 $length count($context['_seq']);
  96.                 $context['loop']['revindex0'] = $length 1;
  97.                 $context['loop']['revindex'] = $length;
  98.                 $context['loop']['length'] = $length;
  99.                 $context['loop']['last'] = === $length;
  100.             }
  101.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  102.                 // line 26
  103.                 echo "                ";
  104.                 $context["item"] = twig_get_attribute($this->env$this->source$context["item"], "entry", [], "any"falsefalsefalse26);
  105.                 // line 27
  106.                 echo "                ";
  107.                 $context["school"] = $this->extensions['App\Twig\Extension\MiscellaneousExtension']->schoolify(twig_get_attribute($this->env$this->source$context["item"], "department", [], "any"falsefalsefalse27));
  108.                 // line 28
  109.                 echo "                ";
  110.                 $context["item_link"] = (($this->env->getFunction('web_url_view')->getCallable()($context["item"], true)) ? ($this->env->getFunction('web_url_view')->getCallable()($context["item"], true)) : ("#"));
  111.                 // line 29
  112.                 echo "                ";
  113.                 $context["item_opener"] = (twig_get_attribute($this->env$this->source$context["item"], "link", [], "any"falsefalsefalse29) && twig_get_attribute($this->env$this->source$context["item"], "linkExternal", [], "any"falsefalsefalse29));
  114.                 // line 30
  115.                 echo "                <div class=\"cs-li-default\">
  116.                     ";
  117.                 // line 31
  118.                 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"falsefalsefalse31) === "na")) {
  119.                     // line 32
  120.                     echo "                        ";
  121.                     if ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse32) == "event")) {
  122.                         // line 33
  123.                         echo "                            <div class=\"cs-li-date-block\">
  124.                                 <div class=\"cs-li-date-block-month\">";
  125.                         // line 34
  126.                         echo twig_escape_filter($this->envtwig_upper_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->cms_dt(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "object", [], "any"falsefalsefalse34), "startsAt", [], "any"falsefalsefalse34), "M")), "html"nulltrue);
  127.                         echo "</div>
  128.                                 <div class=\"cs-li-date-block-date\">";
  129.                         // line 35
  130.                         echo twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->cms_dt(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "object", [], "any"falsefalsefalse35), "stopsAt", [], "any"falsefalsefalse35), "j"), "html"nulltrue);
  131.                         echo "</div>
  132.                             </div>
  133.                         ";
  134.                     } else {
  135.                         // line 38
  136.                         echo "                            <div class=\"cs-li-default-image\">
  137.                                 ";
  138.                         // line 39
  139.                         $context["feature"] = $this->extensions['App\Twig\Extension\MediaExtension']->decorate_media(twig_get_attribute($this->env$this->source$context["item"], "feature", [], "any"falsefalsefalse39));
  140.                         // line 40
  141.                         echo "                                <img
  142.                                     src=\"";
  143.                         // line 41
  144.                         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->sourcetwig_get_attribute($this->env$this->source,                         // line 42
  145. ($context["feature"] ?? null), "_urls", [], "any"falsetruefalse42), "tiny", [], "any"truetruefalse42)) ? (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse42), "tiny", [], "any"falsefalsefalse42)) : (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse42), "thumb", [], "any"falsefalsefalse42)))) : ($this->extensions['Cms\FileBundle\Service\Twig\UrlExtension']->cms_placeholderUrl("MASKS__RECTANGLE__SMALL""news"))), "html"nulltrue);
  146.                         // line 44
  147.                         echo "\"
  148.                                     onclick=\"return Campussuite.Tools.jslink('";
  149.                         // line 45
  150.                         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.'45$this->source); })()), "js"), "html"nulltrue);
  151.                         echo "', ";
  152.                         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"));
  153.                         echo ");\"
  154.                                     onkeypress=\"return Campussuite.Tools.jslink('";
  155.                         // line 46
  156.                         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.'46$this->source); })()), "js"), "html"nulltrue);
  157.                         echo "', ";
  158.                         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"));
  159.                         echo ");\"
  160.                                     tabindex=\"-1\"
  161.                                     alt=\"";
  162.                         // line 48
  163.                         (((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->envtwig_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"falsefalsefalse48), "html"nulltrue))) : (print ("")));
  164.                         echo "\"
  165.                                 />
  166.                             </div>
  167.                         ";
  168.                     }
  169.                     // line 52
  170.                     echo "                    ";
  171.                 }
  172.                 // line 53
  173.                 echo "                    <div class=\"cs-li-default-wrap\">
  174.                         <div class=\"cs-li-default-heading\">
  175.                             <";
  176.                 // line 55
  177.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "titleSizes", [], "any"truetruefalse55)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "titleSizes", [], "any"falsefalsefalse55), "h3")) : ("h3")), "html"nulltrue);
  178.                 echo " class=\"cs-li-default-title\">
  179.                                 <a href=\"";
  180.                 // line 56
  181.                 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");
  182.                 echo "\"";
  183.                 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); })())) {
  184.                     echo " target=\"_blank\"";
  185.                 }
  186.                 echo ">";
  187.                 // line 57
  188.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse57), "html"nulltrue);
  189.                 // line 58
  190.                 echo "</a>
  191.                             </";
  192.                 // line 59
  193.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "titleSizes", [], "any"truetruefalse59)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "titleSizes", [], "any"falsefalsefalse59), "h3")) : ("h3")), "html"nulltrue);
  194.                 echo ">
  195.                             ";
  196.                 // line 60
  197.                 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"falsefalsefalse60) === true)) {
  198.                     // line 61
  199.                     echo "                                ";
  200.                     if ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse61) == "event")) {
  201.                         // line 62
  202.                         echo "                                    ";
  203.                         $context["dts"] = $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->cms_calendar_span(twig_get_attribute($this->env$this->source$context["item"], "object", [], "any"falsefalsefalse62), ["dateFormat" => "M j, Y""timeFormat" => "g:i A"]);
  204.                         // line 66
  205.                         echo "                                    ";
  206.                         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"falsefalsefalse66)) {
  207.                             // line 67
  208.                             echo "                                        ";
  209.                             $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
  210. (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
  211. (isset($context["dts"]) || array_key_exists("dts"$context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.'70$this->source); })()), "multiday", [], "any"falsefalsefalse70)) ? ("Start:") : (null)), "endLabel" => ((twig_get_attribute($this->env$this->source,                             // line 71
  212. (isset($context["dts"]) || array_key_exists("dts"$context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.'71$this->source); })()), "multiday", [], "any"falsefalsefalse71)) ? ("End:") : (null)), "showStartDate" => ((twig_get_attribute($this->env$this->source,                             // line 72
  213. (isset($context["_widget"]) || array_key_exists("_widget"$context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.'72$this->source); })()), "thumbnails", [], "any"falsefalsefalse72) === "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"falsefalsefalse72)), "showEndDate" => twig_get_attribute($this->env$this->source,                             // line 73
  214. (isset($context["dts"]) || array_key_exists("dts"$context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.'73$this->source); })()), "multiday", [], "any"falsefalsefalse73), "separator" => ((( !(twig_get_attribute($this->env$this->source,                             // line 74
  215. (isset($context["dts"]) || array_key_exists("dts"$context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.'74$this->source); })()), "allday", [], "any"falsefalsefalse74) || 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"falsefalsefalse74)) && 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"falsefalsefalse74))) ? ("-") : (null))]), ['_args' => twig_to_array(["dts" =>                             // line 68
  216. (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
  217. (isset($context["dts"]) || array_key_exists("dts"$context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.'70$this->source); })()), "multiday", [], "any"falsefalsefalse70)) ? ("Start:") : (null)), "endLabel" => ((twig_get_attribute($this->env$this->source,                             // line 71
  218. (isset($context["dts"]) || array_key_exists("dts"$context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.'71$this->source); })()), "multiday", [], "any"falsefalsefalse71)) ? ("End:") : (null)), "showStartDate" => ((twig_get_attribute($this->env$this->source,                             // line 72
  219. (isset($context["_widget"]) || array_key_exists("_widget"$context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.'72$this->source); })()), "thumbnails", [], "any"falsefalsefalse72) === "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"falsefalsefalse72)), "showEndDate" => twig_get_attribute($this->env$this->source,                             // line 73
  220. (isset($context["dts"]) || array_key_exists("dts"$context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.'73$this->source); })()), "multiday", [], "any"falsefalsefalse73), "separator" => ((( !(twig_get_attribute($this->env$this->source,                             // line 74
  221. (isset($context["dts"]) || array_key_exists("dts"$context) ? $context["dts"] : (function () { throw new RuntimeError('Variable "dts" does not exist.'74$this->source); })()), "allday", [], "any"falsefalsefalse74) || 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"falsefalsefalse74)) && 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"falsefalsefalse74))) ? ("-") : (null))])]));
  222.                             // line 76
  223.                             echo "                                    ";
  224.                         }
  225.                         // line 77
  226.                         echo "                                ";
  227.                     } else {
  228.                         // line 78
  229.                         echo "                                    <div class=\"cs-li-default-meta\">
  230.                                         <span class=\"cs-li-default-date\">";
  231.                         // line 79
  232.                         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"falsefalsefalse79)), "html"nulltrue);
  233.                         echo "</span>
  234.                                     </div>
  235.                                 ";
  236.                     }
  237.                     // line 82
  238.                     echo "                            ";
  239.                 }
  240.                 // line 83
  241.                 echo "                            ";
  242.                 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"falsefalsefalse83) === true)) {
  243.                     // line 84
  244.                     echo "                                <div class=\"cs-li-default-meta\">
  245.                                     <span class=\"cs-li-default-date\">
  246.                                         <small>";
  247.                     // line 86
  248.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse86), "html"nulltrue);
  249.                     echo "</small>
  250.                                     </span>
  251.                                 </div>
  252.                             ";
  253.                 }
  254.                 // line 90
  255.                 echo "                        </div>
  256.                         ";
  257.                 // line 91
  258.                 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"falsefalsefalse91) === true)) {
  259.                     // line 92
  260.                     echo "                            ";
  261.                     $context["bdy"] = $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->cms_abstract(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "object", [], "any"falsefalsefalse92), "blurb", [], "any"falsefalsefalse92), twig_get_attribute($this->env$this->source$context["item"], "preview", [], "any"falsefalsefalse92));
  262.                     // line 93
  263.                     echo "                            ";
  264.                     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); })()))) {
  265.                         // line 94
  266.                         echo "                                <div class=\"cs-li-default-body\">
  267.                                     <p>";
  268.                         // line 95
  269.                         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"nulltrue);
  270.                         echo "</p>
  271.                                     ";
  272.                         // line 96
  273.                         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"falsefalsefalse96) === true)) {
  274.                             // line 97
  275.                             echo "                                        <p class=\"cs-li-default-link\">
  276.                                             <a class=\"cs-li-default-more-link\" tabindex=\"-1\" aria-hidden=\"true\" href=\"#\" onclick=\"return Campussuite.Tools.jslink('";
  277.                             // line 98
  278.                             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.'98$this->source); })()), "js"), "html"nulltrue);
  279.                             echo "', ";
  280.                             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"));
  281.                             echo ");\">
  282.                                                 Read Story
  283.                                                 <span class=\"sr-only\">";
  284.                             // line 100
  285.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse100), "html"nulltrue);
  286.                             echo "</span>
  287.                                             </a>
  288.                                         </p>
  289.                                     ";
  290.                         }
  291.                         // line 104
  292.                         echo "                                </div>
  293.                             ";
  294.                     }
  295.                     // line 106
  296.                     echo "                        ";
  297.                 }
  298.                 // line 107
  299.                 echo "                    </div>
  300.                 </div>
  301.             ";
  302.                 ++$context['loop']['index0'];
  303.                 ++$context['loop']['index'];
  304.                 $context['loop']['first'] = false;
  305.                 if (isset($context['loop']['length'])) {
  306.                     --$context['loop']['revindex0'];
  307.                     --$context['loop']['revindex'];
  308.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  309.                 }
  310.             }
  311.             $_parent $context['_parent'];
  312.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  313.             $context array_intersect_key($context$_parent) + $_parent;
  314.             // line 110
  315.             echo "        </div>
  316.     ";
  317.         } else {
  318.             // line 112
  319.             echo "        <div class=\"cs-data-na\">
  320.             <p>We're sorry, no stories were found.</p>
  321.         </div>
  322.     ";
  323.         }
  324.         // line 116
  325.         echo "    ";
  326.         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"falsefalsefalse116))) {
  327.             // line 117
  328.             echo "        <div class=\"csw-footer\">
  329.             ";
  330.             // line 118
  331.             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"falsefalsefalse118))) {
  332.                 // line 119
  333.                 echo "                <a href=\"";
  334.                 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");
  335.                 echo "\" class=\"csw-view-more\">";
  336.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse119), "html"nulltrue);
  337.                 echo "</a>
  338.             ";
  339.             }
  340.             // line 121
  341.             echo "        </div>
  342.     ";
  343.         }
  344.         // line 123
  345.         echo "</div>
  346. ";
  347.         
  348.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  349.         
  350.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  351.     }
  352.     public function getTemplateName()
  353.     {
  354.         return "@packageFallhaven/widgets/FeedList/build/tpl.html.twig";
  355.     }
  356.     public function isTraitable()
  357.     {
  358.         return false;
  359.     }
  360.     public function getDebugInfo()
  361.     {
  362.         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,);
  363.     }
  364.     public function getSourceContext()
  365.     {
  366.         return new Source("<style type=\"text/css\">
  367.     .cs-list-default.cs-list-default-thumb-sm .cs-li-date-block {
  368.         width: 64px;
  369.     }
  370.     .cs-list-default.cs-list-default-thumb-md .cs-li-date-block {
  371.         width: 120px;
  372.     }
  373.     .cs-list-default.cs-list-default-thumb-lg .cs-li-date-block {
  374.         width: 250px;
  375.     }
  376. </style>
  377. <div class=\"csmw cs-feed-list-default\">
  378.     {% if _widget.heading is not empty %}
  379.         <div class=\"cs-widget-header\">
  380.             <div class=\"cs-widget-header-heading\">
  381.                 <{{ _widget.headingSize|default('h2') }} class=\"cs-widget-header-title\">{{ _widget.heading }}</{{ _widget.headingSize|default('h2') }}>
  382.         </div>
  383.         {% if _widget.description is not empty %}
  384.             <div class=\"cs-widget-header-body\">{{ _widget.description }}</div>
  385.         {% endif %}
  386.     </div>
  387.     {% endif %}
  388.     {% if items|length > 0 %}
  389.         <div class=\"cs-list-default{% if _widget.thumbnails is not same as('na') %} cs-list-default-thumb-{{ _widget.thumbnails|default('md') }}{% endif %}\">
  390.             {% for item in items %}
  391.                 {% set item = item.entry %}
  392.                 {% set school = item.department|schoolify %}
  393.                 {% set item_link = web_url_view(item, true) ?: '#' %}
  394.                 {% set item_opener = (item.link and item.linkExternal) %}
  395.                 <div class=\"cs-li-default\">
  396.                     {% if _widget.thumbnails is not same as('na') %}
  397.                         {% if item.type == 'event' %}
  398.                             <div class=\"cs-li-date-block\">
  399.                                 <div class=\"cs-li-date-block-month\">{{ item.object.startsAt|cms_dt('M')|upper }}</div>
  400.                                 <div class=\"cs-li-date-block-date\">{{ item.object.stopsAt|cms_dt('j') }}</div>
  401.                             </div>
  402.                         {% else %}
  403.                             <div class=\"cs-li-default-image\">
  404.                                 {% set feature = item.feature|decorate_media %}
  405.                                 <img
  406.                                     src=\"{{- feature|decorate_media
  407.                                         ? (feature._urls.tiny is defined) ? feature._urls.tiny : feature._urls.thumb
  408.                                         : cms_placeholderUrl('MASKS__RECTANGLE__SMALL', 'news')
  409.                                     -}}\"
  410.                                     onclick=\"return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});\"
  411.                                     onkeypress=\"return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});\"
  412.                                     tabindex=\"-1\"
  413.                                     alt=\"{{- feature ? feature.alt : '' -}}\"
  414.                                 />
  415.                             </div>
  416.                         {% endif %}
  417.                     {% endif %}
  418.                     <div class=\"cs-li-default-wrap\">
  419.                         <div class=\"cs-li-default-heading\">
  420.                             <{{ _widget.titleSizes|default('h3') }} class=\"cs-li-default-title\">
  421.                                 <a href=\"{{- item_link|e('html_attr') -}}\"{% if item_opener %} target=\"_blank\"{% endif %}>
  422.                                     {{- item.label -}}
  423.                                 </a>
  424.                             </{{ _widget.titleSizes|default('h3') }}>
  425.                             {% if _widget.timestamps is same as(true) %}
  426.                                 {% if item.type == 'event' %}
  427.                                     {% set dts = item.object|cms_calendar_span({
  428.                                         dateFormat: 'M j, Y',
  429.                                         timeFormat: 'g:i A',
  430.                                     }) %}
  431.                                     {% if dts.hasStartOrEnd %}
  432.                                         {% include cms_theme_override('/includes/calendarEventItem.html.twig') with {
  433.                                             dts: dts,
  434.                                             primaryClass: 'cs-li-default-meta',
  435.                                             startLabel: (dts.multiday) ? 'Start:' : null,
  436.                                             endLabel: (dts.multiday) ? 'End:': null,
  437.                                             showStartDate: (_widget.thumbnails is same as('na') or dts.multiday),
  438.                                             showEndDate: (dts.multiday),
  439.                                             separator: ( not (dts.allday or dts.multiday) and dts.hasStartTimeAndEndTime) ? '-' : null,
  440.                                         } %}
  441.                                     {% endif %}
  442.                                 {% else %}
  443.                                     <div class=\"cs-li-default-meta\">
  444.                                         <span class=\"cs-li-default-date\">{{ item.timestamp|cms_date }}</span>
  445.                                     </div>
  446.                                 {% endif %}
  447.                             {% endif %}
  448.                             {% if _widget.district is same as(true) %}
  449.                                 <div class=\"cs-li-default-meta\">
  450.                                     <span class=\"cs-li-default-date\">
  451.                                         <small>{{- school.name -}}</small>
  452.                                     </span>
  453.                                 </div>
  454.                             {% endif %}
  455.                         </div>
  456.                         {% if _widget.teasers is same as(true) %}
  457.                             {% set bdy = cms_abstract(item.object.blurb, item.preview) %}
  458.                             {% if bdy is not empty %}
  459.                                 <div class=\"cs-li-default-body\">
  460.                                     <p>{{ bdy }}</p>
  461.                                     {% if _widget.readLinks is same as(true) %}
  462.                                         <p class=\"cs-li-default-link\">
  463.                                             <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' }});\">
  464.                                                 Read Story
  465.                                                 <span class=\"sr-only\">{{ item.label }}</span>
  466.                                             </a>
  467.                                         </p>
  468.                                     {% endif %}
  469.                                 </div>
  470.                             {% endif %}
  471.                         {% endif %}
  472.                     </div>
  473.                 </div>
  474.             {% endfor %}
  475.         </div>
  476.     {% else %}
  477.         <div class=\"cs-data-na\">
  478.             <p>We're sorry, no stories were found.</p>
  479.         </div>
  480.     {% endif %}
  481.     {% if _widget.linkText is not empty %}
  482.         <div class=\"csw-footer\">
  483.             {% if _widget.linkText is not empty %}
  484.                 <a href=\"{{- (web_url_landing(department, 'feed') ?: '#')|e('html_attr') -}}\" class=\"csw-view-more\">{{ _widget.linkText }}</a>
  485.             {% endif %}
  486.         </div>
  487.     {% endif %}
  488. </div>
  489. ""@packageFallhaven/widgets/FeedList/build/tpl.html.twig""/var/www/campussuite/themes/bases/Campussuite2015/widgets/FeedList/build/tpl.html.twig");
  490.     }
  491. }