• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP twig_without函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中twig_without函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_without函数的具体用法?PHP twig_without怎么用?PHP twig_without使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了twig_without函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array("set" => 36, "block" => 38);
     $filters = array("clean_id" => 36, "without" => 37);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('set', 'block'), array('clean_id', 'without'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 36
     $context["heading_id"] = $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "id", array()) . \Drupal\Component\Utility\Html::getId("-menu");
     // line 37
     echo "<nav role=\"navigation\" aria-labelledby=\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["heading_id"]) ? $context["heading_id"] : null, "html", null, true));
     echo "\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without($this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "removeClass", array(0 => "clearfix"), "method"), "role", "aria-labelledby"), "html", null, true));
     echo ">\n  ";
     // line 38
     $this->displayBlock('content', $context, $blocks);
     // line 41
     echo "</nav>\n";
 }
开发者ID:evmorfia-b,项目名称:feelmybook,代码行数:31,代码来源:b7b3b956b04270115f4821545d4c1e35075b29666387b6461d3429fdd201e212.php


示例2: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 12
     if ($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "previous", array()) || $this->getAttribute(isset($context["items"]) ? $context["items"] : null, "next", array())) {
         // line 13
         echo "  <nav class=\"pager\" role=\"navigation\" aria-labelledby=\"pagination-heading\">\n    <h4 class=\"pager__heading visually-hidden\">";
         // line 14
         echo $this->env->getExtension('drupal_core')->renderVar(t("Pagination"));
         echo "</h4>\n    <ul class=\"pager__items js-pager__items\">\n      ";
         // line 16
         if ($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "previous", array())) {
             // line 17
             echo "        <li class=\"pager__item pager__item--previous\">\n          <a href=\"";
             // line 18
             echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "previous", array()), "href", array()), "html", null, true);
             echo "\" title=\"";
             echo $this->env->getExtension('drupal_core')->renderVar(t("Go to previous page"));
             echo "\" rel=\"prev\"";
             echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without($this->getAttribute($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "previous", array()), "attributes", array()), "href", "title", "rel"), "html", null, true);
             echo ">\n            <span class=\"visually-hidden\">";
             // line 19
             echo $this->env->getExtension('drupal_core')->renderVar(t("Previous page"));
             echo "</span>\n            <span aria-hidden=\"true\">";
             // line 20
             echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "previous", array(), "any", false, true), "text", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "previous", array(), "any", false, true), "text", array()), t("‹‹")) : t("‹‹"), "html", null, true);
             echo "</span>\n          </a>\n        </li>\n      ";
         }
         // line 24
         echo "      ";
         if ($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "current", array())) {
             // line 25
             echo "        <li class=\"pager__item is-active\">\n          ";
             // line 26
             echo t("Page @items.current", array("@items.current" => $this->getAttribute(isset($context["items"]) ? $context["items"] : null, "current", array())));
             // line 29
             echo "        </li>\n      ";
         }
         // line 31
         echo "      ";
         if ($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "next", array())) {
             // line 32
             echo "        <li class=\"pager__item pager__item--next\">\n          <a href=\"";
             // line 33
             echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "next", array()), "href", array()), "html", null, true);
             echo "\" title=\"";
             echo $this->env->getExtension('drupal_core')->renderVar(t("Go to next page"));
             echo "\" rel=\"next\"";
             echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without($this->getAttribute($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "next", array()), "attributes", array()), "href", "title", "rel"), "html", null, true);
             echo ">\n            <span class=\"visually-hidden\">";
             // line 34
             echo $this->env->getExtension('drupal_core')->renderVar(t("Next page"));
             echo "</span>\n            <span aria-hidden=\"true\">";
             // line 35
             echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "next", array(), "any", false, true), "text", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["items"]) ? $context["items"] : null, "next", array(), "any", false, true), "text", array()), t("››")) : t("››"), "html", null, true);
             echo "</span>\n          </a>\n        </li>\n      ";
         }
         // line 39
         echo "    </ul>\n  </nav>\n";
     }
 }
开发者ID:stevebresnick,项目名称:D8_Sandbox,代码行数:60,代码来源:586b830991c602cc33d266e12f93ff7e02c15d62ebf1d7a96b520c9d645f3fd0.php


