public function block_navbar($context, array $blocks = array())
 {
     // line 4
     echo "\t<li><a href=\"#\">Login</a></li>\n\t<li><a href=\"";
     // line 5
     echo $this->env->getExtension('routing')->getPath(twig_constant("Main\\StockManagerBundle\\Common\\StockManagerRouting::ABOUT_KEY"));
     echo "\">About</a></li>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     $__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049 = $this->env->getExtension("native_profiler");
     $__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049->enter($__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "content"));
     // line 8
     echo "    ";
     $context["version"] = twig_constant("Symfony\\Component\\HttpKernel\\Kernel::MAJOR_VERSION") . "." . twig_constant("Symfony\\Component\\HttpKernel\\Kernel::MINOR_VERSION");
     // line 9
     echo "\n    <h1 class=\"title\">Welcome!</h1>\n\n    <p>Congratulations! You have successfully installed a new Symfony application.</p>\n\n    <div class=\"symfony-blocks-welcome\">\n        <div class=\"block-quick-tour\">\n            <div class=\"illustration\">\n                <img src=\"";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/acmedemo/images/welcome-quick-tour.gif"), "html", null, true);
     echo "\" alt=\"Quick tour\" />\n            </div>\n            <a href=\"http://symfony.com/doc/";
     // line 19
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/quick_tour/index.html\" class=\"sf-button sf-button-selected\">\n                <span class=\"border-l\">\n                    <span class=\"border-r\">\n                        <span class=\"btn-bg\">Read the Quick Tour</span>\n                    </span>\n                </span>\n            </a>\n        </div>\n        ";
     // line 27
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "environment", array()) == "dev") {
         // line 28
         echo "            <div class=\"block-configure\">\n                <div class=\"illustration\">\n                    <img src=\"";
         // line 30
         echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/acmedemo/images/welcome-configure.gif"), "html", null, true);
         echo "\" alt=\"Configure your application\" />\n                </div>\n                <a href=\"";
         // line 32
         echo $this->env->getExtension('routing')->getPath("_configurator_home");
         echo "\" class=\"sf-button sf-button-selected\">\n                    <span class=\"border-l\">\n                        <span class=\"border-r\">\n                            <span class=\"btn-bg\">Configure</span>\n                        </span>\n                    </span>\n                </a>\n            </div>\n        ";
     }
     // line 41
     echo "        <div class=\"block-demo\">\n            <div class=\"illustration\">\n                <img src=\"";
     // line 43
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/acmedemo/images/welcome-demo.gif"), "html", null, true);
     echo "\" alt=\"Demo\" />\n            </div>\n            <a href=\"";
     // line 45
     echo $this->env->getExtension('routing')->getPath("_demo");
     echo "\" class=\"sf-button sf-button-selected\">\n                <span class=\"border-l\">\n                    <span class=\"border-r\">\n                        <span class=\"btn-bg\">Run The Demo</span>\n                    </span>\n                </span>\n            </a>\n        </div>\n    </div>\n\n    <div class=\"symfony-blocks-help\">\n        <div class=\"block-documentation\">\n            <ul>\n                <li><strong>Documentation</strong></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 59
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/book/index.html\">The Book</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 60
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/cookbook/index.html\">The Cookbook</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 61
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/components/index.html\">The Components</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 62
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/reference/index.html\">Reference</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 63
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/glossary.html\">Glossary</a></li>\n            </ul>\n        </div>\n        <div class=\"block-documentation-more\">\n            <ul>\n                <li><strong>Sensio</strong></li>\n                <li><a href=\"http://trainings.sensiolabs.com\">Trainings</a></li>\n                <li><a href=\"http://books.sensiolabs.com\">Books</a></li>\n            </ul>\n        </div>\n        <div class=\"block-community\">\n            <ul>\n                <li><strong>Community</strong></li>\n                <li><a href=\"http://symfony.com/irc\">IRC channel</a></li>\n                <li><a href=\"http://symfony.com/mailing-lists\">Mailing lists</a></li>\n                <li><a href=\"http://forum.symfony-project.org\">Forum</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 79
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/contributing/index.html\">Contributing</a></li>\n            </ul>\n        </div>\n    </div>\n";
     $__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049->leave($__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049_prof);
 }
 public function block_body($context, array $blocks = array())
 {
     // line 4
     echo "    <div id=\"wrapper\">\n        <div id=\"container\">\n            <div id=\"welcome\">\n                <h1><span>Welcome to</span> Symfony ";
     // line 7
     echo twig_escape_filter($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), "html", null, true);
     echo "</h1>\n            </div>\n\n            <div id=\"status\">\n                <p>\n                    <svg id=\"icon-status\" width=\"1792\" height=\"1792\" viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z\" fill=\"#759E1A\"/></svg>\n\n                </p>\n            </div>\n\n            <div id=\"next\">\n                <h2>What's next?</h2>\n                <p>\n                    <svg id=\"icon-book\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-12.5 9 64 64\" enable-background=\"new -12.5 9 64 64\" xml:space=\"preserve\">\n                        <path fill=\"#AAA\" d=\"M6.8,40.8c2.4,0.8,4.5-0.7,4.9-2.5c0.2-1.2-0.3-2.1-1.3-3.2l-0.8-0.8c-0.4-0.5-0.6-1.3-0.2-1.9\n                            c0.4-0.5,0.9-0.8,1.8-0.5c1.3,0.4,1.9,1.3,2.9,2.2c-0.4,1.4-0.7,2.9-0.9,4.2l-0.2,1c-0.7,4-1.3,6.2-2.7,7.5\n                            c-0.3,0.3-0.7,0.5-1.3,0.6c-0.3,0-0.4-0.3-0.4-0.3c0-0.3,0.2-0.3,0.3-0.4c0.2-0.1,0.5-0.3,0.4-0.8c0-0.7-0.6-1.3-1.3-1.3\n                            c-0.6,0-1.4,0.6-1.4,1.7s1,1.9,2.4,1.8c0.8,0,2.5-0.3,4.2-2.5c2-2.5,2.5-5.4,2.9-7.4l0.5-2.8c0.3,0,0.5,0.1,0.8,0.1\n                            c2.4,0.1,3.7-1.3,3.7-2.3c0-0.6-0.3-1.2-0.9-1.2c-0.4,0-0.8,0.3-1,0.8c-0.1,0.6,0.8,1.1,0.1,1.5c-0.5,0.3-1.4,0.6-2.7,0.4l0.3-1.3\n                            c0.5-2.6,1-5.7,3.2-5.8c0.2,0,0.8,0,0.8,0.4c0,0.2,0,0.2-0.2,0.5c-0.2,0.3-0.3,0.4-0.2,0.7c0,0.7,0.5,1.1,1.2,1.1\n                            c0.9,0,1.2-1,1.2-1.4c0-1.2-1.2-1.8-2.6-1.8c-1.5,0.1-2.8,0.9-3.7,2.1c-1.1,1.3-1.8,2.9-2.3,4.5c-0.9-0.8-1.6-1.8-3.1-2.3\n                            c-1.1-0.7-2.3-0.5-3.4,0.3c-0.5,0.4-0.8,1-1,1.6c-0.4,1.5,0.4,2.9,0.8,3.4l0.9,1c0.2,0.2,0.6,0.8,0.4,1.5c-0.3,0.8-1.2,1.3-2.1,1\n                            c-0.4-0.2-1-0.5-0.9-0.9c0.1-0.2,0.2-0.3,0.3-0.5s0.1-0.3,0.1-0.3c0.2-0.6-0.1-1.4-0.7-1.6c-0.6-0.2-1.2,0-1.3,0.8\n                            C4.3,38.4,4.7,40,6.8,40.8z M46.1,20.9c0-4.2-3.2-7.5-7.1-7.5h-3.8C34.8,10.8,32.7,9,30.2,9L-2.3,9.1c-2.8,0.1-4.9,2.4-4.9,5.4\n                            L-7,58.6c0,4.8,8.1,13.9,11.6,14.1l34.7-0.1c3.9,0,7-3.4,7-7.6L46.1,20.9z M-0.3,36.4c0-8.6,6.5-15.6,14.5-15.6\n                            c8,0,14.5,7,14.5,15.6S22.1,52,14.2,52C6.1,52-0.3,45-0.3,36.4z M42.1,65.1c0,1.8-1.5,3.1-3.1,3.1H4.6c-0.7,0-3-1.8-4.5-4.4h30.4\n                            c2.8,0,5-2.4,5-5.4V17.9h3.7c1.6,0,2.9,1.4,2.9,3.1V65.1L42.1,65.1z\"/>\n                    </svg>\n\n                    Read Symfony documentation to learn\n                    <a href=\"http://symfony.com/doc/";
     // line 37
     echo twig_escape_filter($this->env, twig_slice($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), 0, 3), "html", null, true);
     echo "/book/page_creation.html\">\n                        How to create your first page in Symfony\n                    </a>\n                </p>\n            </div>\n\n        </div>\n    </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "    <base href=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "url"), "html", null, true);
     echo "\"/>\n    <meta property=\"bb:url\" content=\"";
     // line 2
     echo twig_escape_filter($this->env, twig_constant("BB_URL"), "html", null, true);
     echo "\"/>\n    <meta property=\"bb:client_area\" content=\"";
     // line 3
     echo $this->env->getExtension('bb')->twig_bb_client_link_filter("/");
     echo "\"/>\n    ";
 }
