protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div id=\"piwik-promo\">\n    <div id=\"piwik-promo-video\">\n        <div id=\"piwik-promo-thumbnail\">\n            <img src=\"plugins/Morpheus/images/video_play.png\"/>\n        </div>\n\n        <div id=\"piwik-promo-embed\" style=\"display:none;\">\n        </div>\n    </div>\n\n    <a id=\"piwik-promo-videos-link\" href=\"http://piwik.org/blog/2012/12/piwik-how-to-videos/\" rel=\"noreferrer\"  target=\"_blank\">\n        ";
     // line 12
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_ViewAllPiwikVideoTutorials")), "html", null, true);
     echo "\n    </a>\n\n    <div id=\"piwik-promo-share\">\n        <span>";
     // line 16
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_ShareThis")), "html", null, true);
     echo ":</span>\n\n        ";
     // line 19
     echo "        <a href=\"http://www.facebook.com/sharer.php?u=";
     echo twig_escape_filter($this->env, twig_urlencode_filter(isset($context["promoVideoUrl"]) ? $context["promoVideoUrl"] : $this->getContext($context, "promoVideoUrl")), "html", null, true);
     echo "\" rel=\"noreferrer\"  target=\"_blank\">\n            <img src=\"plugins/Referrers/images/socials/facebook.com.png\" />\n        </a>\n\n        ";
     // line 24
     echo "        <a href=\"http://twitter.com/share?text=";
     echo twig_escape_filter($this->env, twig_urlencode_filter(isset($context["shareText"]) ? $context["shareText"] : $this->getContext($context, "shareText")), "html", null, true);
     echo "&url=";
     echo twig_escape_filter($this->env, twig_urlencode_filter(isset($context["promoVideoUrl"]) ? $context["promoVideoUrl"] : $this->getContext($context, "promoVideoUrl")), "html", null, true);
     echo "\" rel=\"noreferrer\"  target=\"_blank\">\n            <img src=\"plugins/Referrers/images/socials/twitter.com.png\" />\n        </a>\n\n        ";
     // line 29
     echo "        <a href=\"mailto:?body=";
     echo twig_escape_filter($this->env, twig_urlencode_filter(isset($context["shareTextLong"]) ? $context["shareTextLong"] : $this->getContext($context, "shareTextLong"), true), "html", null, true);
     echo "&subject=";
     echo twig_escape_filter($this->env, twig_urlencode_filter(isset($context["shareText"]) ? $context["shareText"] : $this->getContext($context, "shareText"), true), "html", null, true);
     echo "\" target=\"_blank\">\n            <img src=\"plugins/Morpheus/images/email.png\" />\n        </a>\n    </div>\n\n    <div style=\"clear:both;\"></div>\n\n    <div id=\"piwik-widget-footer\" style=\"color:#666;\">";
     // line 36
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_CloseWidgetDirections")), "html", null, true);
     echo "</div>\n</div>\n\n<script type=\"application/javascript\">\n    \$(function () {\n        \$('#piwik-promo-thumbnail').click(function () {\n            var promoEmbed = \$('#piwik-promo-embed'),\n                    widgetWidth = \$(this).closest('.widgetContent').width(),\n                    height = (266 * widgetWidth) / 421,\n                    embedHtml = '<iframe width=\"100%\" height=\"' + height + '\" src=\"https://www.youtube-nocookie.com/embed/OslfF_EH81g?autoplay=1&vq=hd720&wmode=transparent\" frameborder=\"0\" wmode=\"Opaque\"></iframe>';\n\n            \$(this).hide();\n            promoEmbed.height(height).html(embedHtml);\n            promoEmbed.show();\n        });\n    });\n</script>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<h1>Character Profile</h1>\n\n<p>Name: <strong>";
     // line 3
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["character"]) ? $context["character"] : null, "name", array()), "html", null, true);
     echo "</strong></p>\n<p>Faction: <strong>";
     // line 4
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["character"]) ? $context["character"] : null, "faction", array()), "html", null, true);
     echo "</p></strong>\n<p>Balance:\n  ";
     // line 6
     if (isset($context["balance"]) ? $context["balance"] : null) {
         // line 7
         echo "    <strong>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["balance"]) ? $context["balance"] : null, "amount", array()), "html", null, true);
         echo "</strong>\n  ";
     } else {
         // line 9
         echo "    <strong>-</strong>\n  ";
     }
     // line 11
     echo "</p>\n\n";
     // line 13
     if ($this->getAttribute(isset($context["user"]) ? $context["user"] : null, "id", array()) == $this->getAttribute(isset($context["character"]) ? $context["character"] : null, "user_id", array()) || $this->getAttribute(isset($context["user"]) ? $context["user"] : null, "permission_level", array()) == "Administrator") {
         // line 14
         echo "  ";
         if (null === (isset($context["balance_request"]) ? $context["balance_request"] : null)) {
             // line 15
             echo "    This character currently does not have a balance. Apply for one\n    <a href=\"/balance/apply/";
             // line 16
             echo twig_escape_filter($this->env, twig_urlencode_filter(twig_replace_filter($this->getAttribute(isset($context["character"]) ? $context["character"] : null, "name", array()), " ", "-")), "html", null, true);
             echo "\">here</a>\n  ";
         } elseif ($this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "completed", array()) == "No" && $this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "status", array()) != "Rejected") {
             // line 18
             echo "    The current balance request for this character is: <a href=\"/balance/view-application/";
             echo twig_escape_filter($this->env, twig_urlencode_filter(twig_replace_filter($this->getAttribute(isset($context["character"]) ? $context["character"] : null, "name", array()), " ", "-")), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "status", array()), "html", null, true);
             echo "</a>\n  ";
         } elseif ($this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "complete", array()) == "Yes" && $this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "status", array()) == "Rejected") {
             // line 20
             echo "    Your balance request has been rejected for the following reason:\n    <p>";
             // line 21
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "decision_reasoning", array()), "html", null, true);
             echo "</p>\n    This character may submit a new balance request <a href=\"/balance/apply/";
             // line 22
             echo twig_escape_filter($this->env, twig_urlencode_filter(twig_replace_filter($this->getAttribute(isset($context["character"]) ? $context["character"] : null, "name", array()), " ", "-")), "html", null, true);
             echo "\">here</a>\n  ";
         }
     }
 }
 public function block_pageContent($context, array $blocks = array())
 {
     // line 10
     echo "\n\t<div class=\"box\" id=\"boxCompleteTodo\">\n\n\t\t<h2>Complete todo</h2>\n\n\t\t<div class=\"boxInner\">\n\t\t\t<p>Are you sure you want to complete the todo <strong>";
     // line 16
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "what"), "html", null, true);
     echo "</strong>?</p>\n\t\t\t<form action=\"";
     // line 17
     echo twig_escape_filter($this->env, isset($context["PHP_SELF"]) ? $context["PHP_SELF"] : null, "html", null, true);
     echo "?id=";
     echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "id")), "html", null, true);
     echo "\" method=\"post\">\n\t\t\t\t<fieldset class=\"columns\">\n\t\t\t\t\t<label class=\"column column-12 cancel alignLeft\"><a href=\"index.php\" title=\"Cancel and go back\">Cancel and go back</a></label>\n\t\t\t\t\t<label for=\"btnSubmit\" class=\"column column-12 alignRight\"><input type=\"submit\" id=\"btnSubmit\" name=\"btnSubmit\" value=\"Complete\" /></label>\n\t\t\t\t\t<input type=\"hidden\" name=\"id\" value=\"";
     // line 21
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "id"), "html", null, true);
     echo "\" />\n\t\t\t\t\t<input type=\"hidden\" name=\"moduleAction\" id=\"moduleAction\" value=\"delete\" />\n\t\t\t\t</fieldset>\n\t\t\t</form>\n\t\t</div>\n\n\t</div>\n\n\t";
     // line 29
     $this->env->loadTemplate("partials/formerrors.twig")->display($context);
     // line 30
     echo "\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "    <h3>Demo App</h3>\n    <p>\n        We would like to use your information in order to integrate with your friends,\n        use your personal information for nefarious purposes, and to make your life better somehow.\n    </p>\n    <p>\n        Click below to integrate with that service you belong to:\n    </p>\n    <a class=\"button\" href=\"";
     // line 12
     if (isset($context["response"])) {
         $_response_ = $context["response"];
     } else {
         $_response_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($_response_, "authorize_url"), "html", null, true);
     echo "?response_type=code&client_id=demoapp&redirect_uri=";
     if (isset($context["response"])) {
         $_response_ = $context["response"];
     } else {
         $_response_ = null;
     }
     echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute($_response_, "authorize_redirect_url")), "html", null, true);
     echo "\">Authorize</a>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<h1>Your Characters</h1>\n\n<ul>\n";
     // line 4
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["characters"]) ? $context["characters"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["character"]) {
         // line 5
         echo "  <li><a href=\"/character/";
         echo twig_escape_filter($this->env, twig_urlencode_filter(twig_replace_filter($this->getAttribute($context["character"], "name", array()), " ", "-")), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute($context["character"], "name", array()), "html", null, true);
         echo "</a></li>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['character'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 7
     echo "</ul>\n";
 }
 public function block_pageContent($context, array $blocks = array())
 {
     // line 10
     echo "\n\t<div class=\"box\" id=\"boxAddTodo\">\n\n\t\t<h2>Edit existing todo</h2>\n\n\t\t<div class=\"boxInner\">\n\t\t\t<form action=\"";
     // line 16
     echo twig_escape_filter($this->env, isset($context["PHP_SELF"]) ? $context["PHP_SELF"] : null, "html", null, true);
     echo "?id=";
     echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "id")), "html", null, true);
     echo "\" method=\"post\">\n\t\t\t\t<fieldset>\n\t\t\t\t\t<dl class=\"clearfix columns\">\n\t\t\t\t\t\t<dd class=\"column column-46\"><input type=\"text\" name=\"what\" id=\"what\" value=\"";
     // line 19
     echo twig_escape_filter($this->env, isset($context["what"]) ? $context["what"] : null, "html", null, true);
     echo "\" /></dd>\n\t\t\t\t\t\t<dd class=\"column column-16\" id=\"col-priority\">\n\t\t\t\t\t\t\t<select name=\"priority\" id=\"priority\">\n\t\t\t\t\t\t\t";
     // line 22
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["priorities"]) ? $context["priorities"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["prior"]) {
         // line 23
         echo "\t\t\t\t\t\t\t\t<option value=\"";
         echo twig_escape_filter($this->env, isset($context["prior"]) ? $context["prior"] : null, "html", null, true);
         echo "\"";
         if ((isset($context["prior"]) ? $context["prior"] : null) == (isset($context["priority"]) ? $context["priority"] : null)) {
             echo " selected=\"selected\"";
         }
         echo ">";
         echo twig_escape_filter($this->env, isset($context["prior"]) ? $context["prior"] : null, "html", null, true);
         echo "</option>\n\t\t\t\t\t\t\t";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['prior'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 25
     echo "\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dd class=\"column column-16\" id=\"col-submit\">\n\t\t\t\t\t\t\t<label for=\"btnSubmit\"><input type=\"submit\" id=\"btnSubmit\" name=\"btnSubmit\" value=\"Edit\" /></label>\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"id\" value=\"";
     // line 29
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "id"), "html", null, true);
     echo "\" />\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"moduleAction\" id=\"moduleAction\" value=\"edit\" />\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t</dl>\n\t\t\t\t</fieldset>\n\t\t\t</form>\n\t\t\t<p class=\"cancel\">or <a href=\"index.php\" title=\"Cancel and go back\">Cancel and go back</a></p>\n\t\t</div>\n\n\t</div>\n\n\t";
     // line 40
     $this->env->loadTemplate("partials/formerrors.twig")->display($context);
     // line 41
     echo "\n";
 }
 public function block_delete_form($context, array $blocks = array())
 {
     // line 155
     echo "        ";
     $context["referer"] = $this->getAttribute(isset($context["paginator"]) ? $context["paginator"] : null, "currentPage", array()) == $this->getAttribute(isset($context["paginator"]) ? $context["paginator"] : null, "nbPages", array()) && 1 != $this->getAttribute(isset($context["paginator"]) ? $context["paginator"] : null, "currentPage", array()) && 1 == $this->getAttribute($this->getAttribute(isset($context["paginator"]) ? $context["paginator"] : null, "currentPageResults", array()), "count", array()) ? $this->env->getExtension('routing')->getPath("easyadmin", twig_array_merge($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array()), "query", array()), array("page" => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array()), "query", array()), "get", array(0 => "page"), "method") - 1))) : $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array()), "requestUri", array());
     // line 159
     echo "\n        ";
     // line 160
     echo twig_include($this->env, $context, "@EasyAdmin/default/includes/_delete_form.html.twig", array("view" => "list", "referer" => twig_urlencode_filter(isset($context["referer"]) ? $context["referer"] : null), "delete_form" => isset($context["delete_form_template"]) ? $context["delete_form_template"] : null, "_trans_parameters" => isset($context["_trans_parameters"]) ? $context["_trans_parameters"] : null, "_entity_config" => isset($context["_entity_config"]) ? $context["_entity_config"] : null), false);
     // line 166
     echo "\n    ";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"grav-update plugins\"></div>\n\n<h1>\n    ";
     // line 4
     echo isset($context["installing"]) ? $context["installing"] : null ? $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AVAILABLE_PLUGINS") : $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLED_PLUGINS");
     echo "\n</h1>\n\n<table>\n    ";
     // line 8
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->env->getExtension('GravTwigExtension')->ksortFilter($this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "plugins", array(0 => !(isset($context["installing"]) ? $context["installing"] : null)), "method"), "toArray", 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["slug"] => $context["plugin"]) {
         // line 9
         echo "        ";
         $context["data"] = $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "data", array(0 => "plugins/" . $context["slug"]), "method");
         // line 10
         echo "\n        <tr data-gpm-plugin=\"";
         // line 11
         echo twig_urlencode_filter($context["slug"]);
         echo "\">\n            <td class=\"gpm-name\">\n                <i class=\"fa fa-fw fa-";
         // line 13
         echo $this->getAttribute($context["plugin"], "icon", array());
         echo "\"></i>\n                <a href=\"";
         // line 14
         echo isset($context["base_url_relative"]) ? $context["base_url_relative"] : null;
         echo "/plugins/";
         echo twig_urlencode_filter($context["slug"]);
         echo "\">";
         echo $this->getAttribute($context["plugin"], "name", array());
         echo "</a>\n                ";
         // line 15
         if ($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "isTeamGrav", array(0 => $context["plugin"]), "method")) {
             // line 16
             echo "                    <small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"";
             echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN");
             echo "\"></i></span></small>\n                ";
         }
         // line 18
         echo "                ";
         if ($this->getAttribute($context["plugin"], "symlink", array())) {
             // line 19
             echo "                <span class=\"hint--bottom\"  data-hint=\"";
             echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED");
             echo "\">\n                    <i class=\"fa fa-fw fa-link\"></i>\n                </span>\n                ";
         }
         // line 23
         echo "                <span class=\"gpm-version\">v";
         echo $this->getAttribute($context["plugin"], "version", array());
         echo "</span>\n            </td>\n            <td class=\"gpm-actions\">\n                ";
         // line 26
         if (!(isset($context["installing"]) ? $context["installing"] : null) && $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["plugin"], "form", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden") {
             // line 27
             echo "                    <a class=\"";
             echo $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "get", array(0 => "enabled"), "method") ? "enabled" : "disabled";
             echo "\" href=\"";
             echo $this->getAttribute(isset($context["uri"]) ? $context["uri"] : null, "addNonce", array(0 => (isset($context["base_url_relative"]) ? $context["base_url_relative"] : null) . "/plugins/" . $context["slug"] . "/task" . $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()) . ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "get", array(0 => "enabled"), "method") ? "disable" : "enable"), 1 => "admin-form", 2 => "admin-nonce"), "method");
             echo "\">\n                        <i class=\"fa fa-fw fa-toggle-";
             // line 28
             echo $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "get", array(0 => "enabled"), "method") ? "on" : "off";
             echo "\"></i>\n                    </a>\n                ";
         } elseif (isset($context["installing"]) ? $context["installing"] : null) {
             // line 31
             echo "                    <a class=\"button\" href=\"";
             echo $this->getAttribute(isset($context["uri"]) ? $context["uri"] : null, "addNonce", array(0 => (isset($context["base_url_relative"]) ? $context["base_url_relative"] : null) . "/plugins/" . $context["slug"] . "/task" . $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()) . "install", 1 => "admin-form", 2 => "admin-nonce"), "method");
             echo "\"><i class=\"fa fa-plus\"></i> Install</a>\n                ";
         }
         // line 33
         echo "                <span class=\"gpm-details-expand\"><i class=\"fa fa-chevron-down\"></i></span>\n            </td>\n            <td class=\"gpm-details\">\n                <div class=\"table-wrapper\">\n                    ";
         // line 37
         $this->loadTemplate("partials/plugin-data.html.twig", "partials/plugins-list.html.twig", 37)->display(array_merge($context, array("plugin" => $context["plugin"])));
         // line 38
         echo "                </div>\n            </td>\n        </tr>\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['slug'], $context['plugin'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 42
     echo "</table>\n";
 }
 public function block_pageContent($context, array $blocks = array())
 {
     // line 10
     echo "\n\t<div class=\"box\" id=\"boxAddTodo\">\n\n\t\t<h2>Add new todo</h2>\n\n\t\t<div class=\"boxInner\">\n\t\t\t<form action=\"";
     // line 16
     echo twig_escape_filter($this->env, isset($context["PHP_SELF"]) ? $context["PHP_SELF"] : null, "html", null, true);
     echo "\" method=\"post\">\n\t\t\t\t<fieldset>\n\t\t\t\t\t<dl class=\"clearfix columns\">\n\t\t\t\t\t\t<dd class=\"column column-46\"><input type=\"text\" name=\"what\" id=\"what\" value=\"";
     // line 19
     echo twig_escape_filter($this->env, isset($context["what"]) ? $context["what"] : null, "html", null, true);
     echo "\" /></dd>\n\t\t\t\t\t\t<dd class=\"column column-16\" id=\"col-priority\">\n\t\t\t\t\t\t\t<select name=\"priority\" id=\"priority\">\n\t\t\t\t\t\t\t\t";
     // line 22
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["priorities"]) ? $context["priorities"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["prior"]) {
         // line 23
         echo "\t\t\t\t\t\t\t\t<option value=\"";
         echo twig_escape_filter($this->env, isset($context["prior"]) ? $context["prior"] : null, "html", null, true);
         echo "\"";
         if ((isset($context["prior"]) ? $context["prior"] : null) == (isset($context["priority"]) ? $context["priority"] : null)) {
             echo " selected=\"selected\"";
         }
         echo ">";
         echo twig_escape_filter($this->env, isset($context["prior"]) ? $context["prior"] : null, "html", null, true);
         echo "</option>\n\t\t\t\t\t\t\t\t";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['prior'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 25
     echo "\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dd class=\"column column-16\" id=\"col-submit\">\n\t\t\t\t\t\t\t<label for=\"btnSubmit\"><input type=\"submit\" id=\"btnSubmit\" name=\"btnSubmit\" value=\"Add\" /></label>\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"moduleAction\" id=\"moduleAction\" value=\"add\" />\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t</dl>\n\t\t\t\t</fieldset>\n\t\t\t</form>\n\t\t</div>\n\n\t</div>\n\n\t";
     // line 38
     $this->env->loadTemplate("partials/formerrors.twig")->display($context);
     // line 39
     echo "\n\t<div class=\"box\" id=\"boxYourTodos\">\n\n\t\t<h2>Your todos</h2>\n\n\t\t<div class=\"boxInner\">\n\n\t\t";
     // line 46
     if (isset($context["items"]) ? $context["items"] : null) {
         // line 47
         echo "\t\t\t<ul>\n\t\t\t";
         // line 48
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["items"]) ? $context["items"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
             // line 49
             echo "\t\t\t\t<li id=\"item-";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "id"), "html", null, true);
             echo "\" class=\"item ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "priority"), "html", null, true);
             echo " clearfix\">\n\t\t\t\t\t<a href=\"delete.php?id=";
             // line 50
             echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "id")), "html", null, true);
             echo "\" class=\"delete\" title=\"Delete/Complete this item\">delete/complete</a>\n\t\t\t\t\t<a href=\"edit.php?id=";
             // line 51
             echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "id")), "html", null, true);
             echo "\" class=\"edit\" title=\"Edit this item\">edit</a>\n\t\t\t\t\t<span>";
             // line 52
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "what"), "html", null, true);
             echo "</span>\n\t\t\t\t</li>\n\t\t\t";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 55
         echo "\t\t\t</ul>\n\t\t";
     } else {
         // line 57
         echo "\t\t\t<p>No todos, it must be your lucky day!</p>\n\t\t";
     }
     // line 59
     echo "\t\t</div>\n\n\t</div>\n\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 7
     echo "\n<!-- Background Manager Start -->\n";
     // line 9
     ob_start();
     // line 10
     echo "\n";
     // line 12
     if (isset($context["random_image"])) {
         $_random_image_ = $context["random_image"];
     } else {
         $_random_image_ = null;
     }
     if ($this->getAttribute($_random_image_, "bg_link")) {
         echo "<a id=\"myatu_bgm_bg_link\" class=\"myatu_bgm_fs\" href=\"";
         if (isset($context["random_image"])) {
             $_random_image_ = $context["random_image"];
         } else {
             $_random_image_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_random_image_, "bg_link"), "html", null, true);
         echo "\"></a>";
     }
     // line 13
     echo "\n";
     // line 15
     if (isset($context["has_overlay"])) {
         $_has_overlay_ = $context["has_overlay"];
     } else {
         $_has_overlay_ = null;
     }
     if ($_has_overlay_) {
         echo "<div id=\"myatu_bgm_overlay\" class=\"myatu_bgm_fs\"></div>";
     }
     // line 16
     echo "\n";
     // line 18
     if (isset($context["is_fullsize"])) {
         $_is_fullsize_ = $context["is_fullsize"];
     } else {
         $_is_fullsize_ = null;
     }
     if ($_is_fullsize_) {
         // line 19
         echo "<div id=\"myatu_bgm_img_group\" class=\"myatu_bgm_fs\" style=\"overflow: hidden;\">\n    <script type=\"text/javascript\">\n    /*<![CDATA[*/\n    ";
         // line 39
         echo "    try{(function(a){myatu_bgm.addTopImage(\"";
         if (isset($context["opacity"])) {
             $_opacity_ = $context["opacity"];
         } else {
             $_opacity_ = null;
         }
         if ($_opacity_ < 100) {
             echo "-moz-opacity:.";
             if (isset($context["opacity"])) {
                 $_opacity_ = $context["opacity"];
             } else {
                 $_opacity_ = null;
             }
             echo twig_escape_filter($this->env, $_opacity_, "html", null, true);
             echo ";filter:alpha(opacity=";
             if (isset($context["opacity"])) {
                 $_opacity_ = $context["opacity"];
             } else {
                 $_opacity_ = null;
             }
             echo twig_escape_filter($this->env, $_opacity_, "html", null, true);
             echo ");opacity:.";
             if (isset($context["opacity"])) {
                 $_opacity_ = $context["opacity"];
             } else {
                 $_opacity_ = null;
             }
             echo twig_escape_filter($this->env, $_opacity_, "html", null, true);
             echo ";";
         }
         echo "\",function(){if((typeof myatu_bgm!==\"undefined\")&&(myatu_bgm.initial_ease_in===\"true\")){a(this).fadeIn(\"slow\")}else{a(this).show()}})}(jQuery))}catch(e){};\n    /*]]>*/\n    </script>\n    <noscript><img id=\"myatu_bgm_top\" class=\"myatu_bgm_fs\" src=\"";
         // line 42
         if (isset($context["random_image"])) {
             $_random_image_ = $context["random_image"];
         } else {
             $_random_image_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_random_image_, "url"), "html", null, true);
         echo "\" alt=\"";
         if (isset($context["random_image"])) {
             $_random_image_ = $context["random_image"];
         } else {
             $_random_image_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_random_image_, "alt"), "html", null, true);
         echo "\" ";
         if (isset($context["opacity"])) {
             $_opacity_ = $context["opacity"];
         } else {
             $_opacity_ = null;
         }
         if ($_opacity_ < 100) {
             echo "style=\"-moz-opacity:.";
             if (isset($context["opacity"])) {
                 $_opacity_ = $context["opacity"];
             } else {
                 $_opacity_ = null;
             }
             echo twig_escape_filter($this->env, $_opacity_, "html", null, true);
             echo "; filter:alpha(opacity=";
             if (isset($context["opacity"])) {
                 $_opacity_ = $context["opacity"];
             } else {
                 $_opacity_ = null;
             }
             echo twig_escape_filter($this->env, $_opacity_, "html", null, true);
             echo "); opacity:.";
             if (isset($context["opacity"])) {
                 $_opacity_ = $context["opacity"];
             } else {
                 $_opacity_ = null;
             }
             echo twig_escape_filter($this->env, $_opacity_, "html", null, true);
             echo ";\"";
         }
         echo "  /></noscript>\n</div>\n";
     }
     // line 45
     echo "\n\n";
     // line 48
     if (isset($context["has_pin_it_btn"])) {
         $_has_pin_it_btn_ = $context["has_pin_it_btn"];
     } else {
         $_has_pin_it_btn_ = null;
     }
     if ($_has_pin_it_btn_) {
         // line 49
         echo "<div id=\"myatu_bgm_pin_it_btn\" class=\"myatu_bgm_info_blk\">\n\n<script type=\"text/javascript\">\n/*<![CDATA[*/\n";
         // line 77
         echo "(function(){window.PinIt=window.PinIt||{loaded:false};if(myatu_bgm.isDisabled()){return}if(window.PinIt.loaded){return}window.PinIt.loaded=true;function a(){var c=document.createElement(\"script\"),b=document.getElementsByTagName(\"script\")[0];c.src=\"//assets.pinterest.com/js/pinit.js\";c.type=\"text/javascript\";c.async=true;b.parentNode.insertBefore(c,b)}if(window.attachEvent){window.attachEvent(\"onload\",a)}else{window.addEventListener(\"load\",a,false)}}());\n/*]]>*/\n</script>\n    <a href=\"http://pinterest.com/pin/create/button/?url=";
         // line 80
         if (isset($context["permalink"])) {
             $_permalink_ = $context["permalink"];
         } else {
             $_permalink_ = null;
         }
         echo twig_escape_filter($this->env, twig_urlencode_filter($_permalink_), "html", null, true);
         echo "&media=";
         if (isset($context["random_image"])) {
             $_random_image_ = $context["random_image"];
         } else {
             $_random_image_ = null;
         }
         echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute($_random_image_, "url")), "html", null, true);
         echo "&description=";
         if (isset($context["random_image"])) {
             $_random_image_ = $context["random_image"];
         } else {
             $_random_image_ = null;
         }
         echo twig_escape_filter($this->env, twig_urlencode_filter(strip_tags($this->getAttribute($_random_image_, "desc"))), "html", null, true);
         echo "\" class=\"pin-it-button\" count-layout=\"none\">Pin It</a>\n</div>\n";
     }
     // line 83
     echo "\n\n";
     // line 86
     if (isset($context["has_info_tab"])) {
         $_has_info_tab_ = $context["has_info_tab"];
     } else {
         $_has_info_tab_ = null;
     }
     if ($_has_info_tab_) {
         // line 87
         echo "<div id=\"myatu_bgm_info\">\n    <div id=\"myatu_bgm_info_tab\" class=\"myatu_bgm_info_blk\">\n        ";
         // line 89
         if (isset($context["info_tab_link"])) {
             $_info_tab_link_ = $context["info_tab_link"];
         } else {
             $_info_tab_link_ = null;
         }
         if ($_info_tab_link_) {
             // line 90
             echo "            <a href=\"";
             if (isset($context["random_image"])) {
                 $_random_image_ = $context["random_image"];
             } else {
                 $_random_image_ = null;
             }
             echo twig_escape_filter($this->env, $this->getAttribute($_random_image_, "link"), "html", null, true);
             echo "\">[ + ]</a>\n        ";
         } else {
             // line 92
             echo "            [ + ]\n        ";
         }
         // line 94
         echo "    </div>\n</div>\n";
     }
     // line 97
     echo "\n";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
     // line 99
     echo "\n<!-- Background Manager End -->\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"ai1ec-subscribe-container ai1ec-btn-group ai1ec-pull-left\n\t\tai1ec-tooltip-trigger\" data-placement=\"left\" title=\"";
     // line 2
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["text"]) ? $context["text"] : null, "tooltip"), "html", null, true);
     echo "\">\n\t<button\n\t\ttype=\"button\"\n\t\tclass=\"ai1ec-btn ai1ec-btn-default ai1ec-btn-sm ai1ec-dropdown-toggle\n\t\t\tai1ec-subscribe ";
     // line 6
     echo twig_escape_filter($this->env, isset($context["button_classes"]) ? $context["button_classes"] : null, "html", null, true);
     echo "\"\n\t\t\tdata-toggle=\"ai1ec-dropdown\">\n\t\t<i class=\"ai1ec-fa ai1ec-icon-rss ai1ec-fa-lg ai1ec-fa-fw\"></i>\n\t\t<span class=\"ai1ec-hidden-xs\">\n\t\t\t<span class=\"ai1ec-hidden-xs\">\n\t\t\t";
     // line 11
     if (!twig_test_empty(isset($context["subscribe_label"]) ? $context["subscribe_label"] : null)) {
         // line 12
         echo "\t\t\t\t";
         echo twig_escape_filter($this->env, isset($context["subscribe_label"]) ? $context["subscribe_label"] : null, "html", null, true);
         echo "\n\t\t\t";
     } else {
         // line 14
         echo "\t\t\t\t";
         if (isset($context["is_filtered"]) ? $context["is_filtered"] : null) {
             // line 15
             echo "\t\t\t\t\t";
             echo twig_escape_filter($this->env, isset($context["text_filtered"]) ? $context["text_filtered"] : null, "html", null, true);
             echo "\n\t\t\t\t";
         } else {
             // line 17
             echo "\t\t\t\t\t";
             echo twig_escape_filter($this->env, isset($context["text_subscribe"]) ? $context["text_subscribe"] : null, "html", null, true);
             echo "\n\t\t\t\t";
         }
         // line 19
         echo "\t\t\t";
     }
     // line 20
     echo "\t\t\t</span>\n\t\t\t<span class=\"ai1ec-caret\"></span>\n\t\t</span>\n\t</button>\n\t";
     // line 24
     $context["url"] = strtr(isset($context["export_url"]) ? $context["export_url"] : null, array("webcal://" => "http://")) . (isset($context["url_args"]) ? $context["url_args"] : null);
     // line 25
     echo "\t<ul class=\"ai1ec-dropdown-menu ai1ec-pull-right\" role=\"menu\">\n\t\t<li>\n\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   target=\"_blank\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"";
     // line 30
     echo twig_escape_filter($this->env, isset($context["url"]) ? $context["url"] : null, "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 31
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "title"), "timely"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-lg ai1ec-fa-fw ai1ec-icon-timely\"></i>\n\t\t\t\t";
     // line 33
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "label"), "timely"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t\t<li>\n\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   target=\"_blank\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"http://www.google.com/calendar/render?cid=";
     // line 40
     echo twig_escape_filter($this->env, twig_urlencode_filter(isset($context["url"]) ? $context["url"] : null), "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 41
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "title"), "google"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-icon-google ai1ec-fa-lg ai1ec-fa-fw\"></i>\n\t\t\t\t";
     // line 43
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "label"), "google"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t\t<li>\n\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   target=\"_blank\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"";
     // line 50
     echo twig_escape_filter($this->env, (isset($context["export_url_no_html"]) ? $context["export_url_no_html"] : null) . (isset($context["url_args"]) ? $context["url_args"] : null), "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 51
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "title"), "outlook"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-icon-windows ai1ec-fa-lg ai1ec-fa-fw\"></i>\n\t\t\t\t";
     // line 53
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "label"), "outlook"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t\t<li>\n\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   target=\"_blank\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"";
     // line 60
     echo twig_escape_filter($this->env, (isset($context["export_url_no_html"]) ? $context["export_url_no_html"] : null) . (isset($context["url_args"]) ? $context["url_args"] : null), "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 61
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "title"), "apple"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-icon-apple ai1ec-fa-lg ai1ec-fa-fw\"></i>\n\t\t\t\t";
     // line 63
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "label"), "apple"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t\t<li>\n\t\t\t";
     // line 67
     $context["export_url_no_html_http"] = strtr(isset($context["export_url_no_html"]) ? $context["export_url_no_html"] : null, array("webcal://" => "http://"));
     // line 68
     echo "\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"";
     // line 70
     echo twig_escape_filter($this->env, (isset($context["export_url_no_html_http"]) ? $context["export_url_no_html_http"] : null) . (isset($context["url_args"]) ? $context["url_args"] : null), "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 71
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "title"), "plaintext"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-icon-calendar ai1ec-fa-fw\"></i>\n\t\t\t\t";
     // line 73
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["text"]) ? $context["text"] : null, "label"), "plaintext"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t</ul>\n</div>\n";
 }
 public function block_grid_column_cell($context, array $blocks = array())
 {
     // line 294
     ob_start();
     // line 295
     echo "                                                ";
     if ($this->getAttribute(isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), "filterable", array()) && $this->getAttribute(isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), "searchOnClick", array())) {
         // line 296
         echo "                                                    ";
         $context["sourceValue"] = array_key_exists("sourceValue", $context) ? isset($context["sourceValue"]) ? $context["sourceValue"] : $this->getContext($context, "sourceValue") : $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "field", array(0 => $this->getAttribute(isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), "id", array())), "method");
         // line 297
         echo "                                                    <a href=\"?";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "hash", array()), "html", null, true);
         echo "[";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), "id", array()), "html", null, true);
         echo "][from]=";
         echo twig_escape_filter($this->env, twig_urlencode_filter(isset($context["sourceValue"]) ? $context["sourceValue"] : $this->getContext($context, "sourceValue")), "html", null, true);
         echo "\" class=\"searchOnClick\">";
         echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), "html", null, true);
         echo "</a>\n                                                ";
     } elseif ($this->getAttribute(isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), "safe", array()) === false) {
         // line 299
         echo "                                                    ";
         echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value");
         echo "\n                                                ";
     } else {
         // line 301
         echo "                                                    ";
         echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), $this->getAttribute(isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), "safe", array()));
         echo "\n                                                ";
     }
     // line 303
     echo "                                                ";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"ai1ec-subscribe-container ai1ec-btn-group ai1ec-pull-left\">\n\t<button\n\t\ttype=\"button\"\n\t\tclass=\"ai1ec-btn ai1ec-btn-default ai1ec-btn-sm ai1ec-dropdown-toggle\n\t\t\tai1ec-subscribe ";
     // line 5
     if (isset($context["button_classes"])) {
         $_button_classes_ = $context["button_classes"];
     } else {
         $_button_classes_ = null;
     }
     echo twig_escape_filter($this->env, $_button_classes_, "html", null, true);
     echo "\"\n\t\tdata-toggle=\"ai1ec-dropdown\">\n\t\t<i class=\"ai1ec-fa ai1ec-icon-rss ai1ec-fa-lg ai1ec-fa-fw\"></i>\n\t\t";
     // line 8
     if (isset($context["subscribe_label"])) {
         $_subscribe_label_ = $context["subscribe_label"];
     } else {
         $_subscribe_label_ = null;
     }
     if (!twig_test_empty($_subscribe_label_)) {
         // line 9
         echo "\t\t\t";
         if (isset($context["subscribe_label"])) {
             $_subscribe_label_ = $context["subscribe_label"];
         } else {
             $_subscribe_label_ = null;
         }
         echo twig_escape_filter($this->env, $_subscribe_label_, "html", null, true);
         echo "\n\t\t";
     } else {
         // line 11
         echo "\t\t\t";
         if (isset($context["is_filtered"])) {
             $_is_filtered_ = $context["is_filtered"];
         } else {
             $_is_filtered_ = null;
         }
         if ($_is_filtered_) {
             // line 12
             echo "\t\t\t\t";
             if (isset($context["text_filtered"])) {
                 $_text_filtered_ = $context["text_filtered"];
             } else {
                 $_text_filtered_ = null;
             }
             echo twig_escape_filter($this->env, $_text_filtered_, "html", null, true);
             echo "\n\t\t\t";
         } else {
             // line 14
             echo "\t\t\t\t";
             if (isset($context["text_subscribe"])) {
                 $_text_subscribe_ = $context["text_subscribe"];
             } else {
                 $_text_subscribe_ = null;
             }
             echo twig_escape_filter($this->env, $_text_subscribe_, "html", null, true);
             echo "\n\t\t\t";
         }
         // line 16
         echo "\t\t";
     }
     // line 17
     echo "\t\t<span class=\"ai1ec-caret\"></span>\n\t</button>\n\t";
     // line 19
     if (isset($context["export_url"])) {
         $_export_url_ = $context["export_url"];
     } else {
         $_export_url_ = null;
     }
     if (isset($context["url_args"])) {
         $_url_args_ = $context["url_args"];
     } else {
         $_url_args_ = null;
     }
     $context["url"] = strtr($_export_url_, array("webcal://" => "http://")) . $_url_args_;
     // line 20
     echo "\t<ul class=\"ai1ec-dropdown-menu\" role=\"menu\">\n\t\t<li>\n\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   target=\"_blank\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"";
     // line 25
     if (isset($context["url"])) {
         $_url_ = $context["url"];
     } else {
         $_url_ = null;
     }
     echo twig_escape_filter($this->env, $_url_, "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 26
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "title"), "timely"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-fa-lg ai1ec-fa-fw ai1ec-icon-timely\"></i>\n\t\t\t\t";
     // line 28
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "label"), "timely"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t\t<li>\n\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   target=\"_blank\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"http://www.google.com/calendar/render?cid=";
     // line 35
     if (isset($context["url"])) {
         $_url_ = $context["url"];
     } else {
         $_url_ = null;
     }
     echo twig_escape_filter($this->env, twig_urlencode_filter($_url_), "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 36
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "title"), "google"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-icon-google ai1ec-fa-lg ai1ec-fa-fw\"></i>\n\t\t\t\t";
     // line 38
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "label"), "google"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t\t<li>\n\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   target=\"_blank\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"";
     // line 45
     if (isset($context["export_url_no_html"])) {
         $_export_url_no_html_ = $context["export_url_no_html"];
     } else {
         $_export_url_no_html_ = null;
     }
     if (isset($context["url_args"])) {
         $_url_args_ = $context["url_args"];
     } else {
         $_url_args_ = null;
     }
     echo twig_escape_filter($this->env, $_export_url_no_html_ . $_url_args_, "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 46
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "title"), "outlook"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-icon-windows ai1ec-fa-lg ai1ec-fa-fw\"></i>\n\t\t\t\t";
     // line 48
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "label"), "outlook"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t\t<li>\n\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   target=\"_blank\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"";
     // line 55
     if (isset($context["export_url_no_html"])) {
         $_export_url_no_html_ = $context["export_url_no_html"];
     } else {
         $_export_url_no_html_ = null;
     }
     if (isset($context["url_args"])) {
         $_url_args_ = $context["url_args"];
     } else {
         $_url_args_ = null;
     }
     echo twig_escape_filter($this->env, $_export_url_no_html_ . $_url_args_, "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 56
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "title"), "apple"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-icon-apple ai1ec-fa-lg ai1ec-fa-fw\"></i>\n\t\t\t\t";
     // line 58
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "label"), "apple"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t\t<li>\n\t\t\t";
     // line 62
     if (isset($context["export_url_no_html"])) {
         $_export_url_no_html_ = $context["export_url_no_html"];
     } else {
         $_export_url_no_html_ = null;
     }
     $context["export_url_no_html_http"] = strtr($_export_url_no_html_, array("webcal://" => "http://"));
     // line 63
     echo "\t\t\t<a class=\"ai1ec-tooltip-trigger ai1ec-tooltip-auto\"\n\t\t\t   data-placement=\"left\"\n\t\t\t   href=\"";
     // line 65
     if (isset($context["export_url_no_html_http"])) {
         $_export_url_no_html_http_ = $context["export_url_no_html_http"];
     } else {
         $_export_url_no_html_http_ = null;
     }
     if (isset($context["url_args"])) {
         $_url_args_ = $context["url_args"];
     } else {
         $_url_args_ = null;
     }
     echo twig_escape_filter($this->env, $_export_url_no_html_http_ . $_url_args_, "html_attr");
     echo "\"\n\t\t\t   title=\"";
     // line 66
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "title"), "plaintext"), "html", null, true);
     echo "\" >\n\t\t\t\t<i class=\"ai1ec-fa ai1ec-icon-calendar ai1ec-fa-fw\"></i>\n\t\t\t\t";
     // line 68
     if (isset($context["text"])) {
         $_text_ = $context["text"];
     } else {
         $_text_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_text_, "label"), "plaintext"), "html", null, true);
     echo "\n\t\t\t</a>\n\t\t</li>\n\t</ul>\n</div>\n";
 }
 public function block_pim_enrich_image_row($context, array $blocks = array())
 {
     // line 218
     echo "    ";
     ob_start();
     // line 219
     echo "\n    ";
     // line 220
     $context["empty"] = !$this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "vars", array()), "value", array()) || !$this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "vars", array()), "value", array()), "key", array());
     // line 221
     echo "    ";
     if (!((isset($context["empty"]) ? $context["empty"] : null) && $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "parent", array(), "any", false, true), "vars", array(), "any", false, true), "mode", array(), "any", true, true) && "comparison" == $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "parent", array()), "vars", array()), "mode", array()))) {
         // line 222
         echo "        <div class=\"control-group\">\n            ";
         // line 223
         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : null, 'label', array("label_attr" => array("class" => "control-label", "for" => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "uploadedFile", array()), "vars", array()), "id", array()))));
         echo "\n            <div class=\"controls\">\n                <label class=\"upload-zone image";
         // line 225
         if (isset($context["empty"]) ? $context["empty"] : null) {
             echo " empty";
         }
         if (isset($context["disabled"]) ? $context["disabled"] : null) {
             echo " disabled";
         }
         echo "\">\n                    <div class=\"upload-info\">\n                        ";
         // line 227
         if (!(isset($context["empty"]) ? $context["empty"] : null)) {
             // line 228
             echo "                            <a class=\"no-hash upload-preview\" href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pim_enrich_media_show", array("filename" => twig_urlencode_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "vars", array()), "value", array()), "key", array())), "filter" => "preview")), "html", null, true);
             echo "\" title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "vars", array()), "value", array()), "originalFilename", array()), "html", null, true);
             echo "\" rel=\"slimbox\">\n                                <img src=\"";
             // line 229
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pim_enrich_media_show", array("filename" => twig_urlencode_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "vars", array()), "value", array()), "key", array())), "filter" => "thumbnail_small")), "html", null, true);
             echo "\">\n                            </a>\n                            ";
             // line 231
             $context["filename"] = $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "vars", array()), "value", array()), "originalFilename", array());
             // line 232
             echo "                            ";
             if (twig_length_filter($this->env, isset($context["filename"]) ? $context["filename"] : null) > 20) {
                 // line 233
                 echo "                                ";
                 $context["filename"] = twig_slice($this->env, isset($context["filename"]) ? $context["filename"] : null, 0, 17) . "...";
                 // line 234
                 echo "                            ";
             }
             // line 235
             echo "                        ";
         } else {
             // line 236
             echo "                            <i class=\"icon-camera-retro upload-preview empty\"></i>\n                        ";
         }
         // line 238
         echo "                        <span class=\"upload-filename\" data-empty-title=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Drop an image or click here"), "html", null, true);
         echo "\">";
         if (isset($context["empty"]) ? $context["empty"] : null) {
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Drop an image or click here"), "html", null, true);
         } else {
             echo twig_escape_filter($this->env, isset($context["filename"]) ? $context["filename"] : null, "html", null, true);
         }
         echo "</span>\n                    </div>\n                    ";
         // line 240
         if (!$this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "parent", array(), "any", false, true), "vars", array(), "any", false, true), "mode", array(), "any", true, true) || "comparison" != $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "parent", array()), "vars", array()), "mode", array())) {
             // line 241
             echo "                        <a class=\"btn no-hash remove-upload";
             if (isset($context["empty"]) ? $context["empty"] : null) {
                 echo " hide";
             }
             if (isset($context["disabled"]) ? $context["disabled"] : null) {
                 echo " disabled";
             }
             echo "\">\n                            <i class=\"icon-trash\"></i>\n                        </a>\n                    ";
         }
         // line 245
         echo "                    ";
         if (isset($context["empty"]) ? $context["empty"] : null) {
             // line 246
             echo "                        ";
             echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "uploadedFile", array()), 'widget');
             echo "\n                    ";
         } else {
             // line 248
             echo "                        ";
             echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "uploadedFile", array()), 'widget', array("attr" => array("class" => "hide", "disabled" => "disabled")));
             echo "\n                        ";
             // line 249
             echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "removed", array()), 'widget', array("attr" => array("class" => "hide")));
             echo "\n                    ";
         }
         // line 251
         echo "                </label>\n                ";
         // line 252
         $this->displayBlock("form_info", $context, $blocks);
         echo "\n                ";
         // line 253
         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "id", array()), 'widget');
         echo "\n            </div>\n        </div>\n        <script type=\"text/javascript\">\n            require(\n                ['pim/fileinput'],\n                function(fileinput) {\n                    fileinput.init('";
         // line 260
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "uploadedFile", array()), "vars", array()), "id", array()), "html", null, true);
         echo "');\n                }\n            );\n        </script>\n    ";
     } else {
         // line 265
         echo "        <div class=\"control-group\">\n            <div class=\"controls\">\n                <label class=\"upload-zone image empty\">\n                    <div class=\"upload-info\">\n                        <span class=\"upload-filename\">\n                            ";
         // line 270
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("pim_enrich.product.no_compared_media"), "html", null, true);
         echo "\n                        </span>\n                    </div>\n                </label>\n            </div>\n        </div>\n    ";
     }
     // line 277
     echo "\n    ";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div id='SeoRanks'>\n    <script type=\"text/javascript\" src=\"plugins/SEO/javascripts/rank.js\"></script>\n\n    <form method=\"post\" style=\"padding: 8px;\">\n        <div align=\"left\" class=\"mediumtext\">\n            ";
     // line 6
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Installation_SetupWebSiteURL"))), "html", null, true);
     echo "\n            <input type=\"text\" id=\"seoUrl\" size=\"15\" value=\"";
     // line 7
     echo twig_escape_filter($this->env, isset($context["urlToRank"]) ? $context["urlToRank"] : $this->getContext($context, "urlToRank"), "html", null, true);
     echo "\" class=\"textbox\"/>\n\t\t  <span style=\"padding-left:2px;\">\n\t\t  <input type=\"submit\" id=\"rankbutton\" value=\"";
     // line 9
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SEO_Rank")), "html", null, true);
     echo "\"/>\n\t\t  </span>\n        </div>\n\n        ";
     // line 13
     $context["ajax"] = $this->loadTemplate("ajaxMacros.twig", "@SEO/getRank.twig", 13);
     // line 14
     echo "        ";
     echo $context["ajax"]->getLoadingDiv("ajaxLoadingSEO");
     echo "\n\n        <div id=\"rankStats\" align=\"left\" style=\"margin-top:10px;\">\n            ";
     // line 17
     if (twig_test_empty(isset($context["ranks"]) ? $context["ranks"] : $this->getContext($context, "ranks"))) {
         // line 18
         echo "                ";
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Error")), "html", null, true);
         echo "\n            ";
     } else {
         // line 20
         echo "                ";
         ob_start();
         // line 21
         echo "                    <a href=\"http://";
         echo twig_escape_filter($this->env, isset($context["urlToRank"]) ? $context["urlToRank"] : $this->getContext($context, "urlToRank"), "html", null, true);
         echo "\" rel=\"noreferrer\"  target=\"_blank\">";
         echo twig_escape_filter($this->env, isset($context["urlToRank"]) ? $context["urlToRank"] : $this->getContext($context, "urlToRank"), "html", null, true);
         echo "</a>\n                ";
         $context["cleanUrl"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
         // line 23
         echo "                ";
         echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SEO_SEORankingsFor", isset($context["cleanUrl"]) ? $context["cleanUrl"] : $this->getContext($context, "cleanUrl")));
         echo "\n                <table cellspacing=\"2\" style=\"margin:auto;line-height:1.5em;padding-top:10px;\">\n\n                    ";
         // line 26
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["ranks"]) ? $context["ranks"] : $this->getContext($context, "ranks"));
         foreach ($context['_seq'] as $context["_key"] => $context["rank"]) {
             // line 27
             echo "                        <tr>\n";
             // line 28
             ob_start();
             if (!twig_test_empty($this->getAttribute($context["rank"], "logo_link", array()))) {
                 echo "<a class=\"linkContent\" href=\"?module=Proxy&action=redirect&url=";
                 echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute($context["rank"], "logo_link", array())), "html", null, true);
                 echo "\"\n                                                    target=\"_blank\"\n                         ";
                 // line 30
                 if (!twig_test_empty($this->getAttribute($context["rank"], "logo_tooltip", array()))) {
                     echo "title=\"";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["rank"], "logo_tooltip", array()), "html", null, true);
                     echo "\"";
                 }
                 echo ">";
             }
             $context["seoLink"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
             // line 31
             echo "                            ";
             ob_start();
             echo twig_escape_filter($this->env, isset($context["seoLink"]) ? $context["seoLink"] : $this->getContext($context, "seoLink"), "html", null, true);
             echo "Majestic</a>";
             $context["majesticLink"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
             // line 32
             echo "                            <td>";
             if (!twig_test_empty($this->getAttribute($context["rank"], "logo_link", array()))) {
                 echo isset($context["seoLink"]) ? $context["seoLink"] : $this->getContext($context, "seoLink");
             }
             echo "<img\n                                            style='vertical-align:middle;margin-right:6px;' src='";
             // line 33
             echo twig_escape_filter($this->env, $this->getAttribute($context["rank"], "logo", array()), "html", null, true);
             echo "' border='0'\n                                            alt=\"";
             // line 34
             echo twig_escape_filter($this->env, $this->getAttribute($context["rank"], "label", array()), "html", null, true);
             echo "\">";
             if (!twig_test_empty($this->getAttribute($context["rank"], "logo_link", array()))) {
                 echo "</a>";
             }
             echo " ";
             echo strtr($this->getAttribute($context["rank"], "label", array()), array("Majestic" => isset($context["majesticLink"]) ? $context["majesticLink"] : $this->getContext($context, "majesticLink")));
             echo "\n                            </td>\n                            <td>\n                                <div style=\"margin-left:15px;\">\n                                ";
             // line 39
             if (!twig_test_empty($this->getAttribute($context["rank"], "logo_link", array()))) {
                 echo isset($context["seoLink"]) ? $context["seoLink"] : $this->getContext($context, "seoLink");
             }
             // line 40
             echo "                                    ";
             if ($this->getAttribute($context["rank"], "rank", array())) {
                 echo $this->getAttribute($context["rank"], "rank", array());
             } else {
                 echo "-";
             }
             // line 41
             echo "                                    ";
             echo twig_escape_filter($this->env, $this->getAttribute($context["rank"], "rank_suffix", array()), "html", null, true);
             echo "\n                                ";
             // line 42
             if (!twig_test_empty($this->getAttribute($context["rank"], "logo_link", array()))) {
                 echo "</a>";
             }
             // line 43
             echo "                                </div>\n                            </td>\n                        </tr>\n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rank'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 47
         echo "\n                </table>\n            ";
     }
     // line 50
     echo "        </div>\n    </form>\n</div>\n";
 }
 public function block_delete_form($context, array $blocks = array())
 {
     $__internal_3668777ab6c384ff62e48eb53dbe7d38a53c7e385a59a02fc61fc0b7a4dd48e7 = $this->env->getExtension("native_profiler");
     $__internal_3668777ab6c384ff62e48eb53dbe7d38a53c7e385a59a02fc61fc0b7a4dd48e7->enter($__internal_3668777ab6c384ff62e48eb53dbe7d38a53c7e385a59a02fc61fc0b7a4dd48e7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "delete_form"));
     // line 155
     echo "        ";
     $context["referer"] = $this->getAttribute(isset($context["paginator"]) ? $context["paginator"] : $this->getContext($context, "paginator"), "currentPage", array()) == $this->getAttribute(isset($context["paginator"]) ? $context["paginator"] : $this->getContext($context, "paginator"), "nbPages", array()) && 1 != $this->getAttribute(isset($context["paginator"]) ? $context["paginator"] : $this->getContext($context, "paginator"), "currentPage", array()) && 1 == $this->getAttribute($this->getAttribute(isset($context["paginator"]) ? $context["paginator"] : $this->getContext($context, "paginator"), "currentPageResults", array()), "count", array()) ? $this->env->getExtension('routing')->getPath("easyadmin", twig_array_merge($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "query", array()), array("page" => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "query", array()), "get", array(0 => "page"), "method") - 1))) : $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "requestUri", array());
     // line 159
     echo "\n        ";
     // line 160
     echo twig_include($this->env, $context, "@EasyAdmin/default/includes/_delete_form.html.twig", array("view" => "list", "referer" => twig_urlencode_filter(isset($context["referer"]) ? $context["referer"] : $this->getContext($context, "referer")), "delete_form" => isset($context["delete_form_template"]) ? $context["delete_form_template"] : $this->getContext($context, "delete_form_template"), "_trans_parameters" => isset($context["_trans_parameters"]) ? $context["_trans_parameters"] : $this->getContext($context, "_trans_parameters"), "_entity_config" => isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config")), false);
     // line 166
     echo "\n    ";
     $__internal_3668777ab6c384ff62e48eb53dbe7d38a53c7e385a59a02fc61fc0b7a4dd48e7->leave($__internal_3668777ab6c384ff62e48eb53dbe7d38a53c7e385a59a02fc61fc0b7a4dd48e7_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"grav-update themes\"></div>\n\n<h1>\n    ";
     // line 4
     echo isset($context["installing"]) ? $context["installing"] : null ? $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AVAILABLE_THEMES") : $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLED_THEMES");
     echo "\n</h1>\n\n<div class=\"themes card-row grid fixed-blocks pure-g\">\n    ";
     // line 8
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->env->getExtension('GravTwigExtension')->ksortFilter($this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "themes", array(0 => !(isset($context["installing"]) ? $context["installing"] : null)), "method"), "toArray", array())));
     foreach ($context['_seq'] as $context["slug"] => $context["theme"]) {
         // line 9
         echo "        ";
         $context["state"] = "inactive";
         // line 10
         echo "        ";
         if (isset($context["installing"]) ? $context["installing"] : null) {
             $context["state"] = "installing";
         }
         // line 11
         echo "        ";
         if ($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "get", array(0 => "system.pages.theme"), "method") == $context["slug"]) {
             $context["state"] = "active";
         }
         // line 12
         echo "\n        <div class=\"theme card-item pure-u-1-3 ";
         // line 13
         echo isset($context["state"]) ? $context["state"] : null;
         echo "-theme\" data-gpm-theme=\"";
         echo twig_urlencode_filter($context["slug"]);
         echo "\">\n            <div class=\"gpm-name\">\n                <i class=\"fa fa-fw fa-";
         // line 15
         echo $this->getAttribute($context["theme"], "icon", array());
         echo "\"></i>\n                <a href=\"";
         // line 16
         echo isset($context["base_url_relative"]) ? $context["base_url_relative"] : null;
         echo "/themes/";
         echo twig_urlencode_filter($context["slug"]);
         echo "\">";
         echo $this->getAttribute($context["theme"], "name", array());
         echo "</a>\n                ";
         // line 17
         if ($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "isTeamGrav", array(0 => $context["theme"]), "method")) {
             // line 18
             echo "                    <small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"";
             echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.GRAV_OFFICIAL_THEME");
             echo "\"></i></span></small>\n                ";
         }
         // line 20
         echo "                ";
         if ($this->getAttribute($context["theme"], "symlink", array())) {
             // line 21
             echo "                    <span class=\"hint--bottom\"  data-hint=\"";
             echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEME_SYMBOLICALLY_LINKED");
             echo "\">\n                    <i class=\"fa fa-fw fa-link\"></i>\n                </span>\n                ";
         }
         // line 25
         echo "                <span class=\"gpm-version\">v";
         echo $this->getAttribute($context["theme"], "version", array());
         echo "</span>\n            </div>\n            <div class=\"gpm-screenshot\">\n                ";
         // line 28
         $context["thumb"] = isset($context["installing"]) ? $context["installing"] : null ? "http://getgrav.org/images/" . $this->getAttribute($context["theme"], "screenshot", array()) : $this->getAttribute($context["theme"], "thumbnail", array());
         // line 29
         echo "                <a href=\"";
         echo isset($context["base_url_relative"]) ? $context["base_url_relative"] : null;
         echo "/themes/";
         echo twig_urlencode_filter($context["slug"]);
         echo "\"><img src=\"";
         echo isset($context["thumb"]) ? $context["thumb"] : null;
         echo "\" /></a>\n            </div>\n            ";
         // line 31
         if ((isset($context["state"]) ? $context["state"] : null) == "installing") {
             // line 32
             echo "                <div class=\"gpm-actions\">\n                    <a class=\"button\" href=\"";
             // line 33
             echo $this->getAttribute(isset($context["uri"]) ? $context["uri"] : null, "addNonce", array(0 => (isset($context["base_url_relative"]) ? $context["base_url_relative"] : null) . "/themes/" . $context["slug"] . "/task" . $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()) . "install", 1 => "admin-form", 2 => "admin-nonce"), "method");
             echo "\"><i class=\"fa fa-plus\"></i> ";
             echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALL");
             echo "</a>\n                </div>\n            ";
         } elseif ((isset($context["state"]) ? $context["state"] : null) == "active") {
             // line 36
             echo "                <div class=\"gpm-actions\">\n                    <i class=\"fa fa-star\"></i> ";
             // line 37
             echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ACTIVE_THEME");
             echo "\n                </div>\n            ";
         } else {
             // line 40
             echo "                <a data-remodal-target=\"theme-switch-warn\" href=\"";
             echo $this->getAttribute(isset($context["uri"]) ? $context["uri"] : null, "addNonce", array(0 => (isset($context["base_url_relative"]) ? $context["base_url_relative"] : null) . "/themes/" . $context["slug"] . "/task" . $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()) . "activate", 1 => "admin-form", 2 => "admin-nonce"), "method");
             echo "\" class=\"gpm-actions\">\n                    Activate\n                </a>\n            ";
         }
         // line 44
         echo "\n\n        </div>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['slug'], $context['theme'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 48
     echo "</div>\n\n<div class=\"remodal theme-switcher\" data-remodal-id=\"theme-switch-warn\" data-remodal-options=\"hashTracking: false\">\n    <form>\n        <h1>";
     // line 52
     echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SWITCHING_TO");
     echo " <strong>{theme_name}</strong></h1>\n        <p class=\"bigger\">\n            ";
     // line 54
     echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SWITCHING_TO_DESCRIPTION");
     echo "\n        </p>\n        <p class=\"bigger\">\n            ";
     // line 57
     echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SWITCHING_TO_CONFIRMATION");
     echo " <strong>{theme_name}</strong>?\n        </p>\n        <br>\n        <div class=\"button-bar\">\n            <a class=\"button secondary remodal-cancel\" href=\"#\"><i class=\"fa fa-fw fa-close\"></i> ";
     // line 61
     echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL");
     echo "</a>\n            <a class=\"button continue\" href=\"#\"><i class=\"fa fa-fw fa-check\"></i>";
     // line 62
     echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE");
     echo "</a>\n        </div>\n    </form>\n</div>\n";
 }
 public function block_panel($context, array $blocks = array())
 {
     $__internal_000c33cd1fd3c452c0b27bd01553f49cdd0707e307ed47b02c0fbcdc1509863b = $this->env->getExtension("native_profiler");
     $__internal_000c33cd1fd3c452c0b27bd01553f49cdd0707e307ed47b02c0fbcdc1509863b->enter($__internal_000c33cd1fd3c452c0b27bd01553f49cdd0707e307ed47b02c0fbcdc1509863b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 45
     echo "    <h2>API Calls</h2>\n\n    ";
     // line 47
     if (!$this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "callcount", array())) {
         // line 48
         echo "        <p>\n            <em>No calls.</em>\n        </p>\n    ";
     } else {
         // line 52
         echo "        <ul class=\"alt\">\n            ";
         // line 53
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "calls", array()));
         foreach ($context['_seq'] as $context["i"] => $context["call"]) {
             // line 54
             echo "                <li class=\"";
             echo $context["i"] % 2 == 1 ? "odd" : "even";
             echo "\">\n                    <div>\n                        <strong>Status</strong>: ";
             // line 56
             echo twig_escape_filter($this->env, $this->getAttribute($context["call"], "status", array()), "html", null, true);
             echo "<br />\n                        <strong>URL</strong>: ";
             // line 57
             echo twig_escape_filter($this->env, $this->getAttribute($context["call"], "url", array()), "html", null, true);
             echo "<br />\n                        <strong>Type</strong>: ";
             // line 58
             echo twig_escape_filter($this->env, $this->getAttribute($context["call"], "type", array()), "html", null, true);
             echo "<br />\n                        <strong>Request</strong>: ";
             // line 59
             echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($context["call"], "requestData", array())), "html", null, true);
             echo " bytes\n                          <a href=\"data:text/plain;,";
             // line 60
             echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute($context["call"], "requestData", array()), true), "html", null, true);
             echo "\">raw</a>\n                          <a href=\"data:text/html;,";
             // line 61
             echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute($context["call"], "requestData", array()), true), "html", null, true);
             echo "\">html</a>\n                          <a href=\"data:text/plain;,";
             // line 62
             echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute($context["call"], "requestObject", array()), true), "html", null, true);
             echo "\">parsed</a>\n                          <br />\n                        <strong>Response</strong>: ";
             // line 64
             echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($context["call"], "responseData", array())), "html", null, true);
             echo " bytes\n                          <a href=\"data:text/plain;,";
             // line 65
             echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute($context["call"], "responseData", array()), true), "html", null, true);
             echo "\">raw</a>\n                          <a href=\"data:text/html;,";
             // line 66
             echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute($context["call"], "responseData", array()), true), "html", null, true);
             echo "\">html</a>\n                          <a href=\"data:text/plain;,";
             // line 67
             echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute($context["call"], "responseObject", array()), true), "html", null, true);
             echo "\">parsed</a>\n                          <br />\n                    </div>\n                    <small>\n                        <strong>Time</strong>: ";
             // line 71
             echo twig_escape_filter($this->env, sprintf("%0.2f", $this->getAttribute($context["call"], "executionMS", array()) * 1000), "html", null, true);
             echo " ms\n                    </small>\n                </li>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['i'], $context['call'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 75
         echo "        </ul>\n    ";
     }
     // line 77
     echo "\n";
     $__internal_000c33cd1fd3c452c0b27bd01553f49cdd0707e307ed47b02c0fbcdc1509863b->leave($__internal_000c33cd1fd3c452c0b27bd01553f49cdd0707e307ed47b02c0fbcdc1509863b_prof);
 }
 public function block_content($context, array $blocks = array())
 {
     $__internal_16d43a8bd9c7cdfa4c31406b609a58fa70da99930bc47f84f8b776d905dccf22 = $this->env->getExtension("native_profiler");
     $__internal_16d43a8bd9c7cdfa4c31406b609a58fa70da99930bc47f84f8b776d905dccf22->enter($__internal_16d43a8bd9c7cdfa4c31406b609a58fa70da99930bc47f84f8b776d905dccf22_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "content"));
     // line 24
     echo "    ";
     $context["_request_parameters"] = twig_array_merge(array_key_exists("_request_parameters", $context) ? _twig_default_filter(isset($context["_request_parameters"]) ? $context["_request_parameters"] : $this->getContext($context, "_request_parameters"), array()) : array(), array("action" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "get", array(0 => "action"), "method"), "entity" => $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array()), "sortField" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "get", array(0 => "sortField", 1 => ""), "method"), "sortDirection" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "get", array(0 => "sortDirection", 1 => "DESC"), "method"), "page" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "get", array(0 => "page", 1 => 1), "method")));
     // line 31
     echo "\n    ";
     // line 32
     if ("search" == $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "get", array(0 => "action"), "method")) {
         // line 33
         echo "        ";
         $context["_request_parameters"] = twig_array_merge(isset($context["_request_parameters"]) ? $context["_request_parameters"] : $this->getContext($context, "_request_parameters"), array("query" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array(), "any", false, true), "get", array(0 => "query"), "method", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array(), "any", false, true), "get", array(0 => "query"), "method"), "") : ""));
         // line 34
         echo "    ";
     }
     // line 35
     echo "\n    ";
     // line 36
     $context["_request_parameters"] = twig_array_merge(isset($context["_request_parameters"]) ? $context["_request_parameters"] : $this->getContext($context, "_request_parameters"), array("referer" => twig_urlencode_filter($this->env->getExtension('routing')->getPath("easyadmin", isset($context["_request_parameters"]) ? $context["_request_parameters"] : $this->getContext($context, "_request_parameters")))));
     // line 37
     echo "\n    ";
     // line 38
     $this->displayBlock('flash_messages', $context, $blocks);
     // line 39
     echo "\n    <div class=\"row\">\n        <div id=\"content-header\" class=\"col-sm-12\">\n            ";
     // line 42
     $this->displayBlock('content_header', $context, $blocks);
     // line 79
     echo "        </div>\n\n        <div id=\"main\" class=\"col-sm-12\">\n        ";
     // line 82
     $this->displayBlock('main', $context, $blocks);
     // line 182
     echo "        </div>\n    </div>\n";
     $__internal_16d43a8bd9c7cdfa4c31406b609a58fa70da99930bc47f84f8b776d905dccf22->leave($__internal_16d43a8bd9c7cdfa4c31406b609a58fa70da99930bc47f84f8b776d905dccf22_prof);
 }