示例3: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array();
     $filters = array("without" => 20);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array(), array('without'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 18
     echo "<div class=\"layout-node-form clearfix\">\n  <div class=\"layout-region layout-region-node-main\">\n    ";
     // line 20
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without(isset($context["form"]) ? $context["form"] : null, "advanced", "actions"), "html", null, true));
     echo "\n  </div>\n  <div class=\"layout-region layout-region-node-secondary\">\n    ";
     // line 23
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "advanced", array()), "html", null, true));
     echo "\n  </div>\n  <div class=\"layout-region layout-region-node-footer\">\n    ";
     // line 26
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "actions", array()), "html", null, true));
     echo "\n  </div>\n</div>\n";
 }
开发者ID:emilienGallet,项目名称:DrupalUnicef,代码行数:30,代码来源:0edcba3cbe0ee7de7d418ffb10a20ba7a6ce275a6dab86c93cd6f3f82a9a2742.php


示例4: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array("set" => 38, "if" => 48, "block" => 58, "trans" => 63);
     $filters = array("clean_class" => 42, "clean_id" => 45, "without" => 46);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('set', 'if', 'block', 'trans'), array('clean_class', 'clean_id', 'without'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 38
     $context["classes"] = array(0 => "block", 1 => "block-menu", 2 => "navigation", 3 => "menu--" . \Drupal\Component\Utility\Html::getClass(isset($context["derivative_plugin_id"]) ? $context["derivative_plugin_id"] : null));
     // line 45
     $context["heading_id"] = $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "id", array()) . \Drupal\Component\Utility\Html::getId("-menu");
     // line 46
     echo "<nav role=\"navigation\" aria-labelledby=\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["heading_id"]) ? $context["heading_id"] : null, "html", null, true));
     echo "\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without($this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => isset($context["classes"]) ? $context["classes"] : null), "method"), "role", "aria-labelledby"), "html", null, true));
     echo ">\n  ";
     // line 48
     echo "  ";
     if (!$this->getAttribute(isset($context["configuration"]) ? $context["configuration"] : null, "label_display", array())) {
         // line 49
         echo "    ";
         $context["title_attributes"] = $this->getAttribute(isset($context["title_attributes"]) ? $context["title_attributes"] : null, "addClass", array(0 => "visually-hidden"), "method");
         // line 50
         echo "  ";
     }
     // line 51
     echo "  ";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["title_prefix"]) ? $context["title_prefix"] : null, "html", null, true));
     echo "\n  <h2";
     // line 52
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["title_attributes"]) ? $context["title_attributes"] : null, "setAttribute", array(0 => "id", 1 => isset($context["heading_id"]) ? $context["heading_id"] : null), "method"), "html", null, true));
     echo ">";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["configuration"]) ? $context["configuration"] : null, "label", array()), "html", null, true));
     echo "</h2>\n  ";
     // line 53
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["title_suffix"]) ? $context["title_suffix"] : null, "html", null, true));
     echo "\n\n  ";
     // line 56
     echo "  ";
     $context["show_anchor"] = "show-" . \Drupal\Component\Utility\Html::getId($this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "id", array()));
     // line 57
     echo "  ";
     $context["hide_anchor"] = "hide-" . \Drupal\Component\Utility\Html::getId($this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "id", array()));
     // line 58
     echo "  ";
     $this->displayBlock('content', $context, $blocks);
 }
开发者ID:mu5a5hi,项目名称:testmampdrupal,代码行数:59,代码来源:f7d383545602eba8a5c51b386d4550d2155efc7f0ca259ec9e3ed7566027c296.php


