protected function doDisplay(array $context, array $blocks = array())
 {
     // line 3
     $context["value"] = !$this->getAttribute(isset($context["field"]) ? $context["field"] : null, "key", array()) && twig_test_iterable(isset($context["value"]) ? $context["value"] : null) ? $this->env->getExtension('GantryTwig')->valuesFilter(isset($context["value"]) ? $context["value"] : null) : (isset($context["value"]) ? $context["value"] : null);
     // line 1
     $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 3
     $context["option"] = array("uses" => twig_test_iterable($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "uses", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "uses", array()), array()) : array()) ? $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "uses", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "uses", array()), array()) : array() : array(0 => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "uses", array())), "viewless" => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "contenttype", array(), "any", false, true), "viewless", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "contenttype", array(), "any", false, true), "viewless", array()), false) : false);
     // line 10
     $context["attr_slug"] = array("class" => "form-control", "id" => isset($context["key"]) ? $context["key"] : null, "name" => isset($context["name"]) ? $context["name"] : null, "type" => "hidden", "value" => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array()), "get", array(0 => isset($context["key"]) ? $context["key"] : null), "method"));
     // line 22
     $context["fieldset"] = array("slug" => array("contentId" => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array()), "id", array()), "isEmpty" => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array()), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method") == "", "key" => isset($context["key"]) ? $context["key"] : null, "slug" => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array()), "contenttype", array()), "slug", array()), "uses" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "uses", array())));
     // line 20
     $this->parent->display($context, array_merge($this->blocks, $blocks));
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"ai1ec-pagination ai1ec-btn-group\">\n\t";
     // line 2
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["links"]) ? $context["links"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
         // line 3
         echo "\t\t";
         if (twig_test_iterable(isset($context["link"]) ? $context["link"] : null)) {
             // line 4
             echo "\t\t\t<a class=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["link"]) ? $context["link"] : null, "class"), "html", null, true);
             echo " ai1ec-load-view ai1ec-btn ai1ec-btn-sm\n\t\t\t\tai1ec-btn-default ";
             // line 5
             if (!$this->getAttribute(isset($context["link"]) ? $context["link"] : null, "enabled")) {
                 echo "ai1ec-disabled";
             }
             echo "\"\n\t\t\t\t";
             // line 6
             echo isset($context["data_type"]) ? $context["data_type"] : null;
             echo "\n\t\t\t\thref=\"";
             // line 7
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["link"]) ? $context["link"] : null, "href"), "html_attr");
             echo "\">\n\t\t\t\t";
             // line 8
             echo $this->getAttribute(isset($context["link"]) ? $context["link"] : null, "text");
             echo "\n\t\t\t</a>\n\t\t";
         } else {
             // line 11
             echo "\t\t\t";
             echo isset($context["link"]) ? $context["link"] : null;
             echo "\n\t\t";
         }
         // line 13
         echo "\t";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 14
     echo "</div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["originalValue"] = array_key_exists("originalValue", $context) ? isset($context["originalValue"]) ? $context["originalValue"] : null : (isset($context["value"]) ? $context["value"] : null);
     // line 2
     $context["value"] = null === (isset($context["value"]) ? $context["value"] : null) ? $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "default", array()) : (isset($context["value"]) ? $context["value"] : null);
     // line 3
     $context["vertical"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "style", array()) == "vertical";
     // line 4
     echo "\n";
     // line 5
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "yaml", array()) && twig_test_iterable(isset($context["value"]) ? $context["value"] : null)) {
         // line 6
         echo "    ";
         $context["value"] = $this->env->getExtension('AdminTwigExtension')->toYamlFilter(isset($context["value"]) ? $context["value"] : null);
     }
     // line 8
     echo "\n";
     // line 9
     $this->displayBlock('field', $context, $blocks);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if (twig_test_iterable(isset($context["value"]) ? $context["value"] : null)) {
         // line 2
         echo "    <span class=\"badge\">";
         echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["value"]) ? $context["value"] : null), "html", null, true);
         echo "</span>\n";
     } elseif (array_key_exists("link_parameters", $context)) {
         // line 4
         echo "    <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("easyadmin", twig_array_merge(isset($context["link_parameters"]) ? $context["link_parameters"] : null, array("referer" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array()), "requestUri", array())))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('easyadmin_extension')->truncateText($this->env, isset($context["value"]) ? $context["value"] : null), "html", null, true);
         echo "</a>\n";
     } else {
         // line 6
         echo "    ";
         echo twig_escape_filter($this->env, $this->env->getExtension('easyadmin_extension')->truncateText($this->env, isset($context["value"]) ? $context["value"] : null), "html", null, true);
         echo "\n";
     }
 }
 public function block_field($context, array $blocks = array())
 {
     $__internal_3f15a00397c7c0ec35906300d84cfa28eb0e8a65164a3b22727b0703c628e4eb = $this->env->getExtension("native_profiler");
     $__internal_3f15a00397c7c0ec35906300d84cfa28eb0e8a65164a3b22727b0703c628e4eb->enter($__internal_3f15a00397c7c0ec35906300d84cfa28eb0e8a65164a3b22727b0703c628e4eb_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field"));
     // line 14
     ob_start();
     // line 15
     echo "    ";
     if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "choices", array(), "any", true, true)) {
         // line 16
         echo "        ";
         if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "multiple", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "multiple", array()) == true && twig_test_iterable(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
             // line 17
             echo "\n            ";
             // line 18
             $context["result"] = "";
             // line 19
             echo "            ";
             $context["delimiter"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "delimiter", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "delimiter", array()), ", ") : ", ";
             // line 20
             echo "\n            ";
             // line 21
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"));
             foreach ($context['_seq'] as $context["_key"] => $context["val"]) {
                 // line 22
                 echo "                ";
                 if (!twig_test_empty(isset($context["result"]) ? $context["result"] : $this->getContext($context, "result"))) {
                     // line 23
                     echo "                    ";
                     $context["result"] = (isset($context["result"]) ? $context["result"] : $this->getContext($context, "result")) . (isset($context["delimiter"]) ? $context["delimiter"] : $this->getContext($context, "delimiter"));
                     // line 24
                     echo "                ";
                 }
                 // line 25
                 echo "\n                ";
                 // line 26
                 if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "choices", array(), "any", false, true), $context["val"], array(), "array", true, true)) {
                     // line 27
                     echo "                    ";
                     if (!$this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "catalogue", array(), "any", true, true)) {
                         // line 28
                         echo "                        ";
                         $context["result"] = (isset($context["result"]) ? $context["result"] : $this->getContext($context, "result")) . $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "choices", array()), $context["val"], array(), "array");
                         // line 29
                         echo "                    ";
                     } else {
                         // line 30
                         echo "                        ";
                         $context["result"] = (isset($context["result"]) ? $context["result"] : $this->getContext($context, "result")) . $this->env->getExtension('translator')->trans($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "choices", array()), $context["val"], array(), "array"), array(), $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "catalogue", array()));
                         // line 31
                         echo "                    ";
                     }
                     // line 32
                     echo "                ";
                 } else {
                     // line 33
                     echo "                    ";
                     $context["result"] = (isset($context["result"]) ? $context["result"] : $this->getContext($context, "result")) . $context["val"];
                     // line 34
                     echo "                ";
                 }
                 // line 35
                 echo "            ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['val'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 36
             echo "\n            ";
             // line 37
             $context["value"] = isset($context["result"]) ? $context["result"] : $this->getContext($context, "result");
             // line 38
             echo "\n        ";
         } elseif (twig_in_filter(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), twig_get_array_keys_filter($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "choices", array())))) {
             // line 40
             echo "            ";
             if (!$this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "catalogue", array(), "any", true, true)) {
                 // line 41
                 echo "                ";
                 $context["value"] = $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "choices", array()), isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), array(), "array");
                 // line 42
                 echo "            ";
             } else {
                 // line 43
                 echo "                ";
                 $context["value"] = $this->env->getExtension('translator')->trans($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "choices", array()), isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), array(), "array"), array(), $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "catalogue", array()));
                 // line 44
                 echo "            ";
             }
             // line 45
             echo "        ";
         }
         // line 46
         echo "    ";
     }
     // line 47
     echo "\n    ";
     // line 48
     if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "safe", array())) {
         // line 49
         echo "        ";
         echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value");
         echo "\n    ";
     } else {
         // line 51
         echo "        ";
         echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), "html", null, true);
         echo "\n    ";
     }
     // line 53
     echo "\n";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
     $__internal_3f15a00397c7c0ec35906300d84cfa28eb0e8a65164a3b22727b0703c628e4eb->leave($__internal_3f15a00397c7c0ec35906300d84cfa28eb0e8a65164a3b22727b0703c628e4eb_prof);
 }
 public function block_content($context, array $blocks = array())
 {
     // line 18
     echo "<form action=\"\" method=\"post\">\n    ";
     // line 19
     if ($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "timeUnavailable", array(), "any", true, true)) {
         // line 20
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "timeUnavailable", array()), "html", null, true);
         echo "</span><br>\n    ";
     }
     // line 22
     echo "    ";
     // line 23
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "employee_id", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 24
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 26
     echo "    ";
     if (twig_test_iterable(isset($context["creator"]) ? $context["creator"] : null)) {
         // line 27
         echo "        <select name=\"employee_id\" class=\"input\">\n            ";
         // line 28
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["creator"]) ? $context["creator"] : null);
         $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["person"]) {
             // line 29
             echo "                ";
             if ($this->getAttribute($context["loop"], "first", array())) {
                 // line 30
                 echo "                    <option value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "id", array()), "html", null, true);
                 echo "\"";
                 if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "employee_id", array()) == $this->getAttribute($context["person"], "id", array())) {
                     echo " selected";
                 }
                 echo ">Me</option>\n                ";
             } else {
                 // line 32
                 echo "                    <option value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "id", array()), "html", null, true);
                 echo "\"";
                 if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "employee_id", array()) == $this->getAttribute($context["person"], "id", array())) {
                     echo " selected";
                 }
                 echo ">";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "last_name", array()), "html", null, true);
                 echo ", ";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "first_name", array()), "html", null, true);
                 if (!twig_test_empty($this->getAttribute($context["person"], "middle_name", array()))) {
                     echo " ";
                     echo twig_escape_filter($this->env, twig_first($this->env, $this->getAttribute($context["person"], "middle_name", array())), "html", null, true);
                     echo ".";
                 }
                 echo "</option>\n                ";
             }
             // line 34
             echo "            ";
             ++$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['person'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 35
         echo "        </select><br>\n    ";
     } else {
         // line 37
         echo "        <input type=\"hidden\" name=\"employee_id\" value=\"";
         echo twig_escape_filter($this->env, isset($context["creator"]) ? $context["creator"] : null, "html", null, true);
         echo "\">\n    ";
     }
     // line 39
     echo "    ";
     // line 40
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "date", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 41
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 43
     echo "    <label for=\"datepicker\">Date:</label><br>\n    <input type=\"text\" name=\"date\" id=\"datepicker\" class=\"input\" value=\"";
     // line 44
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "date", array()), "html", null, true);
     echo "\" placeholder=\"Click to pick\"><br>\n    ";
     // line 46
     echo "    <label>Time:</label><br>\n    ";
     // line 48
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "time_start", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 49
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 51
     echo "    <input type=\"text\" name=\"time_start\" class=\"input\" value=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "time_start", array()), "html", null, true);
     echo "\" id=\"timepicker-start\" placeholder=\"Click to pick\">\n    <label for=\"timepicker-start\">start</label><br>\n    ";
     // line 54
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "time_end", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 55
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 57
     echo "    <input type=\"text\" name=\"time_end\" class=\"input\" value=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "time_end", array()), "html", null, true);
     echo "\" id=\"timepicker-end\" placeholder=\"Click to pick\">\n    <label for=\"timepicker-end\">end</label><br>\n    ";
     // line 60
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "notes", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 61
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 63
     echo "    <label for=\"notes\">Notes:</label><br>\n    <textarea name=\"notes\" class=\"input\" id=\"notes\">";
     // line 64
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "notes", array()), "html", null, true);
     echo "</textarea><br>\n    ";
     // line 66
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "recurrence", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 67
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 69
     echo "    <label>Recurrence:</label><br>\n    <input type=\"radio\" class=\"css-checkbox\" name=\"recurrence\" value=\"0\" checked=\"checked\" id=\"rec_none\">\n    <label for=\"rec_none\" class=\"css-label\">none</label><br>\n    <input type=\"radio\" class=\"css-checkbox\" name=\"recurrence\" value=\"1\" id=\"rec_weekly\" ";
     // line 72
     if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "recurrence", array()) == 1) {
         echo "checked=\"checked\"";
     }
     echo ">\n    <label for=\"rec_weekly\" class=\"css-label\">weekly</label><br>\n    <input type=\"radio\" class=\"css-checkbox\" name=\"recurrence\" value=\"2\" id=\"rec_bi-weekly\" ";
     // line 74
     if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "recurrence", array()) == 2) {
         echo "checked=\"checked\"";
     }
     echo ">\n    <label for=\"rec_bi-weekly\" class=\"css-label\">bi-weekly</label><br>\n    <input type=\"radio\" class=\"css-checkbox\" name=\"recurrence\" value=\"3\" id=\"rec_monthly\" ";
     // line 76
     if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "recurrence", array()) == 3) {
         echo "checked=\"checked\"";
     }
     echo ">\n    <label for=\"rec_monthly\" class=\"css-label\">monthly</label><br>\n    ";
     // line 79
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "duration", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 80
         echo "        <span class=\"error\">Error in \"Duration\" field: ";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 82
     echo "    ";
     if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "duration", array())) {
         // line 83
         echo "        <input type=\"hidden\" class=\"input\" id=\"duration_value\" value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "duration", array()), "html", null, true);
         echo "\">\n    ";
     }
     // line 85
     echo "    <input type=\"hidden\" name=\"token\" value=\"";
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : null, "html", null, true);
     echo "\">\n    ";
     // line 87
     echo "    <input type=\"submit\" class=\"submit\">\n</form>\n";
 }
 public function getfield($__setting__ = null, $__index__ = -1)
 {
     $context = $this->env->mergeGlobals(array("setting" => $__setting__, "index" => $__index__));
     $blocks = array();
     ob_start();
     try {
         // line 18
         echo "\n    ";
         // line 19
         if ((isset($context["index"]) ? $context["index"] : $this->getContext($context, "index")) == -1) {
             // line 20
             echo "        ";
             $context["index"] = $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "getName", array());
             // line 21
             echo "    ";
         }
         // line 22
         echo "\n    ";
         // line 23
         $context["settingValue"] = $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "getValue", array());
         // line 24
         echo "\n        ";
         // line 25
         if ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) != "checkbox") {
             // line 26
             echo "            <label>";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "title", array()), "html", null, true);
             echo "</label>\n        ";
         }
         // line 28
         echo "\n        ";
         // line 29
         if ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "inlineHelp", array())) {
             // line 30
             echo "            <div class=\"form-help\">\n                ";
             // line 31
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "inlineHelp", array()), "html", null, true);
             echo "\n                ";
             // line 32
             if ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "defaultValue", array()) && $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) != "checkbox" && $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) != "radio") {
                 // line 33
                 echo "                    <br/>\n                    ";
                 // line 34
                 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Default")), "html", null, true);
                 echo ":\n                    ";
                 // line 35
                 if (twig_test_iterable($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "defaultValue", array()))) {
                     // line 36
                     echo "                        ";
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('truncate')->getCallable(), array(twig_join_filter($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "defaultValue", array()), ", "), 50)), "html", null, true);
                     echo "\n                    ";
                 } else {
                     // line 38
                     echo "                        ";
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('truncate')->getCallable(), array($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "defaultValue", array()), 50)), "html", null, true);
                     echo "\n                    ";
                 }
                 // line 40
                 echo "                ";
             }
             // line 41
             echo "            </div>\n        ";
         }
         // line 43
         echo "\n        ";
         // line 44
         if ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) == "select" || $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) == "multiselect") {
             // line 45
             echo "                    <select\n                        ";
             // line 46
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlAttributes", array()));
             foreach ($context['_seq'] as $context["attr"] => $context["val"]) {
                 // line 47
                 echo "            ";
                 echo twig_escape_filter($this->env, $context["attr"], "html_attr");
                 echo "=\"";
                 echo twig_escape_filter($this->env, $context["val"], "html_attr");
                 echo "\"\n        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['attr'], $context['val'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 49
             echo "                        name=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "getKey", array()), "html_attr");
             echo "\"\n                        ";
             // line 50
             if ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) == "multiselect") {
                 echo "multiple";
             }
             echo ">\n\n                        ";
             // line 52
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "availableValues", array()));
             foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                 // line 53
                 echo "            <option value='";
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo "'\n                    ";
                 // line 54
                 if (twig_test_iterable(isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue")) && twig_in_filter($context["key"], isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue"))) {
                     // line 55
                     echo "                selected='selected'\n            ";
                 } elseif ((isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue")) == $context["key"]) {
                     // line 57
                     echo "                selected='selected'\n                    ";
                 }
                 // line 58
                 echo ">\n                ";
                 // line 59
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "\n            </option>\n        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 62
             echo "\n                    </select>\n                ";
         } elseif ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) == "textarea") {
             // line 65
             echo "                    <textarea style=\"width: 376px; height: 250px;\"\n                        ";
             // line 66
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlAttributes", array()));
             foreach ($context['_seq'] as $context["attr"] => $context["val"]) {
                 // line 67
                 echo "            ";
                 echo twig_escape_filter($this->env, $context["attr"], "html_attr");
                 echo "=\"";
                 echo twig_escape_filter($this->env, $context["val"], "html_attr");
                 echo "\"\n        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['attr'], $context['val'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 69
             echo "                        name=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "getKey", array()), "html_attr");
             echo "\"\n                        >";
             // line 71
             echo twig_escape_filter($this->env, isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue"), "html", null, true);
             // line 72
             echo "</textarea>\n                ";
         } elseif ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) == "radio") {
             // line 74
             echo "\n            ";
             // line 75
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "availableValues", array()));
             foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                 // line 76
                 echo "                <label class=\"radio\">\n                    <input\n                            id=\"name-value-";
                 // line 78
                 echo twig_escape_filter($this->env, isset($context["index"]) ? $context["index"] : $this->getContext($context, "index"), "html", null, true);
                 echo "\"\n                    ";
                 // line 79
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlAttributes", array()));
                 foreach ($context['_seq'] as $context["attr"] => $context["val"]) {
                     // line 80
                     echo "                        ";
                     echo twig_escape_filter($this->env, $context["attr"], "html_attr");
                     echo "=\"";
                     echo twig_escape_filter($this->env, $context["val"], "html_attr");
                     echo "\"\n                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['attr'], $context['val'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 82
                 echo "                    ";
                 if ((isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue")) === $context["key"]) {
                     // line 83
                     echo "                        checked=\"checked\"\n                    ";
                 }
                 // line 85
                 echo "                    type=\"radio\"\n                    value=\"";
                 // line 86
                 echo twig_escape_filter($this->env, $context["key"], "html_attr");
                 echo "\"\n                    name=\"";
                 // line 87
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "getKey", array()), "html_attr");
                 echo "\" />\n\n                    ";
                 // line 89
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "\n\n                    ";
                 // line 91
                 if ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "description", array())) {
                     // line 92
                     echo "                        <span class='form-description'>";
                     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "description", array()), "html", null, true);
                     echo "</span>\n                    ";
                 }
                 // line 94
                 echo "\n                </label>\n            ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 97
             echo "\n        ";
         } elseif ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) == "checkbox") {
             // line 99
             echo "\n            <label class=\"checkbox\">\n                <input id=\"name-value-";
             // line 101
             echo twig_escape_filter($this->env, isset($context["index"]) ? $context["index"] : $this->getContext($context, "index"), "html", null, true);
             echo "\"\n                ";
             // line 102
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlAttributes", array()));
             foreach ($context['_seq'] as $context["attr"] => $context["val"]) {
                 // line 103
                 echo "                    ";
                 echo twig_escape_filter($this->env, $context["attr"], "html_attr");
                 echo "=\"";
                 echo twig_escape_filter($this->env, $context["val"], "html_attr");
                 echo "\"\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['attr'], $context['val'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 105
             echo "                value=\"1\"\n                ";
             // line 106
             if (isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue")) {
                 // line 107
                 echo "                    checked=\"checked\"\n                ";
             }
             // line 109
             echo "                type=\"checkbox\"\n                name=\"";
             // line 110
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "getKey", array()), "html_attr");
             echo "\">\n\n                ";
             // line 112
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "title", array()), "html", null, true);
             echo "\n\n                ";
             // line 114
             if ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "description", array())) {
                 // line 115
                 echo "                    <span class='form-description'>";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "description", array()), "html", null, true);
                 echo "</span>\n                ";
             }
             // line 117
             echo "            </label>\n\n        ";
         } else {
             // line 120
             echo "\n            <input\n            ";
             // line 122
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlAttributes", array()));
             foreach ($context['_seq'] as $context["attr"] => $context["val"]) {
                 // line 123
                 echo "                ";
                 echo twig_escape_filter($this->env, $context["attr"], "html_attr");
                 echo "=\"";
                 echo twig_escape_filter($this->env, $context["val"], "html_attr");
                 echo "\"\n            ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['attr'], $context['val'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 125
             echo "            class=\"control_";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()), "html_attr");
             echo "\"\n            type=\"";
             // line 126
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()), "html_attr");
             echo "\"\n            name=\"";
             // line 127
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "getKey", array()), "html_attr");
             echo "\"\n            value=\"";
             // line 128
             echo twig_escape_filter($this->env, isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue"), "html_attr");
             echo "\">\n\n        ";
         }
         // line 131
         echo "\n        ";
         // line 132
         if ($this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) != "checkbox" && $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "uiControlType", array()) != "radio") {
             // line 133
             echo "            <span class='form-description'>";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["setting"]) ? $context["setting"] : $this->getContext($context, "setting"), "description", array()), "html", null, true);
             echo "</span>\n        ";
         }
         // line 135
         echo "\n\n";
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_global_attributes($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $context["variations"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "theme", array()), "details", array()), "configuration", array()), "block-variations", array(), "array");
     // line 5
     echo "    ";
     $context["Options"] = $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array()), "Options", array());
     // line 6
     echo "    ";
     $context["Optgroups"] = $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array()), "Optgroups", array());
     // line 7
     echo "    ";
     $context["options"] = array();
     // line 8
     echo "    ";
     $context["optgroups"] = array();
     // line 9
     echo "    ";
     if (isset($context["variations"]) ? $context["variations"] : null) {
         // line 10
         echo "        ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["variations"]) ? $context["variations"] : null);
         foreach ($context['_seq'] as $context["key"] => $context["text"]) {
             // line 11
             echo "            ";
             if (twig_test_iterable($context["text"])) {
                 // line 12
                 echo "                ";
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($context["text"]);
                 foreach ($context['_seq'] as $context["item_key"] => $context["item_text"]) {
                     // line 13
                     echo "                    ";
                     $context["options"] = twig_array_merge(isset($context["options"]) ? $context["options"] : null, array(0 => array("optgroup" => $context["key"], "value" => $context["item_key"], "text" => $context["item_text"])));
                     // line 14
                     echo "                    ";
                     if (!twig_in_filter($context["key"], isset($context["optgroups"]) ? $context["optgroups"] : null)) {
                         $context["optgroups"] = twig_array_merge(isset($context["optgroups"]) ? $context["optgroups"] : null, array(0 => array("value" => $context["key"], "label" => $context["key"])));
                     }
                     // line 15
                     echo "                ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['item_key'], $context['item_text'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 16
                 echo "            ";
             } else {
                 // line 17
                 echo "                ";
                 $context["options"] = twig_array_merge(isset($context["options"]) ? $context["options"] : null, array(0 => array("value" => $context["key"], "text" => $context["text"])));
                 // line 18
                 echo "            ";
             }
             // line 19
             echo "        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 20
         echo "\n\n        ";
         // line 22
         $context["field"] = twig_array_merge(twig_array_merge(twig_array_merge(isset($context["field"]) ? $context["field"] : null, $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array(), "any", false, true), "Options", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array(), "any", false, true), "Options", array()), array()) : array()), $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array(), "any", false, true), "Optgroups", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array(), "any", false, true), "Optgroups", array()), array()) : array()), array("selectize" => array("Options" => isset($context["options"]) ? $context["options"] : null, "Optgroups" => isset($context["optgroups"]) ? $context["optgroups"] : null)));
         // line 23
         echo "    ";
     }
     // line 24
     echo "\n    data-selectize=\"";
     // line 25
     echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array(), "any", true, true) ? twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array())), "html_attr") : "";
     echo "\"\n    ";
     // line 26
     $this->displayParentBlock("global_attributes", $context, $blocks);
     echo "\n";
 }
 public function block_field($context, array $blocks = array())
 {
     // line 15
     ob_start();
     // line 16
     echo "    ";
     if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "choices", array(), "any", true, true)) {
         // line 17
         echo "        ";
         if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "multiple", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options"), "multiple") == true && twig_test_iterable(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
             // line 18
             echo "\n            ";
             // line 19
             $context["result"] = "";
             // line 20
             echo "            ";
             $context["delimiter"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "delimiter", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "delimiter"), ", ") : ", ";
             // line 21
             echo "\n            ";
             // line 22
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"));
             foreach ($context['_seq'] as $context["_key"] => $context["val"]) {
                 // line 23
                 echo "                ";
                 if (!twig_test_empty(isset($context["result"]) ? $context["result"] : $this->getContext($context, "result"))) {
                     // line 24
                     echo "                    ";
                     $context["result"] = (isset($context["result"]) ? $context["result"] : $this->getContext($context, "result")) . (isset($context["delimiter"]) ? $context["delimiter"] : $this->getContext($context, "delimiter"));
                     // line 25
                     echo "                ";
                 }
                 // line 26
                 echo "\n                ";
                 // line 27
                 if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "choices", array(), "any", false, true), isset($context["val"]) ? $context["val"] : $this->getContext($context, "val"), array(), "array", true, true)) {
                     // line 28
                     echo "                    ";
                     if (!$this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "catalogue", array(), "any", true, true)) {
                         // line 29
                         echo "                        ";
                         $context["result"] = (isset($context["result"]) ? $context["result"] : $this->getContext($context, "result")) . $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options"), "choices"), isset($context["val"]) ? $context["val"] : $this->getContext($context, "val"), array(), "array");
                         // line 30
                         echo "                    ";
                     } else {
                         // line 31
                         echo "                        ";
                         $context["result"] = (isset($context["result"]) ? $context["result"] : $this->getContext($context, "result")) . $this->env->getExtension('translator')->trans($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options"), "choices"), isset($context["val"]) ? $context["val"] : $this->getContext($context, "val"), array(), "array"), array(), $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options"), "catalogue"));
                         // line 32
                         echo "                    ";
                     }
                     // line 33
                     echo "                ";
                 } else {
                     // line 34
                     echo "                    ";
                     $context["result"] = (isset($context["result"]) ? $context["result"] : $this->getContext($context, "result")) . (isset($context["val"]) ? $context["val"] : $this->getContext($context, "val"));
                     // line 35
                     echo "                ";
                 }
                 // line 36
                 echo "            ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['val'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 37
             echo "\n            ";
             // line 38
             $context["value"] = isset($context["result"]) ? $context["result"] : $this->getContext($context, "result");
             // line 39
             echo "\n        ";
         } elseif (twig_in_filter(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), twig_get_array_keys_filter($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options"), "choices")))) {
             // line 41
             echo "            ";
             if (!$this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "catalogue", array(), "any", true, true)) {
                 // line 42
                 echo "                ";
                 $context["value"] = $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options"), "choices"), isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), array(), "array");
                 // line 43
                 echo "            ";
             } else {
                 // line 44
                 echo "                ";
                 $context["value"] = $this->env->getExtension('translator')->trans($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options"), "choices"), isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), array(), "array"), array(), $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options"), "catalogue"));
                 // line 45
                 echo "            ";
             }
             // line 46
             echo "        ";
         }
         // line 47
         echo "    ";
     }
     // line 48
     echo "\n    ";
     // line 49
     echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), "html", null, true);
     echo "\n";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 public function getchangelog_details($__entry__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("entry" => $__entry__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         // line 25
         echo "    ";
         $context["macro"] = $this->loadTemplate("_macro/_macro.twig", "changelog/_macros.twig", 25);
         // line 26
         echo "\n    ";
         // line 27
         $context["preview_w"] = 200;
         // line 28
         echo "    ";
         $context["preview_h"] = 150;
         // line 29
         echo "\n    <h3>\n        \"";
         // line 31
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "title", array()), "html", null, true);
         echo "\"\n        ";
         // line 32
         echo $this->getAttribute($this, "changelog_mutation", array(0 => $this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "mutation_type", array())), "method");
         echo "\n        ";
         // line 33
         echo $this->env->getExtension('Bolt')->trans("component.changelog-detail.by");
         echo " <strong>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "username", array()), "html", null, true);
         echo "</strong>\n    </h3>\n\n    <div class=\"changelog-details\">\n        <div class=\"user\">\n           <i class=\"icon icon-user\"></i>\n        </div>\n\n        <div class=\"body\">\n            <div class=\"time\">\n                <p>\n                    <span>";
         // line 44
         echo $this->getAttribute($this, "changelog_mutation", array(0 => $this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "mutation_type", array())), "method");
         echo " ";
         echo $context["macro"]->getdatetime($this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "date", array()));
         echo "</span>\n                    ";
         // line 45
         echo $this->env->getExtension('Bolt')->trans("component.changelog-detail.by");
         echo " <strong>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "username", array()), "html", null, true);
         echo "</strong>\n                </p>\n                ";
         // line 47
         if ($this->env->getExtension('Bolt')->isChangelogEnabled()) {
             // line 48
             echo "                    ";
             if ($this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "comment", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "comment", array()), false) : false) {
                 echo "<h4><strong>Comment</strong>: ";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "comment", array()), "html", null, true);
                 echo "</h4>";
             }
             // line 49
             echo "                ";
         }
         // line 50
         echo "            </div>\n\n\n            <table class=\"table table-bordered table-condensed table-changelog-details\">\n                <thead>\n                    <tr>\n                        <th>";
         // line 56
         echo $this->env->getExtension('Bolt')->trans("component.changelog-detail.field");
         echo "</th>\n                        <th>";
         // line 57
         echo $this->env->getExtension('Bolt')->trans("component.changelog-detail.value-old");
         echo "</th>\n                        <th>";
         // line 58
         echo $this->env->getExtension('Bolt')->trans("component.changelog-detail.value-new");
         echo "</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
         // line 62
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["entry"]) ? $context["entry"] : null, "changedfields", array()));
         foreach ($context['_seq'] as $context["key"] => $context["field"]) {
             // line 63
             echo "                    <tr>\n                        <td><strong>";
             // line 64
             echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "label", array()), "html", null, true);
             echo "</strong></td>\n\n                        ";
             // line 66
             if ($this->getAttribute($context["field"], "type", array()) == "normal") {
                 // line 67
                 echo "                            <td class=\"change-log-item\">\n                                ";
                 // line 68
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "html", null, true);
                 echo "\n                            </td>\n                            <td class=\"change-log-item\">\n                                ";
                 // line 71
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "html", null, true);
                 echo "\n                            </td>\n                        ";
             } elseif ($this->getAttribute($context["field"], "type", array()) == "html") {
                 // line 74
                 echo "                            <td class=\"change-log-item\">\n                                ";
                 // line 75
                 echo $this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array());
                 echo "\n                            </td>\n                            <td class=\"change-log-item\">\n                                ";
                 // line 78
                 echo $this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array());
                 echo "\n                            </td>\n                        ";
             } elseif ($this->getAttribute($context["field"], "type", array()) == "filelist") {
                 // line 81
                 echo "                            <td class=\"change-log-item\">\n                                ";
                 // line 82
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", 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["file"]) {
                     // line 83
                     echo "                                    <strong>File:</strong> ";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "filename", array()), "html", null, true);
                     echo "<br>\n                                    <strong>Title:</strong> ";
                     // line 84
                     echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "title", array()), "html", null, true);
                     echo "\n\n                                    ";
                     // line 86
                     if (!$this->getAttribute($context["loop"], "last", array())) {
                         // line 87
                         echo "                                    <br><br>\n                                    ";
                     }
                     // line 89
                     echo "                                ";
                     ++$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['file'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 90
                 echo "                            </td>\n                            <td class=\"change-log-item\">\n                                ";
                 // line 92
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", 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["file"]) {
                     // line 93
                     echo "                                    <strong>File:</strong> ";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "filename", array()), "html", null, true);
                     echo "<br>\n                                    <strong>Title:</strong> ";
                     // line 94
                     echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "title", array()), "html", null, true);
                     echo "\n\n                                    ";
                     // line 96
                     if (!$this->getAttribute($context["loop"], "last", array())) {
                         // line 97
                         echo "                                    <br><br>\n                                    ";
                     }
                     // line 99
                     echo "                                ";
                     ++$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['file'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 100
                 echo "                            </td>\n                        ";
             } elseif ($this->getAttribute($context["field"], "type", array()) == "geolocation") {
                 // line 102
                 echo "                            <td class=\"change-log-item\">\n                                <strong>Address:</strong> ";
                 // line 103
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "address", array()), "html", null, true);
                 echo "<br>\n                                <strong>Latitude:</strong> ";
                 // line 104
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "latitude", array()), "html", null, true);
                 echo "<br>\n                                <strong>Longitude:</strong> ";
                 // line 105
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "longitude", array()), "html", null, true);
                 echo "<br>\n                                <strong>Matched address:</strong> ";
                 // line 106
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "formatted_address", array()), "html", null, true);
                 echo "\n                            </td>\n                            <td class=\"change-log-item\">\n                                <strong>Address:</strong> ";
                 // line 109
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "address", array()), "html", null, true);
                 echo "<br>\n                                <strong>Latitude:</strong> ";
                 // line 110
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "latitude", array()), "html", null, true);
                 echo "<br>\n                                <strong>Longitude:</strong> ";
                 // line 111
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "longitude", array()), "html", null, true);
                 echo "<br>\n                                <strong>Matched address:</strong> ";
                 // line 112
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "formatted_address", array()), "html", null, true);
                 echo "\n                            </td>\n                        ";
             } elseif ($this->getAttribute($context["field"], "type", array()) == "image") {
                 // line 115
                 echo "                            <td class=\"change-log-item\">\n                                <strong>File:</strong> ";
                 // line 116
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "file", array()), "html", null, true);
                 echo "<br>\n                                <strong>Title:</strong> ";
                 // line 117
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "title", array()), "html", null, true);
                 echo "<br>\n                                <div class=\"content-preview imageholder\" id=\"thumbnail-";
                 // line 118
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo "\">\n                                ";
                 // line 119
                 if ($this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "file", array()) != "") {
                     // line 120
                     echo "                                    ";
                     $context["preview_path"] = $this->env->getExtension('Bolt')->thumbnail($this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "file", array()), isset($context["preview_w"]) ? $context["preview_w"] : null, isset($context["preview_h"]) ? $context["preview_h"] : null, "c");
                     // line 121
                     echo "                                    <img src=\"";
                     echo twig_escape_filter($this->env, isset($context["preview_path"]) ? $context["preview_path"] : null, "html", null, true);
                     echo "\" alt=\"Preview\" width=\"";
                     echo twig_escape_filter($this->env, isset($context["preview_w"]) ? $context["preview_w"] : null, "html", null, true);
                     echo "\" height=\"";
                     echo twig_escape_filter($this->env, isset($context["preview_h"]) ? $context["preview_h"] : null, "html", null, true);
                     echo "\">\n                                ";
                 }
                 // line 123
                 echo "                                </div>\n                            </td>\n                            <td class=\"change-log-item\">\n                                <strong>File:</strong> ";
                 // line 126
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "file", array()), "html", null, true);
                 echo "<br>\n                                <strong>Title:</strong> ";
                 // line 127
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "title", array()), "html", null, true);
                 echo "<br>\n                                <div class=\"content-preview imageholder\" id=\"thumbnail-";
                 // line 128
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo "\">\n                                ";
                 // line 129
                 if ($this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "file", array()) != "") {
                     // line 130
                     echo "                                    ";
                     $context["preview_path"] = $this->env->getExtension('Bolt')->thumbnail($this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "file", array()), isset($context["preview_w"]) ? $context["preview_w"] : null, isset($context["preview_h"]) ? $context["preview_h"] : null, "c");
                     // line 131
                     echo "                                    <img src=\"";
                     echo twig_escape_filter($this->env, isset($context["preview_path"]) ? $context["preview_path"] : null, "html", null, true);
                     echo "\" alt=\"Preview\" width=\"";
                     echo twig_escape_filter($this->env, isset($context["preview_w"]) ? $context["preview_w"] : null, "html", null, true);
                     echo "\" height=\"";
                     echo twig_escape_filter($this->env, isset($context["preview_h"]) ? $context["preview_h"] : null, "html", null, true);
                     echo "\">\n                                ";
                 }
                 // line 133
                 echo "                                </div>\n                            </td>\n                        ";
             } elseif ($this->getAttribute($context["field"], "type", array()) == "imagelist") {
                 // line 136
                 echo "                            <td class=\"change-log-item\">\n                                ";
                 // line 137
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", 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["image"]) {
                     // line 138
                     echo "                                    <strong>File:</strong> ";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["image"], "filename", array()), "html", null, true);
                     echo "<br>\n                                    <strong>Title:</strong> ";
                     // line 139
                     echo twig_escape_filter($this->env, $this->getAttribute($context["image"], "title", array()), "html", null, true);
                     echo "<br>\n                                    <div class=\"content-preview imageholder\" id=\"thumbnail-";
                     // line 140
                     echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                     echo "\">\n                                    ";
                     // line 141
                     if ($this->getAttribute($context["image"], "filename", array()) != "") {
                         // line 142
                         echo "                                        ";
                         $context["preview_path"] = $this->env->getExtension('Bolt')->thumbnail($this->getAttribute($context["image"], "filename", array()), isset($context["preview_w"]) ? $context["preview_w"] : null, isset($context["preview_h"]) ? $context["preview_h"] : null, "c");
                         // line 143
                         echo "                                        <img src=\"";
                         echo twig_escape_filter($this->env, isset($context["preview_path"]) ? $context["preview_path"] : null, "html", null, true);
                         echo "\" alt=\"Preview\" width=\"";
                         echo twig_escape_filter($this->env, isset($context["preview_w"]) ? $context["preview_w"] : null, "html", null, true);
                         echo "\" height=\"";
                         echo twig_escape_filter($this->env, isset($context["preview_h"]) ? $context["preview_h"] : null, "html", null, true);
                         echo "\">\n                                    ";
                     }
                     // line 145
                     echo "                                    </div>\n\n                                    ";
                     // line 147
                     if (!$this->getAttribute($context["loop"], "last", array())) {
                         // line 148
                         echo "                                    <br>\n                                    ";
                     }
                     // line 150
                     echo "                                ";
                     ++$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['image'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 151
                 echo "                            </td>\n                            <td class=\"change-log-item\">\n                                ";
                 // line 153
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", 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["image"]) {
                     // line 154
                     echo "                                    <strong>File:</strong> ";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["image"], "filename", array()), "html", null, true);
                     echo "<br>\n                                    <strong>Title:</strong> ";
                     // line 155
                     echo twig_escape_filter($this->env, $this->getAttribute($context["image"], "title", array()), "html", null, true);
                     echo "<br>\n                                    <div class=\"content-preview imageholder\" id=\"thumbnail-";
                     // line 156
                     echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                     echo "\">\n                                    ";
                     // line 157
                     if ($this->getAttribute($context["image"], "filename", array()) != "") {
                         // line 158
                         echo "                                        ";
                         $context["preview_path"] = $this->env->getExtension('Bolt')->thumbnail($this->getAttribute($context["image"], "filename", array()), isset($context["preview_w"]) ? $context["preview_w"] : null, isset($context["preview_h"]) ? $context["preview_h"] : null, "c");
                         // line 159
                         echo "                                        <img src=\"";
                         echo twig_escape_filter($this->env, isset($context["preview_path"]) ? $context["preview_path"] : null, "html", null, true);
                         echo "\" alt=\"Preview\" width=\"";
                         echo twig_escape_filter($this->env, isset($context["preview_w"]) ? $context["preview_w"] : null, "html", null, true);
                         echo "\" height=\"";
                         echo twig_escape_filter($this->env, isset($context["preview_h"]) ? $context["preview_h"] : null, "html", null, true);
                         echo "\">\n                                    ";
                     }
                     // line 161
                     echo "                                    </div>\n\n                                    ";
                     // line 163
                     if (!$this->getAttribute($context["loop"], "last", array())) {
                         // line 164
                         echo "                                    <br>\n                                    ";
                     }
                     // line 166
                     echo "                                ";
                     ++$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['image'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 167
                 echo "                            </td>\n                        ";
             } elseif ($this->getAttribute($context["field"], "type", array()) == "markdown" || $this->getAttribute($context["field"], "type", array()) == "textarea") {
                 // line 169
                 echo "                            <td class=\"change-log-item\">\n                                <pre style=\"white-space: pre-wrap; background-color: inherit; border: 0;\">";
                 // line 170
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "html", null, true);
                 echo "</pre>\n                            </td>\n                            <td class=\"change-log-item\">\n                                <pre style=\"white-space: pre-wrap; background-color: inherit; border: 0;\">";
                 // line 173
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "html", null, true);
                 echo "</pre>\n                            </td>\n                        ";
             } elseif ($this->getAttribute($context["field"], "type", array()) == "select") {
                 // line 176
                 echo "                            <td class=\"change-log-item\">\n                                ";
                 // line 177
                 if (twig_test_iterable($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()))) {
                     // line 178
                     echo "                                    <ul>\n                                    ";
                     // line 179
                     $context['_parent'] = $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()));
                     foreach ($context['_seq'] as $context["_key"] => $context["select"]) {
                         // line 180
                         echo "                                        <li>";
                         echo twig_escape_filter($this->env, $context["select"], "html", null, true);
                         echo "</li>\n                                    ";
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['select'], $context['_parent'], $context['loop']);
                     $context = array_intersect_key($context, $_parent) + $_parent;
                     // line 182
                     echo "                                    </ul>\n                                ";
                 } else {
                     // line 184
                     echo "                                    ";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "html", null, true);
                     echo "\n                                ";
                 }
                 // line 186
                 echo "                            </td>\n                            <td class=\"change-log-item\">\n                                ";
                 // line 188
                 if (twig_test_iterable($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()))) {
                     // line 189
                     echo "                                    <ul>\n                                    ";
                     // line 190
                     $context['_parent'] = $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()));
                     foreach ($context['_seq'] as $context["_key"] => $context["select"]) {
                         // line 191
                         echo "                                        <li>";
                         echo twig_escape_filter($this->env, $context["select"], "html", null, true);
                         echo "</li>\n                                    ";
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['select'], $context['_parent'], $context['loop']);
                     $context = array_intersect_key($context, $_parent) + $_parent;
                     // line 193
                     echo "                                    </ul>\n                                ";
                 } else {
                     // line 195
                     echo "                                    ";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "html", null, true);
                     echo "\n                                ";
                 }
                 // line 197
                 echo "                            </td>\n                        ";
             } elseif ($this->getAttribute($context["field"], "type", array()) == "video") {
                 // line 199
                 echo "                            <td class=\"change-log-item\">\n                                <strong>Title:</strong> ";
                 // line 200
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "title", array()), "html", null, true);
                 echo "<br>\n                                <strong>URL:</strong> ";
                 // line 201
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "url", array()), "html", null, true);
                 echo "<br>\n                                <strong>Size:</strong> ";
                 // line 202
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "width", array()), "html", null, true);
                 echo " x ";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "height", array()), "html", null, true);
                 echo "<br>\n                                <div class=\"imageholder\" id=\"thumbnail-";
                 // line 203
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo "\">\n                                    ";
                 // line 204
                 if ($this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array(), "any", false, true), "render", array(), "any", false, true), "thumbnail", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array(), "any", false, true), "render", array(), "any", false, true), "thumbnail", array()), "") : "") {
                     // line 205
                     echo "                                        <img src=\"";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "before", array()), "render", array()), "thumbnail", array()), "html", null, true);
                     echo "\" width=\"200\" height=\"150\">\n                                    ";
                 }
                 // line 207
                 echo "                                </div>\n                                <div class=\"hidden video\" id=\"";
                 // line 208
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo "\">";
                 echo $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "html", array());
                 echo "</div>\n                            </td>\n                            <td class=\"change-log-item\">\n                                <strong>Title:</strong> ";
                 // line 211
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "title", array()), "html", null, true);
                 echo "<br>\n                                <strong>URL:</strong> ";
                 // line 212
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "url", array()), "html", null, true);
                 echo "<br>\n                                <strong>Size:</strong> ";
                 // line 213
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "width", array()), "html", null, true);
                 echo " x ";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "height", array()), "html", null, true);
                 echo "<br>\n                                <div class=\"imageholder\" id=\"thumbnail-";
                 // line 214
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo "\">\n                                    ";
                 // line 215
                 if ($this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array(), "any", false, true), "render", array(), "any", false, true), "thumbnail", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array(), "any", false, true), "render", array(), "any", false, true), "thumbnail", array()), "") : "") {
                     // line 216
                     echo "                                        <img src=\"";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "thumbnail", array()), "html", null, true);
                     echo "\" width=\"";
                     echo twig_escape_filter($this->env, isset($context["preview_w"]) ? $context["preview_w"] : null, "html", null, true);
                     echo "\" height=\"";
                     echo twig_escape_filter($this->env, isset($context["preview_h"]) ? $context["preview_h"] : null, "html", null, true);
                     echo "\">\n                                    ";
                 }
                 // line 218
                 echo "                                </div>\n                                <div class=\"hidden video\" id=\"";
                 // line 219
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo "\">";
                 echo $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], "after", array()), "render", array()), "html", array());
                 echo "</div>\n                            </td>\n                        ";
             }
             // line 222
             echo "                    </tr>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['key'], $context['field'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 224
         echo "                </tbody>\n            </table>\n        </div>\n    </div>\n";
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_content($context, array $blocks = array())
 {
     // line 18
     echo "<form action=\"\" method=\"post\">\n    ";
     // line 19
     if ($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "timeUnavailable", array(), "any", true, true)) {
         // line 20
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "timeUnavailable", array()), "html", null, true);
         echo "</span><br>\n    ";
     }
     // line 22
     echo "    ";
     // line 23
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "employee_id", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 24
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 26
     echo "    ";
     if (twig_test_iterable(isset($context["creator"]) ? $context["creator"] : null)) {
         // line 27
         echo "        <select name=\"employee_id\" class=\"input\">\n            ";
         // line 28
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["creator"]) ? $context["creator"] : null);
         $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["person"]) {
             // line 29
             echo "                ";
             if ($this->getAttribute($context["loop"], "first", array())) {
                 // line 30
                 echo "                    <option value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "id", array()), "html", null, true);
                 echo "\"";
                 if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "employee_id", array()) == $this->getAttribute($context["person"], "id", array())) {
                     echo " selected";
                 }
                 echo ">Me</option>\n                ";
             } else {
                 // line 32
                 echo "                    <option value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "id", array()), "html", null, true);
                 echo "\"";
                 if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "employee_id", array()) == $this->getAttribute($context["person"], "id", array())) {
                     echo " selected";
                 }
                 echo ">";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "last_name", array()), "html", null, true);
                 echo ", ";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "first_name", array()), "html", null, true);
                 if (!twig_test_empty($this->getAttribute($context["person"], "middle_name", array()))) {
                     echo " ";
                     echo twig_escape_filter($this->env, twig_first($this->env, $this->getAttribute($context["person"], "middle_name", array())), "html", null, true);
                     echo ".";
                 }
                 echo "</option>\n                ";
             }
             // line 34
             echo "            ";
             ++$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['person'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 35
         echo "        </select><br>\n    ";
     } else {
         // line 37
         echo "        <input type=\"hidden\" name=\"employee_id\" value=\"";
         echo twig_escape_filter($this->env, isset($context["creator"]) ? $context["creator"] : null, "html", null, true);
         echo "\">\n    ";
     }
     // line 39
     echo "    ";
     // line 40
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "date", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 41
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 43
     echo "    <label for=\"datepicker\">Date:</label><br>\n    ";
     // line 44
     if (array_key_exists("errors", $context)) {
         // line 45
         echo "        <input type=\"text\" name=\"date\" class=\"input\" id=\"datepicker\" value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "date", array()), "html", null, true);
         echo "\"><br>\n    ";
     } else {
         // line 47
         echo "        <input type=\"text\" name=\"date\" class=\"input\" id=\"datepicker\" value=\"";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "start_time", array()), "M j, Y (D)"), "html", null, true);
         echo "\"><br>\n    ";
     }
     // line 49
     echo "    ";
     // line 50
     echo "    <label>Time:</label><br>\n    ";
     // line 52
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "time_start", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 53
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 55
     echo "    ";
     if (array_key_exists("errors", $context)) {
         // line 56
         echo "        <input type=\"text\" name=\"time_start\" class=\"input\" value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "time_start", array()), "html", null, true);
         echo "\" id=\"timepicker-start\">\n    ";
     } elseif ((isset($context["clock"]) ? $context["clock"] : null) == "12") {
         // line 58
         echo "        <input type=\"text\" name=\"time_start\" class=\"input\" value=\"";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "start_time", array()), "h:i A"), "html", null, true);
         echo "\" id=\"timepicker-start\">\n    ";
     } else {
         // line 60
         echo "        <input type=\"text\" name=\"time_start\" class=\"input\" value=\"";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "start_time", array()), "H:i"), "html", null, true);
         echo "\"  id=\"timepicker-start\">\n    ";
     }
     // line 62
     echo "    <label for=\"timepicker-start\">start</label><br>\n    ";
     // line 64
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "time_end", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 65
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 67
     echo "    ";
     if (array_key_exists("errors", $context)) {
         // line 68
         echo "        <input type=\"text\" name=\"time_end\" class=\"input\" value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "time_end", array()), "html", null, true);
         echo "\" id=\"timepicker-end\">\n    ";
     } elseif ((isset($context["clock"]) ? $context["clock"] : null) == "12") {
         // line 70
         echo "        <input type=\"text\" name=\"time_end\" class=\"input\" value=\"";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "end_time", array()), "h:i A"), "html", null, true);
         echo "\" id=\"timepicker-end\">\n    ";
     } else {
         // line 72
         echo "        <input type=\"text\" name=\"time_end\" class=\"input\" value=\"";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "end_time", array()), "H:i"), "html", null, true);
         echo "\"  id=\"timepicker-end\">\n    ";
     }
     // line 74
     echo "    <label for=\"timepicker-end\">end</label><br>\n    ";
     // line 76
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "notes", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 77
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 79
     echo "    <label for=\"notes\">Notes:</label><br>\n    <textarea name=\"notes\" class=\"input\" id=\"notes\">";
     // line 80
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "notes", array()), "html", null, true);
     echo "</textarea><br>\n    ";
     // line 81
     if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "recurrences", array()) == "true") {
         // line 82
         echo "        <input type=\"checkbox\" name=\"all\" id=\"all\" ";
         if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "all", array()) == "on") {
             echo "checked=\"checked\"";
         }
         echo "><label for=\"all\">Apply to all occurrences?</label><br>\n        <span class=\"note\">* Date of specified event can be changed only on a case-by-case basis</span><br>\n        <input type=\"hidden\" name=\"recurrences\" value=\"true\">\n    ";
     }
     // line 86
     echo "    <input type=\"hidden\" name=\"boardroom\" value=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "boardroom", array()), "html", null, true);
     echo "\">\n    <input type=\"hidden\" name=\"parent\" value=\"";
     // line 87
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "parent", array()), "html", null, true);
     echo "\">\n    <input type=\"hidden\" name=\"token\" value=\"";
     // line 88
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : null, "html", null, true);
     echo "\">\n    ";
     // line 90
     echo "    <input type=\"submit\" class=\"submit\">\n</form>\n";
 }
 public function block_panel_body($context, array $blocks = array())
 {
     // line 13
     echo "    <a class=\"btn btn-primary\" href=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("editcontent", array("contenttypeslug" => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array()), "slug", array()))), "html", null, true);
     echo "\">\n        <i class=\"fa fa-plus\"></i> ";
     // line 14
     echo $this->env->getExtension('Bolt')->trans("contenttypes.generic.new", array("%contenttype%" => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array()), "slug", array())));
     echo "\n    </a>\n\n    <p style=\"margin-top: 15px;\"><strong>";
     // line 17
     echo $this->env->getExtension('Bolt')->trans("Filter");
     echo "</strong></p>\n\n    <form class=\"form-inline\">\n\n        ";
     // line 21
     $context["taxonomyfilter"] = false;
     // line 22
     echo "\n        <div class=\"form-group\">\n        ";
     // line 24
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "taxonomy", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "taxonomy", array()), array()) : array());
     foreach ($context['_seq'] as $context["_key"] => $context["taxonomy"]) {
         // line 25
         echo "            ";
         if (twig_test_iterable($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "taxonomy/" . $context["taxonomy"] . "/options"), "method"))) {
             // line 26
             echo "                ";
             if ($this->env->getExtension('Bolt')->request("taxonomy-" . $context["taxonomy"])) {
                 // line 27
                 echo "                    ";
                 $context["taxonomyfilter"] = true;
                 // line 28
                 echo "                ";
             }
             // line 29
             echo "                <select name='taxonomy-";
             echo twig_escape_filter($this->env, $context["taxonomy"], "html", null, true);
             echo "' class='form-control'>\n                    <option value=''>\n                        (";
             // line 31
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array(), "any", false, true), "get", array(0 => "taxonomy/" . $context["taxonomy"] . "/name"), "method", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array(), "any", false, true), "get", array(0 => "taxonomy/" . $context["taxonomy"] . "/name"), "method"), $context["taxonomy"]) : $context["taxonomy"], "html", null, true);
             echo ")\n                    </option>\n                ";
             // line 33
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "taxonomy/" . $context["taxonomy"] . "/options"), "method"));
             foreach ($context['_seq'] as $context["slug"] => $context["name"]) {
                 // line 34
                 echo "                    <option value='";
                 echo twig_escape_filter($this->env, $context["slug"], "html", null, true);
                 echo "' ";
                 if ($this->env->getExtension('Bolt')->request("taxonomy-" . $context["taxonomy"]) == $context["slug"]) {
                     echo "selected";
                 }
                 echo ">\n                        ";
                 // line 35
                 echo twig_escape_filter($this->env, $context["name"], "html", null, true);
                 echo "\n                    </option>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['slug'], $context['name'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 38
             echo "                </select>\n                ";
             // line 39
             echo $this->env->getExtension('Bolt')->trans("or");
             echo "\n            ";
         }
         // line 41
         echo "        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxonomy'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 42
     echo "            <input type=\"text\" class=\"form-control\" value=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->request("filter", "", true), "html", null, true);
     echo "\" name=\"filter\" style=\"width: 110px;\" placeholder=\"";
     echo $this->env->getExtension('Bolt')->trans("Keyword …");
     echo "\">\n        </div>\n\n        <div class=\"form-group\" style=\"display: block; margin-top: 12px;\">\n            <button type=\"submit\" class=\"btn btn-tertiary\"><i class=\"fa fa-filter\"></i> ";
     // line 46
     echo $this->env->getExtension('Bolt')->trans("Filter");
     echo "</button>\n\n            ";
     // line 48
     if ($this->env->getExtension('Bolt')->request("filter") || $this->env->getExtension('Bolt')->request("order") || (isset($context["taxonomyfilter"]) ? $context["taxonomyfilter"] : null)) {
         // line 49
         echo "                <a class=\"btn btn-tertiary\" href=\"?\"><i class=\"fa fa-close\"></i> ";
         echo $this->env->getExtension('Bolt')->trans("Clear sort/filter");
         echo "</a>\n            ";
     }
     // line 51
     echo "        </div>\n\n    </form>\n\n\n    ";
     // line 56
     $context["description"] = $this->env->getExtension('Bolt')->trans(array(0 => "contenttypes", 1 => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array()), "slug", array()), 2 => "description"), array("DEFAULT" => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "description", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "description", array())) : ""));
     // line 57
     echo "    <div class=\"description\">\n        ";
     // line 58
     if (isset($context["description"]) ? $context["description"] : null) {
         // line 59
         echo "            ";
         echo $this->env->getExtension('Bolt')->markdown(isset($context["description"]) ? $context["description"] : null);
         echo "\n        ";
     }
     // line 61
     echo "    </div>\n\n    <p><strong>";
     // line 63
     echo $this->env->getExtension('Bolt')->trans("Details");
     echo "</strong></p>\n    <ul>\n        <li>";
     // line 65
     echo $this->env->getExtension('Bolt')->trans("Default status");
     echo ": ";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "default_status", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "default_status", array()), "published") : "published", "html", null, true);
     echo "</li>\n        <li>";
     // line 66
     echo $this->env->getExtension('Bolt')->trans("Listing template");
     echo ": <code>";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "listing_template", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "listing_template", array()), $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/listing_template"), "method")) : $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/listing_template"), "method"), "html", null, true);
     echo "</code></li>\n        <li>";
     // line 67
     echo $this->env->getExtension('Bolt')->trans("Detail template");
     echo ": <code>";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "record_template", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "record_template", array()), $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/record_template"), "method")) : $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/record_template"), "method"), "html", null, true);
     echo "</code></li>\n        ";
     // line 68
     if (twig_test_iterable($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "taxonomy", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "taxonomy", array()), "") : "")) {
         // line 69
         echo "            <li>";
         echo $this->env->getExtension('Bolt')->trans("Taxonomy");
         echo ": ";
         echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array()), "taxonomy", array()), ", "), "html", null, true);
         echo "</li>\n        ";
     }
     // line 71
     echo "        ";
     if (twig_test_iterable($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "relations", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "relations", array()), "") : "")) {
         // line 72
         echo "            <li>\n                ";
         // line 73
         echo $this->env->getExtension('Bolt')->trans("Relationships");
         echo ":\n                ";
         // line 74
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array()), "relations", 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["rel"] => $context["data"]) {
             // line 75
             echo "                    ";
             echo twig_escape_filter($this->env, $context["rel"], "html", null, true);
             if (!$this->getAttribute($context["loop"], "last", array())) {
                 echo ", ";
             }
             // line 76
             echo "                ";
             ++$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['rel'], $context['data'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 77
         echo "            </li>\n        ";
     }
     // line 79
     echo "    </ul>\n\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $this->loadTemplate("_header.twig", "record.twig", 1)->display($context);
     // line 2
     echo "\n<!-- Main Page Content and Sidebar -->\n\n    <!-- Main Blog Content -->\n    <div class=\"large-8 columns\" role=\"content\">\n\n        <article>\n\n            <h2 data-bolt-field=\"title\">";
     // line 10
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["record"]) ? $context["record"] : null, "title", array()), "html", null, true);
     echo "</h2>\n\n            ";
     // line 12
     if ($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "subtitle", array())) {
         // line 13
         echo "                <h3 data-bolt-field=\"subtitle\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["record"]) ? $context["record"] : null, "subtitle", array()), "html", null, true);
         echo "</h3>\n            ";
     }
     // line 15
     echo "\n            ";
     // line 16
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "values", array()));
     foreach ($context['_seq'] as $context["key"] => $context["value"]) {
         if (!twig_in_filter($context["key"], array(0 => "id", 1 => "slug", 2 => "datecreated", 3 => "datechanged", 4 => "datepublish", 5 => "datedepublish", 6 => "username", 7 => "status", 8 => "title", 9 => "subtitle", 10 => "ownerid", 11 => "templatefields"))) {
             // line 17
             echo "\n                ";
             // line 18
             if ($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "fieldtype", array(0 => $context["key"]), "method") == "image" && $context["value"] != "") {
                 // line 19
                 echo "\n                    ";
                 // line 20
                 if ($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "image", array()) != "") {
                     // line 21
                     echo "                        <div class=\"large-4 imageholder\">\n                            <a href=\"";
                     // line 22
                     echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($context["value"]), "html", null, true);
                     echo "\">\n                                <img src=\"";
                     // line 23
                     echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->thumbnail($context["value"], 640, 480), "html", null, true);
                     echo "\">\n                            </a>\n                        </div>\n                    ";
                 }
                 // line 27
                 echo "\n\n                ";
             } elseif ($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "fieldtype", array(0 => $context["key"]), "method") == "imagelist" && !twig_test_empty($this->getAttribute(isset($context["record"]) ? $context["record"] : null, $context["key"]))) {
                 // line 30
                 echo "\n                    ";
                 // line 35
                 echo "\n                    ";
                 // line 36
                 $context["list"] = $this->getAttribute(isset($context["record"]) ? $context["record"] : null, $context["key"]);
                 // line 37
                 echo "\n                    ";
                 // line 38
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable(isset($context["list"]) ? $context["list"] : null);
                 foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                     // line 39
                     echo "                        <a href=\"";
                     echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($this->getAttribute($context["item"], "filename", array())), "html", null, true);
                     echo "\">\n                            <img src=\"";
                     // line 40
                     echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->thumbnail($this->getAttribute($context["item"], "filename", array()), 100, 100), "html", null, true);
                     echo "\" alt=\"";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "title", array()), "html", null, true);
                     echo "\" title=\"";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "title", array()), "html", null, true);
                     echo "\">\n                        </a>\n                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 43
                 echo "\n                ";
             } elseif ($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "fieldtype", array(0 => $context["key"]), "method") == "video" && $this->getAttribute($context["value"], "responsive", array(), "any", true, true)) {
                 // line 45
                 echo "\n                    ";
                 // line 46
                 echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "responsive", array()), "html", null, true);
                 echo "\n\n                ";
             } elseif ($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "fieldtype", array(0 => $context["key"]), "method") == "geolocation" && !twig_test_empty($this->getAttribute($context["value"], "latitude", array()))) {
                 // line 49
                 echo "\n                    <div class=\"imageholder-wide\">\n                        <img src=\"http://maps.googleapis.com/maps/api/staticmap?center=";
                 // line 51
                 echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "latitude", array()), "html", null, true);
                 echo ",";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "longitude", array()), "html", null, true);
                 echo "&amp;zoom=14&amp;size=617x300&amp;sensor=false&amp;markers=";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "latitude", array()), "html", null, true);
                 echo ",";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "longitude", array()), "html", null, true);
                 echo "\">\n                    </div>\n                    <p>";
                 // line 53
                 echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "formatted_address", array()), "html", null, true);
                 echo "</p>\n\n                ";
             } elseif (twig_in_filter($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "fieldtype", array(0 => $context["key"]), "method"), array(0 => "html", 1 => "markdown", 2 => "textarea"))) {
                 // line 56
                 echo "\n                    <div data-bolt-field=\"";
                 // line 57
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo "\">";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["record"]) ? $context["record"] : null, $context["key"]), "html", null, true);
                 echo "</div>\n\n                ";
             } elseif ($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "fieldtype", array(0 => $context["key"]), "method") == "select") {
                 // line 60
                 echo "\n                    ";
                 // line 62
                 echo "                    <p><strong>";
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo ": </strong>\n                        ";
                 // line 63
                 echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute(isset($context["record"]) ? $context["record"] : null, $context["key"]), ", "), "html", null, true);
                 echo "\n                    </p>\n\n                ";
             } elseif (!twig_in_filter($this->getAttribute(isset($context["record"]) ? $context["record"] : null, "fieldtype", array(0 => $context["key"]), "method"), array(0 => "templateselect")) && !twig_test_empty($this->getAttribute(isset($context["record"]) ? $context["record"] : null, $context["key"]))) {
                 // line 67
                 echo "\n                    ";
                 // line 70
                 echo "                    <p><strong>";
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo ": </strong>\n                        ";
                 // line 71
                 if (twig_test_iterable($this->getAttribute(isset($context["record"]) ? $context["record"] : null, $context["key"]))) {
                     // line 72
                     echo "                            ";
                     echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->printDump($this->getAttribute(isset($context["record"]) ? $context["record"] : null, $context["key"])), "html", null, true);
                     echo "\n                        ";
                 } else {
                     // line 74
                     echo "                            ";
                     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["record"]) ? $context["record"] : null, $context["key"]), "html", null, true);
                     echo "\n                        ";
                 }
                 // line 76
                 echo "                    </p>\n\n                ";
             }
             // line 79
             echo "\n            ";
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 81
     echo "\n            ";
     // line 85
     echo "\n            ";
     // line 86
     $this->loadTemplate("_recordfooter.twig", "record.twig", 86)->display(array_merge($context, array("record" => isset($context["record"]) ? $context["record"] : null)));
     // line 87
     echo "\n            <p class=\"meta\">\n                ";
     // line 89
     $context["previous"] = $this->getAttribute(isset($context["record"]) ? $context["record"] : null, "previous", array(0 => "id"), "method");
     // line 90
     echo "                ";
     if (isset($context["previous"]) ? $context["previous"] : null) {
         // line 91
         echo "                    <a href=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["previous"]) ? $context["previous"] : null, "link", array()), "html", null, true);
         echo "\">&laquo; ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["previous"]) ? $context["previous"] : null, "title", array()), "html", null, true);
         echo "</a>\n                ";
     }
     // line 93
     echo "                -\n                ";
     // line 94
     $context["next"] = $this->getAttribute(isset($context["record"]) ? $context["record"] : null, "next", array(0 => "id"), "method");
     // line 95
     echo "                ";
     if (isset($context["next"]) ? $context["next"] : null) {
         // line 96
         echo "                    <a href=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["next"]) ? $context["next"] : null, "link", array()), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["next"]) ? $context["next"] : null, "title", array()), "html", null, true);
         echo " &raquo;</a>\n                ";
     }
     // line 98
     echo "            </p>\n\n            ";
     // line 100
     $context["relatedrecords"] = $this->getAttribute(isset($context["record"]) ? $context["record"] : null, "related", array(), "method");
     // line 101
     echo "            ";
     if (!twig_test_empty(isset($context["relatedrecords"]) ? $context["relatedrecords"] : null)) {
         // line 102
         echo "                <p class=\"meta\">";
         echo $this->env->getExtension('Bolt')->trans("Related content:");
         echo "\n                <ul>\n                    ";
         // line 104
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["relatedrecords"]) ? $context["relatedrecords"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["related"]) {
             // line 105
             echo "                        <li><a href=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["related"], "link", array()), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute($context["related"], "title", array()), "html", null, true);
             echo "</a></li>\n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['related'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 107
         echo "                </ul>\n                </p>\n            ";
     }
     // line 110
     echo "\n        </article>\n\n\n    </div>\n\n    <!-- End Main Content -->\n\n    ";
     // line 118
     $this->loadTemplate("_aside.twig", "record.twig", 118)->display($context);
     // line 119
     echo "\n    <!-- End Main Content and Sidebar -->\n\n\n\n    ";
     // line 124
     $this->loadTemplate("_footer.twig", "record.twig", 124)->display($context);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     echo "\n";
     // line 3
     $context["option"] = array("class" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array()), "") : "", "label" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array()), "") : "", "multiple" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array(), "any", true, true) && $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array()), "values" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "values", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "values", array()), array()) : array(), "info" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array()), "") : "");
     // line 10
     echo "\n";
     // line 12
     echo "\n";
     // line 13
     if (twig_test_iterable($this->getAttribute(isset($context["option"]) ? $context["option"] : null, "values", array()))) {
         // line 14
         echo "    ";
         $context["values"] = $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "values", array());
     } else {
         // line 16
         echo "    ";
         $context["lookuptype"] = $this->env->getExtension('Bolt')->first(twig_split_filter($this->env, $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "values", array()), "/"));
         // line 17
         echo "    ";
         $context["lookupfield"] = $this->env->getExtension('Bolt')->last(twig_split_filter($this->env, $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "values", array()), "/"));
         // line 18
         echo "    ";
         if (twig_in_filter(",", isset($context["lookupfield"]) ? $context["lookupfield"] : null)) {
             // line 19
             echo "        ";
             $context["lookupfield"] = twig_split_filter($this->env, isset($context["lookupfield"]) ? $context["lookupfield"] : null, ",");
             // line 20
             echo "    ";
         }
         // line 21
         echo "    ";
         $context["sortingorder"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "sort", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "sort", array()), $this->env->getExtension('Bolt')->first(isset($context["lookupfield"]) ? $context["lookupfield"] : null)) : $this->env->getExtension('Bolt')->first(isset($context["lookupfield"]) ? $context["lookupfield"] : null);
         // line 22
         echo "    ";
         $context["querylimit"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "limit", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "limit", array()), 500) : 500;
         // line 23
         echo "    ";
         $context["wherefilter"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "filter", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "filter", array()), array()) : array();
         // line 24
         echo "    ";
         $template_storage = new Bolt\Storage($context['app']);
         $context['lookups'] = $template_storage->getContent(isset($context["lookuptype"]) ? $context["lookuptype"] : null, array("order" => isset($context["sortingorder"]) ? $context["sortingorder"] : null, "hydrate" => false, "limit" => isset($context["querylimit"]) ? $context["querylimit"] : null), $pager, isset($context["wherefilter"]) ? $context["wherefilter"] : null);
         // line 25
         echo "    ";
         $context["values"] = $this->env->getExtension('Bolt')->selectField(isset($context["lookups"]) ? $context["lookups"] : null, isset($context["lookupfield"]) ? $context["lookupfield"] : null, $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "multiple", array()), $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "keys", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "keys", array()), "id") : "id");
     }
     // line 27
     echo "\n";
     // line 29
     $context["selection"] = $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method"), null) : null;
     // line 30
     if (!twig_test_iterable(isset($context["selection"]) ? $context["selection"] : null)) {
         // line 31
         echo "    ";
         $context["selection"] = array(0 => isset($context["selection"]) ? $context["selection"] : null);
     }
     // line 33
     echo "\n";
     // line 35
     if (twig_in_filter($this->env->getExtension('Bolt')->first(isset($context["selection"]) ? $context["selection"] : null), twig_get_array_keys_filter(isset($context["values"]) ? $context["values"] : null))) {
         // line 36
         echo "    ";
         $context["onlyids"] = true;
     } else {
         // line 38
         echo "    ";
         $context["onlyids"] = false;
     }
     // line 40
     echo "\n";
     // line 41
     $context["attr_select"] = array("class" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "class", array()), "id" => isset($context["key"]) ? $context["key"] : null, "multiple" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "multiple", array()), "name" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "multiple", array()) ? (isset($context["name"]) ? $context["name"] : null) . "[]" : (isset($context["name"]) ? $context["name"] : null));
     // line 47
     echo "\n";
     // line 49
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), false) : false) {
         // line 50
         echo "    ";
         $context["attr_select"] = twig_array_merge(isset($context["attr_select"]) ? $context["attr_select"] : null, array("class" => ""));
         // line 51
         echo "    ";
         $context["attr_select"] = twig_array_merge(isset($context["attr_select"]) ? $context["attr_select"] : null, array("style" => "width: 100%;"));
     }
     // line 53
     echo "\n";
     // line 55
     echo "\n<fieldset class=\"multiselect\">\n\n    <label class=\"col-sm-3 control-label\">";
     // line 58
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "info", array()) ? $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "infopop", array(0 => isset($context["labelkey"]) ? $context["labelkey"] : null, 1 => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "info", array())), "method") : (isset($context["labelkey"]) ? $context["labelkey"] : null), "html", null, true);
     echo "</label>\n    <div class=\"col-sm-9\">\n        <select";
     // line 60
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "attr", array(0 => isset($context["attr_select"]) ? $context["attr_select"] : null), "method"), "html", null, true);
     echo ">\n            ";
     // line 61
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["values"]) ? $context["values"] : null);
     foreach ($context['_seq'] as $context["id"] => $context["value"]) {
         // line 62
         echo "\n                ";
         // line 63
         $context["is_array"] = twig_test_iterable($context["value"]) && twig_length_filter($this->env, $context["value"]) > 1;
         // line 64
         echo "                ";
         $context["attr_opt"] = array("value" => $context["id"], "selected" => twig_in_filter($context["id"], isset($context["selection"]) ? $context["selection"] : null) || !(isset($context["onlyids"]) ? $context["onlyids"] : null) && twig_in_filter(isset($context["is_array"]) ? $context["is_array"] : null ? $this->getAttribute($context["value"], 0, array(), "array") : $context["value"], isset($context["selection"]) ? $context["selection"] : null));
         // line 68
         echo "\n                <option";
         // line 69
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "attr", array(0 => isset($context["attr_opt"]) ? $context["attr_opt"] : null), "method"), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, isset($context["is_array"]) ? $context["is_array"] : null ? twig_join_filter(twig_slice($this->env, $context["value"], 0, null), " / ") : $context["value"], "html", null, true);
         echo "</option>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['id'], $context['value'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 71
     echo "        </select>\n\n        ";
     // line 73
     if ($this->getAttribute(isset($context["option"]) ? $context["option"] : null, "multiple", array()) && !($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), false) : false)) {
         // line 74
         echo "        <div>";
         // line 75
         echo "            <a href=\"#\" class=\"btn btn-default btn-xs\" onclick=\"jQuery('#";
         echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true);
         echo " option').prop('selected', true); return false;\">\n                <i class=\"fa fa-fw fa-check-square-o\"></i>";
         // line 76
         echo $this->env->getExtension('Bolt')->trans("Select all");
         echo "\n            </a>\n            <a href=\"#\" class=\"btn btn-default btn-xs\" onclick=\"jQuery('#";
         // line 78
         echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true);
         echo " option').prop('selected', false); return false;\">\n                <i class=\"fa fa-fw fa-square-o\"></i>";
         // line 79
         echo $this->env->getExtension('Bolt')->trans("Select none");
         echo "\n            </a>\n        </div>\n        ";
     }
     // line 83
     echo "    </div>\n\n    ";
     // line 85
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), false) : false) {
         // line 86
         echo "    <script>\n        \$(function() {\n            \$('#";
         // line 88
         echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true);
         echo "').select2({\n                placeholder: \"";
         // line 89
         echo $this->env->getExtension('Bolt')->trans("(none)");
         echo "\",\n                allowClear: true\n            });\n        });\n    </script>\n    ";
     }
     // line 95
     echo "\n</fieldset>\n";
 }
 public function block_choice_widget_options($context, array $blocks = array())
 {
     $__internal_7e88f94068e04ec413ac5b74f3e5d6e2b1b3a1c9bee56d07734419d4c3c63c10 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
     $__internal_7e88f94068e04ec413ac5b74f3e5d6e2b1b3a1c9bee56d07734419d4c3c63c10->enter($__internal_7e88f94068e04ec413ac5b74f3e5d6e2b1b3a1c9bee56d07734419d4c3c63c10_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "form_div_layout.html.twig"));
     // line 75
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["options"]) ? $context["options"] : $this->getContext($context, "options"));
     $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["group_label"] => $context["choice"]) {
         // line 76
         if (twig_test_iterable($context["choice"])) {
             // line 77
             echo "<optgroup label=\"";
             echo twig_escape_filter($this->env, (isset($context["choice_translation_domain"]) ? $context["choice_translation_domain"] : $this->getContext($context, "choice_translation_domain")) === false ? $context["group_label"] : $this->env->getExtension('Symfony\\Bridge\\Twig\\Extension\\TranslationExtension')->trans($context["group_label"], array(), isset($context["choice_translation_domain"]) ? $context["choice_translation_domain"] : $this->getContext($context, "choice_translation_domain")), "html", null, true);
             echo "\">\n                ";
             // line 78
             $context["options"] = $context["choice"];
             // line 79
             $this->displayBlock("choice_widget_options", $context, $blocks);
             // line 80
             echo "</optgroup>";
         } else {
             // line 82
             echo "<option value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["choice"], "value", array()), "html", null, true);
             echo "\"";
             if ($this->getAttribute($context["choice"], "attr", array())) {
                 echo " ";
                 $context["attr"] = $this->getAttribute($context["choice"], "attr", array());
                 $this->displayBlock("attributes", $context, $blocks);
             }
             if ($this->env->getExtension('Symfony\\Bridge\\Twig\\Extension\\FormExtension')->isSelectedChoice($context["choice"], isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
                 echo " selected=\"selected\"";
             }
             echo ">";
             echo twig_escape_filter($this->env, (isset($context["choice_translation_domain"]) ? $context["choice_translation_domain"] : $this->getContext($context, "choice_translation_domain")) === false ? $this->getAttribute($context["choice"], "label", array()) : $this->env->getExtension('Symfony\\Bridge\\Twig\\Extension\\TranslationExtension')->trans($this->getAttribute($context["choice"], "label", array()), array(), isset($context["choice_translation_domain"]) ? $context["choice_translation_domain"] : $this->getContext($context, "choice_translation_domain")), "html", null, true);
             echo "</option>";
         }
         ++$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['group_label'], $context['choice'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     $__internal_7e88f94068e04ec413ac5b74f3e5d6e2b1b3a1c9bee56d07734419d4c3c63c10->leave($__internal_7e88f94068e04ec413ac5b74f3e5d6e2b1b3a1c9bee56d07734419d4c3c63c10_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     echo "\n";
     // line 3
     $context["option"] = array("class" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array()), "") : "", "label" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array()), "") : "", "extensions" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "extensions", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "extensions", array()), array()) : array(), "attrib" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "attrib", array(), "any", true, true) && twig_test_iterable($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "attrib", array())) ? $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "attrib", array()) : array(0 => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "attrib", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "attrib", array()), null) : null), "upload" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "upload", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "upload", array()), "") : "", "can_upload" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "canUpload", array()), "info" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array()), "info.upload.image") : "info.upload.image");
     // line 12
     echo "\n";
     // line 14
     echo "\n";
     // line 15
     $context["preview_w"] = 200;
     // line 16
     $context["preview_h"] = 150;
     // line 17
     echo "\n";
     // line 19
     $context["image"] = twig_test_iterable($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array()), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method")) ? $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array()), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method") : array("file" => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array()), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method"));
     // line 20
     echo "\n";
     // line 21
     $context["attr_inp"] = array("class" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "class", array()) . " imageinput wide", "id" => "field-" . (isset($context["key"]) ? $context["key"] : null), "name" => (isset($context["name"]) ? $context["name"] : null) . "[file]", "type" => "text", "placeholder" => $this->env->getExtension('Bolt')->trans("field.general.allowed-filetypes") . " " . twig_join_filter($this->getAttribute(isset($context["option"]) ? $context["option"] : null, "extensions", array()), ", ") . " …", "value" => $this->getAttribute(isset($context["image"]) ? $context["image"] : null, "file", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["image"]) ? $context["image"] : null, "file", array()), "") : "");
     // line 29
     echo "\n";
     // line 30
     $context["attr_upload"] = array("accept" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "extensions", array()) ? "." . twig_join_filter($this->getAttribute(isset($context["option"]) ? $context["option"] : null, "extensions", array()), ",.") : "", "data_upload" => twig_jsonencode_filter(array("type" => "Image", "key" => isset($context["key"]) ? $context["key"] : null, "width" => isset($context["preview_w"]) ? $context["preview_w"] : null, "height" => isset($context["preview_h"]) ? $context["preview_h"] : null)), "data_url" => $this->env->getExtension('routing')->getUrl("upload", array("handler" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "upload", array()))), "id" => "fileupload-" . (isset($context["key"]) ? $context["key"] : null), "name" => "files[]", "type" => "file");
     // line 38
     echo "\n\n";
     // line 41
     echo "\n";
     // line 42
     $context["block"] = $this;
     // line 43
     echo "\n";
     // line 54
     echo "\n";
     // line 81
     echo "\n";
     // line 87
     echo "\n";
     // line 96
     echo "\n";
     // line 98
     echo "\n<fieldset class=\"image\">\n    <div class=\"dropzone clearfix\" id=\"dropzone-";
     // line 100
     echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true);
     echo "\">\n    <label class=\"col-xs-12 control-label\">";
     // line 101
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "infopop", array(0 => isset($context["labelkey"]) ? $context["labelkey"] : null, 1 => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "info", array())), "method"), "html", null, true);
     echo "</label>\n    <div class=\"col-xs-8\">\n        <div class=\"form-group\">\n            <div class=\"col-sm-12\">\n                ";
     // line 105
     echo $context["block"]->getimagepath(isset($context["labelkey"]) ? $context["labelkey"] : null, isset($context["option"]) ? $context["option"] : null, isset($context["image"]) ? $context["image"] : null, isset($context["attr_inp"]) ? $context["attr_inp"] : null);
     echo "\n            </div>\n        </div>\n        ";
     // line 108
     echo $context["block"]->getattributes(isset($context["key"]) ? $context["key"] : null, isset($context["option"]) ? $context["option"] : null, isset($context["image"]) ? $context["image"] : null);
     echo "\n        ";
     // line 109
     $context["can_upload"] = $this->getAttribute(isset($context["context"]) ? $context["context"] : null, "can_upload", array()) && $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "can_upload", array());
     // line 110
     echo "        ";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "upload_buttons", array(0 => "image", 1 => isset($context["key"]) ? $context["key"] : null, 2 => isset($context["attr_upload"]) ? $context["attr_upload"] : null, 3 => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "upload", array()), 4 => isset($context["can_upload"]) ? $context["can_upload"] : null), "method"), "html", null, true);
     echo "\n        ";
     // line 111
     echo $context["block"]->getprogress(isset($context["key"]) ? $context["key"] : null);
     echo "\n        ";
     // line 112
     echo $context["block"]->getserverselect(isset($context["key"]) ? $context["key"] : null, $this->env->getExtension('Bolt')->trans("Cancel"));
     echo "\n    </div>\n\n    <div class=\"col-xs-4\">\n        <div class=\"right-on-large\">";
     // line 117
     echo "            <label>";
     echo $this->env->getExtension('Bolt')->trans("Preview");
     echo "</label>\n            <div class=\"content-preview imageholder\" id=\"thumbnail-";
     // line 118
     echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true);
     echo "\" style=\"max-width:";
     echo twig_escape_filter($this->env, isset($context["preview_w"]) ? $context["preview_w"] : null, "html", null, true);
     echo "px;max-height:";
     echo twig_escape_filter($this->env, isset($context["preview_h"]) ? $context["preview_h"] : null, "html", null, true);
     echo "px\">\n                ";
     // line 119
     if ($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array()), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method") != "") {
         // line 120
         echo "                    ";
         $context["preview_path"] = $this->env->getExtension('Bolt')->thumbnail($this->getAttribute(isset($context["image"]) ? $context["image"] : null, "file", array()), isset($context["preview_w"]) ? $context["preview_w"] : null, isset($context["preview_h"]) ? $context["preview_h"] : null, "c");
         // line 121
         echo "                ";
     } else {
         // line 122
         echo "                    ";
         $context["preview_path"] = $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "paths", array()), "app", array()) . "view/img/default_empty_4x3.png";
         // line 123
         echo "                ";
     }
     // line 124
     echo "                ";
     // line 125
     echo "                <img src=\"";
     echo twig_escape_filter($this->env, isset($context["preview_path"]) ? $context["preview_path"] : null, "html", null, true);
     echo "\" alt=\"Preview\">\n            </div>\n        </div>\n    </div>\n</div>\n\n</fieldset>\n";
 }
 public function getform_navbar($__tabs__ = null, $__translationSuffix__ = ".title")
 {
     $context = $this->env->mergeGlobals(array("tabs" => $__tabs__, "translationSuffix" => $__translationSuffix__, "varargs" => func_num_args() > 2 ? array_slice(func_get_args(), 2) : array()));
     $blocks = array();
     ob_start();
     try {
         // line 124
         echo "    <div id=\"form-navbar\" class=\"navbar navbar-static scrollspy-nav\">\n        <div class=\"navbar-inner\">\n            <div class=\"row-fluid\">\n                ";
         // line 127
         if (!twig_test_empty(isset($context["tabs"]) ? $context["tabs"] : null)) {
             // line 128
             echo "                    <ul class=\"nav\">\n                        ";
             // line 129
             if (twig_test_iterable(isset($context["tabs"]) ? $context["tabs"] : null)) {
                 // line 130
                 echo "                            ";
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable(isset($context["tabs"]) ? $context["tabs"] : null);
                 $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["tab"]) {
                     // line 131
                     echo "                                <li";
                     if ($this->getAttribute($context["loop"], "first", array())) {
                         echo " class=\"active\"";
                     }
                     echo "><a href=\"#";
                     echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_replace_filter($context["tab"], array(" " => "-", "." => "-"))), "html", null, true);
                     echo "\" data-toggle=\"tab\">";
                     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($context["tab"] . (isset($context["translationSuffix"]) ? $context["translationSuffix"] : null)), "html", null, true);
                     echo "</a></li>\n                            ";
                     ++$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['tab'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 133
                 echo "                        ";
             } else {
                 // line 134
                 echo "                            <li class=\"active\"><a href=\"#";
                 echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_replace_filter(isset($context["tabs"]) ? $context["tabs"] : null, array(" " => "-", "." => "-"))), "html", null, true);
                 echo "\" data-toggle=\"tab\">";
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans((isset($context["tabs"]) ? $context["tabs"] : null) . (isset($context["translationSuffix"]) ? $context["translationSuffix"] : null)), "html", null, true);
                 echo "</a></li>\n                        ";
             }
             // line 136
             echo "                    </ul>\n                ";
         }
         // line 138
         echo "            </div>\n        </div>\n    </div>\n";
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_widget_container_attributes($context, array $blocks = array())
 {
     // line 902
     echo "    ";
     ob_start();
     // line 903
     echo "        ";
     if ($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "style", array(), "any", true, true) && ($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "style", array()) == "inline" || $this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "style", array()) == "horizontal")) {
         // line 904
         echo "            ";
         $context["attr"] = twig_array_merge(isset($context["attr"]) ? $context["attr"] : null, array("class" => trim("form-" . $this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "style", array()) . " " . ($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array()), "") : ""))));
         // line 905
         echo "            ";
         $context["attr"] = twig_array_merge(isset($context["attr"]) ? $context["attr"] : null, array("style" => null));
         // line 906
         echo "        ";
     }
     // line 907
     echo "        ";
     if (!twig_test_empty(isset($context["id"]) ? $context["id"] : null)) {
         echo "id=\"";
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
         echo "\" ";
     }
     // line 908
     echo "        ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : null);
     foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
         if (!(null === $context["attrvalue"]) && !twig_test_iterable($context["attrvalue"])) {
             echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
             echo "=\"";
             echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
             echo "\" ";
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 909
     echo "    ";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 public function block_choice_widget_options($context, array $blocks = array())
 {
     // line 88
     ob_start();
     // line 89
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["options"]) ? $context["options"] : $this->getContext($context, "options"));
     $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["group_label"] => $context["choice"]) {
         // line 90
         echo "        ";
         if (twig_test_iterable(isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice"))) {
             // line 91
             echo "            <optgroup label=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans(isset($context["group_label"]) ? $context["group_label"] : $this->getContext($context, "group_label"), array(), isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain")), "html", null, true);
             echo "\">\n                ";
             // line 92
             $context["options"] = isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice");
             // line 93
             echo "                ";
             $this->displayBlock("choice_widget_options", $context, $blocks);
             echo "\n            </optgroup>\n        ";
         } else {
             // line 96
             echo "            <option value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice"), "value"), "html", null, true);
             echo "\"";
             if ($this->env->getExtension('form')->isSelectedChoice(isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice"), isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
                 echo " selected=\"selected\"";
             }
             echo ">";
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute(isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice"), "label"), array(), isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain")), "html", null, true);
             echo "</option>\n        ";
         }
         // line 98
         echo "    ";
         ++$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['group_label'], $context['choice'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 public function getinput($_type = "text", $_name = null, $_value = null, $_attributes = null)
 {
     $context = $this->env->mergeGlobals(array("type" => $_type, "name" => $_name, "value" => $_value, "attributes" => $_attributes));
     $blocks = array();
     ob_start();
     try {
         // line 48
         echo "    <input type=\"";
         echo twig_escape_filter($this->env, isset($context["type"]) ? $context["type"] : null, "html", null, true);
         echo "\" name=\"";
         echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : null, "html", null, true);
         echo "\" value=\"";
         echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : null, "html", null, true);
         echo "\"\n    ";
         // line 49
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["attributes"]) ? $context["attributes"] : null);
         foreach ($context['_seq'] as $context["attribute"] => $context["val"]) {
             // line 50
             echo "        ";
             if (twig_test_iterable(isset($context["val"]) ? $context["val"] : null)) {
                 // line 51
                 echo "            ";
                 echo twig_escape_filter($this->env, isset($context["attribute"]) ? $context["attribute"] : null, "html", null, true);
                 echo "=\"";
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable(isset($context["val"]) ? $context["val"] : null);
                 foreach ($context['_seq'] as $context["attr"] => $context["param"]) {
                     echo twig_escape_filter($this->env, isset($context["attr"]) ? $context["attr"] : null, "html", null, true);
                     echo ":";
                     echo twig_escape_filter($this->env, isset($context["param"]) ? $context["param"] : null, "html", null, true);
                     echo ";";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['attr'], $context['param'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 echo "\"\n        ";
             } else {
                 // line 53
                 echo "            ";
                 echo twig_escape_filter($this->env, isset($context["attribute"]) ? $context["attribute"] : null, "html", null, true);
                 echo "=\"";
                 echo twig_escape_filter($this->env, isset($context["val"]) ? $context["val"] : null, "html", null, true);
                 echo "\"\n        ";
             }
             // line 55
             echo "    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['attribute'], $context['val'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 56
         echo "    />\n";
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_input($context, array $blocks = array())
 {
     // line 11
     echo "    <div data-grav-array-type=\"container\"";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "value_only", array())) {
         echo " data-grav-array-mode=\"value_only\"";
     }
     echo ">\n        ";
     // line 12
     if (twig_length_filter($this->env, isset($context["value"]) ? $context["value"] : null)) {
         // line 13
         echo "            ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["value"]) ? $context["value"] : null);
         foreach ($context['_seq'] as $context["key"] => $context["text"]) {
             // line 14
             echo "<div class=\"form-row";
             if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "value_only", array())) {
                 echo " array-field-value_only";
             }
             echo "\" data-grav-array-type=\"row\">\n\n                    ";
             // line 16
             if (twig_test_iterable($context["text"])) {
                 // line 17
                 echo "                        <div class=\"grid\" style=\"display: flex\">\n                            <div class=\"block size-1-4\">\n                                <input data-grav-array-type=\"keyArray\" type=\"text\" value=\"";
                 // line 19
                 echo $context["key"];
                 echo "\" placeholder=\"";
                 echo $this->env->getExtension('AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "placeholder_key", array())));
                 echo "\" style=\"float: none; width: 90%\" />\n                            </div>\n\n                            <div class=\"block size-3-4\">\n                                ";
                 // line 23
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($context["text"]);
                 foreach ($context['_seq'] as $context["subkey"] => $context["subtext"]) {
                     // line 24
                     echo "<div class=\"form-row\" data-grav-array-type=\"subrow\">\n                                        <input data-grav-array-type=\"keyArraySubelement\" type=\"text\" value=\"";
                     // line 25
                     echo $context["subkey"];
                     echo "\" />\n                                        <input data-grav-array-type=\"value\" type=\"text\" subkey=\"";
                     // line 26
                     echo $context["subkey"];
                     echo "\" name=\"";
                     echo $this->env->getExtension('GravTwigExtension')->fieldNameFilter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array())) . "[" . $context["key"] . "][" . $context["subkey"] . "]";
                     echo "\" value=\"";
                     echo twig_escape_filter($this->env, twig_join_filter($context["subtext"], ", "));
                     echo "\" />\n\n                                        <span data-grav-array-action=\"remArrayItem\" class=\"fa fa-minus-square\"></span>\n                                        <span data-grav-array-action=\"addArrayItem\" class=\"fa fa-plus-square\"></span>\n                                    </div>\n                                ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['subkey'], $context['subtext'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 32
                 echo "\n                                <div class=\"form-row";
                 // line 33
                 if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "value_only", array())) {
                     echo " array-field-value_only";
                 }
                 echo "\" data-grav-array-type=\"subrow\">\n                                    <span data-grav-array-action=\"rem\" class=\"fa fa-minus\"></span>\n                                    <span data-grav-array-action=\"add\" class=\"fa fa-plus\"></span>\n                                </div>\n                            </div>\n                        </div>\n                    ";
             } else {
                 // line 40
                 echo "                        ";
                 if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "value_only", array()) != true) {
                     // line 41
                     echo "                            ";
                     if ($context["key"] == "0" && $context["text"] == "") {
                         // line 42
                         echo "                                ";
                         $context["key"] = "";
                         // line 43
                         echo "                            ";
                     }
                     // line 44
                     echo "\n                            <input data-grav-array-type=\"key\" type=\"text\" value=\"";
                     // line 45
                     echo $context["key"];
                     echo "\" placeholder=\"";
                     echo $this->env->getExtension('AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "placeholder_key", array())));
                     echo "\" />\n                        ";
                 }
                 // line 47
                 echo "\n                        <input data-grav-array-type=\"value\" type=\"text\" name=\"";
                 // line 48
                 echo $this->env->getExtension('GravTwigExtension')->fieldNameFilter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array())) . "[" . $context["key"] . "]";
                 echo "\" value=";
                 if ($context["text"] == "true") {
                     echo "true";
                 } elseif ($context["text"] == "false") {
                     echo "false";
                 } else {
                     echo "\"";
                     echo twig_escape_filter($this->env, twig_join_filter($context["text"], ", "));
                     echo "\"";
                 }
                 echo " placeholder=\"";
                 echo $this->env->getExtension('AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "placeholder_value", array())));
                 echo "\" />\n\n                        <span data-grav-array-action=\"rem\" class=\"fa fa-minus\"></span>\n                        <span data-grav-array-action=\"add\" class=\"fa fa-plus\"></span>\n                    ";
             }
             // line 53
             echo "                </div>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
     } else {
         // line 56
         echo "<div class=\"form-row\" data-grav-array-type=\"row\">\n                <input data-grav-array-type=\"key\" type=\"text\" placeholder=\"";
         // line 57
         echo $this->env->getExtension('AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "placeholder_key", array())));
         echo "\" />\n                <input data-grav-array-type=\"value\" type=\"text\" placeholder=\"";
         // line 58
         echo $this->env->getExtension('AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "placeholder_value", array())));
         echo "\" />\n                <span data-grav-array-action=\"rem\" class=\"fa fa-minus\"></span>\n                <span data-grav-array-action=\"add\" class=\"fa fa-plus\"></span>\n            </div>";
     }
     // line 63
     echo "    </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"g-particles-header icons-header settings-block clearfix\">\n    <div class=\"float-left particle-search-wrapper\">\n        <input type=\"text\" placeholder=\"";
     // line 3
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_SEARCH_ELI"), "html", null, true);
     echo "\"/>\n        <span class=\"particle-search-total\">";
     // line 4
     echo twig_escape_filter($this->env, isset($context["total"]) ? $context["total"] : null, "html", null, true);
     echo "</span>\n    </div>\n    <div class=\"float-right\">\n        ";
     // line 7
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["options"]) ? $context["options"] : null);
     foreach ($context['_seq'] as $context["type"] => $context["option"]) {
         // line 8
         echo "            ";
         if (twig_test_iterable($context["option"])) {
             // line 9
             echo "                <select name=\"type\">\n                ";
             // line 10
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($context["option"]);
             foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                 // line 11
                 echo "                    <option value=\"fa-";
                 echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                 echo "\">";
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</option>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 13
             echo "                </select>\n            ";
         } else {
             // line 15
             echo "                <label><input type=\"checkbox\" name=\"fa-";
             echo twig_escape_filter($this->env, $context["type"], "html", null, true);
             echo "\" value=\"fa-";
             echo twig_escape_filter($this->env, $context["type"], "html", null, true);
             echo "\"/> ";
             echo twig_escape_filter($this->env, $context["option"], "html", null, true);
             echo "</label>\n            ";
         }
         // line 17
         echo "        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['type'], $context['option'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 18
     echo "    </div>\n</div>\n\n<div class=\"g-particles-main icons-wrapper\">\n    <ul>\n        ";
     // line 23
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["icons"]) ? $context["icons"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["icon"]) {
         // line 24
         echo "            <li data-g-icon=\"";
         echo twig_escape_filter($this->env, $context["icon"], "html", null, true);
         echo "\"><i class=\"fa fa-fw ";
         echo twig_escape_filter($this->env, $context["icon"], "html", null, true);
         echo "\"></i> ";
         echo twig_escape_filter($this->env, $context["icon"], "html", null, true);
         echo "</li>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['icon'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 26
     echo "    </ul>\n</div>\n<div class=\"g-particles-footer settings-block clearfix\">\n    <div class=\"float-left g-icon-preview\"></div>\n    <div class=\"float-right\">\n        <button href=\"#\" class=\"button button-primary\" data-g-select=\"\">";
     // line 31
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_SELECT"), "html", null, true);
     echo "</button>\n        <button href=\"#\" class=\"button g5-dialog-close\">";
     // line 32
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_CANCEL"), "html", null, true);
     echo "</button>\n    </div>\n</div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\n    <title>Image Upload</title>\n\n    <!-- Bootstrap -->\n    <link href=\"/skin/css/bootstrap.min.css\" rel=\"stylesheet\">\n    <link href=\"/skin/css/bootstrap-theme.css\" rel=\"stylesheet\">\n    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\n    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\n    <!--[if lt IE 9]>\n      <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\n      <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\n    <![endif]-->\n  </head>\n  <body>\n    <div class=\"container\">\n          <div class=\"panel panel-default\">\n            <div class=\"panel-heading\"><h4>Fotoğraf Yüklemece</h4></div>\n            <div class=\"panel-body\">\n              ";
     // line 25
     if (!twig_test_empty($this->getAttribute(isset($context["flash"]) ? $context["flash"] : null, "danger", array()))) {
         // line 26
         echo "              <div class=\"col-xs-12 col-sm-12 col-md-12\">\n                <div class=\"alert alert-danger alert-dismissible fade in\" role=\"alert\">\n                  <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button>\n                  <h4>Hata...</h4>\n                  ";
         // line 30
         if (twig_test_iterable($this->getAttribute(isset($context["flash"]) ? $context["flash"] : null, "danger", array()))) {
             // line 31
             echo "                    ";
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["flash"]) ? $context["flash"] : null, "danger", array()));
             foreach ($context['_seq'] as $context["key"] => $context["error"]) {
                 // line 32
                 echo "                    ";
                 echo twig_escape_filter($this->env, $context["error"], "html", null, true);
                 echo " <br />\n                    ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['key'], $context['error'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 34
             echo "                  ";
         } else {
             // line 35
             echo "                     ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["flash"]) ? $context["flash"] : null, "danger", array()), "html", null, true);
             echo "\n                  ";
         }
         // line 37
         echo "                </div>\n              </div>\n              ";
     }
     // line 40
     echo "              <!-- Standar Form -->\n\n              <form action=\"\\upload\" method=\"post\" enctype=\"multipart/form-data\">\n                <div class=\"form-group\">\n                  <label for=\"exampleInputFile\">Foto Seç</label>\n                  <input type=\"file\" name=\"image\">\n                </div>\n                <div class=\"form-group\">\n                  <div class=\"col-sm-12\">\n                   <label for=\"imageOne\" class=\"col-sm-2 control-label\">Fotograf 1:</label>\n                   <div class=\"col-sm-2\">\n                     <input type=\"text\" class=\"form-control\" name=\"imageOneWidht\" placeholder=\"Width\" required=\"\">\n                   </div>\n                   <div class=\"col-sm-2\">\n                     <input type=\"text\" class=\"form-control\" name=\"imageOneHeight\" placeholder=\"Height\" required=\"\">\n                   </div>\n                 </div>\n                </div>\n                <div class=\"form-group\">\n                  <div class=\"col-sm-12\">\n                   <label for=\"imageOne\" class=\"col-sm-2 control-label\">Fotograf 2:</label>\n                   <div class=\"col-sm-2\">\n                     <input type=\"text\" class=\"form-control\" name=\"imageTwoWidht\" placeholder=\"Width\" required=\"\">\n                   </div>\n                   <div class=\"col-sm-2\">\n                     <input type=\"text\" class=\"form-control\" name=\"imageTwoHeight\" placeholder=\"Height\" required=\"\">\n                   </div>\n                 </div>\n                </div>\n                <div class=\"form-group\">\n                  <div class=\"col-sm-12\">\n                    <button type=\"submit\" class=\"btn btn-sm btn-primary\">Upload files</button>\n                  </div>\n                </div>\n              </form>\n              <div class=\"row\">\n              ";
     // line 76
     if (!twig_test_empty(isset($context["image1"]) ? $context["image1"] : null)) {
         // line 77
         echo "              <div class=\"col-xs-6 col-md-3\">\n                <strong>";
         // line 78
         echo twig_escape_filter($this->env, isset($context["image1"]) ? $context["image1"] : null, "html", null, true);
         echo "</strong>\n                <a href=\"";
         // line 79
         echo twig_escape_filter($this->env, isset($context["image1"]) ? $context["image1"] : null, "html", null, true);
         echo "\" target=\"_blank\" class=\"thumbnail\">\n                  <img src=\"";
         // line 80
         echo twig_escape_filter($this->env, isset($context["image1"]) ? $context["image1"] : null, "html", null, true);
         echo "\" alt=\"...\">\n                </a>\n              </div>\n              ";
     }
     // line 84
     echo "              ";
     if (!twig_test_empty(isset($context["image2"]) ? $context["image2"] : null)) {
         // line 85
         echo "              <div class=\"col-xs-6 col-md-3\">\n                <strong>";
         // line 86
         echo twig_escape_filter($this->env, isset($context["image2"]) ? $context["image2"] : null, "html", null, true);
         echo "</strong>\n                <a href=\"";
         // line 87
         echo twig_escape_filter($this->env, isset($context["image2"]) ? $context["image2"] : null, "html", null, true);
         echo "\" target=\"_blank\" class=\"thumbnail\">\n                  <img src=\"";
         // line 88
         echo twig_escape_filter($this->env, isset($context["image2"]) ? $context["image2"] : null, "html", null, true);
         echo "\" alt=\"...\">\n                </a>\n              </div>\n              ";
     }
     // line 92
     echo "            </div>\n            </div>\n          </div>\n        </div> <!-- /container -->\n\n    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->\n    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>\n    <!-- Include all compiled plugins (below), or include individual files as needed -->\n    <script src=\"/skin/js/bootstrap.min.js\"></script>\n  </body>\n</html>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 12
     ob_start();
     // line 13
     echo "\n";
     // line 14
     $context["page_locale_long"] = $this->getAttribute(isset($context["app"]) ? $context["app"] : null, "locale", array());
     // line 15
     $context["page_locale_short"] = twig_slice($this->env, isset($context["page_locale_long"]) ? $context["page_locale_long"] : null, 0, 2);
     // line 16
     $context["page_timezone_offset"] = $this->getAttribute(isset($context["app"]) ? $context["app"] : null, "timezone_offset", array());
     // line 17
     echo "\n";
     // line 18
     if (twig_test_empty($this->renderBlock("page_subtitle", $context, $blocks))) {
         // line 19
         echo "    ";
         $context["page_title"] = $this->renderBlock("page_title", $context, $blocks);
     } else {
         // line 21
         echo "    ";
         $context["page_title"] = $this->renderBlock("page_title", $context, $blocks) . " » " . $this->renderBlock("page_subtitle", $context, $blocks);
     }
     // line 23
     echo "\n";
     // line 25
     $context["page_scripts_inc"] = array(0 => "view/js/lib.min.js");
     // line 28
     echo "\n";
     // line 30
     $context["localepath"] = "view/js/locale/datepicker/";
     // line 31
     if ($this->env->getExtension('Bolt')->fileExists($this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "apppath", array()) . "/" . (isset($context["localepath"]) ? $context["localepath"] : null) . (isset($context["page_locale_long"]) ? $context["page_locale_long"] : null) . ".min.js")) {
         // line 32
         echo "    ";
         $context["page_scripts_inc"] = twig_array_merge(isset($context["page_scripts_inc"]) ? $context["page_scripts_inc"] : null, array(0 => (isset($context["localepath"]) ? $context["localepath"] : null) . (isset($context["page_locale_long"]) ? $context["page_locale_long"] : null) . ".min.js"));
     } elseif ((isset($context["page_locale_short"]) ? $context["page_locale_short"] : null) != "en" && $this->env->getExtension('Bolt')->fileExists($this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "apppath", array()) . "/" . (isset($context["localepath"]) ? $context["localepath"] : null) . (isset($context["page_locale_short"]) ? $context["page_locale_short"] : null) . ".min.js")) {
         // line 34
         echo "    ";
         $context["page_scripts_inc"] = twig_array_merge(isset($context["page_scripts_inc"]) ? $context["page_scripts_inc"] : null, array(0 => (isset($context["localepath"]) ? $context["localepath"] : null) . (isset($context["page_locale_short"]) ? $context["page_locale_short"] : null) . ".min.js"));
     }
     // line 36
     echo "\n";
     // line 38
     $context["localepath"] = "view/js/locale/moment/";
     // line 39
     if ($this->env->getExtension('Bolt')->fileExists($this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "apppath", array()) . "/" . (isset($context["localepath"]) ? $context["localepath"] : null) . (isset($context["page_locale_long"]) ? $context["page_locale_long"] : null) . ".min.js")) {
         // line 40
         echo "    ";
         $context["page_scripts_inc"] = twig_array_merge(isset($context["page_scripts_inc"]) ? $context["page_scripts_inc"] : null, array(0 => (isset($context["localepath"]) ? $context["localepath"] : null) . (isset($context["page_locale_long"]) ? $context["page_locale_long"] : null) . ".min.js"));
     } elseif ((isset($context["page_locale_short"]) ? $context["page_locale_short"] : null) != "en" && $this->env->getExtension('Bolt')->fileExists($this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "apppath", array()) . "/" . (isset($context["localepath"]) ? $context["localepath"] : null) . (isset($context["page_locale_short"]) ? $context["page_locale_short"] : null) . ".min.js")) {
         // line 42
         echo "    ";
         $context["page_scripts_inc"] = twig_array_merge(isset($context["page_scripts_inc"]) ? $context["page_scripts_inc"] : null, array(0 => (isset($context["localepath"]) ? $context["localepath"] : null) . (isset($context["page_locale_short"]) ? $context["page_locale_short"] : null) . ".min.js"));
     }
     // line 44
     echo "\n";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
     // line 47
     echo "<!DOCTYPE html>\n<html lang=\"";
     // line 48
     echo twig_escape_filter($this->env, isset($context["page_locale_short"]) ? $context["page_locale_short"] : null, "html", null, true);
     echo "\">\n<head>\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0\">\n\n    <title>";
     // line 54
     echo trim(strip_tags(isset($context["page_title"]) ? $context["page_title"] : null));
     echo " – ";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/name"), "method"), "html", null, true);
     echo "</title>\n\n    <link rel=\"stylesheet\" href=\"";
     // line 56
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "html", null, true);
     echo "view/css/lib.css\">\n\n    <!--[if lt IE 9]>\n        <link rel=\"stylesheet\" href=\"";
     // line 59
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "html", null, true);
     echo "view/css/bolt-old-ie.css\" media=\"screen, projection\">\n    <![endif]-->\n\n    <!--[if gte IE 9]><!-->\n        <link rel=\"stylesheet\" href=\"";
     // line 63
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "html", null, true);
     echo "view/css/bolt.css\" media=\"screen, projection\">\n    <!--<![endif]-->\n\n    ";
     // line 66
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["page_scripts_inc"]) ? $context["page_scripts_inc"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["script"]) {
         // line 67
         echo "<script src=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()) . $context["script"], "html", null, true);
         echo "\"></script>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['script'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 69
     echo "\n    <link rel=\"shortcut icon\" href=\"";
     // line 70
     if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/favicon"), "method")) {
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/favicon"), "method"), "html", null, true);
     } else {
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "html", null, true);
         echo "view/img/favicon-bolt.ico";
     }
     echo "\">\n    <link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"";
     // line 71
     if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/apple-touch-icon"), "method")) {
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/apple-touch-icon"), "method"), "html", null, true);
     } else {
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "html", null, true);
         echo "view/img/apple-touch-icon.png";
     }
     echo "\">\n    <link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"";
     // line 72
     if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/apple-touch-icon-72x72"), "method")) {
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/apple-touch-icon-72x72"), "method"), "html", null, true);
     } else {
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "html", null, true);
         echo "view/img/apple-touch-icon-72x72.png";
     }
     echo "\">\n    <link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"";
     // line 73
     if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/apple-touch-icon-114x114"), "method")) {
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/apple-touch-icon-114x114"), "method"), "html", null, true);
     } else {
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "html", null, true);
         echo "view/img/apple-touch-icon-114x114.png";
     }
     echo "\">\n    <link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"";
     // line 74
     if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/apple-touch-icon-144x144"), "method")) {
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/branding/apple-touch-icon-144x144"), "method"), "html", null, true);
     } else {
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "html", null, true);
         echo "view/img/apple-touch-icon-144x144.png";
     }
     echo "\">\n\n    ";
     // line 77
     echo "<!--[if lt IE 9]>\n        <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\n        <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\n    <![endif]-->\n</head>\n\n<body";
     // line 83
     if (isset($context["page_bodyclass"]) ? $context["page_bodyclass"] : null) {
         echo " class=\"";
         echo twig_escape_filter($this->env, isset($context["page_bodyclass"]) ? $context["page_bodyclass"] : null, "html", null, true);
         echo "\"";
     }
     echo ">\n    ";
     // line 84
     $this->displayBlock('page_plain', $context, $blocks);
     // line 85
     echo "\n";
     // line 86
     $context["bconfig"] = array("locale" => array("short" => isset($context["page_locale_short"]) ? $context["page_locale_short"] : null, "long" => isset($context["page_locale_long"]) ? $context["page_locale_long"] : null), "timezone" => array("offset" => isset($context["page_timezone_offset"]) ? $context["page_timezone_offset"] : null), "paths" => array("bolt" => $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "bolt", array()), "async" => $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "async", array()), "app" => $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "root" => $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "root", array()), "origin" => $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "rooturl", array())), "uploadConfig" => array("maxSize" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "filepermissions", array(), "array"), "getMaxUploadSize", array(), "method"), "maxSizeNice" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "filepermissions", array(), "array"), "getMaxUploadSizeNice", array(), "method")), "ckeditor" => array("images" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/images"), "method"), "styles" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/styles"), "method"), "tables" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/tables"), "method"), "anchor" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/anchor"), "method"), "fontcolor" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/fontcolor"), "method"), "align" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/align"), "method"), "subsuper" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/subsuper"), "method"), "embed" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/embed"), "method"), "blockquote" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/blockquote"), "method"), "ruler" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/ruler"), "method"), "strike" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/strike"), "method"), "underline" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/underline"), "method"), "codesnippet" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/codesnippet"), "method"), "specialchar" => 0 + $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/specialchar"), "method"), "ck" => twig_test_iterable($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/ck"), "method")) ? $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/ck"), "method") : false, "filebrowser" => twig_test_iterable($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/filebrowser"), "method")) ? $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "general/wysiwyg/filebrowser"), "method") : false));
     // line 125
     echo "<script src=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "app", array()), "html", null, true);
     echo "view/js/bolt.min.js\" data-config=\"";
     echo twig_escape_filter($this->env, twig_jsonencode_filter(isset($context["bconfig"]) ? $context["bconfig"] : null), "html", null, true);
     echo "\" data-jsdata=\"";
     echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "jsdata", array())), "html", null, true);
     echo "\"></script>\n\n";
     // line 127
     $this->displayBlock('page_script', $context, $blocks);
     // line 129
     echo "\n";
     // line 131
     if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/grunt/livereload"), "method")) {
         // line 132
         echo "    <script src=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "hosturl", array()), "html", null, true);
         echo ":";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "general/grunt/livereloadport"), "method"), "html", null, true);
         echo "/livereload.js\"></script>\n";
     }
     // line 134
     echo "\n</body>\n</html>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_06e4240837ed59bf3d144ac591b8c9ef0cf9b52fbbfab9b5be42abba6e22a3b3 = $this->env->getExtension("native_profiler");
     $__internal_06e4240837ed59bf3d144ac591b8c9ef0cf9b52fbbfab9b5be42abba6e22a3b3->enter($__internal_06e4240837ed59bf3d144ac591b8c9ef0cf9b52fbbfab9b5be42abba6e22a3b3_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "ApiMapBundle:Default:welcome.html.twig"));
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\n        <meta name=\"description\" content=\"\">\n        <meta name=\"author\" content=\"\">\n        <link rel=\"icon\" href=\"../../favicon.ico\">\n        <title>Dash-boad SwissTRAFFIC</title>\n\n\n        <link href=\"";
     // line 14
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/css/bootstrap.min.css"), "html", null, true);
     echo "\" rel=\"stylesheet\">\n\n        <link href=\"";
     // line 16
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/css/font-awesome.css"), "html", null, true);
     echo "\"rel=\"stylesheet\">\n        <link href=\"";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/css/custom.css"), "html", null, true);
     echo "\"rel=\"stylesheet\">\n        <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker.css\" />\n        <script src=\"https://code.jquery.com/jquery-2.2.0.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.1/moment.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js\"></script> \n        <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js\"></script>\n        <link href=\"http://fonts.googleapis.com/css?family=Open+Sans\" rel=\"stylesheet\" type=\"text/css\">\n        <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />\n\n        <!-- /. WRAPPER -->\n        <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->\n        <!-- JQUERY SCRIPTS -->\n        <script src=\"";
     // line 30
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/dataTables/jquery.dataTables.js"), "html", null, true);
     echo "\"></script>\n        <!-- BOOTSTRAP SCRIPTS -->\n        <script src=\"";
     // line 32
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/js/bootstrap.min.js"), "html", null, true);
     echo "\"></script>\n        <!-- METISMENU SCRIPTS -->\n        <script src=\"";
     // line 34
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/js/jquery.metisMenu.js"), "html", null, true);
     echo "\"></script>\n        <!-- MORRIS CHART SCRIPTS -->\n        <script src=\"https://cdn.datatables.net/1.10.10/js/dataTables.bootstrap.min.js\"></script>  \n\n        <script src=\"";
     // line 38
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/morris/raphael-2.1.0.min.js"), "html", null, true);
     echo "\"></script>\n        <script src= \"";
     // line 39
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/morris/morris.js"), "html", null, true);
     echo "\"></script>\n        <!-- CUSTOM SCRIPTS -->\n        <script src= \"";
     // line 41
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/js/custom.js"), "html", null, true);
     echo "\"></script>\n\n    </head>  \n    <body>\n        <div id=\"wrapper\">\n            <nav class=\"navbar navbar-default navbar-cls-top \" role=\"navigation\" style=\"margin-bottom: 0\">\n                <div class=\"navbar-header\">\n                    <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".sidebar-collapse\">\n                        <span class=\"sr-only\">Toggle navigation</span>\n                        <span class=\"icon-bar\"></span>\n                        <span class=\"icon-bar\"></span>\n                        <span class=\"icon-bar\"></span>\n                    </button>\n                    <a class=\"navbar-brand\" href=\"index.html\">Dashboard</a>\n                </div>\n                <div style=\"color: white;\n\n                     padding: 15px 50px 5px 50px;\n\n                     float: right;\n\n                     font-size: 16px;\">Last access : 30 May 2014 &nbsp;\n                    <a href=\"";
     // line 63
     echo $this->env->getExtension('routing')->getPath("login_login_logout");
     echo "\" class=\"btn btn-danger square-btn-adjust\">Logout</a>\n                </div>\n            </nav>\n            <!-- /. NAV TOP -->\n            <nav class=\"navbar-default navbar-side\" role=\"navigation\">\n                <div class=\"sidebar-collapse\">\n                    <ul class=\"nav\" id=\"main-menu\">\n                        <li class=\"text-center\">\n                            <img src=\"";
     // line 71
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/apimap/images/find_user.png"), "html", null, true);
     echo "\" class=\"user-image img-responsive\">\n                        </li>\n                        <li>\n                            <a href=\"index.html\"><i class=\"fa fa-dashboard fa-3x\"></i> Dashboard</a>\n                        </li>\n                        <li>\n                            <a href=\"ui.html\"><i class=\"fa fa-desktop fa-3x\"></i> UI Elements</a>\n                        </li>\n                        <li>\n                            <a href=\"tab-panel.html\"><i class=\"fa fa-qrcode fa-3x\"></i> Tabs &amp; Panels</a>\n                        </li>\n                        <li>\n                            <a href=\"chart.html\"><i class=\"fa fa-bar-chart-o fa-3x\"></i> Morris Charts</a>\n                        </li>\n                        <li>\n                            <a href=\"table.html\"><i class=\"fa fa-table fa-3x\"></i> Table Examples</a>\n                        </li>\n                        <li>\n                            <a class=\"active-menu\" href=\"form.html\"><i class=\"fa fa-edit fa-3x\"></i> Travel Time </a>\n                        </li>\n                        <li>\n                            <a href=\"#\"><i class=\"fa fa-sitemap fa-3x\"></i> Multi-Level Dropdown<span class=\"fa arrow\"></span></a>\n                            <ul class=\"nav nav-second-level\">\n                                <li>\n                                    <a href=\"#\">Second Level Link</a>\n                                </li>\n                                <li>\n                                    <a href=\"#\">Second Level Link</a>\n                                </li>\n                                <li>\n                                    <a href=\"#\">Second Level Link<span class=\"fa arrow\"></span></a>\n                                    <ul class=\"nav nav-third-level\">\n                                        <li>\n                                            <a href=\"#\">Third Level Link</a>\n                                        </li>\n                                        <li>\n                                            <a href=\"#\">Third Level Link</a>\n                                        </li>\n                                        <li>\n                                            <a href=\"#\">Third Level Link</a>\n                                        </li>\n                                    </ul>\n                                </li>\n                            </ul>\n                        </li>\n                        <li>\n                            <a href=\"blank.html\"><i class=\"fa fa-square-o fa-3x\"></i> Blank Page</a>\n                        </li>\n                    </ul>\n                </div>\n            </nav>\n            <!-- /. NAV SIDE -->\n            <div id=\"page-wrapper\">\n                <div id=\"page-inner\">\n                    <div class=\"row\">\n                        <div class=\"col-md-12\">\n                            <h2><b>Travel Time</b> </h2>\n                            <h5>Calculation the RealTime TravelTime from Source to Destination</h5>\n                        </div>\n                    </div>\n                    <!-- /. ROW -->\n                    <hr>\n                    <div class=\"row\">\n                        <div class=\"col-md-12\">\n                            <!-- Form Elements -->\n                            <div class=\"panel panel-default\">\n                                <div class=\"panel-heading\">Source-Destination</div>\n\n                                <div class=\"panel-body\">\n\n                                    <div class=\"row\">\n                                        <div class=\"col-md-6\">\n                                            <form id=\"eventForm\" method=\"post\" action=\"";
     // line 143
     echo $this->env->getExtension('routing')->getPath("table_population");
     echo "\" class=\"form-horizontal\">\n                                                <div class=\"form-group\">\n                                                    <label class=\"col-xs-3 control-label\">Source Unit</label>\n                                                    <div class=\"col-xs-5\">\n                                                        <select class=\"form-control\" id=\"source\">\n\n                                                            ";
     // line 149
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["unitsids"]) ? $context["unitsids"] : $this->getContext($context, "unitsids"));
     foreach ($context['_seq'] as $context["_key"] => $context["ids"]) {
         // line 150
         echo "                                                                <option>\n                                                                    ";
         // line 151
         if (twig_test_iterable($context["ids"])) {
             echo "    \n                                                                        ";
             // line 152
             echo twig_escape_filter($this->env, $this->getAttribute($context["ids"], "databaseid", array()), "html", null, true);
             echo "\n                                                                    ";
         }
         // line 153
         echo "       \n                                                                </option>\n                                                            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ids'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 155
     echo "      \n\n\n                                                        </select>\n                                                    </div>\n                                                </div>       \n                                                <div class=\"form-group\">\n                                                    <label class=\"col-xs-3 control-label\">Destination Unit</label>\n                                                    <div class=\"col-xs-5\">\n                                                        <select class=\"form-control\" id=\"destination\">\n                                                            ";
     // line 165
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["unitsids"]) ? $context["unitsids"] : $this->getContext($context, "unitsids"));
     foreach ($context['_seq'] as $context["_key"] => $context["ids"]) {
         // line 166
         echo "                                                                <option>\n                                                                    ";
         // line 167
         if (twig_test_iterable($context["ids"])) {
             echo "    \n                                                                        ";
             // line 168
             echo twig_escape_filter($this->env, $this->getAttribute($context["ids"], "databaseid", array()), "html", null, true);
             echo "\n                                                                    ";
         }
         // line 169
         echo "       \n                                                                </option>\n                                                            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ids'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 171
     echo "      \n                                                         </select>\n                                                    </div>\n                                                </div>\n                                                <div class=\"form-group\">\n                                                    <label class=\"col-xs-3 control-label\">Start</label>\n                                                    <div class=\"col-xs-5 date\">\n                                                        <div class=\"input-group input-append date\" id=\"datePicker1\">\n                                                            <input type=\"text\" class=\"form-control\" name=\"date\" />\n                                                            <span class=\"input-group-addon add-on\"><span class=\"glyphicon glyphicon-calendar\"></span></span>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                                <div class=\"form-group\">\n                                                    <label class=\"col-xs-3 control-label\">End</label>\n                                                    <div class=\"col-xs-5 date\">\n                                                        <div class=\"input-group input-append date\" id=\"datePicker2\">\n                                                            <input type=\"text\" class=\"form-control\" name=\"Startdate\" />\n                                                            <span class=\"input-group-addon add-on\"><span class=\"glyphicon glyphicon-calendar\"></span></span>\n                                                        </div>\n                                                    </div>\n                                                </div>\n\n                                                <div class=\"form-group\">\n                                                    <div class=\"col-xs-5 col-xs-offset-3\">\n                                                        <button type=\"submit\" class=\"btn btn-default\">Results</button>\n                                                    </div>\n                                                </div>\n                                            </form>\n                                            <script type=\"text/javascript\">\n                                                \$(function () {\n                                                    \$('#datePicker1').datetimepicker();\n                                                    \$('#datePicker2').datetimepicker({\n                                                        useCurrent: false //Important! See issue #1075\n                                                    });\n                                                    \$(\"#datetimepicker6\").on(\"dp.change\", function (e) {\n                                                        \$('#datetimepicker7').data(\"DateTimePicker\").minDate(e.date);\n                                                    });\n                                                    \$(\"#datetimepicker7\").on(\"dp.change\", function (e) {\n                                                        \$('#datetimepicker6').data(\"DateTimePicker\").maxDate(e.date);\n                                                    });\n                                                });\n                                            </script>\n\n                                        </div>\n                                    </div>\n\n                                    <div class=\"row\">\n                                        <div class=\"col-md-12\">\n                                            <!-- Advanced Tables -->\n                                            <div class=\"panel panel-default\">\n                                                <div class=\"panel-heading\">\n                                                    Advanced Tables\n                                                </div>\n                                                <div class=\"panel-body\">\n                                                    <div class=\"table-responsive\">\n                                                        <table class=\"table table-striped table-bordered table-hover\" id=\"dataTables-example\" >\n                                                            <thead>\n                                                                <tr>\n                                                                    <th>Date and Time</th> \n                                                                    <th>Source Unit</th>\n                                                                    <th>Destination Unit</th>\n                                                                    <th>Travel Time </th>\n                                                                    <th>No of Units </th>\n                                                                </tr>\n                                                            </thead>\n                                                            <tbody>\n                                                                <tr class=\"odd gradeX\">\n                                                                    <td>Trident</td>\n                                                                    <td>Internet Explorer 4.0</td>\n                                                                    <td>Win 95+</td>\n                                                                    <td class=\"center\">4</td>\n                                                                    <td class=\"center\">X</td>\n                                                                </tr>\n                                                                <tr class=\"even gradeC\">\n                                                                    <td>Trident</td>\n                                                                    <td>Internet Explorer 5.0</td>\n                                                                    <td>Win 95+</td>\n                                                                    <td class=\"center\">5</td>\n                                                                    <td class=\"center\">C</td>\n                                                                </tr>\n                                                                <tr class=\"odd gradeA\">\n                                                                    <td>Trident</td>\n                                                                    <td>Internet Explorer 5.5</td>\n                                                                    <td>Win 95+</td>\n                                                                    <td class=\"center\">5.5</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"even gradeA\">\n                                                                    <td>Trident</td>\n                                                                    <td>Internet Explorer 6</td>\n                                                                    <td>Win 98+</td>\n                                                                    <td class=\"center\">6</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"odd gradeA\">\n                                                                    <td>Trident</td>\n                                                                    <td>Internet Explorer 7</td>\n                                                                    <td>Win XP SP2+</td>\n                                                                    <td class=\"center\">7</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"even gradeA\">\n                                                                    <td>Trident</td>\n                                                                    <td>AOL browser (AOL desktop)</td>\n                                                                    <td>Win XP</td>\n                                                                    <td class=\"center\">6</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Firefox 1.0</td>\n                                                                    <td>Win 98+ / OSX.2+</td>\n                                                                    <td class=\"center\">1.7</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Firefox 1.5</td>\n                                                                    <td>Win 98+ / OSX.2+</td>\n                                                                    <td class=\"center\">1.8</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Firefox 2.0</td>\n                                                                    <td>Win 98+ / OSX.2+</td>\n                                                                    <td class=\"center\">1.8</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Firefox 3.0</td>\n                                                                    <td>Win 2k+ / OSX.3+</td>\n                                                                    <td class=\"center\">1.9</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Camino 1.0</td>\n                                                                    <td>OSX.2+</td>\n                                                                    <td class=\"center\">1.8</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Camino 1.5</td>\n                                                                    <td>OSX.3+</td>\n                                                                    <td class=\"center\">1.8</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Netscape 7.2</td>\n                                                                    <td>Win 95+ / Mac OS 8.6-9.2</td>\n                                                                    <td class=\"center\">1.7</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Netscape Browser 8</td>\n                                                                    <td>Win 98SE+</td>\n                                                                    <td class=\"center\">1.7</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Netscape Navigator 9</td>\n                                                                    <td>Win 98+ / OSX.2+</td>\n                                                                    <td class=\"center\">1.8</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Mozilla 1.0</td>\n                                                                    <td>Win 95+ / OSX.1+</td>\n                                                                    <td class=\"center\">1</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Mozilla 1.1</td>\n                                                                    <td>Win 95+ / OSX.1+</td>\n                                                                    <td class=\"center\">1.1</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Mozilla 1.2</td>\n                                                                    <td>Win 95+ / OSX.1+</td>\n                                                                    <td class=\"center\">1.2</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Mozilla 1.3</td>\n                                                                    <td>Win 95+ / OSX.1+</td>\n                                                                    <td class=\"center\">1.3</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Mozilla 1.4</td>\n                                                                    <td>Win 95+ / OSX.1+</td>\n                                                                    <td class=\"center\">1.4</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Mozilla 1.5</td>\n                                                                    <td>Win 95+ / OSX.1+</td>\n                                                                    <td class=\"center\">1.5</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Mozilla 1.6</td>\n                                                                    <td>Win 95+ / OSX.1+</td>\n                                                                    <td class=\"center\">1.6</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Mozilla 1.7</td>\n                                                                    <td>Win 98+ / OSX.1+</td>\n                                                                    <td class=\"center\">1.7</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Mozilla 1.8</td>\n                                                                    <td>Win 98+ / OSX.1+</td>\n                                                                    <td class=\"center\">1.8</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Seamonkey 1.1</td>\n                                                                    <td>Win 98+ / OSX.2+</td>\n                                                                    <td class=\"center\">1.8</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Gecko</td>\n                                                                    <td>Epiphany 2.20</td>\n                                                                    <td>Gnome</td>\n                                                                    <td class=\"center\">1.8</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Webkit</td>\n                                                                    <td>Safari 1.2</td>\n                                                                    <td>OSX.3</td>\n                                                                    <td class=\"center\">125.5</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Webkit</td>\n                                                                    <td>Safari 1.3</td>\n                                                                    <td>OSX.3</td>\n                                                                    <td class=\"center\">312.8</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Webkit</td>\n                                                                    <td>Safari 2.0</td>\n                                                                    <td>OSX.4+</td>\n                                                                    <td class=\"center\">419.3</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Webkit</td>\n                                                                    <td>Safari 3.0</td>\n                                                                    <td>OSX.4+</td>\n                                                                    <td class=\"center\">522.1</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Webkit</td>\n                                                                    <td>OmniWeb 5.5</td>\n                                                                    <td>OSX.4+</td>\n                                                                    <td class=\"center\">420</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Webkit</td>\n                                                                    <td>iPod Touch / iPhone</td>\n                                                                    <td>iPod</td>\n                                                                    <td class=\"center\">420.1</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Webkit</td>\n                                                                    <td>S60</td>\n                                                                    <td>S60</td>\n                                                                    <td class=\"center\">413</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Opera 7.0</td>\n                                                                    <td>Win 95+ / OSX.1+</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Opera 7.5</td>\n                                                                    <td>Win 95+ / OSX.2+</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Opera 8.0</td>\n                                                                    <td>Win 95+ / OSX.2+</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Opera 8.5</td>\n                                                                    <td>Win 95+ / OSX.2+</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Opera 9.0</td>\n                                                                    <td>Win 95+ / OSX.3+</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Opera 9.2</td>\n                                                                    <td>Win 88+ / OSX.3+</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Opera 9.5</td>\n                                                                    <td>Win 88+ / OSX.3+</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Opera for Wii</td>\n                                                                    <td>Wii</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Nokia N800</td>\n                                                                    <td>N800</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Presto</td>\n                                                                    <td>Nintendo DS browser</td>\n                                                                    <td>Nintendo DS</td>\n                                                                    <td class=\"center\">8.5</td>\n                                                                    <td class=\"center\">C/A<sup>1</sup>\n                                                                    </td>\n                                                                </tr>\n                                                                <tr class=\"gradeC\">\n                                                                    <td>KHTML</td>\n                                                                    <td>Konqureror 3.1</td>\n                                                                    <td>KDE 3.1</td>\n                                                                    <td class=\"center\">3.1</td>\n                                                                    <td class=\"center\">C</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>KHTML</td>\n                                                                    <td>Konqureror 3.3</td>\n                                                                    <td>KDE 3.3</td>\n                                                                    <td class=\"center\">3.3</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>KHTML</td>\n                                                                    <td>Konqureror 3.5</td>\n                                                                    <td>KDE 3.5</td>\n                                                                    <td class=\"center\">3.5</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeX\">\n                                                                    <td>Tasman</td>\n                                                                    <td>Internet Explorer 4.5</td>\n                                                                    <td>Mac OS 8-9</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">X</td>\n                                                                </tr>\n                                                                <tr class=\"gradeC\">\n                                                                    <td>Tasman</td>\n                                                                    <td>Internet Explorer 5.1</td>\n                                                                    <td>Mac OS 7.6-9</td>\n                                                                    <td class=\"center\">1</td>\n                                                                    <td class=\"center\">C</td>\n                                                                </tr>\n                                                                <tr class=\"gradeC\">\n                                                                    <td>Tasman</td>\n                                                                    <td>Internet Explorer 5.2</td>\n                                                                    <td>Mac OS 8-X</td>\n                                                                    <td class=\"center\">1</td>\n                                                                    <td class=\"center\">C</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Misc</td>\n                                                                    <td>NetFront 3.1</td>\n                                                                    <td>Embedded devices</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">C</td>\n                                                                </tr>\n                                                                <tr class=\"gradeA\">\n                                                                    <td>Misc</td>\n                                                                    <td>NetFront 3.4</td>\n                                                                    <td>Embedded devices</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">A</td>\n                                                                </tr>\n                                                                <tr class=\"gradeX\">\n                                                                    <td>Misc</td>\n                                                                    <td>Dillo 0.8</td>\n                                                                    <td>Embedded devices</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">X</td>\n                                                                </tr>\n                                                                <tr class=\"gradeX\">\n                                                                    <td>Misc</td>\n                                                                    <td>Links</td>\n                                                                    <td>Text only</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">X</td>\n                                                                </tr>\n                                                                <tr class=\"gradeX\">\n                                                                    <td>Misc</td>\n                                                                    <td>Lynx</td>\n                                                                    <td>Text only</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">X</td>\n                                                                </tr>\n                                                                <tr class=\"gradeC\">\n                                                                    <td>Misc</td>\n                                                                    <td>IE Mobile</td>\n                                                                    <td>Windows Mobile 6</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">C</td>\n                                                                </tr>\n                                                                <tr class=\"gradeC\">\n                                                                    <td>Misc</td>\n                                                                    <td>PSP browser</td>\n                                                                    <td>PSP</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">C</td>\n                                                                </tr>\n                                                                <tr class=\"gradeU\">\n                                                                    <td>Other browsers</td>\n                                                                    <td>All others</td>\n                                                                    <td>-</td>\n                                                                    <td class=\"center\">-</td>\n                                                                    <td class=\"center\">U</td>\n                                                                </tr>\n                                                            </tbody>\n                                                        </table>\n                                                    </div>\n\n                                                </div>\n                                            </div>\n                                            <!--End Advanced Tables -->\n                                        </div>\n                                    </div>\n\n                                    <div class=\"row\"> \n\n                                        <div class=\"col-md-6 col-sm-12 col-xs-12\">                     \n                                            <div class=\"panel panel-default\">\n                                                <div class=\"panel-heading\">\n                                                    Bar Chart Example\n                                                </div>\n                                                <div class=\"panel-body\">\n                                                    <div id=\"morris-bar-chart\"></div>\n                                                </div>\n                                            </div>            \n                                        </div>\n                                        <div class=\"col-md-6 col-sm-12 col-xs-12\">                     \n                                            <div class=\"panel panel-default\">\n                                                <div class=\"panel-heading\">\n                                                    Area Chart Example\n                                                </div>\n                                                <div class=\"panel-body\">\n                                                    <div id=\"morris-area-chart\"></div>\n                                                </div>\n                                            </div>            \n                                        </div> \n\n                                    </div>\n                                    <!-- /. ROW  -->\n                                    <div class=\"row\">                     \n\n                                        <div class=\"col-md-6 col-sm-12 col-xs-12\">                     \n                                            <div class=\"panel panel-default\">\n                                                <div class=\"panel-heading\">\n                                                    Donut Chart Example\n                                                </div>\n                                                <div class=\"panel-body\">\n                                                    <div id=\"morris-donut-chart\"></div>\n                                                </div>\n                                            </div>            \n                                        </div>\n                                        <div class=\"col-md-6 col-sm-12 col-xs-12\">                     \n                                            <div class=\"panel panel-default\">\n                                                <div class=\"panel-heading\">\n                                                    Line Chart Example\n                                                </div>\n                                                <div class=\"panel-body\">\n                                                    <div id=\"morris-line-chart\"></div>\n                                                </div>\n                                            </div>            \n                                        </div> \n                                    </div>\n                                </div>\n                                <!-- End Form Elements -->\n                            </div>\n                        </div>\n                        <!-- /. ROW -->\n                        <div class=\"row\">\n                            <div class=\"col-md-12\">\n                                <h3>More Customization</h3>\n                                <p>For more customization for this template or its components please visit\n                                    official bootstrap website i.e getbootstrap.com or\n                                    <a href=\"http://getbootstrap.com/components/\" target=\"_blank\">click here</a>. We hope you will enjoy our template. This template is easy to use, light\n                                    weight and made with love by binarycart.com</p>\n                            </div>\n                        </div>\n                        <!-- /. ROW -->\n                    </div>\n                    <!-- /. PAGE INNER -->\n                </div>\n                <!-- /. PAGE WRAPPER -->\n            </div>\n        </div>\n        <script>\n            \$(document).ready(function () {\n                \$('#dataTables-example').dataTable();\n            });\n        </script>\n\n    </body>\n\n</html>";
     $__internal_06e4240837ed59bf3d144ac591b8c9ef0cf9b52fbbfab9b5be42abba6e22a3b3->leave($__internal_06e4240837ed59bf3d144ac591b8c9ef0cf9b52fbbfab9b5be42abba6e22a3b3_prof);
 }
 public function block_input($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $context["local_fonts"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "theme", array(), "any", false, true), "details", array(), "any", false, true), "configuration", array(), "any", false, true), "fonts", array(), "array", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "theme", array(), "any", false, true), "details", array(), "any", false, true), "configuration", array(), "any", false, true), "fonts", array(), "array"), array()) : array();
     // line 5
     echo "    ";
     $context["map"] = array();
     // line 6
     echo "    ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["local_fonts"]) ? $context["local_fonts"] : null);
     foreach ($context['_seq'] as $context["name"] => $context["variants"]) {
         // line 7
         echo "        ";
         if (twig_test_iterable($context["variants"])) {
             $context["variants"] = twig_get_array_keys_filter($context["variants"]);
             // line 8
             echo "        ";
         } else {
             $context["variants"] = array(0 => "regular");
         }
         // line 9
         echo "        ";
         $context["map"] = twig_array_merge(isset($context["map"]) ? $context["map"] : null, array(0 => array("family" => $context["name"], "variants" => $context["variants"])));
         // line 10
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['name'], $context['variants'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 11
     echo "\n    <div class=\"g-fonts\">\n        <div class=\"input-group append\">\n            <input\n                    ";
     // line 16
     echo "                    type=\"text\"\n                    name=\"";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)));
     echo "\"\n                    value=\"";
     // line 18
     echo twig_escape_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", "));
     echo "\"\n                    ";
     // line 20
     echo "                    ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n                    ";
     // line 22
     echo "                    ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), array(0 => "on", 1 => "off"))) {
         echo "autocomplete=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()));
         echo "\"";
     }
     // line 23
     echo "                    ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "autofocus=\"autofocus\"";
     }
     // line 24
     echo "                    ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "disabled=\"disabled\"";
     }
     // line 25
     echo "                    ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array(), "any", true, true)) {
         echo "list=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array()));
         echo "\"";
     }
     // line 26
     echo "                    />\n            ";
     // line 27
     $context["picker"] = array("field" => "input[name=\"" . twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null))) . "\"]");
     // line 28
     echo "            <span class=\"input-group-btn\">\n                <button class=\"button\" type=\"button\" aria-label=\"";
     // line 29
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_SELECT"), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array()));
     echo "\" data-g5-fontpicker=\"";
     echo twig_escape_filter($this->env, twig_jsonencode_filter(isset($context["picker"]) ? $context["picker"] : null), "html_attr");
     echo "\">\n                    <i class=\"fa fa-font\"></i>\n                </button>\n            </span>\n        </div>\n    </div>\n";
 }
 public function block_choice_widget_options($context, array $blocks = array())
 {
     // line 75
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["options"]) ? $context["options"] : null);
     $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["group_label"] => $context["choice"]) {
         // line 76
         if (twig_test_iterable($context["choice"])) {
             // line 77
             echo "<optgroup label=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($context["group_label"], array(), isset($context["translation_domain"]) ? $context["translation_domain"] : null), "html", null, true);
             echo "\">\n                ";
             // line 78
             $context["options"] = $context["choice"];
             // line 79
             $this->displayBlock("choice_widget_options", $context, $blocks);
             // line 80
             echo "</optgroup>";
         } else {
             // line 82
             echo "<option value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["choice"], "value", array()), "html", null, true);
             echo "\"";
             if ($this->env->getExtension('form')->isSelectedChoice($context["choice"], isset($context["value"]) ? $context["value"] : null)) {
                 echo " selected=\"selected\"";
             }
             echo ">";
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["choice"], "label", array()), array(), isset($context["translation_domain"]) ? $context["translation_domain"] : null), "html", null, true);
             echo "</option>";
         }
         ++$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['group_label'], $context['choice'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 public function block_choice_widget_options($context, array $blocks = array())
 {
     $__internal_47fa1d55d52e62701abe35269595ad78261ba7efae37596c48a1e9b1ce8da366 = $this->env->getExtension("native_profiler");
     $__internal_47fa1d55d52e62701abe35269595ad78261ba7efae37596c48a1e9b1ce8da366->enter($__internal_47fa1d55d52e62701abe35269595ad78261ba7efae37596c48a1e9b1ce8da366_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "choice_widget_options"));
     // line 75
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["options"]) ? $context["options"] : $this->getContext($context, "options"));
     $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["group_label"] => $context["choice"]) {
         // line 76
         if (twig_test_iterable($context["choice"])) {
             // line 77
             echo "<optgroup label=\"";
             echo twig_escape_filter($this->env, (isset($context["choice_translation_domain"]) ? $context["choice_translation_domain"] : $this->getContext($context, "choice_translation_domain")) === false ? $context["group_label"] : $this->env->getExtension('translator')->trans($context["group_label"], array(), isset($context["choice_translation_domain"]) ? $context["choice_translation_domain"] : $this->getContext($context, "choice_translation_domain")), "html", null, true);
             echo "\">\n                ";
             // line 78
             $context["options"] = $context["choice"];
             // line 79
             $this->displayBlock("choice_widget_options", $context, $blocks);
             // line 80
             echo "</optgroup>";
         } else {
             // line 82
             $context["attr"] = $this->getAttribute($context["choice"], "attr", array());
             // line 83
             echo "            <option value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["choice"], "value", array()), "html", null, true);
             echo "\" ";
             $this->displayBlock("attributes", $context, $blocks);
             if ($this->env->getExtension('form')->isSelectedChoice($context["choice"], isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
                 echo " selected=\"selected\"";
             }
             echo ">";
             echo twig_escape_filter($this->env, (isset($context["choice_translation_domain"]) ? $context["choice_translation_domain"] : $this->getContext($context, "choice_translation_domain")) === false ? $this->getAttribute($context["choice"], "label", array()) : $this->env->getExtension('translator')->trans($this->getAttribute($context["choice"], "label", array()), array(), isset($context["choice_translation_domain"]) ? $context["choice_translation_domain"] : $this->getContext($context, "choice_translation_domain")), "html", null, true);
             echo "</option>";
         }
         ++$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['group_label'], $context['choice'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     $__internal_47fa1d55d52e62701abe35269595ad78261ba7efae37596c48a1e9b1ce8da366->leave($__internal_47fa1d55d52e62701abe35269595ad78261ba7efae37596c48a1e9b1ce8da366_prof);
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "\n<div id=\"pluginsSettings\">\n    ";
     // line 6
     $context["piwik"] = $this->env->loadTemplate("macros.twig");
     // line 7
     echo "    ";
     $context["ajax"] = $this->env->loadTemplate("ajaxMacros.twig");
     // line 8
     echo "\n    ";
     // line 9
     if ((isset($context["mode"]) ? $context["mode"] : $this->getContext($context, "mode")) == "user") {
         // line 10
         echo "        <h2 piwik-enriched-headline>";
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_PersonalPluginSettings")), "html", null, true);
         echo "</h2>\n    ";
     } else {
         // line 12
         echo "        <h2 piwik-enriched-headline>";
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_SystemPluginSettings")), "html", null, true);
         echo "</h2>\n    ";
     }
     // line 14
     echo "\n    <p>\n        ";
     // line 16
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreAdminHome_PluginSettingsIntro")), "html", null, true);
     echo "\n        ";
     // line 17
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["pluginsSettings"]) ? $context["pluginsSettings"] : $this->getContext($context, "pluginsSettings"));
     $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["pluginName"] => $context["settings"]) {
         // line 18
         echo "            <a href=\"#";
         echo twig_escape_filter($this->env, $context["pluginName"], "html_attr");
         echo "\">";
         echo twig_escape_filter($this->env, $context["pluginName"], "html", null, true);
         echo "</a>";
         if (!$this->getAttribute($context["loop"], "last", array())) {
             echo ", ";
         }
         // line 19
         echo "        ";
         ++$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['pluginName'], $context['settings'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 20
     echo "    </p>\n\n    <input type=\"hidden\" name=\"setpluginsettingsnonce\" value=\"";
     // line 22
     echo twig_escape_filter($this->env, isset($context["nonce"]) ? $context["nonce"] : $this->getContext($context, "nonce"), "html", null, true);
     echo "\">\n\n    ";
     // line 24
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["pluginsSettings"]) ? $context["pluginsSettings"] : $this->getContext($context, "pluginsSettings"));
     foreach ($context['_seq'] as $context["pluginName"] => $context["pluginSettings"]) {
         // line 25
         echo "\n        <h2 id=\"";
         // line 26
         echo twig_escape_filter($this->env, $context["pluginName"], "html_attr");
         echo "\">";
         echo twig_escape_filter($this->env, $context["pluginName"], "html", null, true);
         echo "</h2>\n\n        ";
         // line 28
         if ($this->getAttribute($context["pluginSettings"], "introduction", array())) {
             // line 29
             echo "            <p class=\"pluginIntroduction\">\n                ";
             // line 30
             echo twig_escape_filter($this->env, $this->getAttribute($context["pluginSettings"], "introduction", array()), "html", null, true);
             echo "\n            </p>\n        ";
         }
         // line 33
         echo "\n        <table class=\"adminTable\" id=\"pluginSettings\" data-pluginname=\"";
         // line 34
         echo twig_escape_filter($this->env, $context["pluginName"], "html_attr");
         echo "\">\n\n        ";
         // line 36
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["pluginSettings"], "settings", array()));
         foreach ($context['_seq'] as $context["name"] => $context["setting"]) {
             // line 37
             echo "            ";
             $context["settingValue"] = $this->getAttribute($context["setting"], "getValue", array());
             // line 38
             echo "\n            ";
             // line 39
             if ($this->getAttribute($context["setting"], "introduction", array())) {
                 // line 40
                 echo "                <tr>\n                    <td colspan=\"3\">\n                        <p class=\"settingIntroduction\">\n                            ";
                 // line 43
                 echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "introduction", array()), "html", null, true);
                 echo "\n                        </p>\n                    </td>\n                </tr>\n            ";
             }
             // line 48
             echo "\n            <tr>\n                <td class=\"columnTitle\">\n                    <span class=\"title\">";
             // line 51
             echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "title", array()), "html", null, true);
             echo "</span>\n                    <br />\n                    <span class='form-description'>\n                        ";
             // line 54
             echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "description", array()), "html", null, true);
             echo "\n                    </span>\n\n                </td>\n                <td class=\"columnField\">\n                    <fieldset>\n                        <label>\n                            ";
             // line 61
             if ($this->getAttribute($context["setting"], "uiControlType", array()) == "select" || $this->getAttribute($context["setting"], "uiControlType", array()) == "multiselect") {
                 // line 62
                 echo "                                <select\n                                    ";
                 // line 63
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["setting"], "uiControlAttributes", array()));
                 foreach ($context['_seq'] as $context["attr"] => $context["val"]) {
                     // line 64
                     echo "                                        ";
                     echo twig_escape_filter($this->env, $context["attr"], "html_attr");
                     echo "=\"";
                     echo twig_escape_filter($this->env, $context["val"], "html_attr");
                     echo "\"\n                                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['attr'], $context['val'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 66
                 echo "                                    name=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "getKey", array()), "html_attr");
                 echo "\"\n                                    ";
                 // line 67
                 if ($this->getAttribute($context["setting"], "uiControlType", array()) == "multiselect") {
                     echo "multiple";
                 }
                 echo ">\n\n                                    ";
                 // line 69
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["setting"], "availableValues", array()));
                 foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                     // line 70
                     echo "                                        <option value='";
                     echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                     echo "'\n                                                ";
                     // line 71
                     if (twig_test_iterable(isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue")) && twig_in_filter($context["key"], isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue"))) {
                         // line 72
                         echo "                                                    selected='selected'\n                                                ";
                     } elseif ((isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue")) == $context["key"]) {
                         // line 74
                         echo "                                                    selected='selected'\n                                                ";
                     }
                     // line 75
                     echo ">\n                                            ";
                     // line 76
                     echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                     echo "\n                                        </option>\n                                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 79
                 echo "\n                                </select>\n                            ";
             } elseif ($this->getAttribute($context["setting"], "uiControlType", array()) == "textarea") {
                 // line 82
                 echo "                                <textarea style=\"width: 376px; height: 250px;\"\n                                    ";
                 // line 83
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["setting"], "uiControlAttributes", array()));
                 foreach ($context['_seq'] as $context["attr"] => $context["val"]) {
                     // line 84
                     echo "                                        ";
                     echo twig_escape_filter($this->env, $context["attr"], "html_attr");
                     echo "=\"";
                     echo twig_escape_filter($this->env, $context["val"], "html_attr");
                     echo "\"\n                                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['attr'], $context['val'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 86
                 echo "                                    name=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "getKey", array()), "html_attr");
                 echo "\"\n                                    >";
                 // line 88
                 echo twig_escape_filter($this->env, isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue"), "html", null, true);
                 // line 89
                 echo "</textarea>\n                            ";
             } elseif ($this->getAttribute($context["setting"], "uiControlType", array()) == "radio") {
                 // line 91
                 echo "\n                                ";
                 // line 92
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["setting"], "availableValues", 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["value"]) {
                     // line 93
                     echo "\n                                    <input\n                                        id=\"name-value-";
                     // line 95
                     echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
                     echo "\"\n                                        ";
                     // line 96
                     $context['_parent'] = (array) $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["setting"], "uiControlAttributes", array()));
                     foreach ($context['_seq'] as $context["attr"] => $context["val"]) {
                         // line 97
                         echo "                                            ";
                         echo twig_escape_filter($this->env, $context["attr"], "html_attr");
                         echo "=\"";
                         echo twig_escape_filter($this->env, $context["val"], "html_attr");
                         echo "\"\n                                        ";
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['attr'], $context['val'], $context['_parent'], $context['loop']);
                     $context = array_intersect_key($context, $_parent) + $_parent;
                     // line 99
                     echo "                                        ";
                     if ((isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue")) === $context["key"]) {
                         // line 100
                         echo "                                            checked=\"checked\"\n                                        ";
                     }
                     // line 102
                     echo "                                        type=\"radio\"\n                                        value=\"";
                     // line 103
                     echo twig_escape_filter($this->env, $context["key"], "html_attr");
                     echo "\"\n                                        name=\"";
                     // line 104
                     echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "getKey", array()), "html_attr");
                     echo "\" />\n\n                                    <label for=\"name-value-";
                     // line 106
                     echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
                     echo "\">";
                     echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                     echo "</label>\n\n                                    <br />\n\n                                ";
                     ++$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['value'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 111
                 echo "\n                            ";
             } else {
                 // line 113
                 echo "\n                                <input\n                                    ";
                 // line 115
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["setting"], "uiControlAttributes", array()));
                 foreach ($context['_seq'] as $context["attr"] => $context["val"]) {
                     // line 116
                     echo "                                        ";
                     echo twig_escape_filter($this->env, $context["attr"], "html_attr");
                     echo "=\"";
                     echo twig_escape_filter($this->env, $context["val"], "html_attr");
                     echo "\"\n                                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['attr'], $context['val'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 118
                 echo "                                    ";
                 if ($this->getAttribute($context["setting"], "uiControlType", array()) == "checkbox") {
                     // line 119
                     echo "                                        value=\"1\"\n                                    ";
                 }
                 // line 121
                 echo "                                    ";
                 if ($this->getAttribute($context["setting"], "uiControlType", array()) == "checkbox" && (isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue"))) {
                     // line 122
                     echo "                                        checked=\"checked\"\n                                    ";
                 }
                 // line 124
                 echo "                                    class=\"control_";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "uiControlType", array()), "html_attr");
                 echo "\"\n                                    type=\"";
                 // line 125
                 echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "uiControlType", array()), "html_attr");
                 echo "\"\n                                    name=\"";
                 // line 126
                 echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "getKey", array()), "html_attr");
                 echo "\"\n                                    value=\"";
                 // line 127
                 echo twig_escape_filter($this->env, isset($context["settingValue"]) ? $context["settingValue"] : $this->getContext($context, "settingValue"), "html_attr");
                 echo "\"\n                                >\n\n                            ";
             }
             // line 131
             echo "\n                            ";
             // line 132
             if ($this->getAttribute($context["setting"], "defaultValue", array()) && $this->getAttribute($context["setting"], "uiControlType", array()) != "checkbox" && $this->getAttribute($context["setting"], "uiControlType", array()) != "radio") {
                 // line 133
                 echo "                                <br/>\n                                <span class='form-description'>\n                                    ";
                 // line 135
                 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Default")), "html", null, true);
                 echo "\n                                    ";
                 // line 136
                 if (twig_test_iterable($this->getAttribute($context["setting"], "defaultValue", array()))) {
                     // line 137
                     echo "                                        ";
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('truncate')->getCallable(), array(twig_join_filter($this->getAttribute($context["setting"], "defaultValue", array()), ", "), 50)), "html", null, true);
                     echo "\n                                    ";
                 } else {
                     // line 139
                     echo "                                        ";
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('truncate')->getCallable(), array($this->getAttribute($context["setting"], "defaultValue", array()), 50)), "html", null, true);
                     echo "\n                                    ";
                 }
                 // line 141
                 echo "                                </span>\n                            ";
             }
             // line 143
             echo "\n                        </label>\n                    </fieldset>\n                </td>\n                <td class=\"columnHelp\">\n                    ";
             // line 148
             if ($this->getAttribute($context["setting"], "inlineHelp", array())) {
                 // line 149
                 echo "                        <div class=\"ui-widget\">\n                            <div class=\"ui-inline-help\">\n                                ";
                 // line 151
                 echo twig_escape_filter($this->env, $this->getAttribute($context["setting"], "inlineHelp", array()), "html", null, true);
                 echo "\n                            </div>\n                        </div>\n                    ";
             }
             // line 155
             echo "                </td>\n            </tr>\n\n        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['name'], $context['setting'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 159
         echo "\n        </table>\n\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['pluginName'], $context['pluginSettings'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 163
     echo "\n    <hr class=\"submitSeparator\"/>\n\n    ";
     // line 166
     echo $context["ajax"]->geterrorDiv("ajaxErrorPluginSettings");
     echo "\n    ";
     // line 167
     echo $context["ajax"]->getloadingDiv("ajaxLoadingPluginSettings");
     echo "\n\n    <input type=\"submit\" value=\"";
     // line 169
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Save")), "html", null, true);
     echo "\" class=\"pluginsSettingsSubmit submit\"/>\n\n</div>\n";
 }