本文整理汇总了PHP中twig_cycle函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_cycle函数的具体用法?PHP twig_cycle怎么用?PHP twig_cycle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twig_cycle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: block_body
public function block_body($context, array $blocks = array())
{
$__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2 = $this->env->getExtension("native_profiler");
$__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2->enter($__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
// line 5
echo " <h1>Lucky Numbers: ";
echo twig_escape_filter($this->env, isset($context["luckyNumberList"]) ? $context["luckyNumberList"] : $this->getContext($context, "luckyNumberList"), "html", null, true);
echo "</h1>\n ";
// line 6
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(range(0, 10));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 7
echo "\t <div class=\"";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $context["i"]), "html", null, true);
echo "\">\n\t ";
// line 8
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\n\t </div>\n\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2->leave($__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2_prof);
}
开发者ID:johnsnow91,项目名称:myBlog,代码行数:25,代码来源:9e0bb8f50e2b233ecc188cd08bfc325b27e8db9301f06ad2f4b2c5498a49e01a.php
示例2: block_panel
public function block_panel($context, array $blocks = array())
{
// line 28
echo " <h2>Logs</h2>\n\n ";
// line 30
if ($this->getAttribute($this->getContext($context, "collector"), "logs")) {
// line 31
echo " <ul class=\"alt\">\n ";
// line 32
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "logs"));
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
// line 33
echo " <li class=\"";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
if ("ERR" == $this->getAttribute($this->getContext($context, "log"), "priorityName") || "ERROR" == $this->getAttribute($this->getContext($context, "log"), "priorityName")) {
echo " error";
}
echo "\">\n ";
// line 34
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "message"), "html", null, true);
echo "\n ";
// line 35
if ($this->getAttribute($this->getContext($context, "log", true), "context", array(), "any", true, true) && !twig_test_empty($this->getAttribute($this->getContext($context, "log"), "context"))) {
// line 36
echo " <br />\n <small>\n <strong>Context</strong>: ";
// line 38
echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, "log"), "context")), "html", null, true);
echo "\n </small>\n ";
}
// line 41
echo " </li>\n ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
$context = array_merge($_parent, array_intersect_key($context, $_parent));
// line 43
echo " </ul>\n ";
} else {
// line 45
echo " <p>\n <em>No logs available.</em>\n </p>\n ";
}
}
示例3: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 3
echo "\n<div>\n ";
// line 5
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["comments"]) ? $context["comments"] : $this->getContext($context, "comments"));
$context['_iterated'] = false;
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
// line 6
echo " <article class=\"comment ";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index0")), "html", null, true);
echo "\" id=\"comment-";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "id"), "html", null, true);
echo "\">\n <header class=\"ici02\">\n <p><span class=\"highlight\">";
// line 8
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "usuario"), "html", null, true);
echo "</span> ha comentado hace <time datetime=\"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "creado"), "c"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, strtr($this->env->getExtension('JMPC_PetFriends_Protectors_extension')->createdAgo($this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "creado")), array("minutes ago" => "minutos")), "html", null, true);
echo "</time></p>\n </header>\n <p>";
// line 10
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "comentarios"), "html", null, true);
echo "</p>\n </article>\n ";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 13
echo " <p>No hay comentarios en esta entrada, Escribe tu comentario...</p>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
echo " <div class=\"paginacion\">\n ";
// line 16
echo $this->env->getExtension('knp_pagination')->render(isset($context["comments"]) ? $context["comments"] : $this->getContext($context, "comments"));
echo "\n </div>\n</div>\n";
}
开发者ID:Checo1983,项目名称:petfriends,代码行数:56,代码来源:0f73676d75ba996c5d70ad218a5f5ce07a7042b54f6246f5d3a4920fb31e.php
示例4: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 2
echo "\n";
// line 3
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getContext($context, "comments"));
$context['_iterated'] = false;
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
// line 4
echo " <article class=\"comment ";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index0")), "html", null, true);
echo "\" id=\"comment-";
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "id"), "html", null, true);
echo "\">\n <header>\n <p><span class=\"highlight\">";
// line 6
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "user"), "html", null, true);
echo "</span> commented <time datetime=\"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "created"), "c"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "created"), "l, F j, Y"), "html", null, true);
echo "</time></p>\n </header>\n <p>";
// line 8
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "comment"), "html", null, true);
echo "</p>\n </article>\n";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 11
echo " <p>There are no comments for this post. Be the first to comment...</p>\n";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
$context = array_merge($_parent, array_intersect_key($context, $_parent));
// line 13
echo " \n ";
}
示例5: block_panel
public function block_panel($context, array $blocks = array())
{
// line 24
echo " <h2>Queries</h2>\n\n ";
// line 26
if (!$this->getAttribute($this->getContext($context, "collector"), "queries")) {
// line 27
echo " <p>\n <em>Query logging is disabled.</em>\n <p>\n ";
} elseif (!$this->getAttribute($this->getContext($context, "collector"), "querycount")) {
// line 31
echo " <p>\n <em>No queries.</em>\n </p>\n ";
} else {
// line 35
echo " <ul class=\"alt\">\n ";
// line 36
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "queries"));
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["query"]) {
// line 37
echo " <li class=\"";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
echo "\">\n <div>\n <code>";
// line 39
echo twig_escape_filter($this->env, $this->getContext($context, "query"), "html", null, true);
echo "</code>\n </div>\n </li>\n ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['query'], $context['_parent'], $context['loop']);
$context = array_merge($_parent, array_intersect_key($context, $_parent));
// line 43
echo " </ul>\n ";
}
}
示例6: block_content
public function block_content($context, array $blocks = array())
{
// line 9
echo " <div id=\"jobs\">\n <table class=\"jobs\">\n ";
// line 11
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getContext($context, "entities"));
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
// line 12
echo " <tr class=\"";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "even", 1 => "odd"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
echo "\">\n <td class=\"location\">";
// line 13
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "entity"), "location"), "html", null, true);
echo "</td>\n <td class=\"position\">\n <a href=\"";
// line 15
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("ens_job_show", array("id" => $this->getAttribute($this->getContext($context, "entity"), "id"))), "html", null, true);
echo "\">\n ";
// line 16
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "entity"), "position"), "html", null, true);
echo "\n </a>\n </td>\n <td class=\"company\">";
// line 19
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "entity"), "company"), "html", null, true);
echo "</td>\n </tr>\n ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
$context = array_merge($_parent, array_intersect_key($context, $_parent));
// line 22
echo " </table>\n </div>\n";
}
示例7: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<table class=\"jobs\">\n ";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["jobs"]) ? $context["jobs"] : $this->getContext($context, "jobs"));
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
// line 3
echo " <tr class=";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "even", 1 => "odd"), $this->getAttribute($context["loop"], "index", array())), "html", null, true);
echo ">\n <td class=\"location\">";
// line 4
echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "location", array()), "html", null, true);
echo "</td>\n <td class=\"position\">\n <a href=";
// line 6
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("erlem_job_show", array("id" => $this->getAttribute($context["entity"], "id", array()), "company" => $this->getAttribute($context["entity"], "companyslug", array()), "location" => $this->getAttribute($context["entity"], "locationslug", array()), "position" => $this->getAttribute($context["entity"], "positionslug", array()))), "html", null, true);
echo ">\n ";
// line 7
echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "position", array()), "html", null, true);
echo "\n </a>\n </td>\n <td class=\"company\">";
// line 10
echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "company", array()), "html", null, true);
echo "</td>\n </tr>\n ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 13
echo "</table>";
}
开发者ID:nfouka,项目名称:jobbet_sf2.5,代码行数:47,代码来源:8b2c14f12f465728ea6d3d6c6315dd6d46ad38088695ed1c2a9b8a6fc857ba14.php
示例8: block_body
public function block_body($context, array $blocks = array())
{
// line 5
echo " \n<h1>Calculadora básica:</h1>\n\n<label for=\"ab\">Valores pasados como parámetros</label><br>\n<label for=\"a\">VALOR A</label>\n<input type=\"text\" name=\"a\" id=\"a\" value=";
// line 10
echo twig_escape_filter($this->env, isset($context["varA"]) ? $context["varA"] : $this->getContext($context, "varA"), "html", null, true);
echo "><br>\n<label for=\"b\">VALOR B</label>\n<input type=\"text\" name=\"b\" id=\"b\" value=";
// line 12
echo twig_escape_filter($this->env, isset($context["varB"]) ? $context["varB"] : $this->getContext($context, "varB"), "html", null, true);
echo "><br>\n\n<div>\n</div>\nEl resultado de la operación ";
// line 16
echo twig_escape_filter($this->env, isset($context["operacion"]) ? $context["operacion"] : $this->getContext($context, "operacion"), "html", null, true);
echo "<br> \n";
// line 17
echo twig_escape_filter($this->env, isset($context["varA"]) ? $context["varA"] : $this->getContext($context, "varA"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, isset($context["operando"]) ? $context["operando"] : $this->getContext($context, "operando"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, isset($context["varB"]) ? $context["varB"] : $this->getContext($context, "varB"), "html", null, true);
echo " es: ";
echo twig_escape_filter($this->env, isset($context["resultado"]) ? $context["resultado"] : $this->getContext($context, "resultado"), "html", null, true);
echo "<br>\n\n<br>\n<br>\n ";
// line 21
$context["frutas"] = array(0 => "manzana", 1 => "naranaja", 2 => "citricos");
// line 22
echo " ";
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(range(0, 10));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 23
echo " ";
echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")) . " " . twig_cycle(isset($context["frutas"]) ? $context["frutas"] : $this->getContext($context, "frutas"), isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
echo "\n <br>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
echo " \n";
}
开发者ID:santiagosisul,项目名称:curso-sf2,代码行数:40,代码来源:d00a15794588e6aac2e62d87f441d940b1138a3c13d323894dc959f16093.php
示例9: doDisplay
//.........这里部分代码省略.........
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
// line 70
echo "</";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
echo ">\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 72
echo " </tr>\n </thead>\n ";
}
// line 75
echo "\n ";
// line 76
if (isset($context["rows"]) ? $context["rows"] : null) {
// line 77
echo " <tbody>\n ";
// line 78
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["rows"]) ? $context["rows"] : null);
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
// line 79
echo " ";
// line 80
$context["row_classes"] = array(0 => !(isset($context["no_striping"]) ? $context["no_striping"] : null) ? twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index0", array())) : "");
// line 84
echo " <tr";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["row"], "attributes", array()), "addClass", array(0 => isset($context["row_classes"]) ? $context["row_classes"] : null), "method"), "html", null, true));
echo ">\n ";
// line 85
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "cells", array()));
foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
// line 86
echo " <";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "attributes", array()), "html", null, true));
echo ">";
// line 87
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
// line 88
echo "</";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
echo ">\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 90
echo " </tr>\n ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
开发者ID:neetumorwani,项目名称:dcon,代码行数:67,代码来源:afb11dc0750d453ef8d20ee1a139e52fed8d741753e61789ff47d5a66f2fbc8b.php
示例10: block_panel
public function block_panel($context, array $blocks = array())
{
// line 55
echo " <h2>Logs</h2>\n\n ";
// line 57
$context["priority"] = $this->getAttribute($this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "query"), "get", array(0 => "priority", 1 => 0), "method");
// line 58
echo "\n <table>\n <tr>\n <th>Filter</th>\n <td>\n <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">\n <input type=\"hidden\" name=\"panel\" value=\"logger\">\n <label for=\"priority\">Min. Priority</label>\n <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">\n ";
// line 68
echo " ";
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "priorities"));
foreach ($context['_seq'] as $context["value"] => $context["level"]) {
// line 69
echo " ";
if (!(isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) && (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")) > 100) {
// line 70
echo " ";
$context["priority"] = isset($context["value"]) ? $context["value"] : $this->getContext($context, "value");
// line 71
echo " ";
}
// line 72
echo " <option value=\"";
echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), "html", null, true);
echo "\"";
echo (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")) == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) ? " selected" : "";
echo ">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["level"]) ? $context["level"] : $this->getContext($context, "level"), "name"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["level"]) ? $context["level"] : $this->getContext($context, "level"), "count"), "html", null, true);
echo ")</option>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['level'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 74
echo " ";
if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countdeprecations")) {
// line 75
echo " ";
if (!(isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority"))) {
// line 76
echo " ";
$context["priority"] = "-100";
// line 77
echo " ";
}
// line 78
echo " <option value=\"-100\"";
echo "-100" == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) ? " selected" : "";
echo ">DEPRECATION only (";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countdeprecations"), "html", null, true);
echo ")</option>\n ";
}
// line 80
echo " </select>\n <noscript>\n <input type=\"submit\" value=\"refresh\">\n </noscript>\n </form>\n </td>\n </tr>\n </table>\n\n ";
// line 89
if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs")) {
// line 90
echo " <ul class=\"alt\">\n ";
// line 91
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs"));
$context['_iterated'] = false;
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
if ((isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) >= 0 && $this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priority") >= (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) || (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) < 0 && ($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "type", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "type"), 0) : 0) == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority"))) {
// line 92
echo " <li class=\"";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index")), "html", null, true);
if ($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priority") >= 400) {
echo " error";
} elseif ($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priority") >= 300) {
echo " warning";
}
if ($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "scream", array(), "any", true, true)) {
echo " scream";
}
echo "\">\n ";
// line 93
echo $context["logger"]->getdisplay_message($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index"), isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"));
echo "\n </li>\n ";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
}
}
if (!$context['_iterated']) {
// line 96
echo " <li><em>No logs available for this priority.</em></li>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 98
echo " </ul>\n ";
} else {
// line 100
//.........这里部分代码省略.........
开发者ID:ancgate,项目名称:ldap_project,代码行数:101,代码来源:e499d8c074a9b8bdd278904665b95b1c51988d1c350592e07d27a6b8aa74.php
示例11: block_grid_search
public function block_grid_search($context, array $blocks = array())
{
// line 74
echo " ";
if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "isFilterSectionVisible", array())) {
// line 75
echo " <div class=\"grid-search\">\n <form id=\"";
// line 76
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "hash", array()), "html", null, true);
echo "_search\" action=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "routeUrl", array()), "html", null, true);
echo "\" method=\"post\">\n ";
// line 77
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "columns", array()));
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
// line 78
echo " ";
if ($this->getAttribute($context["column"], "isFilterable", array()) && !twig_in_filter($this->getAttribute($context["column"], "type", array()), array(0 => "actions", 1 => "massaction"))) {
// line 79
echo " ";
if ($this->getAttribute($context["column"], "usePrefixTitle", array()) == true) {
// line 80
echo " ";
$context["columnTitle"] = $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "prefixTitle", array()) . $this->getAttribute($context["column"], "title", array());
// line 81
echo " ";
} else {
// line 82
echo " ";
$context["columnTitle"] = $this->getAttribute($context["column"], "title", array());
// line 83
echo " ";
}
// line 84
echo " <div class=\"";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index", array())), "html", null, true);
echo "\"><label>";
echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans(isset($context["columnTitle"]) ? $context["columnTitle"] : $this->getContext($context, "columnTitle")), "html", null, true);
echo "</label>";
echo $this->env->getExtension('datagrid_twig_extension')->getGridFilter($context["column"], isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), false);
echo "</div>\n ";
}
// line 86
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 87
echo " <div class=\"grid-search-action\"><input type=\"submit\" class=\"grid-search-submit\" value=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Search"), "html", null, true);
echo "\"/><input type=\"button\" class=\"grid-search-reset\" value=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Reset"), "html", null, true);
echo "\" onclick=\"return ";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "hash", array()), "html", null, true);
echo "_reset();\"/></div>\n </form>\n </div>\n ";
}
}
开发者ID:ramisg85,项目名称:oueslatirami,代码行数:75,代码来源:532efd65cf5dee3a4cdd7c6202ef2ab8180fb6694f1c3ac5002a7298aa91.php
示例12: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 4
echo "\n<div class=\"grid_5 prefix_0\">\n <h2 class=\"ic3\">Comentarios recientes</h2>\n <ul class=\"list\">\n ";
// line 8
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["latestComments"]) ? $context["latestComments"] : $this->getContext($context, "latestComments"));
$context['_iterated'] = false;
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["comentario"]) {
// line 9
echo " <li>\n <span class=\"";
// line 10
echo twig_escape_filter($this->env, twig_cycle(array(0 => "", 1 => "cnt"), $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index0")), "html", null, true);
echo "\"><time datetime=\"\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "creado"), "d"), "html", null, true);
echo "<span>";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "creado"), "F"), "html", null, true);
echo "</span></time></span>\n <div class=\"extra_wrapper\">\n <div class=\"col1\">\n <span class=\"highlight\">";
// line 13
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "usuario")), "html", null, true);
echo "</span> ha comentado en\n <a href=\"";
// line 14
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_list", array("id" => $this->getAttribute($this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "contenido"), "id"), "slug" => $this->getAttribute($this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "contenido"), "slug"))), "html", null, true);
echo "#comentario-";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "id"), "html", null, true);
echo "\">\n ";
// line 15
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "contenido"), "titulo"), "html", null, true);
echo "\n </a>";
// line 16
echo twig_escape_filter($this->env, $this->env->getExtension('JMPC_PetFriends_Protectors_extension')->createdAgo($this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "creado")), "html", null, true);
echo "\n </div>\n <p>";
// line 18
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "comentarios", array(0 => 50), "method"), "html", null, true);
echo "</p>\n </div>\n \n </li>\n ";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 23
echo " <p>No hay comentarios recientes</p>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comentario'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " </ul>\n <section class=\"sidebar\">\n <h3>Etiquetas mas usadas</h3>\n <p class=\"tags\">\n ";
// line 29
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["tags"]) ? $context["tags"] : $this->getContext($context, "tags"));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["tag"] => $context["weight"]) {
// line 30
echo " <span class=\"weight-";
echo twig_escape_filter($this->env, isset($context["weight"]) ? $context["weight"] : $this->getContext($context, "weight"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, isset($context["tag"]) ? $context["tag"] : $this->getContext($context, "tag"), "html", null, true);
echo "</span>\n ";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 32
echo " <p>No hay etiquetas</p>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['tag'], $context['weight'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " </p>\n </section>\n</div>\n\n";
}
开发者ID:Checo1983,项目名称:petfriends,代码行数:85,代码来源:21dfd4a5561c8dd6e67249f080f2d33afdb6eebdf78c93481e1ee6ba5f09.php
示例13: block_panel
public function block_panel($context, array $blocks = array())
{
$__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e = $this->env->getExtension("native_profiler");
$__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e->enter($__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
// line 35
echo " <h2>Commands</h2>\n\n ";
// line 37
if (!$this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "commandcount", array())) {
// line 38
echo " <p><em>No commands.</em></p>\n ";
} else {
// line 40
echo " <ul class=\"alt\">\n ";
// line 41
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "commands", array()));
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["command"]) {
// line 42
echo " <li class=\"";
echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index", array())), "html", null, true);
if ($this->getAttribute($context["command"], "error", array())) {
echo " error";
}
echo "\">\n <div>\n <code>";
// line 44
echo twig_escape_filter($this->env, $this->getAttribute($context["command"], "cmd", array()), "html", null, true);
echo "</code>\n </div>\n <small>\n <strong>Time</strong>: ";
// line 47
echo twig_escape_filter($this->env, sprintf("%0.2f", $this->getAttribute($context["command"], "executionMS", array())), "html", null, true);
echo " ms\n <strong>Connection</strong>: ";
// line 48
echo twig_escape_filter($this->env, $this->getAttribute($context["command"], "conn", array()), "html", null, true);
echo "\n ";
// line 49
if ($this->getAttribute($context["command"], "error", array())) {
echo "<strong>Error</strong>: ";
echo twig_escape_filter($this->env, $this->getAttribute($context["command"], "error", array()), "html", null, true);
}
// line 50
echo " </small>\n </li>\n ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['command'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo " </ul>\n ";
}
$__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e->leave($__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e_prof);
}
开发者ID:ajoaugustine,项目名称:tracker,代码行数:65,代码来源:c5a912304e10e12b4f98bcd50e28b5226a28afb07dd2b2320815ec7bbc69e554.php
示例14: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$tags = array("for" => 34, "set" => 35, "if" => 50);
$filters = array("t" => 28);
$functions = array("cycle" => 35);
try {
$this->env->getExtension('sandbox')->checkSecurity(array('for', 'set', 'if'), array('t'), array('cycle'));
} 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 25
echo "<table class=\"responsive-enabled\" data-striping=\"1\">\n <thead>\n <tr>\n <th class=\"checkbox visually-hidden\">";
// line 28
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Installed")));
echo "</th>\n <th class=\"name visually-hidden\">";
// line 29
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Name")));
echo "</th>\n <th class=\"description visually-hidden priority-low\">";
// line 30
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Description")));
echo "</th>\n </tr>\n </thead>\n <tbody>\n ";
// line 34
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["modules"]) ? $context["modules"] : null);
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 35
echo " ";
$context["zebra"] = twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index0", array()));
// line 36
echo " <tr";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", array()), "addClass", array(0 => isset($context["zebra"]) ? $context["zebra"] : null), "method"), "html", null, true));
echo ">\n <td class=\"checkbox\">\n ";
// line 38
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "checkbox", array()), "html", null, true));
echo "\n </td>\n <td class=\"module\">\n <label id=\"";
// line 41
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "id", array()), "html", null, true));
echo "\" for=\"";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "enable_id", array()), "html", null, true));
echo "\" class=\"module-name table-filter-text-source\">";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "name", array()), "html", null, true));
echo "</label>\n </td>\n <td class=\"description expand priority-low\">\n <details class=\"js-form-wrapper form-wrapper\" id=\"";
// line 44
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "enable_id", array()), "html", null, true));
echo "-description\">\n <summary aria-controls=\"";
// line 45
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "enable_id", array()), "html", null, true));
echo "-description\" role=\"button\" aria-expanded=\"false\"><span class=\"text module-description\">";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "description", array()), "html", null, true));
echo "</span></summary>\n <div class=\"details-wrapper\">\n <div class=\"details-description\">\n <div class=\"requirements\">\n <div class=\"admin-requirements\">";
// line 49
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Machine name: <span dir=\"ltr\" class=\"table-filter-text-source\">@machine-name</span>", array("@machine-name" => $this->getAttribute($context["module"], "machine_name", array())))));
echo "</div>\n ";
// line 50
if ($this->getAttribute($context["module"], "version", array())) {
// line 51
echo " <div class=\"admin-requirements\">";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Version: @module-version", array("@module-version" => $this->getAttribute($context["module"], "version", array())))));
echo "</div>\n ";
}
// line 53
echo " ";
if ($this->getAttribute($context["module"], "requires", array())) {
// line 54
echo " <div class=\"admin-requirements\">";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Requires: @module-list", array("@module-list" => $this->getAttribute($context["module"], "requires", array())))));
echo "</div>\n ";
}
// line 56
echo " ";
if ($this->getAttribute($context["module"], "required_by", array())) {
// line 57
echo " <div class=\"admin-requirements\">";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Required by: @module-list", array("@module-list" => $this->getAttribute($context["module"], "required_by", array())))));
echo "</div>\n ";
}
// line 59
echo " </div>\n ";
// line 60
if ($this->getAttribute($context["module"], "links", array())) {
// line 61
echo " <div class=\"links\">\n ";
// line 62
$context['_parent'] = $context;
//.........这里部分代码省略.........
开发者ID:lulie566,项目名称:drupal-lulie,代码行数:101,代码来源:7f44af3586176d568b613bc45814799ff3f6c463b5b0a988a897da1962211f72.php
示例15: doDisplay
//.........这里部分代码省略.........
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
// line 82
echo "</";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
echo ">\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
echo " </tr>\n </thead>\n ";
}
// line 87
echo "\n ";
// line 88
if (isset($context["rows"]) ? $context["rows"] : null) {
// line 89
echo " <tbody>\n ";
// line 90
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["rows"]) ? $context["rows"] : null);
$context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
// line 91
echo " ";
// line 92
$context["row_classes"] = array(0 => !(isset($context["no_striping"]) ? $context["no_striping"] : null) ? twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index0", array())) : "");
// line 96
echo " <tr";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["row"], "attributes", array()), "addClass", array(0 => isset($context["row_classes"]) ? $context["row_classes"] : null), "method"), "html", null, true));
echo ">\n ";
// line 97
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "cells", array()));
foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
// line 98
echo " <";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "attributes", array()), "html", null, true));
echo ">";
// line 99
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
// line 100
echo "</";
echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
echo ">\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 102
echo " </tr>\n ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
开发者ID:emilienGallet,项目名称:DrupalUnicef,代码行数:67,代码来源:6f25a2020856daeeceb6d7311eae0fdf749e35be6adfb2946a0b1153119b19a6.php