<?php

/* event-single.twig */
class __TwigTemplate_d0fd53d3e74d5ca87482d078ffb8d74c0fecfd7106a9092d9a28cce902c86fed 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
        echo "<div class=\"timely ai1ec-single-event
\tai1ec-event-id-";
        // line 2
        if (isset($context["post_id"])) { $_post_id_ = $context["post_id"]; } else { $_post_id_ = null; }
        echo twig_escape_filter($this->env, $_post_id_, "html", null, true);
        echo "
\t";
        // line 3
        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
        if ($this->getAttribute($_event_, "is_multiday")) {
            echo "ai1ec-multiday";
        }
        // line 4
        echo "\t";
        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
        if ($this->getAttribute($_event_, "is_allday")) {
            echo "ai1ec-allday";
        }
        echo "\">

<a id=\"ai1ec-event\"></a>

<div class=\"ai1ec-actions\">
\t<div class=\"ai1ec-btn-group-vertical ai1ec-clearfix\">
\t\t";
        // line 10
        if (isset($context["back_to_calendar"])) { $_back_to_calendar_ = $context["back_to_calendar"]; } else { $_back_to_calendar_ = null; }
        echo $_back_to_calendar_;
        echo "
\t</div>

\t<div class=\"ai1ec-btn-group-vertical ai1ec-clearfix\">
\t\t";
        // line 14
        if (isset($context["ticket_url"])) { $_ticket_url_ = $context["ticket_url"]; } else { $_ticket_url_ = null; }
        if ((!twig_test_empty($_ticket_url_))) {
            // line 15
            echo "\t\t\t<a href=\"";
            if (isset($context["ticket_url"])) { $_ticket_url_ = $context["ticket_url"]; } else { $_ticket_url_ = null; }
            echo twig_escape_filter($this->env, $_ticket_url_, "html_attr");
            echo "\" target=\"_blank\"
\t\t\t\tclass=\"ai1ec-tickets ai1ec-btn ai1ec-btn-sm ai1ec-btn-primary
\t\t\t\t\tai1ec-tooltip-trigger\"
\t\t\t\t\ttitle=\"";
            // line 18
            if (isset($context["tickets_url_label"])) { $_tickets_url_label_ = $context["tickets_url_label"]; } else { $_tickets_url_label_ = null; }
            echo twig_escape_filter($this->env, $_tickets_url_label_, "html_attr");
            echo "\"
\t\t\t\t\tdata-placement=\"left\">
\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-ticket ai1ec-fa-fw\"></i>
\t\t\t\t<span class=\"ai1ec-hidden-xs\">
\t\t\t\t\t";
            // line 22
            if (isset($context["tickets_url_label"])) { $_tickets_url_label_ = $context["tickets_url_label"]; } else { $_tickets_url_label_ = null; }
            echo twig_escape_filter($this->env, $_tickets_url_label_, "html", null, true);
            echo "
\t\t\t\t</span>
\t\t\t</a>
\t\t";
        }
        // line 26
        echo "\t\t";
        if (isset($context["show_subscribe_buttons"])) { $_show_subscribe_buttons_ = $context["show_subscribe_buttons"]; } else { $_show_subscribe_buttons_ = null; }
        if ($_show_subscribe_buttons_) {
            // line 27
            echo "\t\t\t";
            if (isset($context["subscribe_url"])) { $_subscribe_url_ = $context["subscribe_url"]; } else { $_subscribe_url_ = null; }
            if (isset($context["subscribe_url_no_html"])) { $_subscribe_url_no_html_ = $context["subscribe_url_no_html"]; } else { $_subscribe_url_no_html_ = null; }
            if (isset($context["text_add_calendar"])) { $_text_add_calendar_ = $context["text_add_calendar"]; } else { $_text_add_calendar_ = null; }
            if (isset($context["subscribe_buttons_text"])) { $_subscribe_buttons_text_ = $context["subscribe_buttons_text"]; } else { $_subscribe_buttons_text_ = null; }
            $this->env->loadTemplate("subscribe-buttons.twig")->display(array_merge($context, array("export_url" => $_subscribe_url_, "export_url_no_html" => $_subscribe_url_no_html_, "subscribe_label" => $_text_add_calendar_, "text" => $_subscribe_buttons_text_)));
            // line 33
            echo "\t\t";
        }
        // line 34
        echo "\t</div>

\t";
        // line 36
        if (isset($context["extra_buttons"])) { $_extra_buttons_ = $context["extra_buttons"]; } else { $_extra_buttons_ = null; }
        if ($_extra_buttons_) {
            // line 37
            echo "\t\t";
            if (isset($context["extra_buttons"])) { $_extra_buttons_ = $context["extra_buttons"]; } else { $_extra_buttons_ = null; }
            echo $_extra_buttons_;
            echo "
\t";
        }
        // line 39
        echo "</div>

