<?php

/* agenda.twig */
class __TwigTemplate_5ca1499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        if (isset($context["navigation"])) { $_navigation_ = $context["navigation"]; } else { $_navigation_ = null; }
        echo $_navigation_;
        echo "

<div class=\"ai1ec-agenda-view\">
\t";
        // line 4
        if (isset($context["dates"])) { $_dates_ = $context["dates"]; } else { $_dates_ = null; }
        if (twig_test_empty($_dates_)) {
            // line 5
            echo "\t\t<p class=\"ai1ec-no-results\">
\t\t\t";
            // line 6
            if (isset($context["text_upcoming_events"])) { $_text_upcoming_events_ = $context["text_upcoming_events"]; } else { $_text_upcoming_events_ = null; }
            echo twig_escape_filter($this->env, $_text_upcoming_events_, "html", null, true);
            echo "
\t\t</p>
\t";
        } else {
            // line 9
            echo "\t\t";
            if (isset($context["dates"])) { $_dates_ = $context["dates"]; } else { $_dates_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($_dates_);
            foreach ($context['_seq'] as $context["date"] => $context["date_info"]) {
                // line 10
                echo "\t\t\t<div class=\"ai1ec-date
\t\t\t\t";
                // line 11
                if (isset($context["date_info"])) { $_date_info_ = $context["date_info"]; } else { $_date_info_ = null; }
                if ((!twig_test_empty($this->getAttribute($_date_info_, "today")))) {
                    echo "ai1ec-today";
                }
                echo "\">
\t\t\t\t<a class=\"ai1ec-date-title ai1ec-load-view\"
\t\t\t\t\thref=\"";
                // line 13
                if (isset($context["date_info"])) { $_date_info_ = $context["date_info"]; } else { $_date_info_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_date_info_, "href"), "html_attr");
                echo "\"
\t\t\t\t\t";
                // line 14
                if (isset($context["data_type"])) { $_data_type_ = $context["data_type"]; } else { $_data_type_ = null; }
                echo $_data_type_;
                echo ">
\t\t\t\t\t<div class=\"ai1ec-month\">";
                // line 15
                if (isset($context["date_info"])) { $_date_info_ = $context["date_info"]; } else { $_date_info_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_date_info_, "month"), "html", null, true);
                echo "</div>
\t\t\t\t\t<div class=\"ai1ec-day\">";
                // line 16
                if (isset($context["date_info"])) { $_date_info_ = $context["date_info"]; } else { $_date_info_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_date_info_, "day"), "html", null, true);
                echo "</div>
\t\t\t\t\t<div class=\"ai1ec-weekday\">";
                // line 17
                if (isset($context["date_info"])) { $_date_info_ = $context["date_info"]; } else { $_date_info_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_date_info_, "weekday"), "html", null, true);
                echo "</div>
\t\t\t\t\t";
                // line 18
                if (isset($context["show_year_in_agenda_dates"])) { $_show_year_in_agenda_dates_ = $context["show_year_in_agenda_dates"]; } else { $_show_year_in_agenda_dates_ = null; }
                if ($_show_year_in_agenda_dates_) {
                    // line 19
                    echo "\t\t\t\t\t\t<div class=\"ai1ec-year\">";
                    if (isset($context["date_info"])) { $_date_info_ = $context["date_info"]; } else { $_date_info_ = null; }
                    echo twig_escape_filter($this->env, $this->getAttribute($_date_info_, "year"), "html", null, true);
                    echo "</div>
\t\t\t\t\t";
                }
                // line 21
                echo "\t\t\t\t</a>
\t\t\t\t<div class=\"ai1ec-date-events\">
\t\t\t\t\t";
                // line 23
                if (isset($context["date_info"])) { $_date_info_ = $context["date_info"]; } else { $_date_info_ = null; }
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($_date_info_, "events"));
                foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
                    // line 24
                    echo "\t\t\t\t\t\t";
                    if (isset($context["category"])) { $_category_ = $context["category"]; } else { $_category_ = null; }
                    $context['_parent'] = (array) $context;
                    $context['_seq'] = twig_ensure_traversable($_category_);
                    foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
                        // line 25
                        echo "\t\t\t\t\t\t\t<div class=\"ai1ec-event