示例5: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_8f66aed125528e805dcf06daca22a4a19d4ce70fa69a1363cee92140b03e5dd9 = $this->env->getExtension("native_profiler");
     $__internal_8f66aed125528e805dcf06daca22a4a19d4ce70fa69a1363cee92140b03e5dd9->enter($__internal_8f66aed125528e805dcf06daca22a4a19d4ce70fa69a1363cee92140b03e5dd9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "core/themes/classy/templates/views/views-view-summary-unformatted.html.twig"));
     $tags = array("for" => 21, "if" => 23);
     $filters = array("without" => 26);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('for', 'if'), array('without'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 21
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["rows"]) ? $context["rows"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
         // line 22
         echo "  ";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar($this->getAttribute(isset($context["options"]) ? $context["options"] : null, "inline", array()) ? "<span" : "<div"));
         echo " class=\"views-summary views-summary-unformatted\">\n  ";
         // line 23
         if ($this->getAttribute($context["row"], "separator", array())) {
             // line 24
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["row"], "separator", array()), "html", null, true));
         }
         // line 26
         echo "  <a href=\"";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["row"], "url", array()), "html", null, true));
         echo "\"";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without($this->getAttribute($this->getAttribute($context["row"], "attributes", array()), "addClass", array(0 => $this->getAttribute($context["row"], "active", array()) ? "is-active" : ""), "method"), "href"), "html", null, true));
         echo ">";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["row"], "link", array()), "html", null, true));
         echo "</a>\n  ";
         // line 27
         if ($this->getAttribute(isset($context["options"]) ? $context["options"] : null, "count", array())) {
             // line 28
             echo "    (";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["row"], "count", array()), "html", null, true));
             echo ")\n  ";
         }
         // line 30
         echo "  ";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar($this->getAttribute(isset($context["options"]) ? $context["options"] : null, "inline", array()) ? "</span>" : "</div>"));
         echo "\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     $__internal_8f66aed125528e805dcf06daca22a4a19d4ce70fa69a1363cee92140b03e5dd9->leave($__internal_8f66aed125528e805dcf06daca22a4a19d4ce70fa69a1363cee92140b03e5dd9_prof);
 }
开发者ID:justincletus,项目名称:webdrupalpro,代码行数:58,代码来源:0ce4a0efbb2307d2aa054b983db8a589ec77e50a82205aba8e1222d953e8d10b.php


示例6: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_d5fdbc60c80f6b72247ec473e59d80d9ff42128768881ee08f6810a8c73d62af = $this->env->getExtension("native_profiler");
     $__internal_d5fdbc60c80f6b72247ec473e59d80d9ff42128768881ee08f6810a8c73d62af->enter($__internal_d5fdbc60c80f6b72247ec473e59d80d9ff42128768881ee08f6810a8c73d62af_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "core/themes/classy/templates/block/block--system-menu-block.html.twig"));
     $tags = array("set" => 35, "if" => 45, "block" => 53);
     $filters = array("clean_class" => 39, "clean_id" => 42, "without" => 43);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('set', 'if', 'block'), array('clean_class', 'clean_id', 'without'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 35
     $context["classes"] = array(0 => "block", 1 => "block-menu", 2 => "navigation", 3 => "menu--" . \Drupal\Component\Utility\Html::getClass(isset($context["derivative_plugin_id"]) ? $context["derivative_plugin_id"] : null));
     // line 42
     $context["heading_id"] = $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "id", array()) . \Drupal\Component\Utility\Html::getId("-menu");
     // line 43
     echo "<nav role=\"navigation\" aria-labelledby=\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["heading_id"]) ? $context["heading_id"] : null, "html", null, true));
     echo "\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without($this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => isset($context["classes"]) ? $context["classes"] : null), "method"), "role", "aria-labelledby"), "html", null, true));
     echo ">\n  ";
     // line 45
     echo "  ";
     if (!$this->getAttribute(isset($context["configuration"]) ? $context["configuration"] : null, "label_display", array())) {
         // line 46
         echo "    ";
         $context["title_attributes"] = $this->getAttribute(isset($context["title_attributes"]) ? $context["title_attributes"] : null, "addClass", array(0 => "visually-hidden"), "method");
         // line 47
         echo "  ";
     }
     // line 48
     echo "  ";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["title_prefix"]) ? $context["title_prefix"] : null, "html", null, true));
     echo "\n  <h2";
     // line 49
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["title_attributes"]) ? $context["title_attributes"] : null, "setAttribute", array(0 => "id", 1 => isset($context["heading_id"]) ? $context["heading_id"] : null), "method"), "html", null, true));
     echo ">";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["configuration"]) ? $context["configuration"] : null, "label", array()), "html", null, true));
     echo "</h2>\n  ";
     // line 50
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["title_suffix"]) ? $context["title_suffix"] : null, "html", null, true));
     echo "\n\n  ";
     // line 53
     echo "  ";
     $this->displayBlock('content', $context, $blocks);
     // line 56
     echo "</nav>\n";
     $__internal_d5fdbc60c80f6b72247ec473e59d80d9ff42128768881ee08f6810a8c73d62af->leave($__internal_d5fdbc60c80f6b72247ec473e59d80d9ff42128768881ee08f6810a8c73d62af_prof);
 }
开发者ID:justincletus,项目名称:webdrupalpro,代码行数:58,代码来源:d4d698bf3c3b29dab9ecae5b0dbd0ca0c232a63ba653660fc08dddae96674205.php