コード例 #5
0
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "    ";
     $context["version"] = twig_constant("Symfony\\Component\\HttpKernel\\Kernel::MAJOR_VERSION") . "." . twig_constant("Symfony\\Component\\HttpKernel\\Kernel::MINOR_VERSION");
     // line 9
     echo "\n    <h1>Welcome!</h1>\n\n    <p>Congratulations! You have successfully installed a new Symfony application.</p>\n\n    <div class=\"symfony-blocks-welcome\">\n        <div class=\"block-quick-tour\">\n            <div class=\"illustration\">\n                <img src=\"";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/acmedemo/images/welcome-quick-tour.gif"), "html", null, true);
     echo "\" alt=\"Quick tour\" />\n            </div>\n            <a class=\"symfony-button-green\" href=\"http://symfony.com/doc/";
     // line 19
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/quick_tour/index.html\">Read the Quick Tour</a>\n        </div>\n        ";
     // line 21
     if ($this->getAttribute($this->getContext($context, "app"), "environment") == "dev") {
         // line 22
         echo "            <div class=\"block-configure\">\n                <div class=\"illustration\">\n                    <img src=\"";
         // line 24
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/acmedemo/images/welcome-configure.gif"), "html", null, true);
         echo "\" alt=\"Configure your application\" />\n                </div>\n                <a class=\"symfony-button-green\" href=\"";
         // line 26
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_configurator_home"), "html", null, true);
         echo "\">Configure</a>\n            </div>\n        ";
     }
     // line 29
     echo "        <div class=\"block-demo\">\n            <div class=\"illustration\">\n                <img src=\"";
     // line 31
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/acmedemo/images/welcome-demo.gif"), "html", null, true);
     echo "\" alt=\"Demo\" />\n            </div>\n            <a class=\"symfony-button-green\" href=\"";
     // line 33
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_demo"), "html", null, true);
     echo "\">Run The Demo</a>\n        </div>\n    </div>\n\n    <div class=\"symfony-blocks-help\">\n        <div class=\"block-documentation\">\n            <ul>\n                <li><strong>Documentation</strong></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 41
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/book/index.html\">The Book</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 42
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/cookbook/index.html\">The Cookbook</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 43
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/components/index.html\">The Components</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 44
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/reference/index.html\">Reference</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 45
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/glossary.html\">Glossary</a></li>\n            </ul>\n        </div>\n        <div class=\"block-documentation-more\">\n            <ul>\n                <li><strong>Sensio</strong></li>\n                <li><a href=\"http://trainings.sensiolabs.com\">Trainings</a></li>\n                <li><a href=\"http://books.sensiolabs.com\">Books</a></li>\n            </ul>\n        </div>\n        <div class=\"block-community\">\n            <ul>\n                <li><strong>Community</strong></li>\n                <li><a href=\"http://symfony.com/irc\">IRC channel</a></li>\n                <li><a href=\"http://symfony.com/mailing-lists\">Mailing lists</a></li>\n                <li><a href=\"http://forum.symfony-project.org\">Forum</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 61
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/contributing/index.html\">Contributing</a></li>\n            </ul>\n        </div>\n    </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<header>\n    <section>\n        <h1>POWERLINE</h1>\n    </section>\n    <section>\n        ";
     // line 6
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array())) {
         // line 7
         echo "            <div class=\"right-block\">\n                <p>";
         // line 8
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "officialName", array()), "html", null, true);
         echo "</p>\n                <p>\n                    ";
         // line 10
         if (isset($context["logoutPath"]) ? $context["logoutPath"] : $this->getContext($context, "logoutPath")) {
             // line 11
             echo "                        <a href=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["logoutPath"]) ? $context["logoutPath"] : $this->getContext($context, "logoutPath"), 1, array(), "array"), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["logoutPath"]) ? $context["logoutPath"] : $this->getContext($context, "logoutPath"), 0, array(), "array"), "html", null, true);
             echo "</a>\n                    ";
         } else {
             // line 13
             echo "                        <a href=\"";
             echo $this->env->getExtension('routing')->getPath("civix_" . $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "type", array()) . "_logout");
             echo "\">Sign Out</a>\n                    ";
         }
         // line 15
         echo "                </p>\n            </div>\n            <div class=\"right-block avatar\">\n                <figure>\n                    <a href=\"";
         // line 19
         echo $this->env->getExtension('routing')->getPath($this->getAttribute($this->getAttribute(isset($context["paths"]) ? $context["paths"] : $this->getContext($context, "paths"), "profile", array()), $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "type", array()), array(), "array"));
         echo "\">\n                        ";
         // line 20
         if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "avatar", array())) {
             // line 21
             echo "                            <img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('vich_uploader')->asset($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "avatar"), "html", null, true);
             echo "\">\n                        ";
         } else {
             // line 23
             echo "                            <img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_constant("DEFAULT_AVATAR", $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()))), "html", null, true);
             echo "\">\n                        ";
         }
         // line 25
         echo "                    </a>\n                </figure>\n            </div>\n            <div class=\"right-block\">\n                <a href=\"";
         // line 29
         echo $this->env->getExtension('routing')->getPath($this->getAttribute($this->getAttribute(isset($context["paths"]) ? $context["paths"] : $this->getContext($context, "paths"), "settings", array()), $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "type", array()), array(), "array"));
         echo "\">\n                    <i class=\"icon-settings\"></i>\n                </a>\n            </div>\n        ";
     }
     // line 34
     echo "    </section>\n</header>";
 }
 public function block_input($context, array $blocks = array())
 {
     // line 4
     echo "    <div class=\"settings-block\"><div class=\"settings-param-field\"><div class=\"input-group\">\n    ";
     // line 5
     $context["label"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label", array()), $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_PICK_PARTICLE")) : $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_PICK_PARTICLE");
     // line 6
     echo "    ";
     $context["alt_label"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label_alt", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label_alt", array()), $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT_PARTICLE")) : $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT_PARTICLE");
     // line 7
     echo "    <span class=\"g-instancepicker-title\">";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["value"]) ? $context["value"] : null, "title", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["value"]) ? $context["value"] : null, "title", array()), "") : "", "html", null, true);
     echo "</span><button class=\"button\" data-g-instancepicker=\"";
     echo twig_escape_filter($this->env, twig_jsonencode_filter(array("type" => "particle", "field" => twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null))))), "html_attr");
     echo "\" data-g-instancepicker-text=\"";
     echo twig_escape_filter($this->env, isset($context["label"]) ? $context["label"] : null, "html", null, true);
     echo "\" data-g-instancepicker-alttext=\"";
     echo twig_escape_filter($this->env, isset($context["alt_label"]) ? $context["alt_label"] : null, "html", null, true);
     echo "\">";
     echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : null ? isset($context["alt_label"]) ? $context["alt_label"] : null : (isset($context["label"]) ? $context["label"] : null), "html", null, true);
     echo "</button>\n    <input\n            type=\"hidden\"\n            name=\"";
     // line 10
     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 11
     echo isset($context["value"]) ? $context["value"] : null ? twig_escape_filter($this->env, twig_jsonencode_filter(isset($context["value"]) ? $context["value"] : null, twig_constant("JSON_UNESCAPED_UNICODE"))) : "";
     echo "\"\n            ";
     // line 13
     echo "            ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n            ";
     // line 15
     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 16
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "required=\"required\"";
     }
     // line 17
     echo "            />\n\n    <span class=\"g-reset-field\" data-g-reset-field=\"";
     // line 19
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)));
     echo "\"><i class=\"fa  fa-fw fa-times-circle\"></i></span>\n    </div></div></div>\n";
 }
 public function block_body($context, array $blocks = array())
 {
     $__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0 = $this->env->getExtension("native_profiler");
     $__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0->enter($__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 4
     echo "    <div id=\"wrapper\">\n        <div id=\"container\">\n            <div id=\"welcome\">\n                <h1><span>Welcome to</span> Symfony ";
     // line 7
     echo twig_escape_filter($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), "html", null, true);
     echo "</h1>\n            </div>\n\n            <div id=\"status\">\n                <p>\n                    <svg id=\"icon-status\" width=\"1792\" height=\"1792\" viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z\" fill=\"#759E1A\"/></svg>\n\n                    Your application is now ready. You can start working on it at:\n                    <code>";
     // line 15
     echo twig_escape_filter($this->env, isset($context["base_dir"]) ? $context["base_dir"] : $this->getContext($context, "base_dir"), "html", null, true);
     echo "</code>\n                </p>\n            </div>\n\n            <div id=\"next\">\n                <h2>What's next?</h2>\n                <p>\n                    <svg id=\"icon-book\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-12.5 9 64 64\" enable-background=\"new -12.5 9 64 64\" xml:space=\"preserve\">\n                        <path fill=\"#AAA\" d=\"M6.8,40.8c2.4,0.8,4.5-0.7,4.9-2.5c0.2-1.2-0.3-2.1-1.3-3.2l-0.8-0.8c-0.4-0.5-0.6-1.3-0.2-1.9\n                            c0.4-0.5,0.9-0.8,1.8-0.5c1.3,0.4,1.9,1.3,2.9,2.2c-0.4,1.4-0.7,2.9-0.9,4.2l-0.2,1c-0.7,4-1.3,6.2-2.7,7.5\n                            c-0.3,0.3-0.7,0.5-1.3,0.6c-0.3,0-0.4-0.3-0.4-0.3c0-0.3,0.2-0.3,0.3-0.4c0.2-0.1,0.5-0.3,0.4-0.8c0-0.7-0.6-1.3-1.3-1.3\n                            c-0.6,0-1.4,0.6-1.4,1.7s1,1.9,2.4,1.8c0.8,0,2.5-0.3,4.2-2.5c2-2.5,2.5-5.4,2.9-7.4l0.5-2.8c0.3,0,0.5,0.1,0.8,0.1\n                            c2.4,0.1,3.7-1.3,3.7-2.3c0-0.6-0.3-1.2-0.9-1.2c-0.4,0-0.8,0.3-1,0.8c-0.1,0.6,0.8,1.1,0.1,1.5c-0.5,0.3-1.4,0.6-2.7,0.4l0.3-1.3\n                            c0.5-2.6,1-5.7,3.2-5.8c0.2,0,0.8,0,0.8,0.4c0,0.2,0,0.2-0.2,0.5c-0.2,0.3-0.3,0.4-0.2,0.7c0,0.7,0.5,1.1,1.2,1.1\n                            c0.9,0,1.2-1,1.2-1.4c0-1.2-1.2-1.8-2.6-1.8c-1.5,0.1-2.8,0.9-3.7,2.1c-1.1,1.3-1.8,2.9-2.3,4.5c-0.9-0.8-1.6-1.8-3.1-2.3\n                            c-1.1-0.7-2.3-0.5-3.4,0.3c-0.5,0.4-0.8,1-1,1.6c-0.4,1.5,0.4,2.9,0.8,3.4l0.9,1c0.2,0.2,0.6,0.8,0.4,1.5c-0.3,0.8-1.2,1.3-2.1,1\n                            c-0.4-0.2-1-0.5-0.9-0.9c0.1-0.2,0.2-0.3,0.3-0.5s0.1-0.3,0.1-0.3c0.2-0.6-0.1-1.4-0.7-1.6c-0.6-0.2-1.2,0-1.3,0.8\n                            C4.3,38.4,4.7,40,6.8,40.8z M46.1,20.9c0-4.2-3.2-7.5-7.1-7.5h-3.8C34.8,10.8,32.7,9,30.2,9L-2.3,9.1c-2.8,0.1-4.9,2.4-4.9,5.4\n                            L-7,58.6c0,4.8,8.1,13.9,11.6,14.1l34.7-0.1c3.9,0,7-3.4,7-7.6L46.1,20.9z M-0.3,36.4c0-8.6,6.5-15.6,14.5-15.6\n                            c8,0,14.5,7,14.5,15.6S22.1,52,14.2,52C6.1,52-0.3,45-0.3,36.4z M42.1,65.1c0,1.8-1.5,3.1-3.1,3.1H4.6c-0.7,0-3-1.8-4.5-4.4h30.4\n                            c2.8,0,5-2.4,5-5.4V17.9h3.7c1.6,0,2.9,1.4,2.9,3.1V65.1L42.1,65.1z\"/>\n                    </svg>\n\n                    Read the documentation to learn\n                    <a href=\"http://symfony.com/doc/";
     // line 39
     echo twig_escape_filter($this->env, twig_slice($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), 0, 3), "html", null, true);
     echo "/book/page_creation.html\">\n                        How to create your first page in Symfony\n                    </a>\n                </p>\n            </div>\n\n        </div>\n    </div>\n";
     $__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0->leave($__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0_prof);
 }
 public function block_collection_widget($context, array $blocks = array())
 {
     $__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d = $this->env->getExtension("native_profiler");
     $__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d->enter($__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "collection_widget"));
     // line 4
     echo "    ";
     if (!array_key_exists("prototype", $context)) {
         // line 5
         echo "        <div class=\"alert alert-danger\">\n            In order to render labels properly, prototype is required! Try setting the following options:<br/>\n            * <strong>allow_add:</strong> true<br/>\n            * <strong>prototype_only:</strong> true<br/>\n            This way will ensure that prototype will be rendered and the user will not be able to add new rows.\n        </div>\n    ";
     }
     // line 12
     echo "\n    ";
     // line 13
     if ((isset($context["layout"]) ? $context["layout"] : $this->getContext($context, "layout")) == twig_constant("StoreBundle\\Constant\\CollectionLayoutConstants::SINGLE_TABLE")) {
         // line 14
         echo "        ";
         $this->displayBlock("single_table_collection", $context, $blocks);
         echo "\n    ";
     }
     $__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d->leave($__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d_prof);
 }
 public function block_header($context, array $blocks = array())
 {
     $__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77 = $this->env->getExtension("native_profiler");
     $__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77->enter($__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "header"));
     // line 16
     echo "    ";
     $this->displayParentBlock("header", $context, $blocks);
     echo "\n    <div class=\"fullwidth\">\n        <div class=\"container\">\n            <div class=\"logo\">\n                <a href=\"";
     // line 20
     echo $this->env->getExtension('routing')->getPath("santa_homepage");
     echo "\">\n                        <img src=\"";
     // line 21
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/santa/images/logo.png?v=") . twig_constant("APP_VER"), "html", null, true);
     echo "\">\n                        Твой анонимный Санта\n                    </a>\n                </div>\n            <ul class=\"menu\">\n                <li class=\"active\"><a href=\"";
     // line 26
     echo $this->env->getExtension('routing')->getPath("santa_homepage");
     echo "\">Главная</a></li>\n                ";
     // line 28
     echo "                <li class=\"\"><a href=\"";
     echo $this->env->getExtension('routing')->getPath("santa_register");
     echo "\">Регистрация</a></li>\n                <li class=\"\"><a href=\"";
     // line 29
     echo $this->env->getExtension('routing')->getPath("santa_login");
     echo "\">Вход</a></li>\n            </ul>    \n        </div>\n        \n    </div>\n    ";
     // line 34
     if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "get", array(0 => "_route"), "method") == "santa_homepage") {
         // line 35
         echo "        <div class=\"fullwidth preview\">\n            <div class=\"\"></div>\n        </div>\n    ";
     } else {
         // line 39
         echo "        <div class=\"fullwidth forbc\">\n            <div class=\"container\">\n                <div class=\"breadcrumbs\">\n                    ";
         // line 42
         $this->displayBlock('breadcrumbs', $context, $blocks);
         // line 45
         echo "                </div>    \n            </div>\n        </div>\n    ";
     }
     // line 49
     echo "    \n";
     $__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77->leave($__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if (!(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"))) {
         // line 2
         echo "    <div class=\"pk-emptyDataTable\">";
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_ThereIsNoDataForThisReport")), "html", null, true);
         echo "</div>\n";
     } else {
         // line 4
         echo "<div class=\"visitor-profile\"\n     data-visitor-id=\"";
         // line 5
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "getFirstRow", array(), "method"), "getColumn", array(0 => "visitorId"), "method"), "html", null, true);
         echo "\"\n     data-next-visitor=\"";
         // line 6
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "nextVisitorId", array()), "html", null, true);
         echo "\"\n     data-prev-visitor=\"";
         // line 7
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "previousVisitorId", array()), "html", null, true);
         echo "\"\n     tabindex=\"0\">\n    <a href class=\"visitor-profile-close\"></a>\n    <div class=\"visitor-profile-info\">\n        <div>\n            <div class=\"visitor-profile-overview\">\n                <div class=\"visitor-profile-avatar\">\n                    <div>\n                        <div class=\"visitor-profile-image-frame\">\n                            <img src=\"";
         // line 16
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorAvatar", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorAvatar", array()), "plugins/Live/images/unknown_avatar.jpg") : "plugins/Live/images/unknown_avatar.jpg", "html", null, true);
         echo "\"\n                                 alt=\"";
         // line 17
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorDescription", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorDescription", array()), "") : "", "html", null, true);
         echo "\"\n                                 title=\"";
         // line 18
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorDescription", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorDescription", array()), "") : "", "html", null, true);
         echo "\" />\n                        </div>\n                        <img src=\"plugins/Live/images/paperclip.png\" alt=\"\"/>\n                    </div>\n                    <div>\n                        <div class=\"visitor-profile-header\">\n                            ";
         // line 24
         if (!twig_test_empty($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "previousVisitorId", array()))) {
             echo "<a class=\"visitor-profile-prev-visitor\" href=\"#\" title=\"";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_PreviousVisitor")), "html", null, true);
             echo "\">&larr;</a>";
         }
         // line 25
         echo "                            <h1>";
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_VisitorProfile")), "html", null, true);
         // line 26
         if (!twig_test_empty($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "userId", array()))) {
             echo ": <span title=\"";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_UserId")), "html", null, true);
             echo ": ";
             echo $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "userId", array());
             echo "\">";
             echo $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "userId", array());
             echo "</span>";
         }
         // line 27
         echo "<img class=\"loadingPiwik\" style=\"display:none;\" src=\"plugins/Morpheus/images/loading-blue.gif\"/>\n                            </h1>\n                            <a href=\"http://piwik.org/docs/user-profile/\" class=\"reportDocumentationIcon\" rel=\"noreferrer\"  target=\"_blank\" title=\"";
         // line 29
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ViewDocumentationFor", ucwords(call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_VisitorProfile"))))), "html", null, true);
         echo "\"></a>\n                            ";
         // line 30
         if (!twig_test_empty($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "nextVisitorId", array()))) {
             echo "<a class=\"visitor-profile-next-visitor\" href=\"#\" title=\"";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_NextVisitor")), "html", null, true);
             echo "\">&rarr;</a>";
         }
         // line 31
         echo "                        </div>\n                        <div class=\"visitor-profile-latest-visit\">\n                            ";
         // line 33
         $this->env->loadTemplate("@Live/getSingleVisitSummary.twig")->display(array_merge($context, array("visitData" => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "getFirstRow", array(), "method"), "getColumns", array(), "method"), "showLocation" => false)));
         // line 34
         echo "                        </div>\n                    </div>\n                    <p style=\"clear:both; border:none!important;\"></p>\n                </div>\n                <div class=\"visitor-profile-summary\">\n                    <h1>";
         // line 39
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Summary")), "html", null, true);
         echo "</h1>\n                    <div>\n                        <p>";
         // line 41
         echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_VisitSummary", "<strong>" . $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalVisitDurationPretty", array()) . "</strong>", "", "", "<strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalActions", array()), $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalVisits", array()), "</strong>"));
         echo "</p>\n                        <p>";
         // line 42
         if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalGoalConversions", array())) {
             echo "<strong>";
         }
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_ConvertedNGoals", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalGoalConversions", array()))), "html", null, true);
         if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalGoalConversions", array())) {
             echo "</strong>";
         }
         // line 43
         if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalGoalConversions", array())) {
             echo " (";
             // line 44
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalConversionsByGoal", 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["idGoal"] => $context["totalConversions"]) {
                 // line 45
                 $context["idGoal"] = twig_slice($this->env, $context["idGoal"], 7, null);
                 // line 46
                 if (!$this->getAttribute($context["loop"], "first", array())) {
                     echo ", ";
                 }
                 echo twig_escape_filter($this->env, $context["totalConversions"], "html", null, true);
                 echo " <span class=\"visitor-profile-goal-name\">";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["goals"]) ? $context["goals"] : $this->getContext($context, "goals"), $context["idGoal"], array(), "array"), "name", array(), "array"), "html", null, true);
                 echo "</span>";
                 ++$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['idGoal'], $context['totalConversions'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 48
             echo ")";
         }
         echo ".</p>\n                        ";
         // line 49
         if (($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalEcommerceConversions", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalEcommerceConversions", array()), 0) : 0) > 0 || ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalAbandonedCarts", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalAbandonedCarts", array()), 0) : 0) > 0) {
             // line 50
             echo "                        <p>\n                            ";
             // line 51
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Goals_Ecommerce")), "html", null, true);
             echo ":";
             // line 52
             if (($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalEcommerceConversions", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalEcommerceConversions", array()), 0) : 0) > 0) {
                 echo " ";
                 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_EcommerceSummaryConversions", "<strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalEcommerceConversions", array()), call_user_func_array($this->env->getFilter('money')->getCallable(), array($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalEcommerceRevenue", array()), isset($context["idSite"]) ? $context["idSite"] : $this->getContext($context, "idSite"))), "</strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalEcommerceItems", array())));
             }
             // line 54
             if (($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalAbandonedCarts", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalAbandonedCarts", array()), 0) : 0) > 0) {
                 echo " ";
                 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_AbandonedCartSummary", "<strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalAbandonedCarts", array()), "</strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalAbandonedCartsItems", array()), "<strong>", call_user_func_array($this->env->getFilter('money')->getCallable(), array($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalAbandonedCartsRevenue", array()), isset($context["idSite"]) ? $context["idSite"] : $this->getContext($context, "idSite"))), "</strong>"));
             }
             // line 55
             echo "</p>\n                        ";
         }
         // line 57
         echo "                        ";
         if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalSearches", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalSearches", array()), 0) : 0) {
             // line 58
             echo "                        <p>\n                            ";
             // line 59
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Actions_WidgetSearchKeywords")), "html", null, true);
             echo ":";
             // line 60
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "searches", 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["entry"]) {
                 echo " <strong title=\"";
                 if ($this->getAttribute($context["entry"], "searches", array()) == 1) {
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Actions_OneSearch")), "html", null, true);
                 } else {
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountryMap_Searches", $this->getAttribute($context["entry"], "searches", array()))), "html", null, true);
                 }
                 echo "\">";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "keyword", array()), "html", null, true);
                 echo "</strong>";
                 if (!$this->getAttribute($context["loop"], "last", array())) {
                     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['entry'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 61
             echo "                        </p>\n                        ";
         }
         // line 63
         echo "                        ";
         if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "averagePageGenerationTime", array(), "any", true, true)) {
             // line 64
             echo "                        <p title=\"";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_CalculatedOverNPageViews", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalPageViewsWithTiming", array()))), "html", null, true);
             echo "\">\n                            ";
             // line 65
             echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_AveragePageGenerationTime", "<strong>" . $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "averagePageGenerationTime", array()) . "s</strong>"));
             echo "\n                        </p>\n                        ";
         }
         // line 68
         echo "                    </div>\n                </div>\n                <div class=\"visitor-profile-important-visits\">";
         // line 71
         $context["keywordNotDefined"] = call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_NotDefined", call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ColumnKeyword"))));
         // line 72
         echo "<div>\n                        <h1>";
         // line 73
         if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "visitsAggregated", array()) == 100) {
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Visit")), "html", null, true);
             echo "# 100";
         } else {
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_FirstVisit")), "html", null, true);
         }
         echo "</h1>\n                        <div>\n                            <p><strong>";
         // line 75
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "prettyDate", array()), "html", null, true);
         echo "</strong><span>&nbsp;- ";
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountryMap_DaysAgo", $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "daysAgo", array()))), "html", null, true);
         echo "</span></p>\n                            <p><span>";
         // line 76
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_FromReferrer")), "html", null, true);
         echo ":</span>\n                            <strong ";
         // line 77
         if ($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "referrerType", array()) == "search" && !twig_in_filter("(", $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "referralSummary", array()))) {
             echo "title=\"";
             echo twig_escape_filter($this->env, isset($context["keywordNotDefined"]) ? $context["keywordNotDefined"] : $this->getContext($context, "keywordNotDefined"), "html", null, true);
             echo "\"";
         }
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "referralSummary", array()), "html", null, true);
         echo "</strong></p>\n                        </div>\n                    </div>\n                    ";
         // line 80
         if ($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "getRowsCount", array(), "method") != 1) {
             // line 81
             echo "                    <div>\n                        <h1>";
             // line 82
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_LastVisit")), "html", null, true);
             echo "</h1>\n                        <div>\n                            <p><strong>";
             // line 84
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "prettyDate", array()), "html", null, true);
             echo "</strong><span>&nbsp;- ";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountryMap_DaysAgo", $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "daysAgo", array()))), "html", null, true);
             echo "</span></p>\n                            <p><span>";
             // line 85
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_FromReferrer")), "html", null, true);
             echo ":</span>\n                            <strong ";
             // line 86
             if ($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "referrerType", array()) == "search" && !twig_in_filter("(", $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "referralSummary", array()))) {
                 echo "title=\"";
                 echo twig_escape_filter($this->env, isset($context["keywordNotDefined"]) ? $context["keywordNotDefined"] : $this->getContext($context, "keywordNotDefined"), "html", null, true);
                 echo "\"";
             }
             echo ">";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "referralSummary", array()), "html", null, true);
             echo "</strong></p>\n                        </div>\n                    </div>\n                    ";
         }
         // line 90
         echo "                </div>\n                <div>\n                    <div class=\"visitor-profile-location\">\n                        <h1>";
         // line 93
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_Location")), "html", null, true);
         echo "</h1>\n                        <p>";
         // line 95
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "countries", 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["entry"]) {
             // line 97
             ob_start();
             // line 98
             if ($this->getAttribute($context["entry"], "cities", array(), "any", true, true) && 1 == twig_length_filter($this->env, $this->getAttribute($context["entry"], "cities", array())) && twig_join_filter($this->getAttribute($context["entry"], "cities", array()))) {
                 // line 99
                 echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["entry"], "cities", array())), "html", null, true);
             } elseif ($this->getAttribute($context["entry"], "cities", array(), "any", true, true) && 1 < twig_length_filter($this->env, $this->getAttribute($context["entry"], "cities", array()))) {
                 // line 101
                 echo "<span title=\"";
                 echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["entry"], "cities", array()), ", "), "html", null, true);
                 echo "\">";
                 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_FromDifferentCities")), "html", null, true);
                 echo "</span>";
             }
             $context["entryCity"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
             // line 104
             echo "\n                                ";
             // line 105
             ob_start();
             // line 106
             echo "<strong>\n                                        ";
             // line 107
             if ($this->getAttribute($context["entry"], "nb_visits", array()) == 1) {
                 // line 108
                 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OneVisit")), "html", null, true);
             } else {
                 // line 110
                 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_NVisits", $this->getAttribute($context["entry"], "nb_visits", array()))), "html", null, true);
             }
             // line 112
             echo "</strong>";
             $context["entryVisits"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
             // line 114
             echo "\n                                ";
             // line 115
             ob_start();
             // line 116
             if (isset($context["entryCity"]) ? $context["entryCity"] : $this->getContext($context, "entryCity")) {
                 // line 117
                 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_CityAndCountry", isset($context["entryCity"]) ? $context["entryCity"] : $this->getContext($context, "entryCity"), $this->getAttribute($context["entry"], "prettyName", array())));
             } else {
                 // line 119
                 echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "prettyName", array()), "html", null, true);
             }
             // line 122
             echo "&nbsp;<img src=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "flag", array()), "html", null, true);
             echo "\" title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "prettyName", array()), "html", null, true);
             echo "\"/>";
             $context["entryCountry"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
             // line 125
             echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_XFromY", isset($context["entryVisits"]) ? $context["entryVisits"] : $this->getContext($context, "entryVisits"), isset($context["entryCountry"]) ? $context["entryCountry"] : $this->getContext($context, "entryCountry")));
             if (!$this->getAttribute($context["loop"], "last", array())) {
                 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['entry'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 127
         echo "                                <a class=\"visitor-profile-show-map\" href=\"#\" ";
         if (twig_test_empty(array_key_exists("userCountryMapUrl", $context) ? _twig_default_filter(isset($context["userCountryMapUrl"]) ? $context["userCountryMapUrl"] : $this->getContext($context, "userCountryMapUrl"), "") : "")) {
             echo "style=\"display:none\"";
         }
         echo ">(";
         echo strtr(call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_ShowMap")), array(" " => "&nbsp;"));
         echo ")</a> <img class=\"loadingPiwik\" style=\"display:none;\" src=\"plugins/Morpheus/images/loading-blue.gif\"/>\n                        </p>\n                        <div class=\"visitor-profile-map\" style=\"display:none\" data-href=\"";
         // line 129
         echo twig_escape_filter($this->env, array_key_exists("userCountryMapUrl", $context) ? _twig_default_filter(isset($context["userCountryMapUrl"]) ? $context["userCountryMapUrl"] : $this->getContext($context, "userCountryMapUrl"), "") : "", "html", null, true);
         echo "\">\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"visitor-profile-visits-info\">\n                <div class=\"visitor-profile-pages-visited\">\n                    <h1>";
         // line 136
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_VisitedPages")), "html", null, true);
         echo "</h1>\n                </div>\n                <div class=\"visitor-profile-visits-container\">\n                    <ol class=\"visitor-profile-visits\">\n                        ";
         // line 140
         $this->env->loadTemplate("@Live/getVisitList.twig")->display(array_merge($context, array("visits" => $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "startCounter" => 1)));
         // line 141
         echo "                    </ol>\n                </div>\n                <div class=\"visitor-profile-more-info\">\n                    ";
         // line 144
         if ($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "getRowsCount", array(), "method") >= twig_constant("Piwik\\Plugins\\Live\\VisitorProfile::VISITOR_PROFILE_MAX_VISITS_TO_SHOW")) {
             // line 145
             echo "                    <a href=\"#\">";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_LoadMoreVisits")), "html", null, true);
             echo "</a> <img class=\"loadingPiwik\" style=\"display:none;\" src=\"plugins/Morpheus/images/loading-blue.gif\"/>\n                    ";
         } else {
             // line 147
             echo "                    <span class=\"visitor-profile-no-visits\">";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_NoMoreVisits")), "html", null, true);
             echo "</span>\n                    ";
         }
         // line 149
         echo "                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<script type=\"text/javascript\">\n\$(function() { require('piwik/UI').VisitorProfileControl.initElements(); });\n</script>\n";
     }
 }
 public function block_content($context, array $blocks = array())
 {
     // line 7
     echo "<div class=\"widget simpleTabs\">\n\n    <ul class=\"tabs\">\n        <li><a href=\"#tab-index\">";
     // line 10
     echo gettext("Extensions");
     echo "</a></li>\n        <li><a href=\"#tab-core\">";
     // line 11
     echo gettext("Update BoxBilling");
     echo "</a></li>\n        <li><a href=\"#tab-about\">";
     // line 12
     echo gettext("Learn more about extensions");
     echo "</a></li>\n        <li><a href=\"#tab-hooks\">";
     // line 13
     echo gettext("Hooks");
     echo "</a></li>\n    </ul>\n\n    <div class=\"tabs_container\">\n\n        <div class=\"fix\"></div>\n        <div class=\"tab_content nopadding\" id=\"tab-index\">\n            <div class=\"help\">\n                <h5>BoxBilling extensions</h5>\n                <p>";
     // line 22
     echo gettext("Activate or deactivate extensions");
     echo "</p>\n            </div>\n            <table class=\"tableStatic wide\">\n                <thead>\n                    <tr>\n                        <td width=\"3%\">&nbsp;</td>\n                        <td width=\"20%\">";
     // line 28
     echo gettext("Extension");
     echo "</td>\n                        <td>";
     // line 29
     echo gettext("Description");
     echo "</td>\n                        <td style=\"width: 21%;\">";
     // line 30
     echo gettext("Actions");
     echo "</td>\n                    </tr>\n                </thead>\n\n                <tbody>\n                ";
     // line 35
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "extension_get_list"));
     $context['_iterated'] = false;
     foreach ($context['_seq'] as $context["_key"] => $context["ext"]) {
         // line 36
         echo "                <tr>\n                    <td><img src=\"";
         // line 37
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "icon_url", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "icon_url"), "images/icons/middlenav/cog.png") : "images/icons/middlenav/cog.png", "html", null, true);
         echo "\" alt=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "name"), "html", null, true);
         echo "\" style=\"width: 32px; height: 32px;\"/></td>\n                    <td><strong>";
         // line 38
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "name"), "html", null, true);
         echo "</strong> ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "version"), "html", null, true);
         echo "<br />by <a href=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "author_url"), "html", null, true);
         echo "\" target=\"_blank\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "author"), "html", null, true);
         echo "</a></td>\n                    <td>\n                        ";
         // line 40
         echo twig_bbmd_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "description"));
         echo "\n                        <a href=\"";
         // line 41
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "project_url"), "html", null, true);
         echo "\" target=\"_blank\" title=\"Project details\">Learn more</a>\n                    </td>\n                    <td>\n                        ";
         // line 44
         if ($this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "type") == "mod") {
             // line 45
             echo "                            ";
             if ($this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "status") == "installed") {
                 // line 46
                 echo "                            <a class=\"api-link bb-button btn14\" href=\"";
                 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/extension/deactivate", array("type" => $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "type"), "id" => $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "id")));
                 echo "\" data-api-confirm=\"Are you sure?\" data-api-reload=\"Module was deactivated\" title=\"";
                 echo gettext("Deactivate");
                 echo "\"><img src=\"images/icons/dark/close.png\" alt=\"\" class=\"icon\"></a>\n                            ";
             } else {
                 // line 48
                 echo "                            <a class=\"btnIconLeft mr10 api-link\" href=\"";
                 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/extension/activate", array("type" => $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "type"), "id" => $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "id")));
                 echo "\" data-api-confirm=\"Are you sure?\" data-api-jsonp=\"onAfterModuleActivated\"><img src=\"images/icons/dark/cog.png\" alt=\"\" class=\"icon\"><span>Activate</span></a>\n                            ";
             }
             // line 50
             echo "                        ";
         } else {
             // line 51
             echo "                        &nbsp;\n                        ";
         }
         // line 53
         echo "\n                        ";
         // line 54
         if ($this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "has_settings")) {
             // line 55
             echo "                            <a class=\"bb-button btn14\" href=\"";
             echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("extension/settings");
             echo "/";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "id"), "html", null, true);
             echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\" class=\"icon\" title=\"";
             echo gettext("Module settings");
             echo "\"></a>\n                        ";
         }
         // line 57
         echo "                    </td>\n                </tr>\n                ";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 60
         echo "                    <tr>\n                        <td colspan=\"4\">\n                            ";
         // line 62
         echo gettext("The list is empty");
         // line 63
         echo "                        </td>\n                    </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ext'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 66
     echo "                </tbody>\n                <tfoot>\n                    <tr>\n                        <td colspan=\"4\"></td>\n                    </tr>\n                </tfoot>\n            </table>\n\n            <div class=\"help\">\n                <h5>BoxBilling modules on extension site</h5>\n            </div>\n            ";
     // line 77
     $this->env->loadTemplate("partial_extensions.phtml")->display($context);
     // line 78
     echo "        </div>\n\n        <div class=\"tab_content nopadding\" id=\"tab-hooks\">\n            <table class=\"tableStatic wide\">\n                <thead>\n                    <tr>\n                        <td>";
     // line 84
     echo gettext("Extension");
     echo "</td>\n                        <td>";
     // line 85
     echo gettext("Hook");
     echo "</td>\n                    </tr>\n                </thead>\n\n                <tbody>\n                ";
     // line 90
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "hook_get_list", array(0 => array("per_page" => 90)), "method"), "list"));
     foreach ($context['_seq'] as $context["_key"] => $context["hook"]) {
         // line 91
         echo "                <tr>\n                    <td>\n                        ";
         // line 93
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["hook"]) ? $context["hook"] : null, "rel_id")), "html", null, true);
         echo "\n                    </td>\n                    <td>\n                        ";
         // line 96
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["hook"]) ? $context["hook"] : null, "event"), "html", null, true);
         echo "\n                    </td>\n                </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hook'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 100
     echo "                </tbody>\n            </table>\n        </div>\n            \n        <div class=\"tab_content nopadding\" id=\"tab-core\">\n            <div class=\"help\">\n                <h3>";
     // line 106
     echo gettext("Automatic update");
     echo "</h3>\n                <p>";
     // line 107
     echo gettext("Automatic updater is a tool to update BoxBilling to latest version in one click. Works on these hosting environments where PHP has permissions to overwrite files uploaded via FTP.");
     echo "</p>\n            </div>\n\n            <div class=\"body\">\n                <a href=\"";
     // line 111
     echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/extension/update_core");
     echo "\" title=\"\" class=\"btnIconLeft mr10 mt5 api-link\" data-api-confirm=\"Make sure that you have made database and files backups before proceeding with automatic update. Click OK when you are ready to continue.\" data-api-msg=\"Update complete\"><img src=\"images/icons/dark/cog.png\" alt=\"\" class=\"icon\"><span>Update BoxBilling</span></a>\n            </div>\n\n            <div class=\"help\">\n                <h3>";
     // line 115
     echo gettext("Manual update");
     echo "</h3>\n                <p>";
     // line 116
     echo gettext("Manual update is a solution when auto updater can not work on current installation environment");
     echo "</p>\n            </div>\n\n            <div class=\"body list arrowGreen\">\n                <ul>\n                    <li>Download latest BoxBilling from <a href=\"http://www.boxbilling.com/download\" target=\"_blank\">www.boxbilling.com</a></li>\n                    <li>Extract files at your computer</li>\n                    <li>Upload (overwrite) extracted files via FTP to <strong>";
     // line 123
     echo twig_escape_filter($this->env, twig_constant("BB_PATH_ROOT"), "html", null, true);
     echo "</strong></li>\n                    <li>When upload is complete, execute <a href=\"";
     // line 124
     echo twig_escape_filter($this->env, twig_constant("BB_URL"), "html", null, true);
     echo "bb-update.php\" target=\"_blank\">";
     echo twig_escape_filter($this->env, twig_constant("BB_URL"), "html", null, true);
     echo "bb-update.php</a> in your browser</li>\n                    <li>Your BoxBilling is now updated to latest version.</li>\n                </ul>\n            </div>\n        </div>\n        \n        <div class=\"tab_content nopadding\" id=\"tab-about\">\n            <div class=\"help\">\n                <h3>";
     // line 132
     echo gettext("Extending BoxBilling");
     echo "</h3>\n                <p>";
     // line 133
     echo gettext("BoxBilling gives developers all the capabilities to customize, integrate & extend the core system into your own website & applications.");
     echo "</p>\n            </div>\n            <div class=\"body\">\n                <h2 class=\"pt20\">More extensions</h2>\n                <p>If you can not find extensions you are looking for in this admin area, please visit extensions site at <a href=\"http://extensions.boxbilling.com\" target=\"_blank\">http://extensions.boxbilling.com</a></p>\n\n                <h2 class=\"pt20\">How to create new extension</h2>\n                <div class=\"pt20 list arrowGrey\">\n                    <ul>\n                        <li>Create free account at <a href=\"https://github.com/signup/free\" target=\"_blank\">Github</a></li>\n                        <li>Create new public repository dedicated for extension only</li>\n                        <li>Repository must have plugin json file. <a href=\"http://extensions.boxbilling.com/article/getting-started\" target=\"_blank\">More information</a></li>\n                        <li>Login to <a href=\"http://extensions.boxbilling.com/\" target=\"_blank\">BoxBilling extensions site</a> with github account.</li>\n                        <li>If your repository contains valid json file, it can be registered in extensions site.</li>\n                        <li>Registered extensions can be visible in every BoxBilling admin area.</li>\n                    </ul>\n                </div>\n\n                <h2 class=\"pt20\">Supported extension types</h2>\n                <div class=\"pt20 list arrowGrey\">\n                    <ul>\n                        <li>Payment gateways</li>\n                        <li>Server managers</li>\n                        <li>Domain registrars</li>\n                        <li>Client area themes</li>\n                        <li>Admin area themes</li>\n                        <li>Translations for client and admin areas</li>\n                        <li>Event hooks - Hooks can be injected into the process, change its behaviour, stop executing actions</li>\n                        <li>API module - External program which uses BoxBilling API</li>\n                    </ul>\n                </div>\n\n                <h2 class=\"pt20\">Extension support</h2>\n                <p>Contact extensions developers directly for support. You can find issue tracker on extension site.</p>\n            </div>\n        </div>\n    </div>\n</div>\n\n";
 }
 public function block_panel($context, array $blocks = array())
 {
     $__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28 = $this->env->getExtension("native_profiler");
     $__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28->enter($__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 48
     echo "    <h2>Log Messages</h2>\n\n    ";
     // line 50
     if (twig_test_empty(twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array()))) {
         // line 51
         echo "        <div class=\"empty\">\n            <p>No log messages available.</p>\n        </div>\n    ";
     } else {
         // line 55
         echo "        ";
         // line 56
         echo "        ";
         list($context["deprecation_logs"], $context["debug_logs"], $context["info_and_error_logs"]) = array(array(), array(), array());
         // line 57
         echo "        ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             // line 58
             echo "            ";
             if (twig_template_get_attributes($this, twig_template_get_attributes($this, $context["log"], "context", array(), "any", false, true), "level", array(), "any", true, true) && twig_template_get_attributes($this, twig_template_get_attributes($this, $context["log"], "context", array(), "any", false, true), "type", array(), "any", true, true) && twig_in_filter(twig_template_get_attributes($this, twig_template_get_attributes($this, $context["log"], "context", array()), "type", array()), array(0 => twig_constant("E_DEPRECATED"), 1 => twig_constant("E_USER_DEPRECATED")))) {
                 // line 59
                 echo "                ";
                 $context["deprecation_logs"] = twig_array_merge(isset($context["deprecation_logs"]) ? $context["deprecation_logs"] : $this->getContext($context, "deprecation_logs"), array(0 => $context["log"]));
                 // line 60
                 echo "            ";
             } elseif (twig_template_get_attributes($this, $context["log"], "priorityName", array()) == "DEBUG") {
                 // line 61
                 echo "                ";
                 $context["debug_logs"] = twig_array_merge(isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs"), array(0 => $context["log"]));
                 // line 62
                 echo "            ";
             } else {
                 // line 63
                 echo "                ";
                 $context["info_and_error_logs"] = twig_array_merge(isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs"), array(0 => $context["log"]));
                 // line 64
                 echo "            ";
             }
             // line 65
             echo "        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 66
         echo "\n        <div class=\"sf-tabs\">\n            <div class=\"tab\">\n                <h3 class=\"tab-title\">Info. &amp; Errors <span class=\"badge\">";
         // line 69
         echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs")), "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 72
         if (twig_test_empty(isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs"))) {
             // line 73
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages of this level.</p>\n                        </div>\n                    ";
         } else {
             // line 77
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs"), true);
             echo "\n                    ";
         }
         // line 79
         echo "                </div>\n            </div>\n\n            <div class=\"tab\">\n                ";
         // line 85
         echo "                <h3 class=\"tab-title\">Deprecations <span class=\"badge\">";
         echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : null, "countdeprecations", array(), "any", true, true) ? _twig_default_filter(twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : null, "countdeprecations", array()), 0) : 0, "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 88
         if (twig_test_empty(isset($context["deprecation_logs"]) ? $context["deprecation_logs"] : $this->getContext($context, "deprecation_logs"))) {
             // line 89
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages about deprecated features.</p>\n                        </div>\n                    ";
         } else {
             // line 93
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["deprecation_logs"]) ? $context["deprecation_logs"] : $this->getContext($context, "deprecation_logs"), false, true);
             echo "\n                    ";
         }
         // line 95
         echo "                </div>\n            </div>\n\n            <div class=\"tab\">\n                <h3 class=\"tab-title\">Debug <span class=\"badge\">";
         // line 99
         echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs")), "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 102
         if (twig_test_empty(isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs"))) {
             // line 103
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages of this level.</p>\n                        </div>\n                    ";
         } else {
             // line 107
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs"));
             echo "\n                    ";
         }
         // line 109
         echo "                </div>\n            </div>\n        </div>\n    ";
     }
     $__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28->leave($__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if ($this->getAttribute($this->getContext($context, "properties"), "show_visualization_only")) {
         // line 2
         echo "    ";
         $template = $this->env->resolveTemplate($this->getContext($context, "visualizationTemplate"));
         $template->display($context);
     } else {
         // line 5
         $context["summaryRowId"] = twig_constant("Piwik\\DataTable::ID_SUMMARY_ROW");
         // line 6
         $context["isSubtable"] = $this->getAttribute($this->getContext($context, "javascriptVariablesToSet", true), "idSubtable", array(), "any", true, true) && $this->getAttribute($this->getContext($context, "javascriptVariablesToSet"), "idSubtable") != 0;
         // line 7
         echo "<div class=\"dataTable ";
         echo twig_escape_filter($this->env, $this->getContext($context, "visualizationCssClass"), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "properties", true), "datatable_css_class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "properties", true), "datatable_css_class"), "") : "", "html", null, true);
         echo " ";
         if ($this->getContext($context, "isSubtable")) {
             echo "subDataTable";
         }
         echo "\"\n     data-table-type=\"";
         // line 8
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "properties"), "datatable_js_type"), "html", null, true);
         echo "\"\n     data-report=\"";
         // line 9
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "properties"), "report_id"), "html", null, true);
         echo "\"\n     data-props=\"";
         // line 10
         if (twig_test_empty($this->getContext($context, "clientSideProperties"))) {
             echo "{}";
         } else {
             echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getContext($context, "clientSideProperties")), "html", null, true);
         }
         echo "\"\n     data-params=\"";
         // line 11
         if (twig_test_empty($this->getContext($context, "clientSideParameters"))) {
             echo "{}";
         } else {
             echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getContext($context, "clientSideParameters")), "html", null, true);
         }
         echo "\">\n    <div class=\"reportDocumentation\">\n        ";
         // line 13
         if (!twig_test_empty($this->getAttribute($this->getContext($context, "properties", true), "documentation", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "properties", true), "documentation")) : "")) {
             echo "<p>";
             echo $this->getAttribute($this->getContext($context, "properties"), "documentation");
             echo "</p>";
         }
         // line 14
         echo "        ";
         if (array_key_exists("reportLastUpdatedMessage", $context)) {
             echo "<span class='helpDate'>";
             echo twig_escape_filter($this->env, $this->getContext($context, "reportLastUpdatedMessage"), "html", null, true);
             echo "</span>";
         }
         // line 15
         echo "    </div>\n    <div class=\"dataTableWrapper\">\n        ";
         // line 17
         if (array_key_exists("error", $context)) {
             // line 18
             echo "            ";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "error"), "message"), "html", null, true);
             echo "\n        ";
         } else {
             // line 20
             echo "            ";
             if (twig_test_empty($this->getContext($context, "dataTable")) || $this->getAttribute($this->getContext($context, "dataTable"), "getRowsCount", array(), "method") == 0 || (array_key_exists("dataTableHasNoData", $context) ? _twig_default_filter($this->getContext($context, "dataTableHasNoData"), false) : false)) {
                 // line 21
                 echo "                <div class=\"pk-emptyDataTable\">\n                ";
                 // line 22
                 if (array_key_exists("showReportDataWasPurgedMessage", $context) && $this->getContext($context, "showReportDataWasPurgedMessage")) {
                     // line 23
                     echo "                    ";
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_DataForThisReportHasBeenPurged", $this->getContext($context, "deleteReportsOlderThan"))), "html", null, true);
                     echo "\n                ";
                 } else {
                     // line 25
                     echo "                    ";
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_ThereIsNoDataForThisReport")), "html", null, true);
                     echo "\n                ";
                 }
                 // line 27
                 echo "                </div>\n            ";
             } else {
                 // line 29
                 echo "                ";
                 $template = $this->env->resolveTemplate($this->getContext($context, "visualizationTemplate"));
                 $template->display($context);
                 // line 30
                 echo "            ";
             }
             // line 31
             echo "\n            ";
             // line 32
             if ($this->getAttribute($this->getContext($context, "properties"), "show_footer")) {
                 // line 33
                 echo "                ";
                 $this->env->loadTemplate("@CoreHome/_dataTableFooter.twig")->display($context);
                 // line 34
                 echo "            ";
             }
             // line 35
             echo "            ";
             $this->env->loadTemplate("@CoreHome/_dataTableJS.twig")->display($context);
             // line 36
             echo "        ";
         }
         // line 37
         echo "    </div>\n</div>";
     }
 }
 public function getstate($__translation__ = null)
 {
     $context = $this->env->mergeGlobals(array("translation" => $__translation__, "varargs" => func_num_args() > 1 ? array_slice(func_get_args(), 1) : array()));
     $blocks = array();
     ob_start();
     try {
         $__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671 = $this->env->getExtension("native_profiler");
         $__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671->enter($__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "state"));
         // line 102
         echo "    ";
         if ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 103
             echo "        same as fallback\n    ";
         } elseif ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 105
             echo "        missing\n    ";
         }
         $__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671->leave($__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function getstate($__translation__ = null)
 {
     $context = $this->env->mergeGlobals(array("translation" => $__translation__, "varargs" => func_num_args() > 1 ? array_slice(func_get_args(), 1) : array()));
     $blocks = array();
     ob_start();
     try {
         $__internal_230c0f8609ec7e76b3efe217ac0387b3e4a37e46f5791aba69a2649cb8154307 = $this->env->getExtension("native_profiler");
         $__internal_230c0f8609ec7e76b3efe217ac0387b3e4a37e46f5791aba69a2649cb8154307->enter($__internal_230c0f8609ec7e76b3efe217ac0387b3e4a37e46f5791aba69a2649cb8154307_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "state"));
         // line 102
         echo "    ";
         if ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 103
             echo "        same as fallback\n    ";
         } elseif ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 105
             echo "        missing\n    ";
         }
         $__internal_230c0f8609ec7e76b3efe217ac0387b3e4a37e46f5791aba69a2649cb8154307->leave($__internal_230c0f8609ec7e76b3efe217ac0387b3e4a37e46f5791aba69a2649cb8154307_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_block($context, array $blocks = array())
 {
     // line 14
     echo "    <div class=\"sonata-news-block-recent-comment panel panel-default\">\n        ";
     // line 15
     if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings"), "title", array())) {
         // line 16
         echo "            <div class=\"panel-heading\">\n                <h3 class=\"panel-title sonata-news-block-recent-comment\"><i class=\"fa fa-comments fa-fw\"></i> ";
         // line 17
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings"), "title", array()), "html", null, true);
         echo "</h3>\n            </div>\n        ";
     }
     // line 20
     echo "\n        <div class=\"panel-body\">\n            ";
     // line 22
     echo "<div class='alert alert-default alert-info'>\n    <strong>This is the recent posts comments block.</strong>\n    <div>This file can be found in <code>{$this->getTemplateName()}</code>.</div>\n</div>";
     // line 23
     echo "\n            <div class=\"sonata-blog-post-container list-group\">\n                ";
     // line 25
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["pager"]) ? $context["pager"] : $this->getContext($context, "pager"), "getResults", array(), "method"));
     $context['_iterated'] = false;
     foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
         // line 26
         echo "                    ";
         if ($this->getAttribute(isset($context["context"]) ? $context["context"] : $this->getContext($context, "context"), "getSetting", array(0 => "mode"), "method") == "admin") {
             // line 27
             echo "                        <a class=\"list-group-item\" href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl("admin_sonata_news_comment_edit", array("id" => $this->getAttribute($context["comment"], "id", array()))), "html", null, true);
             echo "\">\n                            <span class=\"label label-";
             // line 28
             echo twig_escape_filter($this->env, $this->env->getExtension('sonata_core_status')->statusClass($context["comment"]), "html", null, true);
             echo "\">\n                                ";
             // line 29
             if ($this->getAttribute($context["comment"], "status", array()) == twig_constant("Sonata\\NewsBundle\\Model\\CommentInterface::STATUS_INVALID")) {
                 // line 30
                 echo "                                    ";
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label_comment_invalid", array(), "SonataNewsBundle"), "html", null, true);
                 echo "\n                                ";
             } elseif ($this->getAttribute($context["comment"], "status", array()) == twig_constant("Sonata\\NewsBundle\\Model\\CommentInterface::STATUS_VALID")) {
                 // line 32
                 echo "                                    ";
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label_comment_valid", array(), "SonataNewsBundle"), "html", null, true);
                 echo "\n                                ";
             } elseif ($this->getAttribute($context["comment"], "status", array()) == twig_constant("Sonata\\NewsBundle\\Model\\CommentInterface::STATUS_MODERATE")) {
                 // line 34
                 echo "                                    ";
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label_comment_moderate", array(), "SonataNewsBundle"), "html", null, true);
                 echo "\n                                ";
             } else {
                 // line 36
                 echo "                                    ";
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label_unknown_status", array(), "SonataNewsBundle"), "html", null, true);
                 echo "\n                                ";
             }
             // line 38
             echo "                            </span>&nbsp;\n\n                            ";
             // line 40
             echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "name", array()), "html", null, true);
             echo " - ";
             echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($context["comment"], "message", array()), 30), "html", null, true);
             echo "\n                        </a>\n                    ";
         } else {
             // line 43
             echo "                        <a class=\"list-group-item\" href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl("sonata_news_view", array("permalink" => $this->env->getExtension('sonata_news')->generatePermalink($this->getAttribute($context["comment"], "post", array())))), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "name", array()), "html", null, true);
             echo " - ";
             echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($context["comment"], "message", array()), 30), "html", null, true);
             echo "\n                        </a>\n                    ";
         }
         // line 46
         echo "                ";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 47
         echo "                    <a href=\"#\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("no_comment_found", array(), "SonataNewsBundle"), "html", null, true);
         echo "</a>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 49
     echo "            </div>\n\n            ";
     // line 51
     if ($this->getAttribute(isset($context["context"]) ? $context["context"] : $this->getContext($context, "context"), "getSetting", array(0 => "mode"), "method") == "admin") {
         // line 52
         echo "                <a href=\"";
         echo $this->env->getExtension('routing')->getUrl("admin_sonata_news_comment_list");
         echo "\" class=\"btn btn-primary btn-block\"><i class=\"fa fa-list\"></i> ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("view_all_comments", array(), "SonataNewsBundle"), "html", null, true);
         echo "</a>\n            ";
     }
     // line 54
     echo "        </div>\n    </div>\n";
 }
 public function getstate($__translation__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("translation" => $__translation__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_1ac0d44c329fa527536a244ffd14f74e734e59436f07f0b203016b19d667caee = $this->env->getExtension("native_profiler");
         $__internal_1ac0d44c329fa527536a244ffd14f74e734e59436f07f0b203016b19d667caee->enter($__internal_1ac0d44c329fa527536a244ffd14f74e734e59436f07f0b203016b19d667caee_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "state"));
         // line 102
         echo "    ";
         if ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 103
             echo "        same as fallback\n    ";
         } elseif ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 105
             echo "        missing\n    ";
         }
         $__internal_1ac0d44c329fa527536a244ffd14f74e734e59436f07f0b203016b19d667caee->leave($__internal_1ac0d44c329fa527536a244ffd14f74e734e59436f07f0b203016b19d667caee_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function getstate($__translation__ = null)
 {
     $context = $this->env->mergeGlobals(array("translation" => $__translation__, "varargs" => func_num_args() > 1 ? array_slice(func_get_args(), 1) : array()));
     $blocks = array();
     ob_start();
     try {
         $__internal_9e28bcebaa4926e032b44358390510defd3d75cf1298427f34fc2d262c9ed1f9 = $this->env->getExtension("native_profiler");
         $__internal_9e28bcebaa4926e032b44358390510defd3d75cf1298427f34fc2d262c9ed1f9->enter($__internal_9e28bcebaa4926e032b44358390510defd3d75cf1298427f34fc2d262c9ed1f9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "state"));
         // line 102
         echo "    ";
         if ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 103
             echo "        same as fallback\n    ";
         } elseif ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 105
             echo "        missing\n    ";
         }
         $__internal_9e28bcebaa4926e032b44358390510defd3d75cf1298427f34fc2d262c9ed1f9->leave($__internal_9e28bcebaa4926e032b44358390510defd3d75cf1298427f34fc2d262c9ed1f9_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_panel($context, array $blocks = array())
 {
     $__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91 = $this->env->getExtension("native_profiler");
     $__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91->enter($__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 55
     echo "    <h2>Logs</h2>\n\n    ";
     // line 57
     $context["priority"] = $this->getAttribute($this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "query", array()), "get", array(0 => "priority", 1 => 0), "method");
     // line 58
     echo "\n    <table>\n        <tr>\n            <th>Filter</th>\n            <td>\n                <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">\n                    <input type=\"hidden\" name=\"panel\" value=\"logger\">\n                    <label for=\"priority\">Min. Priority</label>\n                    <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">\n                        ";
     // line 68
     echo "                        ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "priorities", array()));
     foreach ($context['_seq'] as $context["value"] => $context["level"]) {
         // line 69
         echo "                            ";
         if (!(isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) && $context["value"] > 100) {
             // line 70
             echo "                                ";
             $context["priority"] = $context["value"];
             // line 71
             echo "                            ";
         }
         // line 72
         echo "                            <option value=\"";
         echo twig_escape_filter($this->env, $context["value"], "html", null, true);
         echo "\"";
         echo $context["value"] == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) ? " selected" : "";
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute($context["level"], "name", array()), "html", null, true);
         echo " (";
         echo twig_escape_filter($this->env, $this->getAttribute($context["level"], "count", array()), "html", null, true);
         echo ")</option>\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['value'], $context['level'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 74
     echo "                        ";
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countdeprecations", array())) {
         // line 75
         echo "                            ";
         if (!(isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority"))) {
             // line 76
             echo "                                ";
             $context["priority"] = "-100";
             // line 77
             echo "                            ";
         }
         // line 78
         echo "                            <option value=\"-100\"";
         echo "-100" == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) ? " selected" : "";
         echo ">DEPRECATION only (";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countdeprecations", array()), "html", null, true);
         echo ")</option>\n                        ";
     }
     // line 80
     echo "                    </select>\n                    <noscript>\n                        <input type=\"submit\" value=\"refresh\">\n                    </noscript>\n                </form>\n            </td>\n        </tr>\n    </table>\n\n    ";
     // line 89
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array())) {
         // line 90
         echo "        <ul class=\"alt\">\n            ";
         // line 91
         $context["log_loop_index"] = 0;
         // line 92
         echo "            ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array()));
         $context['_iterated'] = false;
         $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["log"]) {
             // line 93
             echo "                ";
             $context["is_deprecation"] = $this->getAttribute($this->getAttribute($context["log"], "context", array(), "any", false, true), "level", array(), "any", true, true) && $this->getAttribute($this->getAttribute($context["log"], "context", array(), "any", false, true), "type", array(), "any", true, true) && (twig_constant("E_DEPRECATED") == $this->getAttribute($this->getAttribute($context["log"], "context", array()), "type", array()) || twig_constant("E_USER_DEPRECATED") == $this->getAttribute($this->getAttribute($context["log"], "context", array()), "type", array()));
             // line 94
             echo "                ";
             if ((isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) == "-100" ? isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation") : $this->getAttribute($context["log"], "priority", array()) >= (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority"))) {
                 // line 95
                 echo "                    ";
                 $context["log_loop_index"] = (isset($context["log_loop_index"]) ? $context["log_loop_index"] : $this->getContext($context, "log_loop_index")) + 1;
                 // line 96
                 echo "                    <li class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), isset($context["log_loop_index"]) ? $context["log_loop_index"] : $this->getContext($context, "log_loop_index")), "html", null, true);
                 if ($this->getAttribute($this->getAttribute($context["log"], "context", array(), "any", false, true), "scream", array(), "any", true, true)) {
                     echo " scream";
                 } elseif ($this->getAttribute($context["log"], "priority", array()) >= 400) {
                     echo " error";
                 } elseif ($this->getAttribute($context["log"], "priority", array()) >= 300 || (isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation"))) {
                     echo " warning";
                 }
                 echo "\">\n                        ";
                 // line 97
                 echo $context["logger"]->getdisplay_message($this->getAttribute($context["loop"], "index", array()), $context["log"], isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation"));
                 echo "\n                    </li>\n                ";
             }
             // line 100
             echo "            ";
             $context['_iterated'] = true;
             ++$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'];
             }
         }
         if (!$context['_iterated']) {
             // line 101
             echo "                <li><em>No logs available for this priority.</em></li>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 103
         echo "        </ul>\n    ";
     } else {
         // line 105
         echo "        <p>\n            <em>No logs available.</em>\n        </p>\n    ";
     }
     $__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91->leave($__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91_prof);
 }
 public function getdisplay_message($_log_index = null, $_log = null)
 {
     $context = $this->env->mergeGlobals(array("log_index" => $_log_index, "log" => $_log));
     $blocks = array();
     ob_start();
     try {
         // line 93
         echo "    ";
         if (twig_constant("Symfony\\Component\\HttpKernel\\Debug\\ErrorHandler::TYPE_DEPRECATION") == ($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "type", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "type"), 0) : 0)) {
             // line 94
             echo "        DEPRECATION -  ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "message"), "html", null, true);
             echo "\n        ";
             // line 95
             $context["id"] = "sf-call-stack-" . (isset($context["log_index"]) ? $context["log_index"] : $this->getContext($context, "log_index"));
             // line 96
             echo "        <a href=\"#\" onclick=\"Sfjs.toggle('";
             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true);
             echo "', document.getElementById('";
             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true);
             echo "-on'), document.getElementById('";
             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true);
             echo "-off')); return false;\">\n            <img class=\"toggle\" id=\"";
             // line 97
             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true);
             echo "-off\" alt=\"-\" src=\"data:image/gif;base64,R0lGODlhEgASAMQSANft94TG57Hb8GS44ez1+mC24IvK6ePx+Wa44dXs92+942e54o3L6W2844/M6dnu+P/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAAASABIAQAVCoCQBTBOd6Kk4gJhGBCTPxysJb44K0qD/ER/wlxjmisZkMqBEBW5NHrMZmVKvv9hMVsO+hE0EoNAstEYGxG9heIhCADs=\" style=\"display:none\">\n            <img class=\"toggle\" id=\"";
             // line 98
             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true);
             echo "-on\" alt=\"+\" src=\"data:image/gif;base64,R0lGODlhEgASAMQTANft99/v+Ga44bHb8ITG52S44dXs9+z1+uPx+YvK6WC24G+944/M6W28443L6dnu+Ge54v/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABMALAAAAAASABIAQAVS4DQBTiOd6LkwgJgeUSzHSDoNaZ4PU6FLgYBA5/vFID/DbylRGiNIZu74I0h1hNsVxbNuUV4d9SsZM2EzWe1qThVzwWFOAFCQFa1RQq6DJB4iIQA7\" style=\"display:inline\">\n        </a>\n        ";
             // line 100
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context"), "stack"));
             foreach ($context['_seq'] as $context["index"] => $context["call"]) {
                 if ((isset($context["index"]) ? $context["index"] : $this->getContext($context, "index")) > 1) {
                     // line 101
                     echo "            ";
                     if ((isset($context["index"]) ? $context["index"] : $this->getContext($context, "index")) == 2) {
                         // line 102
                         echo "                <ul class=\"sf-call-stack\" id=\"";
                         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true);
                         echo "\" style=\"display: none\">\n            ";
                     }
                     // line 104
                     echo "            ";
                     if ($this->getAttribute(isset($context["call"]) ? $context["call"] : null, "class", array(), "any", true, true)) {
                         // line 105
                         echo "                ";
                         $context["from"] = $this->env->getExtension('code')->abbrClass($this->getAttribute(isset($context["call"]) ? $context["call"] : $this->getContext($context, "call"), "class")) . "::" . $this->env->getExtension('code')->abbrMethod($this->getAttribute(isset($context["call"]) ? $context["call"] : $this->getContext($context, "call"), "function"));
                         // line 106
                         echo "            ";
                     } elseif ($this->getAttribute(isset($context["call"]) ? $context["call"] : null, "function", array(), "any", true, true)) {
                         // line 107
                         echo "                ";
                         $context["from"] = $this->env->getExtension('code')->abbrMethod($this->getAttribute(isset($context["call"]) ? $context["call"] : $this->getContext($context, "call"), "function"));
                         // line 108
                         echo "            ";
                     } elseif ($this->getAttribute(isset($context["call"]) ? $context["call"] : null, "file", array(), "any", true, true)) {
                         // line 109
                         echo "                ";
                         $context["from"] = $this->getAttribute(isset($context["call"]) ? $context["call"] : $this->getContext($context, "call"), "file");
                         // line 110
                         echo "            ";
                     } else {
                         // line 111
                         echo "                ";
                         $context["from"] = "-";
                         // line 112
                         echo "            ";
                     }
                     // line 113
                     echo "\n            <li>Called from ";
                     // line 114
                     echo $this->getAttribute(isset($context["call"]) ? $context["call"] : null, "file", array(), "any", true, true) && $this->getAttribute(isset($context["call"]) ? $context["call"] : null, "line", array(), "any", true, true) ? $this->env->getExtension('code')->formatFile($this->getAttribute(isset($context["call"]) ? $context["call"] : $this->getContext($context, "call"), "file"), $this->getAttribute(isset($context["call"]) ? $context["call"] : $this->getContext($context, "call"), "line"), isset($context["from"]) ? $context["from"] : $this->getContext($context, "from")) : (isset($context["from"]) ? $context["from"] : $this->getContext($context, "from"));
                     echo "</li>\n\n            ";
                     // line 116
                     echo (isset($context["index"]) ? $context["index"] : $this->getContext($context, "index")) == twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context"), "stack")) - 1 ? "</ul>" : "";
                     echo "\n        ";
                 }
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['index'], $context['call'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 118
             echo "    ";
         } else {
             // line 119
             echo "        ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priorityName"), "html", null, true);
             echo " - ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "message"), "html", null, true);
             echo "\n        ";
             // line 120
             if ($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context"))) {
                 // line 121
                 echo "            <br />\n            <small>\n                <strong>Context</strong>: ";
                 // line 123
                 echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context"), 64 | 256), "html", null, true);
                 echo "\n            </small>\n        ";
             }
             // line 126
             echo "    ";
         }
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_page($context, array $blocks = array())
 {
     // line 71
     echo "    <div class=\"remodal-bg\">\n\n        ";
     // line 73
     $this->displayBlock('navigation', $context, $blocks);
     // line 76
     echo "\n        <section id=\"admin-main\" >\n            <div id=\"titlebar\" class=\"titlebar secondary-accent\">\n                ";
     // line 79
     $this->displayBlock('titlebar', $context, $blocks);
     // line 80
     echo "            </div>\n\n            <div class=\"grav-update\" data-gpm-grav>\n            </div>\n\n            <div class=\"content-padding\">\n                <div>\n                    ";
     // line 87
     $this->displayBlock('messages', $context, $blocks);
     // line 90
     echo "                    ";
     $this->displayBlock('content_top', $context, $blocks);
     // line 91
     echo "                    <div class=\"admin-block default-box-shadow\">\n                        ";
     // line 92
     $this->displayBlock('content', $context, $blocks);
     // line 93
     echo "                    </div>\n                    ";
     // line 94
     if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "plugins", array()), "admin", array()), "show_github_msg", array())) {
         // line 95
         echo "                    <div class=\"notice alert\"><i class=\"fa fa-github\"></i> <a href=\"https://github.com/getgrav/grav-plugin-admin/issues\" target=\"_blank\">";
         echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADMIN_REPORT_ISSUE");
         echo "</a></div>\n                    ";
     }
     // line 97
     echo "                    ";
     $this->displayBlock('content_bottom', $context, $blocks);
     // line 98
     echo "                </div>\n                 <footer id=\"footer\">\n                    <a href=\"http://getgrav.org\">Grav</a> ";
     // line 100
     echo twig_lower_filter($this->env, $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.VERSION"));
     echo " <span class=\"grav-version\">";
     echo twig_constant("GRAV_VERSION");
     echo "</span> ";
     echo twig_lower_filter($this->env, $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.WAS_MADE_WITH"));
     echo " <i class=\"fa fa-heart\"></i> ";
     echo twig_lower_filter($this->env, $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BY"));
     echo " <a href=\"http://www.rockettheme.com\">RocketTheme</a>.\n                </footer>\n            </div>\n\n        </section>\n        <div id='overlay'></div>\n    </div>\n    ";
 }
 public function getstate($__translation__ = null)
 {
     $context = $this->env->mergeGlobals(array("translation" => $__translation__, "varargs" => func_num_args() > 1 ? array_slice(func_get_args(), 1) : array()));
     $blocks = array();
     ob_start();
     try {
         $__internal_17793b9ddcc4a180249d20bdba8c90b09e8c31ce3f0de36a70ea7b295973f82e = $this->env->getExtension("native_profiler");
         $__internal_17793b9ddcc4a180249d20bdba8c90b09e8c31ce3f0de36a70ea7b295973f82e->enter($__internal_17793b9ddcc4a180249d20bdba8c90b09e8c31ce3f0de36a70ea7b295973f82e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "state"));
         // line 102
         echo "    ";
         if ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 103
             echo "        same as fallback\n    ";
         } elseif ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 105
             echo "        missing\n    ";
         }
         $__internal_17793b9ddcc4a180249d20bdba8c90b09e8c31ce3f0de36a70ea7b295973f82e->leave($__internal_17793b9ddcc4a180249d20bdba8c90b09e8c31ce3f0de36a70ea7b295973f82e_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function getstate($__translation__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("translation" => $__translation__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_3cc4f8072ac042e60c4bbca7e6b853fab6a73dabef811400a3154d091ec36473 = $this->env->getExtension("native_profiler");
         $__internal_3cc4f8072ac042e60c4bbca7e6b853fab6a73dabef811400a3154d091ec36473->enter($__internal_3cc4f8072ac042e60c4bbca7e6b853fab6a73dabef811400a3154d091ec36473_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "state"));
         // line 102
         echo "    ";
         if ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 103
             echo "        same as fallback\n    ";
         } elseif ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 105
             echo "        missing\n    ";
         }
         $__internal_3cc4f8072ac042e60c4bbca7e6b853fab6a73dabef811400a3154d091ec36473->leave($__internal_3cc4f8072ac042e60c4bbca7e6b853fab6a73dabef811400a3154d091ec36473_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_grid_exports($context, array $blocks = array())
 {
     // line 37
     echo "    <div class=\".col-xs-6 .col-lg-4\" style=\"float:right\">\n        ";
     // line 38
     ob_start();
     // line 39
     echo "            ";
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Export"), "html", null, true);
     echo "\n            <select class=\"form-control\" name=\"";
     // line 40
     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, twig_constant("APY\\DataGridBundle\\Grid\\Grid::REQUEST_QUERY_EXPORT"), "html", null, true);
     echo "]\">\n                <option value=\"-1\"></option>\n                ";
     // line 42
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "exports", array()));
     foreach ($context['_seq'] as $context["key"] => $context["export"]) {
         // line 43
         echo "                    <option value=\"";
         echo twig_escape_filter($this->env, $context["key"], "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["export"], "title", array())), "html", null, true);
         echo "</option>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['key'], $context['export'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 45
     echo "            </select>\n\n            <button class=\"btn btn-default btn-sm\" type=\"submit\" >\n                <i class=\"glyphicon glyphicon-file\"></i>\n                ";
     // line 49
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Export"), "html", null, true);
     echo "\n            </button>\n        ";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
     // line 52
     echo "    </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<li class=\"";
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "method", array())), "html", null, true);
     echo " operation\" id=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "id", array()), "html", null, true);
     echo "\">\n    <div class=\"heading toggler";
     // line 2
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "deprecated", array())) {
         echo " deprecated";
     }
     echo "\" data-href=\"#";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "id", array()), "html", null, true);
     echo "\">\n        <h3>\n            <span class=\"http_method\">\n                <i>";
     // line 5
     echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "method", array())), "html", null, true);
     echo "</i>\n            </span>\n\n            ";
     // line 8
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "deprecated", array())) {
         // line 9
         echo "            <span class=\"deprecated\">\n                <i>DEPRECATED</i>\n            </span>\n            ";
     }
     // line 13
     echo "\n            ";
     // line 14
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "https", array())) {
         // line 15
         echo "                <span class=\"icon lock\" title=\"HTTPS\"></span>\n            ";
     }
     // line 17
     echo "            ";
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "authentication", array())) {
         // line 18
         echo "                <span class=\"icon keys\" title=\"Needs ";
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "authenticationRoles", array())) > 0 ? twig_join_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "authenticationRoles", array()), ", ") : "authentication", "html", null, true);
         echo "\"></span>\n            ";
     }
     // line 20
     echo "\n            <span class=\"path\">\n                ";
     // line 22
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "host", array(), "any", true, true)) {
         // line 23
         echo $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "https", array()) ? "https://" : "http://";
         // line 24
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "host", array()), "html", null, true);
     }
     // line 26
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "uri", array()), "html", null, true);
     echo "\n            </span>\n           ";
     // line 28
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tags", array(), "any", true, true)) {
         // line 29
         echo "                ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tags", array()));
         foreach ($context['_seq'] as $context["tag"] => $context["color_code"]) {
             // line 30
             echo "                    <span class=\"tag\" ";
             if (array_key_exists("color_code", $context) && !twig_test_empty($context["color_code"])) {
                 echo "style=\"background-color:";
                 echo twig_escape_filter($this->env, $context["color_code"], "html", null, true);
                 echo ";\"";
             }
             echo ">";
             echo twig_escape_filter($this->env, $context["tag"], "html", null, true);
             echo "</span>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['tag'], $context['color_code'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 32
         echo "            ";
     }
     // line 33
     echo "        </h3>\n        <ul class=\"options\">\n            ";
     // line 35
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "description", array(), "any", true, true)) {
         // line 36
         echo "                <li>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "description", array()), "html", null, true);
         echo "</li>\n            ";
     }
     // line 38
     echo "        </ul>\n    </div>\n\n    <div class=\"content\" style=\"display: ";
     // line 41
     if (array_key_exists("displayContent", $context) && (isset($context["displayContent"]) ? $context["displayContent"] : null) == true) {
         echo "display";
     } else {
         echo "none";
     }
     echo ";\">\n        <ul class=\"tabs\">\n            ";
     // line 43
     if (isset($context["enableSandbox"]) ? $context["enableSandbox"] : null) {
         // line 44
         echo "                <li class=\"selected\" data-pane=\"content\">Documentation</li>\n                <li data-pane=\"sandbox\">Sandbox</li>\n            ";
     }
     // line 47
     echo "        </ul>\n\n        <div class=\"panes\">\n            <div class=\"pane content selected\">\n            ";
     // line 51
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "documentation", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "documentation", array()))) {
         // line 52
         echo "                <h4>Documentation</h4>\n                <div>";
         // line 53
         echo $this->env->getExtension('Nelmio\\ApiDocBundle\\Twig\\Extension\\MarkdownExtension')->markdown($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "documentation", array()));
         echo "</div>\n            ";
     }
     // line 55
     echo "\n            ";
     // line 56
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "link", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "link", array()))) {
         // line 57
         echo "                <h4>Link</h4>\n                <div><a href=\"";
         // line 58
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "link", array()), "html", null, true);
         echo "\" target=\"_blank\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "link", array()), "html", null, true);
         echo "</a></div>\n            ";
     }
     // line 60
     echo "\n            ";
     // line 61
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "requirements", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "requirements", array()))) {
         // line 62
         echo "                <h4>Requirements</h4>\n                <table class=\"fullwidth\">\n                    <thead>\n                        <tr>\n                            <th>Name</th>\n                            <th>Requirement</th>\n                            <th>Type</th>\n                            <th>Description</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        ";
         // line 73
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "requirements", array()));
         foreach ($context['_seq'] as $context["name"] => $context["infos"]) {
             // line 74
             echo "                            <tr>\n                                <td>";
             // line 75
             echo twig_escape_filter($this->env, $context["name"], "html", null, true);
             echo "</td>\n                                <td>";
             // line 76
             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "requirement", array(), "any", true, true) ? $this->getAttribute($context["infos"], "requirement", array()) : "", "html", null, true);
             echo "</td>\n                                <td>";
             // line 77
             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array(), "any", true, true) ? $this->getAttribute($context["infos"], "dataType", array()) : "", "html", null, true);
             echo "</td>\n                                <td>";
             // line 78
             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array(), "any", true, true) ? $this->getAttribute($context["infos"], "description", array()) : "", "html", null, true);
             echo "</td>\n                            </tr>\n                        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 81
         echo "                    </tbody>\n                </table>\n            ";
     }
     // line 84
     echo "\n            ";
     // line 85
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "filters", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "filters", array()))) {
         // line 86
         echo "                <h4>Filters</h4>\n                <table class=\"fullwidth\">\n                    <thead>\n                        <tr>\n                            <th>Name</th>\n                            <th>Information</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                    ";
         // line 95
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "filters", array()));
         foreach ($context['_seq'] as $context["name"] => $context["infos"]) {
             // line 96
             echo "                        <tr>\n                            <td>";
             // line 97
             echo twig_escape_filter($this->env, $context["name"], "html", null, true);
             echo "</td>\n                            <td>\n                                <table>\n                                ";
             // line 100
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($context["infos"]);
             foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                 // line 101
                 echo "                                    <tr>\n                                        <td>";
                 // line 102
                 echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $context["key"]), "html", null, true);
                 echo "</td>\n                                        <td>";
                 // line 103
                 echo twig_escape_filter($this->env, trim(twig_replace_filter(twig_jsonencode_filter($context["value"], twig_constant("JSON_UNESCAPED_UNICODE")), array("\\\\" => "\\")), "\""), "html", null, true);
                 echo "</td>\n                                    </tr>\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 106
             echo "                                </table>\n                            </td>\n                        </tr>\n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 110
         echo "                    </tbody>\n                </table>\n            ";
     }
     // line 113
     echo "\n            ";
     // line 114
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parameters", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parameters", array()))) {
         // line 115
         echo "                <h4>Parameters</h4>\n                <table class='fullwidth'>\n                    <thead>\n                        <tr>\n                            <th>Parameter</th>\n                            <th>Type</th>\n                            <th>Required?</th>\n                            <th>Format</th>\n                            <th>Description</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        ";
         // line 127
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parameters", array()));
         foreach ($context['_seq'] as $context["name"] => $context["infos"]) {
             // line 128
             echo "                            ";
             if (!$this->getAttribute($context["infos"], "readonly", array())) {
                 // line 129
                 echo "                                <tr>\n                                    <td>";
                 // line 130
                 echo twig_escape_filter($this->env, $context["name"], "html", null, true);
                 echo "</td>\n                                    <td>";
                 // line 131
                 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array(), "any", true, true) ? $this->getAttribute($context["infos"], "dataType", array()) : "", "html", null, true);
                 echo "</td>\n                                    <td>";
                 // line 132
                 echo $this->getAttribute($context["infos"], "required", array()) ? "true" : "false";
                 echo "</td>\n                                    <td class=\"format\">";
                 // line 133
                 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "format", array()), "html", null, true);
                 echo "</td>\n                                    <td>";
                 // line 134
                 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array(), "any", true, true) ? $this->env->getExtension('Symfony\\Bridge\\Twig\\Extension\\TranslationExtension')->trans($this->getAttribute($context["infos"], "description", array())) : "", "html", null, true);
                 echo "</td>\n                                </tr>\n                            ";
             }
             // line 137
             echo "                        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 138
         echo "                    </tbody>\n                </table>\n            ";
     }
     // line 141
     echo "\n\n            ";
     // line 143
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "headers", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "headers", array()))) {
         // line 144
         echo "                <h4>Headers</h4>\n                <table class=\"fullwidth\">\n                    <thead>\n                    <tr>\n                        <th>Name</th>\n                        <th>Required?</th>\n                        <th>Description</th>\n                    </tr>\n                    </thead>\n                    <tbody>\n                    ";
         // line 154
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "headers", array()));
         foreach ($context['_seq'] as $context["name"] => $context["infos"]) {
             // line 155
             echo "                        <tr>\n                            <td>";
             // line 156
             echo twig_escape_filter($this->env, $context["name"], "html", null, true);
             echo "</td>\n                            <td>";
             // line 157
             echo $this->getAttribute($context["infos"], "required", array(), "any", true, true) && $this->getAttribute($context["infos"], "required", array()) == "true" ? "true" : "false";
             echo "</td>\n                            <td>";
             // line 158
             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array(), "any", true, true) ? $this->env->getExtension('Symfony\\Bridge\\Twig\\Extension\\TranslationExtension')->trans($this->getAttribute($context["infos"], "description", array())) : "", "html", null, true);
             echo "</td>\n                        </tr>\n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 161
         echo "                    </tbody>\n                </table>\n            ";
     }
     // line 164
     echo "\n            ";
     // line 165
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parsedResponseMap", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parsedResponseMap", array()))) {
         // line 166
         echo "                <h4>Return</h4>\n                <table class='fullwidth'>\n                    <thead>\n                    <tr>\n                        <th>Parameter</th>\n                        <th>Type</th>\n                        <th>Versions</th>\n                        <th>Description</th>\n                    </tr>\n                    </thead>\n                ";
         // line 176
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parsedResponseMap", array()));
         foreach ($context['_seq'] as $context["status_code"] => $context["response"]) {
             // line 177
             echo "                    <tbody>\n                        <tr>\n                            <td>\n                                <h4>\n                                    ";
             // line 181
             echo twig_escape_filter($this->env, $context["status_code"], "html", null, true);
             echo "\n                                    ";
             // line 182
             if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "statusCodes", array(), "any", false, true), $context["status_code"], array(), "array", true, true)) {
                 // line 183
                 echo "                                        - ";
                 echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "statusCodes", array()), $context["status_code"], array(), "array"), ", "), "html", null, true);
                 echo "\n                                    ";
             }
             // line 185
             echo "                                </h4>\n                            </td>\n                        </tr>\n                    ";
             // line 188
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["response"], "model", array()));
             foreach ($context['_seq'] as $context["name"] => $context["infos"]) {
                 // line 189
                 echo "                        <tr>\n                            <td>";
                 // line 190
                 echo twig_escape_filter($this->env, $context["name"], "html", null, true);
                 echo "</td>\n                            <td>";
                 // line 191
                 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array()), "html", null, true);
                 echo "</td>\n                            <td>";
                 // line 192
                 $this->loadTemplate("NelmioApiDocBundle:Components:version.html.twig", "NelmioApiDocBundle::method.html.twig", 192)->display(array("sinceVersion" => $this->getAttribute($context["infos"], "sinceVersion", array()), "untilVersion" => $this->getAttribute($context["infos"], "untilVersion", array())));
                 echo "</td>\n                            <td>";
                 // line 193
                 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true);
                 echo "</td>\n                        </tr>\n                    ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 196
             echo "                    </tbody>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['status_code'], $context['response'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 198
         echo "                </table>\n            ";
     }
     // line 200
     echo "\n            ";
     // line 201
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "statusCodes", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "statusCodes", array()))) {
         // line 202
         echo "                <h4>Status Codes</h4>\n                <table class=\"fullwidth\">\n                    <thead>\n                    <tr>\n                        <th>Status Code</th>\n                        <th>Description</th>\n                    </tr>\n                    </thead>\n                    <tbody>\n                    ";
         // line 211
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "statusCodes", array()));
         foreach ($context['_seq'] as $context["status_code"] => $context["descriptions"]) {
             // line 212
             echo "                        <tr>\n                            <td><a href=\"http://en.wikipedia.org/wiki/HTTP_";
             // line 213
             echo twig_escape_filter($this->env, $context["status_code"], "html", null, true);
             echo "\" target=\"_blank\">";
             echo twig_escape_filter($this->env, $context["status_code"], "html", null, true);
             echo "</a></td>\n                            <td>\n                                <ul>\n                                    ";
             // line 216
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($context["descriptions"]);
             foreach ($context['_seq'] as $context["_key"] => $context["description"]) {
                 // line 217
                 echo "                                        <li>";
                 echo twig_escape_filter($this->env, $context["description"], "html", null, true);
                 echo "</li>\n                                    ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['description'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 219
             echo "                                </ul>\n                            </td>\n                        </tr>\n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['status_code'], $context['descriptions'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 223
         echo "                    </tbody>\n                </table>\n            ";
     }
     // line 226
     echo "\n            ";
     // line 227
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "cache", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "cache", array()))) {
         // line 228
         echo "                <h4>Cache</h4>\n                <div>";
         // line 229
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "cache", array()), "html", null, true);
         echo "s</div>\n            ";
     }
     // line 231
     echo "\n            </div>\n\n            ";
     // line 234
     if (isset($context["enableSandbox"]) ? $context["enableSandbox"] : null) {
         // line 235
         echo "                <div class=\"pane sandbox\">\n                    ";
         // line 236
         if (!(null === $this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array())) && $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "https", array()) && $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array()), "secure", array()) != $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "https", array())) {
             // line 237
             echo "                    Please reload the documentation using the scheme ";
             if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "https", array())) {
                 echo "HTTPS";
             } else {
                 echo "HTTP";
             }
             echo " if you want to use the sandbox.\n                    ";
         } else {
             // line 239
             echo "                        <form method=\"\" action=\"";
             if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "host", array(), "any", true, true)) {
                 echo $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "https", array()) ? "https://" : "http://";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "host", array()), "html", null, true);
             }
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "uri", array()), "html", null, true);
             echo "\">\n                            <fieldset class=\"parameters\">\n                                <legend>Input</legend>\n                                ";
             // line 242
             if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "requirements", array(), "any", true, true)) {
                 // line 243
                 echo "                                    <h4>Requirements</h4>\n                                    ";
                 // line 244
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "requirements", array()));
                 foreach ($context['_seq'] as $context["name"] => $context["infos"]) {
                     // line 245
                     echo "                                        <p class=\"tuple\">\n                                            <input type=\"text\" class=\"key\" value=\"";
                     // line 246
                     echo twig_escape_filter($this->env, $context["name"], "html", null, true);
                     echo "\" placeholder=\"Key\" />\n                                            <span>=</span>\n                                            <input type=\"text\" class=\"value\" placeholder=\"";
                     // line 248
                     if ($this->getAttribute($context["infos"], "description", array(), "any", true, true)) {
                         echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true);
                     } else {
                         echo "Value";
                     }
                     echo "\" ";
                     if ($this->getAttribute($context["infos"], "default", array(), "any", true, true)) {
                         echo " value=\"";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "default", array()), "html", null, true);
                         echo "\" ";
                     }
                     echo "/> <span class=\"remove\">-</span>\n                                        </p>\n                                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 251
                 echo "                                ";
             }
             // line 252
             echo "                                ";
             if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "filters", array(), "any", true, true)) {
                 // line 253
                 echo "                                    <h4>Filters</h4>\n                                    ";
                 // line 254
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "filters", array()));
                 foreach ($context['_seq'] as $context["name"] => $context["infos"]) {
                     // line 255
                     echo "                                        <p class=\"tuple\">\n                                            <input type=\"text\" class=\"key\" value=\"";
                     // line 256
                     echo twig_escape_filter($this->env, $context["name"], "html", null, true);
                     echo "\" placeholder=\"Key\" />\n                                            <span>=</span>\n                                            <input type=\"text\" class=\"value\" placeholder=\"";
                     // line 258
                     if ($this->getAttribute($context["infos"], "description", array(), "any", true, true)) {
                         echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true);
                     } else {
                         echo "Value";
                     }
                     echo "\" ";
                     if ($this->getAttribute($context["infos"], "default", array(), "any", true, true)) {
                         echo " value=\"";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "default", array()), "html", null, true);
                         echo "\" ";
                     }
                     echo "/> <span class=\"remove\">-</span>\n                                        </p>\n                                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 261
                 echo "                                ";
             }
             // line 262
             echo "                                ";
             if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parameters", array(), "any", true, true)) {
                 // line 263
                 echo "                                    <h4>Parameters</h4>\n                                    ";
                 // line 264
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parameters", array()));
                 foreach ($context['_seq'] as $context["name"] => $context["infos"]) {
                     // line 265
                     echo "                                    ";
                     if (!$this->getAttribute($context["infos"], "readonly", array())) {
                         // line 266
                         echo "                                        <p class=\"tuple\" data-dataType=\"";
                         if ($this->getAttribute($context["infos"], "dataType", array())) {
                             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array()), "html", null, true);
                         }
                         echo "\" data-format=\"";
                         if ($this->getAttribute($context["infos"], "format", array())) {
                             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "format", array()), "html", null, true);
                             echo " ";
                         }
                         echo "\" data-description=\"";
                         if ($this->getAttribute($context["infos"], "description", array())) {
                             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true);
                         }
                         echo "\">\n                                            <input type=\"text\" class=\"key\" value=\"";
                         // line 267
                         echo twig_escape_filter($this->env, $context["name"], "html", null, true);
                         echo "\" placeholder=\"Key\" />\n                                            <span>=</span>\n                                            <select class=\"tuple_type\">\n                                                <option value=\"\">Type</option>\n                                                <option value=\"string\">String</option>\n                                                <option value=\"boolean\">Boolean</option>\n                                                <option value=\"file\">File</option>\n                                                <option value=\"textarea\">Textarea</option>\n                                            </select>\n                                            <input type=\"text\" class=\"value\" placeholder=\"";
                         // line 276
                         if ($this->getAttribute($context["infos"], "dataType", array())) {
                             echo "[";
                             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array()), "html", null, true);
                             echo "] ";
                         }
                         if ($this->getAttribute($context["infos"], "format", array())) {
                             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "format", array()), "html", null, true);
                         }
                         if ($this->getAttribute($context["infos"], "description", array())) {
                             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true);
                         } else {
                             echo "Value";
                         }
                         echo "\" ";
                         if ($this->getAttribute($context["infos"], "default", array(), "any", true, true)) {
                             echo " value=\"";
                             echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "default", array()), "html", null, true);
                             echo "\" ";
                         }
                         echo "/> <span class=\"remove\">-</span>\n                                        </p>\n                                    ";
                     }
                     // line 279
                     echo "                                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 280
                 echo "                                    <button type=\"button\" class=\"add_parameter\">New parameter</button>\n                                ";
             }
             // line 282
             echo "\n                            </fieldset>\n\n                            <fieldset class=\"headers\">\n                                ";
             // line 286
             $context["methods"] = twig_split_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "method", array())), "|");
             // line 287
             echo "                                ";
             if (twig_length_filter($this->env, isset($context["methods"]) ? $context["methods"] : null) > 1) {
                 // line 288
                 echo "                                    <legend>Method</legend>\n                                    <select name=\"header_method\">\n                                    ";
                 // line 290
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable(isset($context["methods"]) ? $context["methods"] : null);
                 foreach ($context['_seq'] as $context["_key"] => $context["method"]) {
                     // line 291
                     echo "                                        <option value=\"";
                     echo twig_escape_filter($this->env, $context["method"], "html", null, true);
                     echo "\">";
                     echo twig_escape_filter($this->env, $context["method"], "html", null, true);
                     echo "</option>\n                                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['method'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 293
                 echo "                                    </select>\n                                ";
             } else {
                 // line 295
                 echo "                                    <input type=\"hidden\" name=\"header_method\" value=\"";
                 echo twig_escape_filter($this->env, twig_join_filter(isset($context["methods"]) ? $context["methods"] : null), "html", null, true);
                 echo "\" />\n                                ";
             }
             // line 297
             echo "\n                                <legend>Headers</legend>\n\n                                ";
             // line 300
             if (isset($context["acceptType"]) ? $context["acceptType"] : null) {
                 // line 301
                 echo "                                    <p class=\"tuple\">\n                                        <input type=\"text\" class=\"key\" value=\"Accept\" />\n                                        <span>=</span>\n                                        <input type=\"text\" class=\"value\" value=\"";
                 // line 304
                 echo twig_escape_filter($this->env, isset($context["acceptType"]) ? $context["acceptType"] : null, "html", null, true);
                 echo "\" /> <span class=\"remove\">-</span>\n                                    </p>\n                                ";
             }
             // line 307
             echo "\n                                ";
             // line 308
             if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "headers", array(), "any", true, true)) {
                 // line 309
                 echo "\n                                    ";
                 // line 310
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "headers", array()));
                 foreach ($context['_seq'] as $context["name"] => $context["infos"]) {
                     // line 311
                     echo "                                        <p class=\"tuple\">\n                                            <input type=\"text\" class=\"key\" value=\"";
                     // line 312
                     echo twig_escape_filter($this->env, $context["name"], "html", null, true);
                     echo "\" />\n                                            <span>=</span>\n                                            <input type=\"text\" class=\"value\" value=\"";
                     // line 314
                     if ($this->getAttribute($context["infos"], "default", array(), "any", true, true)) {
                         echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "default", array()), "html", null, true);
                     }
                     echo "\" placeholder=\"Value\" /> <span class=\"remove\">-</span>\n                                        </p>\n                                    ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 317
                 echo "\n                                ";
             }
             // line 319
             echo "\n                                <p class=\"tuple\">\n                                    <input type=\"text\" class=\"key\" placeholder=\"Key\" />\n                                    <span>=</span>\n                                    <input type=\"text\" class=\"value\" placeholder=\"Value\" /> <span class=\"remove\">-</span>\n                                </p>\n\n                                <button type=\"button\" class=\"add_header\">New header</button>\n                            </fieldset>\n\n                            <fieldset class=\"request-content\">\n                                <legend>Content</legend>\n\n                                <textarea class=\"content\" placeholder=\"Content set here will override the parameters that do not match the url\"></textarea>\n\n                                <p class=\"tuple\">\n                                    <input type=\"text\" class=\"key content-type\" value=\"Content-Type\" disabled=\"disabled\" />\n                                    <span>=</span>\n                                    <input type=\"text\" class=\"value\" placeholder=\"Value\" />\n                                    <button  type=\"button\" class=\"set-content-type\">Set header</button> <small>Replaces header if set</small>\n                                </p>\n                            </fieldset>\n\n                            <div class=\"buttons\">\n                                <input type=\"submit\" value=\"Try!\" />\n                            </div>\n                        </form>\n\n                        <script type=\"text/x-tmpl\" class=\"parameters_tuple_template\">\n                        <p class=\"tuple\">\n                            <input type=\"text\" class=\"key\" placeholder=\"Key\" />\n                            <span>=</span>\n                            <select class=\"tuple_type\">\n                                                <option value=\"\">Type</option>\n                                                <option value=\"string\">String</option>\n                                                <option value=\"boolean\">Boolean</option>\n                                                <option value=\"file\">File</option>\n                                                <option value=\"textarea\">Textarea</option>\n                                            </select>\n                            <input type=\"text\" class=\"value\" placeholder=\"Value\" /> <span class=\"remove\">-</span>\n                        </p>\n                        </script>\n\n                        <script type=\"text/x-tmpl\" class=\"headers_tuple_template\">\n                        <p class=\"tuple\">\n                            <input type=\"text\" class=\"key\" placeholder=\"Key\" />\n                            <span>=</span>\n                            <input type=\"text\" class=\"value\" placeholder=\"Value\" /> <span class=\"remove\">-</span>\n                        </p>\n                        </script>\n\n\n                        <div class=\"result\">\n                            <h4>Request URL</h4>\n                            <pre class=\"url\"></pre>\n\n                            <h4 class=\"request-body-header\">Request body</h4>\n                            <pre class=\"request-body\"></pre>\n\n                            <h4>Response Headers&nbsp;<small>[<a href=\"\" class=\"to-expand\">Expand</a>]</small>&nbsp;<small class=\"profiler\">[<a href=\"\" class=\"profiler-link\" target=\"_blank\">Profiler</a>]</small></h4>\n                            <pre class=\"headers to-expand\"></pre>\n\n                            <h4>Response Body&nbsp;<small>[<a href=\"\" class=\"to-raw\">Raw</a>]</small></h4>\n                            <pre class=\"response prettyprint\"></pre>\n\n                            <h4>Curl Command Line</h4>\n                            <pre class=\"curl-command\"></pre>\n                        </div>\n                    ";
         }
         // line 388
         echo "                </div>\n            ";
     }
     // line 390
     echo "        </div>\n    </div>\n</li>\n";
 }
 public function block_panel($context, array $blocks = array())
 {
     $__internal_774650a4624ab0c170eb631f3ac627a0cd4e3e4fd69ba91d930485679cf9e64b = $this->env->getExtension("native_profiler");
     $__internal_774650a4624ab0c170eb631f3ac627a0cd4e3e4fd69ba91d930485679cf9e64b->enter($__internal_774650a4624ab0c170eb631f3ac627a0cd4e3e4fd69ba91d930485679cf9e64b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 48
     echo "    <h2>Log Messages</h2>\n\n    ";
     // line 50
     if (twig_test_empty($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array()))) {
         // line 51
         echo "        <div class=\"empty\">\n            <p>No log messages available.</p>\n        </div>\n    ";
     } else {
         // line 55
         echo "        ";
         // line 56
         echo "        ";
         list($context["deprecation_logs"], $context["debug_logs"], $context["info_and_error_logs"], $context["silenced_logs"]) = array(array(), array(), array(), array());
         // line 57
         echo "        ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             // line 58
             echo "            ";
             if ($this->getAttribute($this->getAttribute($context["log"], "context", array(), "any", false, true), "level", array(), "any", true, true) && $this->getAttribute($this->getAttribute($context["log"], "context", array(), "any", false, true), "type", array(), "any", true, true) && twig_in_filter($this->getAttribute($this->getAttribute($context["log"], "context", array()), "type", array()), array(0 => twig_constant("E_DEPRECATED"), 1 => twig_constant("E_USER_DEPRECATED")))) {
                 // line 59
                 echo "                ";
                 $context["deprecation_logs"] = twig_array_merge(isset($context["deprecation_logs"]) ? $context["deprecation_logs"] : $this->getContext($context, "deprecation_logs"), array(0 => $context["log"]));
                 // line 60
                 echo "            ";
             } elseif ($this->getAttribute($this->getAttribute($context["log"], "context", array(), "any", false, true), "scream", array(), "any", true, true) && $this->getAttribute($this->getAttribute($context["log"], "context", array()), "scream", array()) == true) {
                 // line 61
                 echo "                ";
                 $context["silenced_logs"] = twig_array_merge(isset($context["silenced_logs"]) ? $context["silenced_logs"] : $this->getContext($context, "silenced_logs"), array(0 => $context["log"]));
                 // line 62
                 echo "            ";
             } elseif ($this->getAttribute($context["log"], "priorityName", array()) == "DEBUG") {
                 // line 63
                 echo "                ";
                 $context["debug_logs"] = twig_array_merge(isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs"), array(0 => $context["log"]));
                 // line 64
                 echo "            ";
             } else {
                 // line 65
                 echo "                ";
                 $context["info_and_error_logs"] = twig_array_merge(isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs"), array(0 => $context["log"]));
                 // line 66
                 echo "            ";
             }
             // line 67
             echo "        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 68
         echo "\n        <div class=\"sf-tabs\">\n            <div class=\"tab\">\n                <h3 class=\"tab-title\">Info. &amp; Errors <span class=\"badge\">";
         // line 71
         echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs")), "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 74
         if (twig_test_empty(isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs"))) {
             // line 75
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages of this level.</p>\n                        </div>\n                    ";
         } else {
             // line 79
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs"), true);
             echo "\n                    ";
         }
         // line 81
         echo "                </div>\n            </div>\n\n            <div class=\"tab\">\n                ";
         // line 87
         echo "                <h3 class=\"tab-title\">Deprecations <span class=\"badge\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "countdeprecations", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "countdeprecations", array()), 0) : 0, "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 90
         if (twig_test_empty(isset($context["deprecation_logs"]) ? $context["deprecation_logs"] : $this->getContext($context, "deprecation_logs"))) {
             // line 91
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages about deprecated features.</p>\n                        </div>\n                    ";
         } else {
             // line 95
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["deprecation_logs"]) ? $context["deprecation_logs"] : $this->getContext($context, "deprecation_logs"), false, true);
             echo "\n                    ";
         }
         // line 97
         echo "                </div>\n            </div>\n\n            <div class=\"tab\">\n                <h3 class=\"tab-title\">Debug <span class=\"badge\">";
         // line 101
         echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs")), "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 104
         if (twig_test_empty(isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs"))) {
             // line 105
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages of this level.</p>\n                        </div>\n                    ";
         } else {
             // line 109
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs"));
             echo "\n                    ";
         }
         // line 111
         echo "                </div>\n            </div>\n\n            <div class=\"tab\">\n                <h3 class=\"tab-title\">Silenced Errors <span class=\"badge\">";
         // line 115
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "countscreams", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "countscreams", array()), 0) : 0, "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 118
         if (twig_test_empty(isset($context["silenced_logs"]) ? $context["silenced_logs"] : $this->getContext($context, "silenced_logs"))) {
             // line 119
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages of this level.</p>\n                        </div>\n                    ";
         } else {
             // line 123
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["silenced_logs"]) ? $context["silenced_logs"] : $this->getContext($context, "silenced_logs"));
             echo "\n                    ";
         }
         // line 125
         echo "                </div>\n            </div>\n\n        </div>\n    ";
     }
     $__internal_774650a4624ab0c170eb631f3ac627a0cd4e3e4fd69ba91d930485679cf9e64b->leave($__internal_774650a4624ab0c170eb631f3ac627a0cd4e3e4fd69ba91d930485679cf9e64b_prof);
 }
 public function getstate($__translation__ = null)
 {
     $context = $this->env->mergeGlobals(array("translation" => $__translation__, "varargs" => func_num_args() > 1 ? array_slice(func_get_args(), 1) : array()));
     $blocks = array();
     ob_start();
     try {
         $__internal_36857765686c59bf01d76ecab9c8f5e0824ac47e5a4f580d31756a0842667983 = $this->env->getExtension("native_profiler");
         $__internal_36857765686c59bf01d76ecab9c8f5e0824ac47e5a4f580d31756a0842667983->enter($__internal_36857765686c59bf01d76ecab9c8f5e0824ac47e5a4f580d31756a0842667983_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "state"));
         // line 102
         echo "    ";
         if ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 103
             echo "        same as fallback\n    ";
         } elseif ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 105
             echo "        missing\n    ";
         }
         $__internal_36857765686c59bf01d76ecab9c8f5e0824ac47e5a4f580d31756a0842667983->leave($__internal_36857765686c59bf01d76ecab9c8f5e0824ac47e5a4f580d31756a0842667983_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_panelContent($context, array $blocks = array())
 {
     $__internal_bc223213433a4f32a4ee2d482e2f8714d7f31b2d08d6ab3a652ad99071959a95 = $this->env->getExtension("native_profiler");
     $__internal_bc223213433a4f32a4ee2d482e2f8714d7f31b2d08d6ab3a652ad99071959a95->enter($__internal_bc223213433a4f32a4ee2d482e2f8714d7f31b2d08d6ab3a652ad99071959a95_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panelContent"));
     // line 64
     echo "    <h2>Translation Metrics</h2>\n\n    <div class=\"metrics\">\n        <div class=\"metric\">\n            <span class=\"value\">";
     // line 68
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countdefines", array()), "html", null, true);
     echo "</span>\n            <span class=\"label\">Defined messages</span>\n        </div>\n\n        <div class=\"metric\">\n            <span class=\"value\">";
     // line 73
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countFallbacks", array()), "html", null, true);
     echo "</span>\n            <span class=\"label\">Fallback messages</span>\n        </div>\n\n        <div class=\"metric\">\n            <span class=\"value\">";
     // line 78
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countMissings", array()), "html", null, true);
     echo "</span>\n            <span class=\"label\">Missing messages</span>\n        </div>\n    </div>\n\n    <h2>Translation Messages</h2>\n\n    ";
     // line 86
     echo "    ";
     list($context["messages_defined"], $context["messages_missing"], $context["messages_fallback"]) = array(array(), array(), array());
     // line 87
     echo "    ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "messages", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
         // line 88
         echo "        ";
         if ($this->getAttribute($context["message"], "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_DEFINED")) {
             // line 89
             echo "            ";
             $context["messages_defined"] = twig_array_merge(isset($context["messages_defined"]) ? $context["messages_defined"] : $this->getContext($context, "messages_defined"), array(0 => $context["message"]));
             // line 90
             echo "        ";
         } elseif ($this->getAttribute($context["message"], "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 91
             echo "            ";
             $context["messages_missing"] = twig_array_merge(isset($context["messages_missing"]) ? $context["messages_missing"] : $this->getContext($context, "messages_missing"), array(0 => $context["message"]));
             // line 92
             echo "        ";
         } elseif ($this->getAttribute($context["message"], "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 93
             echo "            ";
             $context["messages_fallback"] = twig_array_merge(isset($context["messages_fallback"]) ? $context["messages_fallback"] : $this->getContext($context, "messages_fallback"), array(0 => $context["message"]));
             // line 94
             echo "        ";
         }
         // line 95
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 96
     echo "\n    <div class=\"sf-tabs\">\n        <div class=\"tab\">\n            <h3 class=\"tab-title\">Defined <span class=\"badge\">";
     // line 99
     echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["messages_defined"]) ? $context["messages_defined"] : $this->getContext($context, "messages_defined")), "html", null, true);
     echo "</span></h3>\n\n            <div class=\"tab-content\">\n                <p class=\"help\">\n                    These messages are correctly translated into the given locale.\n                </p>\n\n                ";
     // line 106
     if (twig_test_empty(isset($context["messages_defined"]) ? $context["messages_defined"] : $this->getContext($context, "messages_defined"))) {
         // line 107
         echo "                    <div class=\"empty\">\n                        <p>None of the used translation messages are defined for the given locale.</p>\n                    </div>\n                ";
     } else {
         // line 111
         echo "                    ";
         echo $context["helper"]->getrender_table(isset($context["messages_defined"]) ? $context["messages_defined"] : $this->getContext($context, "messages_defined"));
         echo "\n                ";
     }
     // line 113
     echo "            </div>\n        </div>\n\n        <div class=\"tab\">\n            <h3 class=\"tab-title\">Fallback <span class=\"badge\">";
     // line 117
     echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["messages_fallback"]) ? $context["messages_fallback"] : $this->getContext($context, "messages_fallback")), "html", null, true);
     echo "</span></h3>\n\n            <div class=\"tab-content\">\n                <p class=\"help\">\n                    These messages are not available for the given locale\n                    but Symfony found them in the fallback locale catalog.\n                </p>\n\n                ";
     // line 125
     if (twig_test_empty(isset($context["messages_fallback"]) ? $context["messages_fallback"] : $this->getContext($context, "messages_fallback"))) {
         // line 126
         echo "                    <div class=\"empty\">\n                        <p>No fallback translation messages were used.</p>\n                    </div>\n                ";
     } else {
         // line 130
         echo "                    ";
         echo $context["helper"]->getrender_table(isset($context["messages_fallback"]) ? $context["messages_fallback"] : $this->getContext($context, "messages_fallback"));
         echo "\n                ";
     }
     // line 132
     echo "            </div>\n        </div>\n\n        <div class=\"tab\">\n            <h3 class=\"tab-title\">Missing <span class=\"badge\">";
     // line 136
     echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["messages_missing"]) ? $context["messages_missing"] : $this->getContext($context, "messages_missing")), "html", null, true);
     echo "</span></h3>\n\n            <div class=\"tab-content\">\n                <p class=\"help\">\n                    These messages are not available for the given locale and cannot\n                    be found in the fallback locales. Add them to the translation\n                    catalogue to avoid Symfony outputting untranslated contents.\n                </p>\n\n                ";
     // line 145
     if (twig_test_empty(isset($context["messages_missing"]) ? $context["messages_missing"] : $this->getContext($context, "messages_missing"))) {
         // line 146
         echo "                    <div class=\"empty\">\n                        <p>There are no messages of this category.</p>\n                    </div>\n                ";
     } else {
         // line 150
         echo "                    ";
         echo $context["helper"]->getrender_table(isset($context["messages_missing"]) ? $context["messages_missing"] : $this->getContext($context, "messages_missing"));
         echo "\n                ";
     }
     // line 152
     echo "            </div>\n        </div>\n    </div>\n";
     $__internal_bc223213433a4f32a4ee2d482e2f8714d7f31b2d08d6ab3a652ad99071959a95->leave($__internal_bc223213433a4f32a4ee2d482e2f8714d7f31b2d08d6ab3a652ad99071959a95_prof);
 }
 public function getstate($__translation__ = null)
 {
     $context = $this->env->mergeGlobals(array("translation" => $__translation__, "varargs" => func_num_args() > 1 ? array_slice(func_get_args(), 1) : array()));
     $blocks = array();
     ob_start();
     try {
         $__internal_2c9112440d5217d811749ad45bffa8a4669e121e16908628e759561e6353616e = $this->env->getExtension("native_profiler");
         $__internal_2c9112440d5217d811749ad45bffa8a4669e121e16908628e759561e6353616e->enter($__internal_2c9112440d5217d811749ad45bffa8a4669e121e16908628e759561e6353616e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "state"));
         // line 102
         echo "    ";
         if ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 103
             echo "        same as fallback\n    ";
         } elseif ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 105
             echo "        missing\n    ";
         }
         $__internal_2c9112440d5217d811749ad45bffa8a4669e121e16908628e759561e6353616e->leave($__internal_2c9112440d5217d811749ad45bffa8a4669e121e16908628e759561e6353616e_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }