本文整理汇总了PHP中twig_ensure_traversable函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_ensure_traversable函数的具体用法?PHP twig_ensure_traversable怎么用?PHP twig_ensure_traversable使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twig_ensure_traversable函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_f6bc9ae49f4e000e9d80b99bfed322914549c10eb33e156d4dac0f0e5e55b51d = $this->env->getExtension("native_profiler");
$__internal_f6bc9ae49f4e000e9d80b99bfed322914549c10eb33e156d4dac0f0e5e55b51d->enter($__internal_f6bc9ae49f4e000e9d80b99bfed322914549c10eb33e156d4dac0f0e5e55b51d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/logs.html.twig"));
// line 1
echo "<ol class=\"traces logs\">\n ";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["logs"]) ? $context["logs"] : $this->getContext($context, "logs"));
foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
// line 3
echo " <li";
if ($this->getAttribute($context["log"], "priority", array()) >= 400) {
echo " class=\"error\"";
} elseif ($this->getAttribute($context["log"], "priority", array()) >= 300) {
echo " class=\"warning\"";
}
echo ">\n ";
// line 4
echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "priorityName", array()), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "message", array()), "html", null, true);
echo "\n </li>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 7
echo "</ol>\n";
$__internal_f6bc9ae49f4e000e9d80b99bfed322914549c10eb33e156d4dac0f0e5e55b51d->leave($__internal_f6bc9ae49f4e000e9d80b99bfed322914549c10eb33e156d4dac0f0e5e55b51d_prof);
}
开发者ID:malcolmapps,项目名称:elogbooks,代码行数:31,代码来源:3cbfb4e388113d3621e7a3484b190ebac63795c9fc409e5b5715e5a07ba99535.php
示例2: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<ol class=\"traces logs\">\n ";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["logs"]) ? $context["logs"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
// line 3
echo " <li";
if ($this->getAttribute($context["log"], "priority", array()) >= 400) {
echo " class=\"error\"";
} elseif ($this->getAttribute($context["log"], "priority", array()) >= 300) {
echo " class=\"warning\"";
}
echo ">\n ";
// line 4
echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "priorityName", array()), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "message", array()), "html", null, true);
echo "\n </li>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 7
echo "</ol>\n";
}
开发者ID:LamaDelRay,项目名称:test_symf,代码行数:28,代码来源:8811a782108950f5bfd2a427029df82e2acf535e06249c53ca5553b4b746f753.php
示例3: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9 = $this->env->getExtension("native_profiler");
$__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9->enter($__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:exception.txt.twig"));
// line 1
echo "[exception] ";
echo (isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code")) . " | " . (isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text")) . " | " . $this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "class", array());
echo "\n[message] ";
// line 2
echo $this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "message", array());
echo "\n";
// line 3
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "toarray", array()));
foreach ($context['_seq'] as $context["i"] => $context["e"]) {
// line 4
echo "[";
echo $context["i"] + 1;
echo "] ";
echo $this->getAttribute($context["e"], "class", array());
echo ": ";
echo $this->getAttribute($context["e"], "message", array());
echo "\n";
// line 5
$this->loadTemplate("TwigBundle:Exception:traces.txt.twig", "TwigBundle:Exception:exception.txt.twig", 5)->display(array("exception" => $context["e"]));
// line 6
echo "\n";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['i'], $context['e'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9->leave($__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9_prof);
}
开发者ID:Milkyway2605,项目名称:EasyStage_Symfony,代码行数:33,代码来源:0f3baf774c1c5d578c2c519fef938f74b38f0582f9d885a6ff32f2252b29fae7.php
示例4: block_content
public function block_content($context, array $blocks = array())
{
// line 10
echo "<table class=\"records_list table table-hover table-striped table-bordered table-condensed\">\n <thead>\n <tr>\n <th>Id</th>\n <th>Nombre</th>\n <th>Actions</th>\n </tr>\n </thead>\n <tbody>\n ";
// line 19
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
// line 20
echo " <tr>\n <td><a href=\"";
// line 21
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clasificadoretapa_show", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"), "html", null, true);
echo "</a></td>\n <td>";
// line 22
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "nombre"), "html", null, true);
echo "</td>\n <td>\n <ul>\n <li>\n <a href=\"";
// line 26
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clasificadoretapa_show", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true);
echo "\">show</a>\n </li>\n <li>\n <a href=\"";
// line 29
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clasificadoretapa_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true);
echo "\">edit</a>\n </li>\n </ul>\n </td>\n </tr>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo " </tbody>\n </table>\n\n <ul>\n <li>\n <a href=\"";
// line 40
echo $this->env->getExtension('routing')->getPath("clasificadoretapa_new");
echo "\">\n Create a new entry\n </a>\n </li>\n </ul>\n ";
}
开发者ID:admarin1985,项目名称:tickets,代码行数:34,代码来源:c712d99219a1087b4c6b596b40594b4a5d9844a3f42e8c47dd183d0068a0.php
示例5: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<table ";
if (array_key_exists("class", $context)) {
echo "class='";
echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "html", null, true);
echo "'";
}
echo " >\n <thead>\n <tr>\n <th scope=\"col\">Key</th>\n <th scope=\"col\">Value</th>\n </tr>\n </thead>\n <tbody>\n ";
// line 9
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->getAttribute(isset($context["bag"]) ? $context["bag"] : $this->getContext($context, "bag"), "keys", array())));
foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
// line 10
echo " <tr>\n <th>";
// line 11
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "</th>\n ";
// line 13
echo " <td>";
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["bag"]) ? $context["bag"] : $this->getContext($context, "bag"), "get", array(0 => $context["key"]), "method"), 64 | 256), "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 16
echo " </tbody>\n</table>\n";
}
开发者ID:jeremie38,项目名称:tpphp,代码行数:30,代码来源:294e791c5ea4d93f9eb84ce94046b071c2ef58397c3bdaa14b5a0b85a62e00d7.php
示例6: block_body
public function block_body($context, array $blocks = array())
{
// line 11
echo " ";
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "session"), "flashbag"), "get", array(0 => "notice"), "method"));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 12
echo " <div class=\"flash-message\">\n <em>Notice</em>: ";
// line 13
echo twig_escape_filter($this->env, isset($context["flashMessage"]) ? $context["flashMessage"] : $this->getContext($context, "flashMessage"), "html", null, true);
echo "\n </div>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 16
echo "\n ";
// line 17
$this->displayBlock('content_header', $context, $blocks);
// line 26
echo "\n <div class=\"block\">\n ";
// line 28
$this->displayBlock('content', $context, $blocks);
// line 29
echo " </div>\n\n ";
// line 31
if (array_key_exists("code", $context)) {
// line 32
echo " <h2>Code behind this page</h2>\n <div class=\"block\">\n <div class=\"symfony-content\">";
// line 34
echo isset($context["code"]) ? $context["code"] : $this->getContext($context, "code");
echo "</div>\n </div>\n ";
}
}
开发者ID:iurkidi,项目名称:unirecetas,代码行数:35,代码来源:389e7df63f587ea41a260f4529dba36b65fb2ac3946c92b58eaabcc544b8.php
示例7: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "[exception] ";
echo (isset($context["status_code"]) ? $context["status_code"] : null) . " | " . (isset($context["status_text"]) ? $context["status_text"] : null) . " | " . $this->getAttribute(isset($context["exception"]) ? $context["exception"] : null, "class", array());
echo "\n[message] ";
// line 2
echo $this->getAttribute(isset($context["exception"]) ? $context["exception"] : null, "message", array());
echo "\n";
// line 3
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["exception"]) ? $context["exception"] : null, "toarray", array()));
foreach ($context['_seq'] as $context["i"] => $context["e"]) {
// line 4
echo "[";
echo $context["i"] + 1;
echo "] ";
echo $this->getAttribute($context["e"], "class", array());
echo ": ";
echo $this->getAttribute($context["e"], "message", array());
echo "\n";
// line 5
$this->loadTemplate("TwigBundle:Exception:traces.txt.twig", "TwigBundle:Exception:exception.txt.twig", 5)->display(array("exception" => $context["e"]));
// line 6
echo "\n";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['i'], $context['e'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
开发者ID:kapilpatel20,项目名称:blogbundle,代码行数:30,代码来源:772dcb26bfb3a33e78da24b5658c65d8759ac82260649560617f21855db0dac0.php
示例8: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_5d013e2c33d1e89ee3dbac3863b54372b2d7fe46b0804537e2368bd4167ff011 = $this->env->getExtension("native_profiler");
$__internal_5d013e2c33d1e89ee3dbac3863b54372b2d7fe46b0804537e2368bd4167ff011->enter($__internal_5d013e2c33d1e89ee3dbac3863b54372b2d7fe46b0804537e2368bd4167ff011_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/logs.html.twig"));
// line 1
echo "<ol class=\"traces logs\">\n ";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["logs"]) ? $context["logs"] : $this->getContext($context, "logs"));
foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
// line 3
echo " <li";
if ($this->getAttribute($context["log"], "priority", array()) >= 400) {
echo " class=\"error\"";
} elseif ($this->getAttribute($context["log"], "priority", array()) >= 300) {
echo " class=\"warning\"";
}
echo ">\n ";
// line 4
echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "priorityName", array()), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "message", array()), "html", null, true);
echo "\n </li>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 7
echo "</ol>\n";
$__internal_5d013e2c33d1e89ee3dbac3863b54372b2d7fe46b0804537e2368bd4167ff011->leave($__internal_5d013e2c33d1e89ee3dbac3863b54372b2d7fe46b0804537e2368bd4167ff011_prof);
}
开发者ID:Crymsius,项目名称:AnonymousGift,代码行数:31,代码来源:b675601cd3af552cba4ae1876a7a91256883d82910f56c707fa0a023c6efc971.php
示例9: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<?xml version=\"1.0\" encoding=\"";
echo twig_escape_filter($this->env, $this->env->getCharset(), "html", null, true);
echo "\" ?>\n\n<error code=\"";
// line 3
echo twig_escape_filter($this->env, isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "html", null, true);
echo "\" message=\"";
echo twig_escape_filter($this->env, isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"), "html", null, true);
echo "\">\n";
// line 4
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "toarray", array()));
foreach ($context['_seq'] as $context["_key"] => $context["e"]) {
// line 5
echo " <exception class=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "class", array()), "html", null, true);
echo "\" message=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "message", array()), "html", null, true);
echo "\">\n";
// line 6
$this->loadTemplate("TwigBundle:Exception:traces.xml.twig", "TwigBundle:Exception:exception.xml.twig", 6)->display(array("exception" => $context["e"]));
// line 7
echo " </exception>\n";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['e'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 9
echo "</error>\n";
}
开发者ID:ewrwq,项目名称:xh,代码行数:32,代码来源:0f8170328aab6a4ba403c39ff57888887e40378c4b7ea9c15726ee9fd66698f0.php
示例10: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "[exception] ";
echo twig_escape_filter($this->env, (isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code")) . " | " . (isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text")) . " | " . $this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "class"), "html", null, true);
echo "\n[message] ";
// line 2
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "message"), "html", null, true);
echo "\n";
// line 3
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "toarray"));
foreach ($context['_seq'] as $context["i"] => $context["e"]) {
// line 4
echo "[";
echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")) + 1, "html", null, true);
echo "] ";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["e"]) ? $context["e"] : $this->getContext($context, "e"), "class"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["e"]) ? $context["e"] : $this->getContext($context, "e"), "message"), "html", null, true);
echo "\n";
// line 5
$this->env->loadTemplate("TwigBundle:Exception:traces.txt.twig")->display(array("exception" => isset($context["e"]) ? $context["e"] : $this->getContext($context, "e")));
// line 6
echo "\n";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['i'], $context['e'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
开发者ID:amirmasoud,项目名称:symfony-bookstore,代码行数:30,代码来源:a87994b0b5046283046b0d87dedfb190db8008ca3190b50c9497616517d3.php
示例11: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\"btn-group\">\n ";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "contenttypes"), "method"));
foreach ($context['_seq'] as $context["contenttypeslug"] => $context["contenttype"]) {
// line 3
echo " ";
if ($this->env->getExtension('Bolt')->isAllowed("contenttype:" . $context["contenttypeslug"] . ":create") && $this->env->getExtension('Bolt')->isAllowed("contenttype:" . $context["contenttypeslug"] . ":view")) {
// line 4
echo " <a class=\"btn btn-default\" href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("editcontent", array("contenttypeslug" => $context["contenttypeslug"])), "html", null, true);
echo "\">\n <i class=\"fa fa-plus\"></i> ";
// line 5
echo $this->env->getExtension('Bolt')->trans("contenttypes.generic.new", array("%contenttype%" => $context["contenttypeslug"]));
echo "\n </a>\n ";
}
// line 8
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['contenttypeslug'], $context['contenttype'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 9
echo "</div>\n";
}
开发者ID:bearlikelion,项目名称:im,代码行数:28,代码来源:494dcf01fb1cf40ca0c170997e3a92bf2781be398f6b3503943d0e7f99b3932e.php
示例12: block_content
public function block_content($context, array $blocks = array())
{
$__internal_0beace1c1ded6a240615130c94c562ef6bdff055ff856ba7ec49189a88deffae = $this->env->getExtension("native_profiler");
$__internal_0beace1c1ded6a240615130c94c562ef6bdff055ff856ba7ec49189a88deffae->enter($__internal_0beace1c1ded6a240615130c94c562ef6bdff055ff856ba7ec49189a88deffae_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "content"));
// line 4
echo " <h2>Item List</h2>\n <ul>\n ";
// line 6
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["items"]) ? $context["items"] : $this->getContext($context, "items"));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 7
echo " <li><a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("item-detail", array("id" => $this->getAttribute($context["item"], "id", array()))), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "name", array()), "html", null, true);
echo "</a> | <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("item-edit", array("id" => $this->getAttribute($context["item"], "id", array()))), "html", null, true);
echo "\">Edit</a> - <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("item-delete", array("id" => $this->getAttribute($context["item"], "id", array()))), "html", null, true);
echo "\">Delete</a></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 9
echo " </ul>\n <a href=\"\">Add New</a>\n";
$__internal_0beace1c1ded6a240615130c94c562ef6bdff055ff856ba7ec49189a88deffae->leave($__internal_0beace1c1ded6a240615130c94c562ef6bdff055ff856ba7ec49189a88deffae_prof);
}
开发者ID:bamper,项目名称:clothing_store_symfony,代码行数:28,代码来源:52241ee42fd0a2107a51f23da2284f7055f390378645993b90ca5c126793de7c.php
示例13: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$tags = array("if" => 22, "for" => 33);
$filters = array();
$functions = array();
try {
$this->env->getExtension('sandbox')->checkSecurity(array('if', 'for'), array(), 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 22
if (isset($context["multiple"]) ? $context["multiple"] : null) {
// line 23
echo " <div class=\"js-form-item form-item\">\n ";
// line 24
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 ";
// line 25
if ($this->getAttribute(isset($context["description"]) ? $context["description"] : null, "content", array())) {
// line 26
echo " <div";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute(isset($context["description"]) ? $context["description"] : null, "attributes", array()), "addClass", array(0 => "description"), "method"), "html", null, true));
echo " >";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["description"]) ? $context["description"] : null, "content", array()), "html", null, true));
echo "</div>\n ";
}
// line 28
echo " ";
if (isset($context["button"]) ? $context["button"] : null) {
// line 29
echo " <div class=\"clearfix\">";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["button"]) ? $context["button"] : null, "html", null, true));
echo "</div>\n ";
}
// line 31
echo " </div>\n";
} else {
// line 33
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["elements"]) ? $context["elements"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["element"]) {
// line 34
echo " ";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["element"], "html", null, true));
echo "\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['element'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
}
开发者ID:gerbreown1,项目名称:calvaryfree,代码行数:60,代码来源:070280076baae58151cc0db7912c470385224523254c6a0d311c5489aaf9c0a7.php
示例14: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_c1163754d0e4d1281a554d1d1a36e672ce0044b5a7e9e9ea63c91155a4ffe018 = $this->env->getExtension("native_profiler");
$__internal_c1163754d0e4d1281a554d1d1a36e672ce0044b5a7e9e9ea63c91155a4ffe018->enter($__internal_c1163754d0e4d1281a554d1d1a36e672ce0044b5a7e9e9ea63c91155a4ffe018_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "ReportsBundle:Default:bloodFilter.html.twig"));
// line 1
echo "<ul class=\"submenu\">\n";
// line 2
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["elems"]) ? $context["elems"] : $this->getContext($context, "elems"));
foreach ($context['_seq'] as $context["_key"] => $context["e"]) {
// line 3
echo " <li class=\"disabled\">\n <a id=\"";
// line 4
echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "id", array()), "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "text", array()), "html", null, true);
echo "\" class=\"blood\">\n <i class=\"icon-double-angle-right\"></i>\n ";
// line 6
echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "text", array()), "html", null, true);
echo "\n </a>\n </li>\n";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['e'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 10
echo "</ul>\n\n\n\n";
$__internal_c1163754d0e4d1281a554d1d1a36e672ce0044b5a7e9e9ea63c91155a4ffe018->leave($__internal_c1163754d0e4d1281a554d1d1a36e672ce0044b5a7e9e9ea63c91155a4ffe018_prof);
}
开发者ID:joprietoe,项目名称:becker,代码行数:28,代码来源:7c5dff8f30de0fd3e6d52bfb75b64942e1b6a0cac7189ab7f509bba1c832ac88.php
示例15: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_50c4d1ea1f9cf5530087b308bea560ca82a1653a63c844d1ce82a7b199781db7 = $this->env->getExtension("native_profiler");
$__internal_50c4d1ea1f9cf5530087b308bea560ca82a1653a63c844d1ce82a7b199781db7->enter($__internal_50c4d1ea1f9cf5530087b308bea560ca82a1653a63c844d1ce82a7b199781db7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "EsieaBlogBundle:Advert:menu.html.twig"));
// line 2
echo "\n";
// line 5
echo "\n<ul class=\"nav nav-pills nav-stacked\">\n ";
// line 7
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["listAdverts"]) ? $context["listAdverts"] : $this->getContext($context, "listAdverts"));
foreach ($context['_seq'] as $context["_key"] => $context["advert"]) {
// line 8
echo " <li>\n <a href=\"";
// line 9
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("esiea_blog_view", array("id" => $this->getAttribute($context["advert"], "id", array()))), "html", null, true);
echo "\">\n ";
// line 10
echo twig_escape_filter($this->env, $this->getAttribute($context["advert"], "titre", array()), "html", null, true);
echo "\n </a>\n </li>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['advert'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 14
echo "</ul>";
$__internal_50c4d1ea1f9cf5530087b308bea560ca82a1653a63c844d1ce82a7b199781db7->leave($__internal_50c4d1ea1f9cf5530087b308bea560ca82a1653a63c844d1ce82a7b199781db7_prof);
}
开发者ID:hafidatabet,项目名称:Blog_Cuisine-symfony2,代码行数:28,代码来源:0ed64225b136812c0cab7f76a07ec5f493c292cbd5dc8845fe4778b7bb366c3d.php
示例16: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_b3d1a8db5a0cb6995c17e8ced2d163913a69dd9ffd0d2fd87aa1905ec69b25a8 = $this->env->getExtension("native_profiler");
$__internal_b3d1a8db5a0cb6995c17e8ced2d163913a69dd9ffd0d2fd87aa1905ec69b25a8->enter($__internal_b3d1a8db5a0cb6995c17e8ced2d163913a69dd9ffd0d2fd87aa1905ec69b25a8_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:exception.xml.twig"));
// line 1
echo "<?xml version=\"1.0\" encoding=\"";
echo twig_escape_filter($this->env, $this->env->getCharset(), "html", null, true);
echo "\" ?>\n\n<error code=\"";
// line 3
echo twig_escape_filter($this->env, isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "html", null, true);
echo "\" message=\"";
echo twig_escape_filter($this->env, isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"), "html", null, true);
echo "\">\n";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "toarray", array()));
foreach ($context['_seq'] as $context["_key"] => $context["e"]) {
// line 5
echo " <exception class=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "class", array()), "html", null, true);
echo "\" message=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "message", array()), "html", null, true);
echo "\">\n";
// line 6
$this->loadTemplate("TwigBundle:Exception:traces.xml.twig", "TwigBundle:Exception:exception.xml.twig", 6)->display(array("exception" => $context["e"]));
// line 7
echo " </exception>\n";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['e'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 9
echo "</error>\n";
$__internal_b3d1a8db5a0cb6995c17e8ced2d163913a69dd9ffd0d2fd87aa1905ec69b25a8->leave($__internal_b3d1a8db5a0cb6995c17e8ced2d163913a69dd9ffd0d2fd87aa1905ec69b25a8_prof);
}
开发者ID:Milkyway2605,项目名称:EasyStage_Symfony,代码行数:35,代码来源:34569df449b104a7e0b8efaf7973eab6370b7cae4b4cf89caeee81820b6e90e8.php
|
请发表评论