示例7: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 16
     echo "<div class=\"layout-block-list clearfix\">\n  <div class=\"layout-region block-list-primary\">\n    ";
     // line 18
     echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without(isset($context["form"]) ? $context["form"] : null, "place_blocks"), "html", null, true);
     echo "\n  </div>\n  <div class=\"layout-region block-list-secondary\">\n    ";
     // line 21
     echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "place_blocks", array()), "html", null, true);
     echo "\n  </div>\n</div>\n";
 }
开发者ID:dev981,项目名称:gaptest,代码行数:11,代码来源:2bf94fb11d0d922fa4243732ac587c38afb3ecebcf7ed29b62ed57ca5c60e6d1.php


示例8: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array("set" => 34, "if" => 37, "block" => 45);
     $filters = array("clean_id" => 34, "without" => 35);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('set', 'if', 'block'), array('clean_id', 'without'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 34
     $context["heading_id"] = $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "id", array()) . \Drupal\Component\Utility\Html::getId("-menu");
     // line 35
     echo "<nav role=\"navigation\" aria-labelledby=\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["heading_id"]) ? $context["heading_id"] : null, "html", null, true));
     echo "\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without(isset($context["attributes"]) ? $context["attributes"] : null, "role", "aria-labelledby"), "html", null, true));
     echo ">\n  ";
     // line 37
     echo "  ";
     if (!$this->getAttribute(isset($context["configuration"]) ? $context["configuration"] : null, "label_display", array())) {
         // line 38
         echo "    ";
         $context["title_attributes"] = $this->getAttribute(isset($context["title_attributes"]) ? $context["title_attributes"] : null, "addClass", array(0 => "visually-hidden"), "method");
         // line 39
         echo "  ";
     }
     // line 40
     echo "  ";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["title_prefix"]) ? $context["title_prefix"] : null, "html", null, true));
     echo "\n  <h2";
     // line 41
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["title_attributes"]) ? $context["title_attributes"] : null, "html", null, true));
     echo ">";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["configuration"]) ? $context["configuration"] : null, "label", array()), "html", null, true));
     echo "</h2>\n  ";
     // line 42
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["title_suffix"]) ? $context["title_suffix"] : null, "html", null, true));
     echo "\n\n  ";
     // line 45
     echo "  ";
     $this->displayBlock('content', $context, $blocks);
     // line 48
     echo "</nav>\n";
 }
开发者ID:TomPradat,项目名称:capbusiness,代码行数:53,代码来源:50d83d6ae1ff9b14c3c39a708cc18643594be34a3ff4e4ee0ac4e5087b80e097.php


示例9: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 18
     echo "<div class=\"layout-node-form clearfix\">\n  <div class=\"layout-region layout-region-node-main\">\n    ";
     // line 20
     echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without(isset($context["form"]) ? $context["form"] : null, "advanced", "actions"), "html", null, true);
     echo "\n  </div>\n  <div class=\"layout-region layout-region-node-secondary\">\n    ";
     // line 23
     echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "advanced", array()), "html", null, true);
     echo "\n  </div>\n  <div class=\"layout-region layout-region-node-footer\">\n    ";
     // line 26
     echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "actions", array()), "html", null, true);
     echo "\n  </div>\n</div>\n";
 }
开发者ID:pinair,项目名称:myfirstsite,代码行数:14,代码来源:9c31d86b1dadaf742b0f613e23c4556eb71e386bf852f282d97de503f2183471.php


示例10: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array();
     $filters = array("without" => 16, "date" => 21, "t" => 26);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array(), array('without', 'date', 't'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 16
     echo "<div class=\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "class", array()), "html", null, true));
     echo " project-update__version\"";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without(isset($context["attributes"]) ? $context["attributes"] : null, "class"), "html", null, true));
     echo ">\n  <div class=\"clearfix\">\n    <div class=\"project-update__version-title layout-column layout-column--quarter\">";
     // line 18
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["title"]) ? $context["title"] : null, "html", null, true));
     echo "</div>\n    <div class=\"project-update__version-details layout-column layout-column--quarter\">\n      <a href=\"";
     // line 20
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["version"]) ? $context["version"] : null, "release_link", array()), "html", null, true));
     echo "\">";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["version"]) ? $context["version"] : null, "version", array()), "html", null, true));
     echo "</a>\n      <span class=\"project-update__version-date\">(";
     // line 21
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["version"]) ? $context["version"] : null, "date", array()), "Y-M-d"), "html", null, true));
     echo ")</span>\n    </div>\n    <div class=\"layout-column layout-column--half\">\n      <ul class=\"project-update__version-links\">\n        <li class=\"project-update__download-link\">\n          <a href=\"";
     // line 26
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["version"]) ? $context["version"] : null, "download_link", array()), "html", null, true));
     echo "\">";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Download")));
     echo "</a>\n        </li>\n        <li class=\"project-update__release-notes-link\">\n          <a href=\"";
     // line 29
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["version"]) ? $context["version"] : null, "release_link", array()), "html", null, true));
     echo "\">";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Release notes")));
     echo "</a>\n        </li>\n      </ul>\n    </div>\n  </div>\n</div>\n";
 }
开发者ID:BReinemann,项目名称:drupal8-base01,代码行数:46,代码来源:0cfec09860018320a9eebedef9d014c0bfdb58d3495c1180048e8d8b4f8e07a2.php


示例11: doDisplay

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 36
        $context["classes"] = array(0 => "block", 1 => "block-menu", 2 => "navigation", 3 => ("menu--" . \Drupal\Component\Utility\Html::getClass(        // line 40
(isset($context["derivative_plugin_id"]) ? $context["derivative_plugin_id"] : null))));
        // line 43
        $context["heading_id"] = ($this->getAttribute((isset($context["attributes"]) ? $context["attributes"] : null), "id", array()) . \Drupal\Component\Utility\Html::getId("-menu"));
        // line 44
        echo "<nav role=\"navigation\" aria-labelledby=\"";
        echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["heading_id"]) ? $context["heading_id"] : null), "html", null, true);
        echo "\"";
        echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without($this->getAttribute((isset($context["attributes"]) ? $context["attributes"] : null), "addClass", array(0 => (isset($context["classes"]) ? $context["classes"] : null)), "method"), "role", "aria-labelledby"), "html", null, true);
        echo ">
  ";
        // line 46
        echo "  ";
        if ( !$this->getAttribute((isset($context["configuration"]) ? $context["configuration"] : null), "label_display", array())) {
            // line 47
            echo "    ";
            $context["title_attributes"] = $this->getAttribute((isset($context["title_attributes"]) ? $context["title_attributes"] : null), "addClass", array(0 => "visually-hidden"), "method");
            // line 48
            echo "  ";
        }
        // line 49
        echo "  ";
        echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["title_prefix"]) ? $context["title_prefix"] : null), "html", null, true);
        echo "
  <h2";
        // line 50
        echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["title_attributes"]) ? $context["title_attributes"] : null), "setAttribute", array(0 => "id", 1 => (isset($context["heading_id"]) ? $context["heading_id"] : null)), "method"), "html", null, true);
        echo ">";
        echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["configuration"]) ? $context["configuration"] : null), "label", array()), "html", null, true);
        echo "</h2>
  ";
        // line 51
        echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["title_suffix"]) ? $context["title_suffix"] : null), "html", null, true);
        echo "

  ";
        // line 54
        echo "  ";
        $this->displayBlock('content', $context, $blocks);
        // line 57
        echo "</nav>
";
    }
开发者ID:Tornatore,项目名称:d8test,代码行数:46,代码来源:a5df329b563122ba901e8c5d207594fa3fe448a60a7a8987cb7db66fb0d830ff.php


示例12: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array("if" => 17);
     $filters = array("without" => 25);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('if'), array('without'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 15
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "override", array()), "html", null, true));
     echo "\n<div class=\"scroll\" data-drupal-views-scroll>\n  ";
     // line 17
     if (isset($context["grouping"]) ? $context["grouping"] : null) {
         // line 18
         echo "    ";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "filter_groups", array()), "operator", array()), "html", null, true));
         echo "\n  ";
     } else {
         // line 20
         echo "    ";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "filter_groups", array()), "groups", array()), 0, array()), "html", null, true));
         echo "\n  ";
     }
     // line 22
     echo "  ";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["ungroupable_table"]) ? $context["ungroupable_table"] : null, "html", null, true));
     echo "\n  ";
     // line 23
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["table"]) ? $context["table"] : null, "html", null, true));
     echo "\n</div>\n";
     // line 25
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without(isset($context["form"]) ? $context["form"] : null, "override", "filter_groups", "remove_groups", "filters"), "html", null, true));
     echo "\n";
 }

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP twoot_generator函数代码示例发布时间:2022-05-23
下一篇:
PHP twig_upper_filter函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap