当前位置: 首页>>代码示例>>PHP>>正文


PHP _twig_default_filter函数代码示例

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


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

示例1: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f = $this->env->getExtension("native_profiler");
     $__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f->enter($__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "WebProfilerBundle:Profiler:toolbar_item.html.twig"));
     // line 1
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         // line 2
         echo "    ";
         ob_start();
         // line 3
         echo "        <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "html", null, true);
         echo "</a>\n    ";
         $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
     }
     // line 6
     echo "<div class=\"sf-toolbar-block\">\n     <div class=\"sf-toolbar-icon\">";
     // line 7
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n     <div class=\"sf-toolbar-info\">";
     // line 8
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f->leave($__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f_prof);
 }
开发者ID:valeriemontoya90,项目名称:findWorker,代码行数:27,代码来源:8d4635b47ab8ab3bf3352cb81a02e822f23088a5da0711f03c5ad81c103fe122.php

示例2: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["attr"] = twig_array_merge(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr"), array("class" => ($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array()), "") : "") . " modal"));
     // line 2
     echo "<div";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr"));
     foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
         echo " ";
         echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
         echo "=\"";
         echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
         echo "\"";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     echo ">\n    <div class=\"modal-header\">\n        ";
     // line 4
     $this->displayBlock('header', $context, $blocks);
     // line 5
     echo "    </div>\n    <div class=\"modal-body\">\n        ";
     // line 7
     $this->displayBlock('body', $context, $blocks);
     // line 8
     echo "    </div>\n    <div class=\"modal-footer\">\n        ";
     // line 10
     $this->displayBlock('footer', $context, $blocks);
     // line 11
     echo "    </div>\n</div>\n";
 }
开发者ID:austinpapp,项目名称:push-notifications-temp,代码行数:32,代码来源:2d70cf184126014917689ff63fe3c4182669860fb273db56175e5d1c226b.php

示例3: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70 = $this->env->getExtension("native_profiler");
     $__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70->enter($__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig"));
     // line 1
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         // line 2
         echo "    ";
         ob_start();
         // line 3
         echo "        <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "html", null, true);
         echo "</a>\n    ";
         $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
     }
     // line 6
     echo "<div class=\"sf-toolbar-block\">\n     <div class=\"sf-toolbar-icon\">";
     // line 7
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n     <div class=\"sf-toolbar-info\">";
     // line 8
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70->leave($__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70_prof);
 }
开发者ID:NotBadCode,项目名称:FinanceTest,代码行数:27,代码来源:02d42ef81b938fabb9028e93c7663e4c7dcdca2fdae35e978661f8a8aa0ccd29.php

示例4: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee = $this->env->getExtension("native_profiler");
     $__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee->enter($__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig"));
     // line 1
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         // line 2
         echo "    ";
         ob_start();
         // line 3
         echo "        <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "html", null, true);
         echo "</a>\n    ";
         $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
     }
     // line 6
     echo "<div class=\"sf-toolbar-block\">\n     <div class=\"sf-toolbar-icon\">";
     // line 7
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n     <div class=\"sf-toolbar-info\">";
     // line 8
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee->leave($__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee_prof);
 }
开发者ID:johnpaulada,项目名称:oauth-api-test,代码行数:27,代码来源:f475485a497ede848cdaab50624ee3f9d4d71ce702f0279c7a1553f20f803767.php

示例5: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_80aa4fa8bd1b82189a3df63b3a9dce83ae5ec37e4763732e7261356511fa0715 = $this->env->getExtension("native_profiler");
     $__internal_80aa4fa8bd1b82189a3df63b3a9dce83ae5ec37e4763732e7261356511fa0715->enter($__internal_80aa4fa8bd1b82189a3df63b3a9dce83ae5ec37e4763732e7261356511fa0715_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig"));
     // line 1
     echo "<div class=\"sf-toolbar-block sf-toolbar-block-";
     echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true);
     echo " sf-toolbar-status-";
     echo twig_escape_filter($this->env, array_key_exists("status", $context) ? _twig_default_filter(isset($context["status"]) ? $context["status"] : $this->getContext($context, "status"), "normal") : "normal", "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, array_key_exists("additional_classes", $context) ? _twig_default_filter(isset($context["additional_classes"]) ? $context["additional_classes"] : $this->getContext($context, "additional_classes"), "") : "", "html", null, true);
     echo "\">\n    ";
     // line 2
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "<a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
     }
     // line 3
     echo "        <div class=\"sf-toolbar-icon\">";
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n    ";
     // line 4
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "</a>";
     }
     // line 5
     echo "        <div class=\"sf-toolbar-info\">";
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_80aa4fa8bd1b82189a3df63b3a9dce83ae5ec37e4763732e7261356511fa0715->leave($__internal_80aa4fa8bd1b82189a3df63b3a9dce83ae5ec37e4763732e7261356511fa0715_prof);
 }
