<?php

/* oneday.twig */
class __TwigTemplate_95b0bc90e12b886869857ead6c28360f596d7226395498afb6afc90ae60143ca 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 "

<table class=\"ai1ec-";
        // line 3
        if (isset($context["type"])) { $_type_ = $context["type"]; } else { $_type_ = null; }
        echo twig_escape_filter($this->env, $_type_, "html", null, true);
        echo "-view-original\">
\t<thead>
\t\t<tr>
\t\t\t";
        // line 6
        if (isset($context["cell_array"])) { $_cell_array_ = $context["cell_array"]; } else { $_cell_array_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($_cell_array_);
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["date"] => $context["day"]) {
            // line 7
            echo "\t\t\t\t<th class=\"ai1ec-weekday
\t\t\t\t\t";
            // line 8
            if (isset($context["day"])) { $_day_ = $context["day"]; } else { $_day_ = null; }
            if ((!twig_test_empty($this->getAttribute($_day_, "today")))) {
                echo "ai1ec-today";
            }
            echo "\">
\t\t\t\t\t";
            // line 10
            echo "\t\t\t\t\t";
            if (isset($context["show_reveal_button"])) { $_show_reveal_button_ = $context["show_reveal_button"]; } else { $_show_reveal_button_ = null; }
            if (isset($context["loop"])) { $_loop_ = $context["loop"]; } else { $_loop_ = null; }
            if (($_show_reveal_button_ && $this->getAttribute($_loop_, "last"))) {
                // line 11
                echo "\t\t\t\t\t\t<div class=\"ai1ec-reveal-full-day\">
\t\t\t\t\t\t\t<button class=\"ai1ec-btn ai1ec-btn-info ai1ec-btn-xs
\t\t\t\t\t\t\t\t\tai1ec-tooltip-trigger\"
\t\t\t\t\t\t\t\tdata-placement=\"left\"
\t\t\t\t\t\t\t\ttitle=\"";
                // line 15
                if (isset($context["text_full_day"])) { $_text_full_day_ = $context["text_full_day"]; } else { $_text_full_day_ = null; }
                echo twig_escape_filter($this->env, $_text_full_day_, "html_attr");
                echo "\">
\t\t\t\t\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-expand\"></i>
\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
            }
            // line 20
            echo "\t\t\t\t\t<a class=\"ai1ec-load-view\" href=\"";
            if (isset($context["day"])) { $_day_ = $context["day"]; } else { $_day_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_day_, "href"), "html_attr");
            echo "\"
\t\t\t\t\t\t";
            // line 21
            if (isset($context["data_type"])) { $_data_type_ = $context["data_type"]; } else { $_data_type_ = null; }
            echo $_data_type_;
            echo ">
\t\t\t\t\t\t<span class=\"ai1ec-weekday-date\">";
            // line 22
            if (isset($context["day"])) { $_day_ = $context["day"]; } else { $_day_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_day_, "day"), "html", null, true);
            echo "</span>
\t\t\t\t\t\t<span class=\"ai1ec-weekday-day\">";
            // line 23
            if (isset($context["day"])) { $_day_ = $context["day"]; } else { $_day_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_day_, "weekday"), "html", null, true);
            echo "</span>