";
        // line 41
        if (isset($context["map"])) { $_map_ = $context["map"]; } else { $_map_ = null; }
        if (twig_test_empty($_map_)) {
            // line 42
            echo "\t";
            $context["col1"] = "ai1ec-col-sm-3";
            // line 43
            echo "\t";
            $context["col2"] = "ai1ec-col-sm-9";
            // line 44
            echo "\t<div class=\"ai1ec-event-details ai1ec-clearfix\">
";
        } else {
            // line 46
            echo "\t";
            $context["col1"] = "ai1ec-col-sm-4 ai1ec-col-md-5";
            // line 47
            echo "\t";
            $context["col2"] = "ai1ec-col-sm-8 ai1ec-col-md-7";
            // line 48
            echo "\t<div class=\"ai1ec-event-details ai1ec-row\">
\t\t<div class=\"ai1ec-map ai1ec-col-sm-5 ai1ec-col-sm-push-7\">
\t\t\t";
            // line 50
            if (isset($context["map"])) { $_map_ = $context["map"]; } else { $_map_ = null; }
            echo $_map_;
            echo "
\t\t</div>
\t\t<div class=\"ai1ec-col-sm-7 ai1ec-col-sm-pull-5\">
";
        }
        // line 54
        echo "
\t<div class=\"ai1ec-time ai1ec-row\">
\t\t<div class=\"ai1ec-field-label ";
        // line 56
        if (isset($context["col1"])) { $_col1_ = $context["col1"]; } else { $_col1_ = null; }
        echo twig_escape_filter($this->env, $_col1_, "html", null, true);
        echo "\">";
        if (isset($context["text_when"])) { $_text_when_ = $context["text_when"]; } else { $_text_when_ = null; }
        echo twig_escape_filter($this->env, $_text_when_, "html", null, true);
        echo "</div>
\t\t<div class=\"ai1ec-field-value ";
        // line 57
        if (isset($context["col2"])) { $_col2_ = $context["col2"]; } else { $_col2_ = null; }
        echo twig_escape_filter($this->env, $_col2_, "html", null, true);
        echo " dt-duration\">
\t\t\t";
        // line 58
        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
        echo $this->env->getExtension('ai1ec')->timespan($_event_);
        echo "
\t\t\t";
        // line 59
        if (isset($context["timezone_info"])) { $_timezone_info_ = $context["timezone_info"]; } else { $_timezone_info_ = null; }
        if ($this->getAttribute($_timezone_info_, "show_timezone")) {
            // line 60
            echo "\t\t\t<abbr class=\"ai1ec-initialism ai1ec-tooltip-trigger\"
\t\t\t\ttitle=\"";
            // line 61
            if (isset($context["timezone_info"])) { $_timezone_info_ = $context["timezone_info"]; } else { $_timezone_info_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_timezone_info_, "text_timezone_title"), "html_attr");
            echo "\">";
            if (isset($context["timezone_info"])) { $_timezone_info_ = $context["timezone_info"]; } else { $_timezone_info_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_timezone_info_, "event_timezone"), "html", null, true);
            echo "</abbr>
\t\t\t";
        }
        // line 63
        echo "\t\t\t";
        $this->env->loadTemplate("recurrence.twig")->display($context);
        // line 64
        echo "\t\t</div>
\t\t<div class=\"ai1ec-hidden dt-start\">";
        // line 65
        if (isset($context["start"])) { $_start_ = $context["start"]; } else { $_start_ = null; }
        echo twig_escape_filter($this->env, $_start_, "html", null, true);
        echo "</div>
\t\t<div class=\"ai1ec-hidden dt-end\">";
        // line 66
        if (isset($context["end"])) { $_end_ = $context["end"]; } else { $_end_ = null; }
        echo twig_escape_filter($this->env, $_end_, "html", null, true);
        echo "</div>
\t</div>

\t";
        // line 69
        if (isset($context["location"])) { $_location_ = $context["location"]; } else { $_location_ = null; }
        if ((!twig_test_empty($_location_))) {
            // line 70
            echo "\t\t<div class=\"ai1ec-location ai1ec-row\">
\t\t\t<div class=\"ai1ec-field-label ";
            // line 71
            if (isset($context["col1"])) { $_col1_ = $context["col1"]; } else { $_col1_ = null; }
            echo twig_escape_filter($this->env, $_col1_, "html", null, true);
            echo "\">";
            if (isset($context["text_where"])) { $_text_where_ = $context["text_where"]; } else { $_text_where_ = null; }
            echo twig_escape_filter($this->env, $_text_where_, "html", null, true);
            echo "</div>
\t\t\t<div class=\"ai1ec-field-value ";
            // line 72
            if (isset($context["col2"])) { $_col2_ = $context["col2"]; } else { $_col2_ = null; }
            echo twig_escape_filter($this->env, $_col2_, "html", null, true);
            echo " p-location\">
\t\t\t\t";
            // line 73
            if (isset($context["location"])) { $_location_ = $context["location"]; } else { $_location_ = null; }
            echo $_location_;
            echo "
\t\t\t</div>
\t\t</div>
\t";
        }
        // line 77
        echo "
\t";
        // line 78
        if (isset($context["cost"])) { $_cost_ = $context["cost"]; } else { $_cost_ = null; }
        if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
        if (((!twig_test_empty($_cost_)) || $this->getAttribute($_event_, "is_free"))) {
            // line 79
            echo "\t\t<div class=\"ai1ec-cost ai1ec-row\">
\t\t\t<div class=\"ai1ec-field-label ";
            // line 80
            if (isset($context["col1"])) { $_col1_ = $context["col1"]; } else { $_col1_ = null; }
            echo twig_escape_filter($this->env, $_col1_, "html", null, true);
            echo "\">";
            if (isset($context["text_cost"])) { $_text_cost_ = $context["text_cost"]; } else { $_text_cost_ = null; }
            echo twig_escape_filter($this->env, $_text_cost_, "html", null, true);
            echo "</div>
\t\t\t<div class=\"ai1ec-field-value ";
            // line 81
            if (isset($context["col2"])) { $_col2_ = $context["col2"]; } else { $_col2_ = null; }
            echo twig_escape_filter($this->env, $_col2_, "html", null, true);
            echo "\">
\t\t\t\t";
            // line 82
            if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
            if (isset($context["text_free"])) { $_text_free_ = $context["text_free"]; } else { $_text_free_ = null; }
            if (isset($context["cost"])) { $_cost_ = $context["cost"]; } else { $_cost_ = null; }
            echo twig_escape_filter($this->env, (($this->getAttribute($_event_, "is_free")) ? ($_text_free_) : ($_cost_)), "html", null, true);
            echo "
\t\t\t</div>
\t\t</div>
\t";
        }
        // line 86
        echo "
\t";
        // line 87
        if (isset($context["contact"])) { $_contact_ = $context["contact"]; } else { $_contact_ = null; }
        if ((!twig_test_empty($_contact_))) {
            // line 88
            echo "\t\t<div class=\"ai1ec-contact ai1ec-row\">
\t\t\t<div class=\"ai1ec-field-label ";
            // line 89
            if (isset($context["col1"])) { $_col1_ = $context["col1"]; } else { $_col1_ = null; }
            echo twig_escape_filter($this->env, $_col1_, "html", null, true);
            echo "\">";
            if (isset($context["text_contact"])) { $_text_contact_ = $context["text_contact"]; } else { $_text_contact_ = null; }
            echo twig_escape_filter($this->env, $_text_contact_, "html", null, true);
            echo "</div>
\t\t\t<div class=\"ai1ec-field-value ";
            // line 90
            if (isset($context["col2"])) { $_col2_ = $context["col2"]; } else { $_col2_ = null; }
            echo twig_escape_filter($this->env, $_col2_, "html", null, true);
            echo "\">";
            if (isset($context["contact"])) { $_contact_ = $context["contact"]; } else { $_contact_ = null; }
            echo $_contact_;
            echo "</div>
\t\t</div>
\t";
        }
        // line 93
        echo "
\t";
        // line 94
        if (isset($context["categories"])) { $_categories_ = $context["categories"]; } else { $_categories_ = null; }
        if ((!twig_test_empty($_categories_))) {
            // line 95
            echo "\t\t<div class=\"ai1ec-categories ai1ec-row\">
\t\t\t<div class=\"ai1ec-field-label ";
            // line 96
            if (isset($context["col1"])) { $_col1_ = $context["col1"]; } else { $_col1_ = null; }
            echo twig_escape_filter($this->env, $_col1_, "html", null, true);
            echo " ai1ec-col-xs-1\">
\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-folder-open ai1ec-tooltip-trigger\"
\t\t\t\t\ttitle=\"";
            // line 98
            if (isset($context["text_categories"])) { $_text_categories_ = $context["text_categories"]; } else { $_text_categories_ = null; }
            echo twig_escape_filter($this->env, $_text_categories_, "html_attr");
            echo "\"></i>
\t\t\t</div>
\t\t\t<div class=\"ai1ec-field-value ";
            // line 100
            if (isset($context["col2"])) { $_col2_ = $context["col2"]; } else { $_col2_ = null; }
            echo twig_escape_filter($this->env, $_col2_, "html", null, true);
            echo " ai1ec-col-xs-10\">
\t\t\t\t";
            // line 101
            if (isset($context["categories"])) { $_categories_ = $context["categories"]; } else { $_categories_ = null; }
            echo $_categories_;
            echo "
\t\t\t</div>
\t\t</div>
\t";
        }
        // line 105
        echo "
\t";
        // line 106
        if (isset($context["tags"])) { $_tags_ = $context["tags"]; } else { $_tags_ = null; }
        if ((!twig_test_empty($_tags_))) {
            // line 107
            echo "\t\t<div class=\"ai1ec-tags ai1ec-row\">
\t\t\t<div class=\"ai1ec-field-label ";
            // line 108
            if (isset($context["col1"])) { $_col1_ = $context["col1"]; } else { $_col1_ = null; }
            echo twig_escape_filter($this->env, $_col1_, "html", null, true);
            echo " ai1ec-col-xs-1\">
\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-tags ai1ec-tooltip-trigger\"
\t\t\t\t\ttitle=\"";
            // line 110
            if (isset($context["text_tags"])) { $_text_tags_ = $context["text_tags"]; } else { $_text_tags_ = null; }
            echo twig_escape_filter($this->env, $_text_tags_, "html_attr");
            echo "\"></i>
\t\t\t</div>
\t\t\t<div class=\"ai1ec-field-value ";
            // line 112
            if (isset($context["col2"])) { $_col2_ = $context["col2"]; } else { $_col2_ = null; }
            echo twig_escape_filter($this->env, $_col2_, "html", null, true);
            echo " ai1ec-col-xs-10\">
\t\t\t\t";
            // line 113
            if (isset($context["tags"])) { $_tags_ = $context["tags"]; } else { $_tags_ = null; }
            echo $_tags_;
            echo "
\t\t\t</div>
\t\t</div>
\t";
        }
        // line 117
        echo "
";
        // line 118
        if (isset($context["map"])) { $_map_ = $context["map"]; } else { $_map_ = null; }
        if (twig_test_empty($_map_)) {
            // line 119
            echo "\t</div>";
        } else {
            // line 121
            echo "\t\t</div>";
            // line 122
            echo "\t</div>";
        }
        // line 124
        echo "
";
        // line 125
        if (isset($context["hide_featured_image"])) { $_hide_featured_image_ = $context["hide_featured_image"]; } else { $_hide_featured_image_ = null; }
        if ((!$_hide_featured_image_)) {
            // line 126
            echo "\t";
            if (isset($context["content_img_url"])) { $_content_img_url_ = $context["content_img_url"]; } else { $_content_img_url_ = null; }
            if (twig_test_empty($_content_img_url_)) {
                // line 127
                echo "\t\t";
                if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; }
                echo $this->env->getExtension('ai1ec')->avatar($_event_, array(0 => "post_thumbnail", 1 => "location_avatar", 2 => "category_avatar"), "timely alignleft", false);
                // line 131
                echo "
\t";
            }
        }
        // line 134
        echo "
</div>
";
    }

    public function getTemplateName()
    {
        return "event-single.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  386 => 134,  381 => 131,  377 => 127,  373 => 126,  370 => 125,  367 => 124,  364 => 122,  362 => 121,  359 => 119,  356 => 118,  353 => 117,  345 => 113,  340 => 112,  334 => 110,  328 => 108,  325 => 107,  322 => 106,  319 => 105,  311 => 101,  306 => 100,  300 => 98,  294 => 96,  291 => 95,  288 => 94,  285 => 93,  275 => 90,  267 => 89,  264 => 88,  261 => 87,  258 => 86,  248 => 82,  243 => 81,  235 => 80,  232 => 79,  228 => 78,  225 => 77,  217 => 73,  212 => 72,  204 => 71,  201 => 70,  198 => 69,  191 => 66,  186 => 65,  183 => 64,  180 => 63,  171 => 61,  168 => 60,  165 => 59,  160 => 58,  155 => 57,  147 => 56,  143 => 54,  135 => 50,  131 => 48,  128 => 47,  125 => 46,  121 => 44,  118 => 43,  115 => 42,  112 => 41,  108 => 39,  101 => 37,  98 => 36,  94 => 34,  91 => 33,  84 => 27,  80 => 26,  72 => 22,  64 => 18,  56 => 15,  53 => 14,  45 => 10,  32 => 4,  27 => 3,  52 => 12,  49 => 11,  41 => 7,  34 => 5,  31 => 4,  25 => 3,  22 => 2,  19 => 1,);
    }
}