开发者ID:ChanakaR,项目名称:moraspirit,代码行数:32,代码来源:c4881faffc65177070040110c0e27763c5d52e539543bb62d5ae63bb32654f69.php

示例6: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_7cc5f3105d0765f5c873afde309c711e8f1404f7b98f1758193c6fe227666295 = $this->env->getExtension("native_profiler");
     $__internal_7cc5f3105d0765f5c873afde309c711e8f1404f7b98f1758193c6fe227666295->enter($__internal_7cc5f3105d0765f5c873afde309c711e8f1404f7b98f1758193c6fe227666295_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig"));
     // line 1
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         // line 2
         echo "    ";
         ob_start();
         // line 3
         echo "        <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "html", null, true);
         echo "</a>\n    ";
         $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
     }
     // line 6
     echo "<div class=\"sf-toolbar-block\">\n     <div class=\"sf-toolbar-icon\">";
     // line 7
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n     <div class=\"sf-toolbar-info\">";
     // line 8
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_7cc5f3105d0765f5c873afde309c711e8f1404f7b98f1758193c6fe227666295->leave($__internal_7cc5f3105d0765f5c873afde309c711e8f1404f7b98f1758193c6fe227666295_prof);
 }
开发者ID:Ezwarmax,项目名称:iim_web3_maxime_rouilly_symfony,代码行数:27,代码来源:5833be9acde510cfd81b96db7b6c106a4e52f2fc2adac5ad4e62c6c73998d5b2.php

示例7: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_c6a5ad4629fb237b4da20fdd83a6eb499397e9ba837f50978bbc6d42c815c900 = $this->env->getExtension("native_profiler");
     $__internal_c6a5ad4629fb237b4da20fdd83a6eb499397e9ba837f50978bbc6d42c815c900->enter($__internal_c6a5ad4629fb237b4da20fdd83a6eb499397e9ba837f50978bbc6d42c815c900_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig"));
     // line 1
     echo "<div class=\"sf-toolbar-block sf-toolbar-block-";
     echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true);
     echo " sf-toolbar-status-";
     echo twig_escape_filter($this->env, array_key_exists("status", $context) ? _twig_default_filter(isset($context["status"]) ? $context["status"] : $this->getContext($context, "status"), "normal") : "normal", "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, array_key_exists("additional_classes", $context) ? _twig_default_filter(isset($context["additional_classes"]) ? $context["additional_classes"] : $this->getContext($context, "additional_classes"), "") : "", "html", null, true);
     echo "\">\n    ";
     // line 2
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "<a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
     }
     // line 3
     echo "        <div class=\"sf-toolbar-icon\">";
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n    ";
     // line 4
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "</a>";
     }
     // line 5
     echo "        <div class=\"sf-toolbar-info\">";
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_c6a5ad4629fb237b4da20fdd83a6eb499397e9ba837f50978bbc6d42c815c900->leave($__internal_c6a5ad4629fb237b4da20fdd83a6eb499397e9ba837f50978bbc6d42c815c900_prof);
 }
开发者ID:hmuschett,项目名称:directorioTelefonico,代码行数:32,代码来源:718aed951ac36db134b819ec89613fb7460c75a258cd6f344d3c24fbedebf727.php