\t\t\t\t\t</a>
\t\t\t\t</th>
\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['date'], $context['day'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 27
        echo "\t\t</tr>
\t\t<tr>
\t\t\t";
        // line 29
        if (isset($context["cell_array"])) { $_cell_array_ = $context["cell_array"]; } else { $_cell_array_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($_cell_array_);
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["day"]) {
            // line 30
            echo "\t\t\t\t<td class=\"ai1ec-allday-events
\t\t\t\t\t";
            // line 31
            if (isset($context["day"])) { $_day_ = $context["day"]; } else { $_day_ = null; }
            if ((!twig_test_empty($this->getAttribute($_day_, "today")))) {
                echo "ai1ec-today";
            }
            echo "\">

\t\t\t\t\t";
            // line 33
            if (isset($context["loop"])) { $_loop_ = $context["loop"]; } else { $_loop_ = null; }
            if ($this->getAttribute($_loop_, "first")) {
                // line 34
                echo "\t\t\t\t\t\t<div class=\"ai1ec-allday-label\">";
                if (isset($context["text_all_day"])) { $_text_all_day_ = $context["text_all_day"]; } else { $_text_all_day_ = null; }
                echo twig_escape_filter($this->env, $_text_all_day_, "html", null, true);
                echo "</div>
\t\t\t\t\t";
            }
            // line 36
            echo "
\t\t\t\t\t";
            // line 37
            if (isset($context["day"])) { $_day_ = $context["day"]; } else { $_day_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($_day_, "allday"));
            foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
                // line 38
                echo "\t\t\t\t\t\t<a href=\"";
                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\tdata-instance-id=\"";
                // line 39
                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\tclass=\"ai1ec-event-container ai1ec-load-event ai1ec-popup-trigger
\t\t\t\t\t\t\t\tai1ec-event-id-";
                // line 41
                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 42
                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\tai1ec-allday
\t\t\t\t\t\t\t\t";
                // line 44
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "is_multiday")) {
                    echo "ai1ec-multiday";
                }
                echo "\"
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t<div class=\"ai1ec-event\"
\t\t\t\t\t\t\t\t style=\"";
                // line 47
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_event_, "color_style"), "html_attr");
                echo "\">
\t\t\t\t\t\t\t\t<span class=\"ai1ec-event-title\">
\t\t\t\t\t\t\t\t\t";
                // line 49
                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";
                // line 50
                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_ && $this->getAttribute($_event_, "venue"))) {
                    // line 51
                    echo "\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>";
                    // line 52
                    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";
                }
                // line 54
                echo "\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>

\t\t\t\t\t\t<div class=\"ai1ec-popover ai1ec-popup ai1ec-popup-in-";
                // line 58
                if (isset($context["type"])) { $_type_ = $context["type"]; } else { $_type_ = null; }
                echo twig_escape_filter($this->env, $_type_, "html", null, true);
                echo "-view\">
\t\t\t\t\t\t\t";
                // line 59
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "category_colors")) {
                    // line 60
                    echo "\t\t\t\t\t\t\t\t<div class=\"ai1ec-color-swatches\">";
                    if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                    echo $this->getAttribute($_event_, "category_colors");
                    echo "</div>
\t\t\t\t\t\t\t";
                }
                // line 62
                echo "\t\t\t\t\t\t\t<span class=\"ai1ec-popup-title\">
\t\t\t\t\t\t\t\t<a class=\"ai1ec-load-event\"
\t\t\t\t\t\t\t\t\thref=\"";
                // line 64
                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>";
                // line 65
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                echo $this->getAttribute($_event_, "filtered_title");
                echo "</a>
\t\t\t\t\t\t\t\t";
                // line 66
                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_ && $this->getAttribute($_event_, "venue"))) {
                    // line 67
                    echo "\t\t\t\t\t\t\t\t\t<span class=\"ai1ec-event-location\"
\t\t\t\t\t\t\t\t\t\t>";
                    // line 68
                    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";
                }
                // line 70
                echo "\t\t\t\t\t\t\t\t";
                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_ && $this->getAttribute($_event_, "ticket_url"))) {
                    // line 71
                    echo "\t\t\t\t\t\t\t\t\t<a class=\"ai1ec-pull-right ai1ec-btn ai1ec-btn-primary ai1ec-btn-xs
\t\t\t\t\t\t\t\t\t\tai1ec-buy-tickets\" target=\"_blank\"
\t\t\t\t\t\t\t\t\t\thref=\"";
                    // line 73
                    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>";
                    // line 74
                    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";
                }
                // line 76
                echo "\t\t\t\t\t\t\t</span>

\t\t\t\t\t\t\t";
                // line 78
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "edit_post_link")) {
                    // line 79
                    echo "\t\t\t\t\t\t\t\t<a class=\"post-edit-link\"
\t\t\t\t\t\t\t\t\thref=\"";
                    // line 80
                    if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                    echo $this->getAttribute($_event_, "edit_post_link");
                    echo "\">
\t\t\t\t\t\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-pencil\"></i> ";
                    // line 81
                    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</a>
\t\t\t\t\t\t\t";
                }
                // line 84
                echo "
\t\t\t\t\t\t\t<div class=\"ai1ec-event-time\">
\t\t\t\t\t\t\t\t";
                // line 86
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                echo $this->getAttribute($_event_, "popup_timespan");
                echo "
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t<a class=\"ai1ec-load-event\"
\t\t\t\t\t\t\t\thref=\"";
                // line 90
                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";
                // line 91
                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</a>

\t\t\t\t\t\t\t";
                // line 94
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "post_excerpt")) {
                    // line 95
                    echo "\t\t\t\t\t\t\t\t<div class=\"ai1ec-popup-excerpt\">";
                    if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                    echo $this->getAttribute($_event_, "post_excerpt");
                    echo "</div>
\t\t\t\t\t\t\t";
                }
                // line 97
                echo "\t\t\t\t\t\t</div>

\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 99
            echo " ";
            // line 100
            echo "
\t\t\t\t</td>
\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['day'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 102
        echo " ";
        // line 103
        echo "\t\t</tr>

\t</thead>
\t<tbody>
\t\t<tr class=\"ai1ec-";
        // line 107
        if (isset($context["type"])) { $_type_ = $context["type"]; } else { $_type_ = null; }
        echo twig_escape_filter($this->env, $_type_, "html", null, true);
        echo "\">
\t\t\t";
        // line 108
        if (isset($context["cell_array"])) { $_cell_array_ = $context["cell_array"]; } else { $_cell_array_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($_cell_array_);
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["day"]) {
            // line 109
            echo "\t\t\t\t<td ";
            if (isset($context["day"])) { $_day_ = $context["day"]; } else { $_day_ = null; }
            if ($this->getAttribute($_day_, "today")) {
                echo "class=\"ai1ec-today\"";
            }
            echo ">

\t\t\t\t\t";
            // line 111
            if (isset($context["loop"])) { $_loop_ = $context["loop"]; } else { $_loop_ = null; }
            if ($this->getAttribute($_loop_, "first")) {
                // line 112
                echo "\t\t\t\t\t\t<div class=\"ai1ec-grid-container\">
\t\t\t\t\t\t\t";
                // line 113
                if (isset($context["hours"])) { $_hours_ = $context["hours"]; } else { $_hours_ = null; }
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_ensure_traversable($_hours_);
                foreach ($context['_seq'] as $context["h"] => $context["hour"]) {
                    // line 114
                    echo "\t\t\t\t\t\t\t\t<div class=\"ai1ec-hour-marker
\t\t\t\t\t\t\t\t\t";
                    // line 115
                    if (isset($context["h"])) { $_h_ = $context["h"]; } else { $_h_ = null; }
                    if ((($_h_ >= 8) && ($_h_ < 18))) {
                        echo "ai1ec-business-hour";
                    }
                    echo "\"
\t\t\t\t\t\t\t\t\tstyle=\"top: ";
                    // line 116
                    if (isset($context["h"])) { $_h_ = $context["h"]; } else { $_h_ = null; }
                    echo twig_escape_filter($this->env, ($_h_ * 60), "html", null, true);
                    echo "px;\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t";
                    // line 118
                    if (isset($context["hour"])) { $_hour_ = $context["hour"]; } else { $_hour_ = null; }
                    echo $_hour_;
                    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 121
                    $context['_parent'] = (array) $context;
                    $context['_seq'] = twig_ensure_traversable(range(1, 3));
                    foreach ($context['_seq'] as $context["_key"] => $context["quarter"]) {
                        // line 122
                        echo "\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-quarter-marker\"
\t\t\t\t\t\t\t\t\t\tstyle=\"top: ";
                        // line 123
                        if (isset($context["h"])) { $_h_ = $context["h"]; } else { $_h_ = null; }
                        if (isset($context["quarter"])) { $_quarter_ = $context["quarter"]; } else { $_quarter_ = null; }
                        echo twig_escape_filter($this->env, (($_h_ * 60) + ($_quarter_ * 15)), "html", null, true);
                        echo "px;\"></div>
\t\t\t\t\t\t\t\t";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['quarter'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 125
                    echo "\t\t\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['h'], $context['hour'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 126
                echo "\t\t\t\t\t\t\t";
                if (isset($context["day"])) { $_day_ = $context["day"]; } else { $_day_ = null; }
                if (isset($context["show_now"])) { $_show_now_ = $context["show_now"]; } else { $_show_now_ = null; }
                if (($this->getAttribute($_day_, "today") || $_show_now_)) {
                    // line 127
                    echo "\t\t\t\t\t\t\t\t<div class=\"ai1ec-now-marker\" style=\"top: ";
                    if (isset($context["now_top"])) { $_now_top_ = $context["now_top"]; } else { $_now_top_ = null; }
                    echo twig_escape_filter($this->env, $_now_top_, "html", null, true);
                    echo "px;\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t";
                    // line 129
                    if (isset($context["text_now_label"])) { $_text_now_label_ = $context["text_now_label"]; } else { $_text_now_label_ = null; }
                    echo twig_escape_filter($this->env, $_text_now_label_, "html", null, true);
                    echo " ";
                    if (isset($context["now_text"])) { $_now_text_ = $context["now_text"]; } else { $_now_text_ = null; }
                    echo twig_escape_filter($this->env, $_now_text_, "html", null, true);
                    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";
                }
                // line 133
                echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
            }
            // line 135
            echo "
\t\t\t\t\t<div class=\"ai1ec-day\">

\t\t\t\t\t\t";
            // line 138
            if (isset($context["day"])) { $_day_ = $context["day"]; } else { $_day_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($_day_, "notallday"));
            foreach ($context['_seq'] as $context["_key"] => $context["day_array"]) {
                // line 139
                echo "\t\t\t\t\t\t\t";
                if (isset($context["day_array"])) { $_day_array_ = $context["day_array"]; } else { $_day_array_ = null; }
                $context["event"] = $this->getAttribute($_day_array_, "event");
                // line 140
                echo "\t\t\t\t\t\t\t<a href=\"";
                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\tdata-instance-id=\"";
                // line 141
                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\tclass=\"ai1ec-event-container ai1ec-load-event ai1ec-popup-trigger
\t\t\t\t\t\t\t\t\tai1ec-event-id-";
                // line 143
                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\t\tai1ec-event-instance-id-";
                // line 144
                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\t";
                // line 145
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "start_truncated")) {
                    echo "ai1ec-start-truncated";
                }
                // line 146
                echo "\t\t\t\t\t\t\t\t\t";
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "end_truncated")) {
                    echo "ai1ec-end-truncated";
                }
                // line 147
                echo "\t\t\t\t\t\t\t\t\t";
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "is_multiday")) {
                    echo "ai1ec-multiday";
                }
                echo "\"
\t\t\t\t\t\t\t\tstyle=\"top: ";
                // line 148
                if (isset($context["day_array"])) { $_day_array_ = $context["day_array"]; } else { $_day_array_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_day_array_, "top"), "html", null, true);
                echo "px;
\t\t\t\t\t\t\t\t\theight: ";
                // line 149
                if (isset($context["day_array"])) { $_day_array_ = $context["day_array"]; } else { $_day_array_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_day_array_, "height"), "html", null, true);
                echo "px;
\t\t\t\t\t\t\t\t\tleft: ";
                // line 150
                if (isset($context["day_array"])) { $_day_array_ = $context["day_array"]; } else { $_day_array_ = null; }
                if (isset($context["indent_multiplier"])) { $_indent_multiplier_ = $context["indent_multiplier"]; } else { $_indent_multiplier_ = null; }
                if (isset($context["indent_offset"])) { $_indent_offset_ = $context["indent_offset"]; } else { $_indent_offset_ = null; }
                echo twig_escape_filter($this->env, (($this->getAttribute($_day_array_, "indent") * $_indent_multiplier_) + $_indent_offset_), "html", null, true);
                echo "px;
\t\t\t\t\t\t\t\t\t";
                // line 151
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_event_, "color_style"), "html", null, true);
                echo "
\t\t\t\t\t\t\t\t\t";
                // line 152
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                $context["faded_color"] = $this->getAttribute($_event_, "faded_color");
                // line 153
                echo "\t\t\t\t\t\t\t\t\t";
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                $context["rgba_color"] = $this->getAttribute($_event_, "rgba_color");
                // line 154
                echo "\t\t\t\t\t\t\t\t\t";
                if (isset($context["faded_color"])) { $_faded_color_ = $context["faded_color"]; } else { $_faded_color_ = null; }
                if ($_faded_color_) {
                    // line 155
                    echo "\t\t\t\t\t\t\t\t\t\t";
                    if (isset($context["rgba_color"])) { $_rgba_color_ = $context["rgba_color"]; } else { $_rgba_color_ = null; }
                    $context["rgba1"] = sprintf($_rgba_color_, "0.05");
                    // line 156
                    echo "\t\t\t\t\t\t\t\t\t\t";
                    if (isset($context["rgba_color"])) { $_rgba_color_ = $context["rgba_color"]; } else { $_rgba_color_ = null; }
                    $context["rgba3"] = sprintf($_rgba_color_, "0.3");
                    // line 157
                    echo "\t\t\t\t\t\t\t\t\t\tborder: 1px solid ";
                    if (isset($context["faded_color"])) { $_faded_color_ = $context["faded_color"]; } else { $_faded_color_ = null; }
                    echo twig_escape_filter($this->env, $_faded_color_, "html", null, true);
                    echo ";
\t\t\t\t\t\t\t\t\t\tborder-color: ";
                    // line 158
                    if (isset($context["rgba_color"])) { $_rgba_color_ = $context["rgba_color"]; } else { $_rgba_color_ = null; }
                    echo twig_escape_filter($this->env, sprintf($_rgba_color_, "0.5"), "html", null, true);
                    echo ";
\t\t\t\t\t\t\t\t\t\tbackground-image: -webkit-linear-gradient( top, ";
                    // line 159
                    if (isset($context["rgba1"])) { $_rgba1_ = $context["rgba1"]; } else { $_rgba1_ = null; }
                    echo twig_escape_filter($this->env, $_rgba1_, "html", null, true);
                    echo ", ";
                    if (isset($context["rgba3"])) { $_rgba3_ = $context["rgba3"]; } else { $_rgba3_ = null; }
                    echo twig_escape_filter($this->env, $_rgba3_, "html", null, true);
                    echo " 50px );
\t\t\t\t\t\t\t\t\t\tbackground-image: -moz-linear-gradient( top, ";
                    // line 160
                    if (isset($context["rgba1"])) { $_rgba1_ = $context["rgba1"]; } else { $_rgba1_ = null; }
                    echo twig_escape_filter($this->env, $_rgba1_, "html", null, true);
                    echo ", ";
                    if (isset($context["rgba3"])) { $_rgba3_ = $context["rgba3"]; } else { $_rgba3_ = null; }
                    echo twig_escape_filter($this->env, $_rgba3_, "html", null, true);
                    echo " 50px );
\t\t\t\t\t\t\t\t\t\tbackground-image: -ms-linear-gradient( top, ";
                    // line 161
                    if (isset($context["rgba1"])) { $_rgba1_ = $context["rgba1"]; } else { $_rgba1_ = null; }
                    echo twig_escape_filter($this->env, $_rgba1_, "html", null, true);
                    echo ", ";
                    if (isset($context["rgba3"])) { $_rgba3_ = $context["rgba3"]; } else { $_rgba3_ = null; }
                    echo twig_escape_filter($this->env, $_rgba3_, "html", null, true);
                    echo " 50px );
\t\t\t\t\t\t\t\t\t\tbackground-image: -o-linear-gradient( top, ";
                    // line 162
                    if (isset($context["rgba1"])) { $_rgba1_ = $context["rgba1"]; } else { $_rgba1_ = null; }
                    echo twig_escape_filter($this->env, $_rgba1_, "html", null, true);
                    echo ", ";
                    if (isset($context["rgba3"])) { $_rgba3_ = $context["rgba3"]; } else { $_rgba3_ = null; }
                    echo twig_escape_filter($this->env, $_rgba3_, "html", null, true);
                    echo " 50px );
\t\t\t\t\t\t\t\t\t\tbackground-image: linear-gradient( top, ";
                    // line 163
                    if (isset($context["rgba1"])) { $_rgba1_ = $context["rgba1"]; } else { $_rgba1_ = null; }
                    echo twig_escape_filter($this->env, $_rgba1_, "html", null, true);
                    echo ", ";
                    if (isset($context["rgba3"])) { $_rgba3_ = $context["rgba3"]; } else { $_rgba3_ = null; }
                    echo twig_escape_filter($this->env, $_rgba3_, "html", null, true);
                    echo " 50px );
\t\t\t\t\t\t\t\t\t";
                }
                // line 165
                echo "\t\t\t\t\t\t\t\t\t\">

\t\t\t\t\t\t\t\t";
                // line 167
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "start_truncated")) {
                    // line 168
                    echo "\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-start-truncator\">◤</div>
\t\t\t\t\t\t\t\t";
                }
                // line 170
                echo "\t\t\t\t\t\t\t\t";
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "end_truncated")) {
                    // line 171
                    echo "\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-end-truncator\">◢</div>
\t\t\t\t\t\t\t\t";
                }
                // line 173
                echo "
\t\t\t\t\t\t\t\t<div class=\"ai1ec-event\">
\t\t\t\t\t\t\t\t\t<span class=\"ai1ec-event-time\">
\t\t\t\t\t\t\t\t\t\t";
                // line 176
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_event_, "short_start_time"), "html", null, true);
                echo "
\t\t\t\t\t\t\t\t\t</span>
\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 179
                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 180
                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_ && $this->getAttribute($_event_, "venue"))) {
                    // line 181
                    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 182
                    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 184
                echo "\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t</a>

\t\t\t\t\t\t\t<div class=\"ai1ec-popover ai1ec-popup ai1ec-popup-in-";
                // line 189
                if (isset($context["type"])) { $_type_ = $context["type"]; } else { $_type_ = null; }
                echo twig_escape_filter($this->env, $_type_, "html", null, true);
                echo "-view\">
\t\t\t\t\t\t\t\t";
                // line 190
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "category_colors")) {
                    // line 191
                    echo "\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-color-swatches\">";
                    if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                    echo $this->getAttribute($_event_, "category_colors");
                    echo "</div>
\t\t\t\t\t\t\t\t";
                }
                // line 193
                echo "\t\t\t\t\t\t\t\t<span class=\"ai1ec-popup-title\">
\t\t\t\t\t\t\t\t\t<a class=\"ai1ec-load-event\"
\t\t\t\t\t\t\t\t\t\thref=\"";
                // line 195
                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>";
                // line 196
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                echo $this->getAttribute($_event_, "filtered_title");
                echo "</a>
\t\t\t\t\t\t\t\t\t";
                // line 197
                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_ && $this->getAttribute($_event_, "venue"))) {
                    // line 198
                    echo "\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>";
                    // line 199
                    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";
                }
                // line 201
                echo "\t\t\t\t\t\t\t\t\t";
                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_ && $this->getAttribute($_event_, "ticket_url"))) {
                    // line 202
                    echo "\t\t\t\t\t\t\t\t\t\t<a class=\"ai1ec-pull-right ai1ec-btn ai1ec-btn-primary ai1ec-btn-xs
\t\t\t\t\t\t\t\t\t\t\tai1ec-buy-tickets\" target=\"_blank\"
\t\t\t\t\t\t\t\t\t\t\thref=\"";
                    // line 204
                    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>";
                    // line 205
                    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";
                }
                // line 207
                echo "\t\t\t\t\t\t\t\t</span>

\t\t\t\t\t\t\t\t";
                // line 209
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "edit_post_link")) {
                    // line 210
                    echo "\t\t\t\t\t\t\t\t\t<a class=\"post-edit-link\"
\t\t\t\t\t\t\t\t\t\thref=\"";
                    // line 211
                    if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                    echo $this->getAttribute($_event_, "edit_post_link");
                    echo "\">
\t\t\t\t\t\t\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-pencil\"></i> ";
                    // line 212
                    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</a>
\t\t\t\t\t\t\t\t";
                }
                // line 215
                echo "
\t\t\t\t\t\t\t\t<div class=\"ai1ec-event-time\">
\t\t\t\t\t\t\t\t\t";
                // line 217
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                echo $this->getAttribute($_event_, "popup_timespan");
                echo "
\t\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t\t<a class=\"ai1ec-load-event\"
\t\t\t\t\t\t\t\t\thref=\"";
                // line 221
                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";
                // line 222
                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</a>

\t\t\t\t\t\t\t\t";
                // line 225
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                if ($this->getAttribute($_event_, "post_excerpt")) {
                    // line 226
                    echo "\t\t\t\t\t\t\t\t\t<div class=\"ai1ec-popup-excerpt\">";
                    if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                    echo $this->getAttribute($_event_, "post_excerpt");
                    echo "</div>
\t\t\t\t\t\t\t\t";
                }
                // line 228
                echo "\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['day_array'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 230
            echo " ";
            // line 231
            echo "\t\t\t\t\t</div>

\t\t\t\t</td>
\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['day'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 234
        echo " ";
        // line 235
        echo "\t\t</tr>
\t</tbody>

</table>

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

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  858 => 240,  851 => 235,  849 => 234,  832 => 231,  830 => 230,  822 => 228,  815 => 226,  812 => 225,  805 => 222,  800 => 221,  792 => 217,  788 => 215,  781 => 212,  776 => 211,  773 => 210,  770 => 209,  766 => 207,  760 => 205,  755 => 204,  751 => 202,  746 => 201,  739 => 199,  736 => 198,  732 => 197,  727 => 196,  722 => 195,  718 => 193,  711 => 191,  708 => 190,  703 => 189,  696 => 184,  689 => 182,  686 => 181,  682 => 180,  677 => 179,  670 => 176,  665 => 173,  661 => 171,  657 => 170,  653 => 168,  650 => 167,  646 => 165,  637 => 163,  629 => 162,  621 => 161,  613 => 160,  605 => 159,  600 => 158,  594 => 157,  590 => 156,  586 => 155,  582 => 154,  578 => 153,  575 => 152,  570 => 151,  563 => 150,  558 => 149,  553 => 148,  545 => 147,  539 => 146,  534 => 145,  529 => 144,  524 => 143,  518 => 141,  512 => 140,  508 => 139,  503 => 138,  498 => 135,  494 => 133,  483 => 129,  476 => 127,  471 => 126,  465 => 125,  455 => 123,  452 => 122,  448 => 121,  441 => 118,  435 => 116,  428 => 115,  425 => 114,  420 => 113,  417 => 112,  414 => 111,  405 => 109,  387 => 108,  382 => 107,  376 => 103,  374 => 102,  358 => 100,  356 => 99,  348 => 97,  341 => 95,  338 => 94,  331 => 91,  326 => 90,  318 => 86,  314 => 84,  307 => 81,  302 => 80,  299 => 79,  296 => 78,  292 => 76,  286 => 74,  281 => 73,  277 => 71,  272 => 70,  265 => 68,  262 => 67,  258 => 66,  253 => 65,  248 => 64,  244 => 62,  237 => 60,  234 => 59,  229 => 58,  223 => 54,  216 => 52,  213 => 51,  209 => 50,  204 => 49,  198 => 47,  189 => 44,  183 => 42,  178 => 41,  172 => 39,  166 => 38,  161 => 37,  158 => 36,  151 => 34,  148 => 33,  140 => 31,  137 => 30,  119 => 29,  115 => 27,  96 => 23,  91 => 22,  86 => 21,  80 => 20,  71 => 15,  65 => 11,  60 => 10,  53 => 8,  50 => 7,  32 => 6,  25 => 3,  19 => 1,);
    }
}
