protected function doDisplay(array $context, array $blocks = array())
 {
     // line 12
     if (isset($context["breadcrumb"]) ? $context["breadcrumb"] : null) {
         // line 13
         echo "  <nav class=\"breadcrumb\" role=\"navigation\" aria-labelledby=\"system-breadcrumb\">\n    <h2 id=\"system-breadcrumb\" class=\"visually-hidden\">";
         // line 14
         echo twig_render_var(t("Breadcrumb"));
         echo "</h2>\n    <ol>\n    ";
         // line 16
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["breadcrumb"]) ? $context["breadcrumb"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
             // line 17
             echo "      <li>";
             echo twig_drupal_escape_filter($this->env, isset($context["item"]) ? $context["item"] : null, "html", null, true);
             echo "</li>\n    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 19
         echo "    </ol>\n  </nav>\n";
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 14
     if (isset($context["items"]) ? $context["items"] : null) {
         // line 15
         echo "  <h2 class=\"visually-hidden\">";
         echo twig_render_var(t("Pages"));
         echo "</h2>\n  ";
         // line 16
         echo twig_drupal_escape_filter($this->env, isset($context["items"]) ? $context["items"] : null, "html", null, true);
         echo "\n";
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 29
     echo "<!DOCTYPE html>\n<html";
     // line 30
     echo twig_drupal_escape_filter($this->env, isset($context["html_attributes"]) ? $context["html_attributes"] : null, "html", null, true);
     echo ">\n  <head>\n    ";
     // line 32
     echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "head"), "html", null, true);
     echo "\n    <title>";
     // line 33
     echo twig_drupal_escape_filter($this->env, isset($context["head_title"]) ? $context["head_title"] : null, "html", null, true);
     echo "</title>\n    ";
     // line 34
     echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "styles"), "html", null, true);
     echo "\n    ";
     // line 35
     echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "scripts"), "html", null, true);
     echo "\n  </head>\n  <body";
     // line 37
     echo twig_drupal_escape_filter($this->env, isset($context["attributes"]) ? $context["attributes"] : null, "html", null, true);
     echo ">\n    <a href=\"#main-content\" class=\"visually-hidden focusable skip-link\">\n      ";
     // line 39
     echo twig_render_var(t("Skip to main content"));
     echo "\n    </a>\n    ";
     // line 41
     echo twig_drupal_escape_filter($this->env, isset($context["page_top"]) ? $context["page_top"] : null, "html", null, true);
     echo "\n    ";
     // line 42
     echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content"), "html", null, true);
     echo "\n    ";
     // line 43
     echo twig_drupal_escape_filter($this->env, isset($context["page_bottom"]) ? $context["page_bottom"] : null, "html", null, true);
     echo "\n    ";
     // line 44
     echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "scripts", array(0 => "footer"), "method"), "html", null, true);
     echo "\n  </body>\n</html>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 80
     echo "<div id=\"page-wrapper\"><div id=\"page\">\n\n  <header id=\"header\" class=\"";
     // line 82
     echo twig_render_var(isset($context["secondary_menu"]) ? $context["secondary_menu"] : null ? "with-secondary-menu" : "without-secondary-menu");
     echo "\" role=\"banner\" aria-label=\"";
     echo twig_render_var(t("Site header"));
     echo "\"><div class=\"section clearfix\">\n   ";
     // line 83
     if (isset($context["secondary_menu"]) ? $context["secondary_menu"] : null) {
         // line 84
         echo "      <nav id=\"secondary-menu\" class=\"navigation\" role=\"navigation\"  aria-labelledby=\"links__system_secondary_menu\">\n        ";
         // line 85
         echo twig_drupal_escape_filter($this->env, isset($context["secondary_menu"]) ? $context["secondary_menu"] : null, "html", null, true);
         echo "\n      </nav> <!-- /#secondary-menu -->\n    ";
     }
     // line 88
     echo "\n    ";
     // line 89
     if (isset($context["logo"]) ? $context["logo"] : null) {
         // line 90
         echo "      <a href=\"";
         echo twig_drupal_escape_filter($this->env, isset($context["front_page"]) ? $context["front_page"] : null, "html", null, true);
         echo "\" title=\"";
         echo twig_render_var(t("Home"));
         echo "\" rel=\"home\" id=\"logo\">\n        <img src=\"";
         // line 91
         echo twig_drupal_escape_filter($this->env, isset($context["logo"]) ? $context["logo"] : null, "html", null, true);
         echo "\" alt=\"";
         echo twig_render_var(t("Home"));
         echo "\" />\n      </a>\n    ";
     }
     // line 94
     echo "\n    ";
     // line 95
     if ((isset($context["site_name"]) ? $context["site_name"] : null) || (isset($context["site_slogan"]) ? $context["site_slogan"] : null)) {
         // line 96
         echo "      <div id=\"name-and-slogan\"";
         if ((isset($context["hide_site_name"]) ? $context["hide_site_name"] : null) && (isset($context["hide_site_slogan"]) ? $context["hide_site_slogan"] : null)) {
             echo " class=\"visually-hidden\"";
         }
         echo ">\n        ";
         // line 97
         if (isset($context["site_name"]) ? $context["site_name"] : null) {
             // line 98
             echo "          ";
             if (isset($context["title"]) ? $context["title"] : null) {
                 // line 99
                 echo "            <div id=\"site-name\"";
                 if (isset($context["hide_site_name"]) ? $context["hide_site_name"] : null) {
                     echo " class=\"visually-hidden\"";
                 }
                 echo ">\n              <strong>\n                <a href=\"";
                 // line 101
                 echo twig_drupal_escape_filter($this->env, isset($context["front_page"]) ? $context["front_page"] : null, "html", null, true);
                 echo "\" title=\"";
                 echo twig_render_var(t("Home"));
                 echo "\" rel=\"home\"><span>";
                 echo twig_drupal_escape_filter($this->env, isset($context["site_name"]) ? $context["site_name"] : null, "html", null, true);
                 echo "</span></a>\n              </strong>\n            </div>\n          ";
                 // line 105
                 echo "          ";
             } else {
                 // line 106
                 echo "            <h1 id=\"site-name\"";
                 if (isset($context["hide_site_name"]) ? $context["hide_site_name"] : null) {
                     echo " class=\"visually-hidden\" ";
                 }
                 echo ">\n              <a href=\"";
                 // line 107
                 echo twig_drupal_escape_filter($this->env, isset($context["front_page"]) ? $context["front_page"] : null, "html", null, true);
                 echo "\" title=\"";
                 echo twig_render_var(t("Home"));
                 echo "\" rel=\"home\"><span>";
                 echo twig_drupal_escape_filter($this->env, isset($context["site_name"]) ? $context["site_name"] : null, "html", null, true);
                 echo "</span></a>\n            </h1>\n          ";
             }
             // line 110
             echo "        ";
         }
         // line 111
         echo "\n        ";
         // line 112
         if (isset($context["site_slogan"]) ? $context["site_slogan"] : null) {
             // line 113
             echo "          <div id=\"site-slogan\"";
             if (isset($context["hide_site_slogan"]) ? $context["hide_site_slogan"] : null) {
                 echo " class=\"visually-hidden\"";
             }
             echo ">\n            ";
             // line 114
             echo twig_drupal_escape_filter($this->env, isset($context["site_slogan"]) ? $context["site_slogan"] : null, "html", null, true);
             echo "\n          </div>\n        ";
         }
         // line 117
         echo "      </div><!-- /#name-and-slogan -->\n    ";
     }
     // line 119
     echo "\n    ";
     // line 120
     echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header"), "html", null, true);
     echo "\n\n    ";
     // line 122
     if (isset($context["main_menu"]) ? $context["main_menu"] : null) {
         // line 123
         echo "      <nav id =\"main-menu\" class=\"navigation\" role=\"navigation\" aria-labelledby=\"links__system_main_menu\">\n        <div id=\"nav\"></div>\n        <div id=\"no-nav\"></div>\n        <a class=\"main-menu-reveal\" href=\"#nav\">";
         // line 126
         echo twig_render_var(t("Menu"));
         echo "</a>\n        <a class=\"main-menu-reveal main-menu-reveal--hide\" href=\"#no-nav\">";
         // line 127
         echo twig_render_var(t("Menu"));
         echo "</a>\n        ";
         // line 128
         echo twig_drupal_escape_filter($this->env, isset($context["main_menu"]) ? $context["main_menu"] : null, "html", null, true);
         echo "\n      </nav> <!-- /#main-menu -->\n    ";
     }
     // line 131
     echo "  </div></header> <!-- /.section, /#header-->\n\n  ";
     // line 133
     if (isset($context["messages"]) ? $context["messages"] : null) {
         // line 134
         echo "    <div id=\"messages\"><div class=\"section clearfix\">\n      ";
         // line 135
         echo twig_drupal_escape_filter($this->env, isset($context["messages"]) ? $context["messages"] : null, "html", null, true);
         echo "\n    </div></div> <!-- /.section, /#messages -->\n  ";
     }
     // line 138
     echo "\n  ";
     // line 139
     if ($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "featured")) {
         // line 140
         echo "    <aside id=\"featured\"><div class=\"section clearfix\">\n      ";
         // line 141
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "featured"), "html", null, true);
         echo "\n    </div></aside> <!-- /.section, /#featured -->\n  ";
     }
     // line 144
     echo "\n  <div id=\"main-wrapper\" class=\"clearfix\"><div id=\"main\" class=\"clearfix\">\n    ";
     // line 146
     echo twig_drupal_escape_filter($this->env, isset($context["breadcrumb"]) ? $context["breadcrumb"] : null, "html", null, true);
     echo "\n\n    <main id=\"content\" class=\"column\" role=\"main\"><section class=\"section\">\n      ";
     // line 149
     if ($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "highlighted")) {
         echo "<div id=\"highlighted\">";
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "highlighted"), "html", null, true);
         echo "</div>";
     }
     // line 150
     echo "      <a id=\"main-content\" tabindex=\"-1\"></a>\n      ";
     // line 151
     echo twig_drupal_escape_filter($this->env, isset($context["title_prefix"]) ? $context["title_prefix"] : null, "html", null, true);
     echo "\n        ";
     // line 152
     if (isset($context["title"]) ? $context["title"] : null) {
         // line 153
         echo "          <h1 class=\"title\" id=\"page-title\">\n            ";
         // line 154
         echo twig_drupal_escape_filter($this->env, isset($context["title"]) ? $context["title"] : null, "html", null, true);
         echo "\n          </h1>\n        ";
     }
     // line 157
     echo "      ";
     echo twig_drupal_escape_filter($this->env, isset($context["title_suffix"]) ? $context["title_suffix"] : null, "html", null, true);
     echo "\n        ";
     // line 158
     if (isset($context["tabs"]) ? $context["tabs"] : null) {
         // line 159
         echo "          <nav class=\"tabs\" role=\"navigation\" aria-label=\"";
         echo twig_render_var(t("Tabs"));
         echo "\">\n            ";
         // line 160
         echo twig_drupal_escape_filter($this->env, isset($context["tabs"]) ? $context["tabs"] : null, "html", null, true);
         echo "\n          </nav>\n        ";
     }
     // line 163
     echo "      ";
     echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "help"), "html", null, true);
     echo "\n        ";
     // line 164
     if (isset($context["action_links"]) ? $context["action_links"] : null) {
         // line 165
         echo "          <ul class=\"action-links\">\n            ";
         // line 166
         echo twig_drupal_escape_filter($this->env, isset($context["action_links"]) ? $context["action_links"] : null, "html", null, true);
         echo "\n          </ul>\n        ";
     }
     // line 169
     echo "      ";
     echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content"), "html", null, true);
     echo "\n      ";
     // line 170
     echo twig_drupal_escape_filter($this->env, isset($context["feed_icons"]) ? $context["feed_icons"] : null, "html", null, true);
     echo "\n    </section></main> <!-- /.section, /#content -->\n\n    ";
     // line 173
     if ($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "sidebar_first")) {
         // line 174
         echo "      <div id=\"sidebar-first\" class=\"column sidebar\"><aside class=\"section\">\n        ";
         // line 175
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "sidebar_first"), "html", null, true);
         echo "\n      </aside></div><!-- /.section, /#sidebar-first -->\n    ";
     }
     // line 178
     echo "\n    ";
     // line 179
     if ($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "sidebar_second")) {
         // line 180
         echo "      <div id=\"sidebar-second\" class=\"column sidebar\"><aside class=\"section\">\n        ";
         // line 181
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "sidebar_second"), "html", null, true);
         echo "\n      </aside></div><!-- /.section, /#sidebar-second -->\n    ";
     }
     // line 184
     echo "\n  </div></div><!-- /#main, /#main-wrapper -->\n\n  ";
     // line 187
     if ($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "triptych_first") || $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "triptych_middle") || $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "triptych_last")) {
         // line 188
         echo "    <div id=\"triptych-wrapper\"><aside id=\"triptych\" class=\"clearfix\">\n      ";
         // line 189
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "triptych_first"), "html", null, true);
         echo "\n      ";
         // line 190
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "triptych_middle"), "html", null, true);
         echo "\n      ";
         // line 191
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "triptych_last"), "html", null, true);
         echo "\n    </aside></div><!-- /#triptych, /#triptych-wrapper -->\n  ";
     }
     // line 194
     echo "\n  <div id=\"footer-wrapper\"><footer class=\"section\">\n\n    ";
     // line 197
     if ($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer_firstcolumn") || $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer_secondcolumn") || $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer_thirdcolumn") || $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer_fourthcolumn")) {
         // line 198
         echo "      <div id=\"footer-columns\" class=\"clearfix\">\n        ";
         // line 199
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer_firstcolumn"), "html", null, true);
         echo "\n        ";
         // line 200
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer_secondcolumn"), "html", null, true);
         echo "\n        ";
         // line 201
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer_thirdcolumn"), "html", null, true);
         echo "\n        ";
         // line 202
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer_fourthcolumn"), "html", null, true);
         echo "\n      </div><!-- /#footer-columns -->\n    ";
     }
     // line 205
     echo "\n    ";
     // line 206
     if ($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer")) {
         // line 207
         echo "      <div id=\"footer\" role=\"contentinfo\" class=\"clearfix\">\n        ";
         // line 208
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "footer"), "html", null, true);
         echo "\n      </div> <!-- /#footer -->\n   ";
     }
     // line 211
     echo "\n  </footer></div> <!-- /.section, /#footer-wrapper -->\n\n</div></div> <!-- /#page, /#page-wrapper -->\n";
 }
Ejemplo n.º 5
0
 /**
  * Tests output of integer and double 0 values of twig_render_var().
  *
  * @see https://www.drupal.org/node/2417733
  */
 public function testsRenderZeroValue()
 {
     $this->assertSame(twig_render_var(0), 0, 'twig_render_var() renders zero correctly when provided as an integer.');
     $this->assertSame(twig_render_var(0.0), 0, 'twig_render_var() renders zero correctly when provided as a double.');
 }