\t\t\t\t\t\t\t\tai1ec-event-id-";
                        // line 26
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        echo twig_escape_filter($this->env, $this->getAttribute($_event_, "post_id"), "html", null, true);
                        echo "
\t\t\t\t\t\t\t\tai1ec-event-instance-id-";
                        // line 27
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        echo twig_escape_filter($this->env, $this->getAttribute($_event_, "instance_id"), "html", null, true);
                        echo "
\t\t\t\t\t\t\t\t";
                        // line 28
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        if ($this->getAttribute($_event_, "is_allday")) {
                            echo "ai1ec-allday";
                        }
                        // line 29
                        echo "\t\t\t\t\t\t\t\t";
                        if (isset($context["expanded"])) { $_expanded_ = $context["expanded"]; } else { $_expanded_ = null; }
                        if ($_expanded_) {
                            echo "ai1ec-expanded";
                        }
                        echo "\">

\t\t\t\t\t\t\t\t<div class=\"ai1ec-event-header\">
\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-event-toggle\">
\t\t\t\t\t\t\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-minus-circle ai1ec-fa-lg\"></i>
\t\t\t\t\t\t\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-plus-circle ai1ec-fa-lg\"></i>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<span class=\"ai1ec-event-title\">
\t\t\t\t\t\t\t\t\t\t";
                        // line 37
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        echo $this->getAttribute($_event_, "filtered_title");
                        echo "
\t\t\t\t\t\t\t\t\t\t";
                        // line 38
                        if (isset($context["show_location_in_title"])) { $_show_location_in_title_ = $context["show_location_in_title"]; } else { $_show_location_in_title_ = null; }
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        if (($_show_location_in_title_ && (!twig_test_empty($this->getAttribute($_event_, "venue"))))) {
                            // line 39
                            echo "\t\t\t\t\t\t\t\t\t\t\t<span class=\"ai1ec-event-location\"
\t\t\t\t\t\t\t\t\t\t\t\t>";
                            // line 40
                            if (isset($context["text_venue_separator"])) { $_text_venue_separator_ = $context["text_venue_separator"]; } else { $_text_venue_separator_ = null; }
                            if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                            echo twig_escape_filter($this->env, sprintf($_text_venue_separator_, $this->getAttribute($_event_, "venue")), "html", null, true);
                            echo "</span>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 42
                        echo "\t\t\t\t\t\t\t\t\t</span>

\t\t\t\t\t\t\t\t\t";
                        // line 44
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        $context["edit_post_link"] = $this->getAttribute($_event_, "edit_post_link");
                        // line 45
                        echo "\t\t\t\t\t\t\t\t\t";
                        if (isset($context["edit_post_link"])) { $_edit_post_link_ = $context["edit_post_link"]; } else { $_edit_post_link_ = null; }
                        if ((!twig_test_empty($_edit_post_link_))) {
                            // line 46
                            echo "\t\t\t\t\t\t\t\t\t\t<a class=\"post-edit-link\" href=\"";
                            if (isset($context["edit_post_link"])) { $_edit_post_link_ = $context["edit_post_link"]; } else { $_edit_post_link_ = null; }
                            echo $_edit_post_link_;
                            echo "\">
\t\t\t\t\t\t\t\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-pencil\"></i> ";
                            // line 47
                            if (isset($context["text_edit"])) { $_text_edit_ = $context["text_edit"]; } else { $_text_edit_ = null; }
                            echo twig_escape_filter($this->env, $_text_edit_, "html", null, true);
                            echo "
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t";
                        }
                        // line 50
                        echo "
\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-event-time\">
\t\t\t\t\t\t\t\t\t\t ";
                        // line 52
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        echo $this->getAttribute($_event_, "timespan_short");
                        echo "
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t\t";
                        // line 57
                        echo "\t\t\t\t\t\t\t\t<div class=\"ai1ec-event-summary ";
                        if (isset($context["expanded"])) { $_expanded_ = $context["expanded"]; } else { $_expanded_ = null; }
                        if ($_expanded_) {
                            echo "ai1ec-expanded";
                        }
                        echo "\">

\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-event-description\">
\t\t\t\t\t\t\t\t\t\t";
                        // line 60
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        if ((twig_test_empty($this->getAttribute($_event_, "content_img_url")) && (!twig_test_empty($this->getAttribute($_event_, "avatar_not_wrapped"))))) {
                            // line 61
                            echo "\t\t\t\t\t\t\t\t\t\t\t<a class=\"ai1ec-load-event\"
\t\t\t\t\t\t\t\t\t\t\t\thref=\"";
                            // line 62
                            if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                            echo twig_escape_filter($this->env, $this->getAttribute($_event_, "permalink"), "html_attr");
                            echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t";
                            // line 63
                            if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                            echo $this->getAttribute($_event_, "avatar_not_wrapped");
                            echo "
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 66
                        echo "\t\t\t\t\t\t\t\t\t\t";
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        echo $this->getAttribute($_event_, "filtered_content");
                        echo "
\t\t\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-event-summary-footer\">
\t\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-btn-group ai1ec-actions\">
\t\t\t\t\t\t\t\t\t\t\t";
                        // line 71
                        if (isset($context["is_ticket_button_enabled"])) { $_is_ticket_button_enabled_ = $context["is_ticket_button_enabled"]; } else { $_is_ticket_button_enabled_ = null; }
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        if (($_is_ticket_button_enabled_ && (!twig_test_empty($this->getAttribute($_event_, "ticket_url"))))) {
                            // line 72
                            echo "\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"ai1ec-pull-right ai1ec-btn ai1ec-btn-primary
\t\t\t\t\t\t\t\t\t\t\t\t\t\tai1ec-btn-xs ai1ec-buy-tickets\"
\t\t\t\t\t\t\t\t\t\t\t\t\ttarget=\"_blank\"
\t\t\t\t\t\t\t\t\t\t\t\t\thref=\"";
                            // line 75
                            if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                            echo twig_escape_filter($this->env, $this->getAttribute($_event_, "ticket_url"), "html_attr");
                            echo "\"
\t\t\t\t\t\t\t\t\t\t\t\t\t>";
                            // line 76
                            if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                            echo twig_escape_filter($this->env, $this->getAttribute($_event_, "ticket_url_label"), "html", null, true);
                            echo "</a>
\t\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 78
                        echo "\t\t\t\t\t\t\t\t\t\t\t<a class=\"ai1ec-read-more ai1ec-btn ai1ec-btn-default
\t\t\t\t\t\t\t\t\t\t\t\tai1ec-load-event\"
\t\t\t\t\t\t\t\t\t\t\t\thref=\"";
                        // line 80
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        echo twig_escape_filter($this->env, $this->getAttribute($_event_, "permalink"), "html_attr");
                        echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t";
                        // line 81
                        if (isset($context["text_read_more"])) { $_text_read_more_ = $context["text_read_more"]; } else { $_text_read_more_ = null; }
                        echo twig_escape_filter($this->env, $_text_read_more_, "html", null, true);
                        echo " <i class=\"ai1ec-fa ai1ec-fa-arrow-right\"></i>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t";
                        // line 84
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        $context["categories"] = $this->getAttribute($_event_, "categories_html");
                        // line 85
                        echo "\t\t\t\t\t\t\t\t\t\t";
                        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                        $context["tags"] = $this->getAttribute($_event_, "tags_html");
                        // line 86
                        echo "\t\t\t\t\t\t\t\t\t\t";
                        if (isset($context["categories"])) { $_categories_ = $context["categories"]; } else { $_categories_ = null; }
                        if ((!twig_test_empty($_categories_))) {
                            // line 87
                            echo "\t\t\t\t\t\t\t\t\t\t\t<span class=\"ai1ec-categories\">
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ai1ec-field-label\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-folder-open\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\t";
                            // line 90
                            if (isset($context["text_categories"])) { $_text_categories_ = $context["text_categories"]; } else { $_text_categories_ = null; }
                            echo twig_escape_filter($this->env, $_text_categories_, "html", null, true);
                            echo "
\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t";
                            // line 92
                            if (isset($context["categories"])) { $_categories_ = $context["categories"]; } else { $_categories_ = null; }
                            echo $_categories_;
                            echo "
\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 95
                        echo "\t\t\t\t\t\t\t\t\t\t";
                        if (isset($context["tags"])) { $_tags_ = $context["tags"]; } else { $_tags_ = null; }
                        if ((!twig_test_empty($_tags_))) {
                            // line 96
                            echo "\t\t\t\t\t\t\t\t\t\t\t<span class=\"ai1ec-tags\">
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ai1ec-field-label\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-tags\"></i>
\t\t\t\t\t\t\t\t\t\t\t\t\t";
                            // line 99
                            if (isset($context["text_tags"])) { $_text_tags_ = $context["text_tags"]; } else { $_text_tags_ = null; }
                            echo twig_escape_filter($this->env, $_text_tags_, "html", null, true);
                            echo "
\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t";
                            // line 101
                            if (isset($context["tags"])) { $_tags_ = $context["tags"]; } else { $_tags_ = null; }
                            echo $_tags_;
                            echo "
\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 104
                        echo "\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 108
                    echo " ";
                    // line 109
                    echo "\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                echo " ";
                // line 110
                echo "\t\t\t\t</div>
\t\t\t</div>
\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['date'], $context['date_info'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 112
            echo " ";
            // line 113
            echo "\t";
        }
        echo " ";
        // line 114
        echo "</div>

<div class=\"ai1ec-pull-left\">";
        // line 116
        if (isset($context["pagination_links"])) { $_pagination_links_ = $context["pagination_links"]; } else { $_pagination_links_ = null; }
        echo $_pagination_links_;
        echo "</div>
";
    }

    public function getTemplateName()
    {
        return "agenda.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  356 => 116,  352 => 114,  348 => 113,  346 => 112,  338 => 110,  331 => 109,  329 => 108,  319 => 104,  312 => 101,  306 => 99,  301 => 96,  297 => 95,  290 => 92,  284 => 90,  279 => 87,  275 => 86,  271 => 85,  268 => 84,  261 => 81,  256 => 80,  252 => 78,  246 => 76,  241 => 75,  236 => 72,  232 => 71,  222 => 66,  215 => 63,  210 => 62,  207 => 61,  204 => 60,  194 => 57,  186 => 52,  182 => 50,  175 => 47,  169 => 46,  165 => 45,  162 => 44,  158 => 42,  151 => 40,  148 => 39,  144 => 38,  139 => 37,  124 => 29,  119 => 28,  114 => 27,  109 => 26,  106 => 25,  100 => 24,  95 => 23,  91 => 21,  84 => 19,  81 => 18,  76 => 17,  71 => 16,  66 => 15,  56 => 13,  45 => 10,  39 => 9,  32 => 6,  26 => 4,  53 => 11,  46 => 9,  38 => 6,  28 => 4,  36 => 12,  74 => 14,  68 => 13,  61 => 14,  54 => 8,  49 => 7,  44 => 8,  37 => 5,  31 => 4,  60 => 12,  55 => 11,  42 => 7,  29 => 5,  24 => 4,  102 => 26,  89 => 21,  83 => 19,  77 => 18,  72 => 17,  67 => 16,  62 => 15,  57 => 14,  48 => 11,  43 => 12,  33 => 5,  27 => 3,  22 => 2,  19 => 1,);
    }
}