示例8: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_8318cc1d338b90553b763a6801e3ed85889998bdd734c9a2b83a2f0f1cf9f6e7 = $this->env->getExtension("native_profiler");
     $__internal_8318cc1d338b90553b763a6801e3ed85889998bdd734c9a2b83a2f0f1cf9f6e7->enter($__internal_8318cc1d338b90553b763a6801e3ed85889998bdd734c9a2b83a2f0f1cf9f6e7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "WebProfilerBundle:Profiler:toolbar_item.html.twig"));
     // line 1
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         // line 2
         echo "    ";
         ob_start();
         // line 3
         echo "        <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "html", null, true);
         echo "</a>\n    ";
         $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
     }
     // line 6
     echo "<div class=\"sf-toolbar-block\">\n     <div class=\"sf-toolbar-icon\">";
     // line 7
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n     <div class=\"sf-toolbar-info\">";
     // line 8
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_8318cc1d338b90553b763a6801e3ed85889998bdd734c9a2b83a2f0f1cf9f6e7->leave($__internal_8318cc1d338b90553b763a6801e3ed85889998bdd734c9a2b83a2f0f1cf9f6e7_prof);
 }
开发者ID:stagiaire1,项目名称:SymphonyTest,代码行数:27,代码来源:e9b5796e93c8657945957e02c26f5ab7b70e031e3c64a6c7cc3ab378ad2ee235.php

示例9: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_d9f878c6570e6834e2df1f15caea39cbaa3fb1d6313a68478a8c79fc03067232 = $this->env->getExtension("native_profiler");
     $__internal_d9f878c6570e6834e2df1f15caea39cbaa3fb1d6313a68478a8c79fc03067232->enter($__internal_d9f878c6570e6834e2df1f15caea39cbaa3fb1d6313a68478a8c79fc03067232_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig"));
     // line 1
     echo "<div class=\"sf-toolbar-block sf-toolbar-block-";
     echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true);
     echo " sf-toolbar-status-";
     echo twig_escape_filter($this->env, array_key_exists("status", $context) ? _twig_default_filter(isset($context["status"]) ? $context["status"] : $this->getContext($context, "status"), "normal") : "normal", "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, array_key_exists("additional_classes", $context) ? _twig_default_filter(isset($context["additional_classes"]) ? $context["additional_classes"] : $this->getContext($context, "additional_classes"), "") : "", "html", null, true);
     echo "\">\n    ";
     // line 2
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "<a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
     }
     // line 3
     echo "        <div class=\"sf-toolbar-icon\">";
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n    ";
     // line 4
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "</a>";
     }
     // line 5
     echo "        <div class=\"sf-toolbar-info\">";
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_d9f878c6570e6834e2df1f15caea39cbaa3fb1d6313a68478a8c79fc03067232->leave($__internal_d9f878c6570e6834e2df1f15caea39cbaa3fb1d6313a68478a8c79fc03067232_prof);
 }
开发者ID:vinitdave49,项目名称:symfony-demo,代码行数:32,代码来源:059167fa7792421d1393e09515e3e6d40d0cdf16f7dd8840e0257a116be9a5d7.php

示例10: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["ajax"] = $this->loadTemplate("ajaxMacros.twig", "@CoreHome/_indexContent.twig", 1);
     // line 2
     echo "<div class=\"pageWrap container-fluid\">\n<a name=\"main\"></a>\n    ";
     // line 4
     $this->loadTemplate("@CoreHome/_notifications.twig", "@CoreHome/_indexContent.twig", 4)->display($context);
     // line 5
     echo "    <div class=\"top_controls\">\n        ";
     // line 6
     $this->loadTemplate("@CoreHome/_periodSelect.twig", "@CoreHome/_indexContent.twig", 6)->display($context);
     // line 7
     echo "        ";
     echo call_user_func_array($this->env->getFunction('postEvent')->getCallable(), array("Template.nextToCalendar"));
     echo "\n        ";
     // line 8
     $this->loadTemplate($context["dashboardSettingsControl"]->getTemplateFile(), "@CoreHome/_indexContent.twig", 8)->display(array_merge($context, $context["dashboardSettingsControl"]->getTemplateVars()));
     // line 9
     echo "        ";
     $this->loadTemplate("@CoreHome/_headerMessage.twig", "@CoreHome/_indexContent.twig", 9)->display($context);
     // line 10
     echo "        ";
     echo $context["ajax"]->getrequestErrorDiv(array_key_exists("emailSuperUser", $context) ? _twig_default_filter(isset($context["emailSuperUser"]) ? $context["emailSuperUser"] : $this->getContext($context, "emailSuperUser"), "") : "");
     echo "\n    </div>\n\n    ";
     // line 13
     echo $context["ajax"]->getloadingDiv();
     echo "\n\n    <div id=\"content\" class=\"home\">\n        ";
     // line 16
     if (isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")) {
         echo twig_escape_filter($this->env, isset($context["content"]) ? $context["content"] : $this->getContext($context, "content"), "html", null, true);
     }
     // line 17
     echo "    </div>\n    <div class=\"clear\"></div>\n</div>\n";
 }
开发者ID:CaptainSharf,项目名称:SSAD_Project,代码行数:35,代码来源:dd04355771c143df5796ce3d23745f674f2f062820a46b5e0acee6585bd1f6c5.php

示例11: block_input

 public function block_input($context, array $blocks = array())
 {
     // line 7
     echo "    ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "array", array())) {
         // line 8
         echo "        ";
         $context["name"] = (isset($context["name"]) ? $context["name"] : null) . "._json";
         // line 9
         echo "        ";
         $context["value"] = twig_jsonencode_filter(array_key_exists("value", $context) ? _twig_default_filter(isset($context["value"]) ? $context["value"] : null, array()) : array());
         // line 10
         echo "        ";
     } else {
         // line 11
         echo "        ";
         $context["value"] = twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", ");
         // line 12
         echo "    ";
     }
     // line 13
     echo "\n    <input\n        ";
     // line 16
     echo "        type=\"hidden\"\n        name=\"";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)), "html", null, true);
     echo "\"\n        value=\"";
     // line 18
     echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : null, "html", null, true);
     echo "\"\n        ";
     // line 20
     echo "        ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n    />\n";
 }
开发者ID:ericssonm,项目名称:JusCuzCustoms,代码行数:35,代码来源:04027b82562cce43c2fb49bc3451ec1f858bf4c6902014bd46beb4f9d57d3f85.php

示例12: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_48a794b3307ad4d69ad42081c7d55a8ef1fa905e6af85fcb4d931da6fe6817c0 = $this->env->getExtension("native_profiler");
     $__internal_48a794b3307ad4d69ad42081c7d55a8ef1fa905e6af85fcb4d931da6fe6817c0->enter($__internal_48a794b3307ad4d69ad42081c7d55a8ef1fa905e6af85fcb4d931da6fe6817c0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig"));
     // line 1
     echo "<div class=\"sf-toolbar-block sf-toolbar-block-";
     echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true);
     echo " sf-toolbar-status-";
     echo twig_escape_filter($this->env, array_key_exists("status", $context) ? _twig_default_filter(isset($context["status"]) ? $context["status"] : $this->getContext($context, "status"), "normal") : "normal", "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, array_key_exists("additional_classes", $context) ? _twig_default_filter(isset($context["additional_classes"]) ? $context["additional_classes"] : $this->getContext($context, "additional_classes"), "") : "", "html", null, true);
     echo "\">\n    ";
     // line 2
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "<a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
     }
     // line 3
     echo "        <div class=\"sf-toolbar-icon\">";
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n    ";
     // line 4
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "</a>";
     }
     // line 5
     echo "        <div class=\"sf-toolbar-info\">";
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_48a794b3307ad4d69ad42081c7d55a8ef1fa905e6af85fcb4d931da6fe6817c0->leave($__internal_48a794b3307ad4d69ad42081c7d55a8ef1fa905e6af85fcb4d931da6fe6817c0_prof);
 }
开发者ID:jaenbox,项目名称:dws,代码行数:32,代码来源:0f54f981ee40c5b498250cbb88c3e3cc2e92fb7aae88cf158af28e0a1ddeb7e8.php

示例13: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e = $this->env->getExtension("native_profiler");
     $__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e->enter($__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/table.html.twig"));
     // line 1
     echo "<table class=\"";
     echo twig_escape_filter($this->env, array_key_exists("class", $context) ? _twig_default_filter(isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "") : "", "html", null, true);
     echo "\">\n    <thead>\n        <tr>\n            <th scope=\"col\" class=\"key\">";
     // line 4
     echo twig_escape_filter($this->env, array_key_exists("labels", $context) ? $this->getAttribute(isset($context["labels"]) ? $context["labels"] : $this->getContext($context, "labels"), 0, array(), "array") : "Key", "html", null, true);
     echo "</th>\n            <th scope=\"col\">";
     // line 5
     echo twig_escape_filter($this->env, array_key_exists("labels", $context) ? $this->getAttribute(isset($context["labels"]) ? $context["labels"] : $this->getContext($context, "labels"), 1, array(), "array") : "Value", "html", null, true);
     echo "</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 9
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"))));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 10
         echo "            <tr>\n                <th scope=\"row\">";
         // line 11
         echo twig_escape_filter($this->env, $context["key"], "html", null, true);
         echo "</th>\n                <td>";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('profiler')->dumpValue($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), $context["key"], array(), "array")), "html", null, true);
         echo "</td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 15
     echo "    </tbody>\n</table>\n";
     $__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e->leave($__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e_prof);
 }
开发者ID:rince1990,项目名称:photocool,代码行数:34,代码来源:ed29ac91b691faa42d1f27eaeeb9c3f0b2e96d8e9fbfbef6a49c70535fd936bb.php

示例14: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_bb7deda7496f8f81373f31d1c2e5f5d86321bec6810f215cc68eaf5b04f0a5b6 = $this->env->getExtension("native_profiler");
     $__internal_bb7deda7496f8f81373f31d1c2e5f5d86321bec6810f215cc68eaf5b04f0a5b6->enter($__internal_bb7deda7496f8f81373f31d1c2e5f5d86321bec6810f215cc68eaf5b04f0a5b6_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig"));
     // line 1
     echo "<div class=\"sf-toolbar-block sf-toolbar-block-";
     echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true);
     echo " sf-toolbar-status-";
     echo twig_escape_filter($this->env, array_key_exists("status", $context) ? _twig_default_filter(isset($context["status"]) ? $context["status"] : $this->getContext($context, "status"), "normal") : "normal", "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, array_key_exists("additional_classes", $context) ? _twig_default_filter(isset($context["additional_classes"]) ? $context["additional_classes"] : $this->getContext($context, "additional_classes"), "") : "", "html", null, true);
     echo "\">\n    ";
     // line 2
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "<a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
     }
     // line 3
     echo "        <div class=\"sf-toolbar-icon\">";
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n    ";
     // line 4
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "</a>";
     }
     // line 5
     echo "        <div class=\"sf-toolbar-info\">";
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_bb7deda7496f8f81373f31d1c2e5f5d86321bec6810f215cc68eaf5b04f0a5b6->leave($__internal_bb7deda7496f8f81373f31d1c2e5f5d86321bec6810f215cc68eaf5b04f0a5b6_prof);
 }
开发者ID:mshishkov,项目名称:santanno,代码行数:32,代码来源:149b8dd337e521943b223b28296fd16e2fb80a2d2cc8e149cc78ef5f85845bc3.php

示例15: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_27ff5d5a6be7f7b1203d4bf531c64f39b5fa6ba4bad43ed6368c4d1467414844 = $this->env->getExtension("native_profiler");
     $__internal_27ff5d5a6be7f7b1203d4bf531c64f39b5fa6ba4bad43ed6368c4d1467414844->enter($__internal_27ff5d5a6be7f7b1203d4bf531c64f39b5fa6ba4bad43ed6368c4d1467414844_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig"));
     // line 1
     echo "<div class=\"sf-toolbar-block sf-toolbar-block-";
     echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true);
     echo " sf-toolbar-status-";
     echo twig_escape_filter($this->env, array_key_exists("status", $context) ? _twig_default_filter(isset($context["status"]) ? $context["status"] : $this->getContext($context, "status"), "normal") : "normal", "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, array_key_exists("additional_classes", $context) ? _twig_default_filter(isset($context["additional_classes"]) ? $context["additional_classes"] : $this->getContext($context, "additional_classes"), "") : "", "html", null, true);
     echo "\">\n    ";
     // line 2
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "<a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true);
         echo "\">";
     }
     // line 3
     echo "        <div class=\"sf-toolbar-icon\">";
     echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true);
     echo "</div>\n    ";
     // line 4
     if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
         echo "</a>";
     }
     // line 5
     echo "        <div class=\"sf-toolbar-info\">";
     echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true);
     echo "</div>\n</div>\n";
     $__internal_27ff5d5a6be7f7b1203d4bf531c64f39b5fa6ba4bad43ed6368c4d1467414844->leave($__internal_27ff5d5a6be7f7b1203d4bf531c64f39b5fa6ba4bad43ed6368c4d1467414844_prof);
 }
开发者ID:yosmared,项目名称:cashmachine,代码行数:32,代码来源:f92fa11758d445c8fc4bce14e1ab2175f935fc2854ef961dd95452d278c45271.php


注:本文中的_twig_default_filter函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。