本文整理汇总了PHP中twig_in_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_in_filter函数的具体用法?PHP twig_in_filter怎么用?PHP twig_in_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twig_in_filter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<ul class=\"g-bookmark-folders fa-ul\">\n ";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["folder"]) ? $context["folder"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["bookmarkFolder"]) {
// line 3
echo " <li data-folder=\"";
echo twig_escape_filter($this->env, twig_jsonencode_filter($context["bookmarkFolder"]), "html_attr");
echo "\"";
echo twig_in_filter($this->getAttribute($context["bookmarkFolder"], "pathname", array()), isset($context["active"]) ? $context["active"] : null) ? " class=\"active\"" : "";
echo "><i class=\"fa-li fa fa-folder-o\"></i> <span class=\"path\" title=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["bookmarkFolder"], "filename", array()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["bookmarkFolder"], "filename", array()), "html", null, true);
echo "</span></li>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bookmarkFolder'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 5
echo "</ul>\n";
}
开发者ID:JozefAB,项目名称:neoacu,代码行数:25,代码来源:b22348bc3a4d4e41dcb968e00179f7407844952276977abcef6324360607d3a1.php
示例2: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
if (twig_length_filter($this->env, $this->getAttribute(isset($context["loops"]) ? $context["loops"] : null, "quickmod", array()))) {
// line 2
echo "<div id=\"quickmod\" class=\"dropdown\">\n <button class=\"btn btn-default btn-block dropdown-toggle\" type=\"button\" id=\"quickmod-tools\" data-toggle=\"dropdown\" aria-expanded=\"true\">\n ";
// line 4
echo $this->env->getExtension('phpbb')->lang("QUICK_MOD");
echo "\n <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"quickmod-tools\" style=\"width: 100%;\">\n <!-- <li role=\"presentation\" class=\"dropdown-header\">Dropdown header</li> -->\n ";
// line 9
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["loops"]) ? $context["loops"] : null, "quickmod", array()));
foreach ($context['_seq'] as $context["_key"] => $context["quickmod"]) {
// line 10
echo "\t ";
$value = twig_in_filter($this->getAttribute($context["quickmod"], "VALUE", array()), array(0 => "lock", 1 => "unlock", 2 => "delete_topic", 3 => "restore_topic", 4 => "make_normal", 5 => "make_sticky", 6 => "make_announce", 7 => "make_global"));
$context['definition']->set('QUICKMOD_AJAX', $value);
// line 11
echo "\t <li role=\"presentation\"><a role=\"menuitem\" tabindex=\"-1\" href=\"";
echo $this->getAttribute($context["quickmod"], "LINK", array());
echo "\"";
if ($this->getAttribute(isset($context["definition"]) ? $context["definition"] : null, "QUICKMOD_AJAX", array())) {
echo " data-ajax=\"true\" data-refresh=\"true\"";
}
echo ">";
echo $this->getAttribute($context["quickmod"], "TITLE", array());
echo "</a></li>\n\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['quickmod'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 13
echo " </ul>\n</div>\t\t\n";
}
}
开发者ID:rinodung,项目名称:phpbb-forum,代码行数:35,代码来源:d92d514272c1596a7b647d34f008c217603805a16c340324f41eb52ff026996c.php
示例3: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<li class=\"ai1ec-dropdown ai1ec-tag-filter\n\t";
// line 2
if (!twig_test_empty(isset($context["selected_tag_ids"]) ? $context["selected_tag_ids"] : null)) {
echo "ai1ec-active";
}
echo "\">\n\t<a class=\"ai1ec-dropdown-toggle\" data-toggle=\"ai1ec-dropdown\">\n\t\t<i class=\"ai1ec-fa ai1ec-fa-tags\"></i>\n\t\t<span class=\"ai1ec-clear-filter ai1ec-tooltip-trigger\"\n\t\t\tdata-href=\"";
// line 6
echo twig_escape_filter($this->env, isset($context["clear_filter"]) ? $context["clear_filter"] : null, "html", null, true);
echo "\"\n\t\t\t";
// line 7
echo isset($context["data_type"]) ? $context["data_type"] : null;
echo "\n\t\t\ttitle=\"";
// line 8
echo twig_escape_filter($this->env, isset($context["text_clear_tag_filter"]) ? $context["text_clear_tag_filter"] : null, "html", null, true);
echo "\">\n\t\t\t<i class=\"ai1ec-fa ai1ec-fa-times-circle\"></i>\n\t\t</span>\n\t\t";
// line 11
echo twig_escape_filter($this->env, isset($context["text_tags"]) ? $context["text_tags"] : null, "html", null, true);
echo "\n\t\t<span class=\"ai1ec-caret\"></span>\n\t</a>\n\t<div class=\"ai1ec-dropdown-menu\">\n\t\t";
// line 15
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["tags"]) ? $context["tags"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["term"]) {
// line 16
echo "\t\t\t<span data-term=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), "html", null, true);
echo "\"\n\t\t\t\t";
// line 17
if (twig_in_filter($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), isset($context["selected_tag_ids"]) ? $context["selected_tag_ids"] : null)) {
// line 18
echo "\t\t\t\t\tclass=\"ai1ec-active\"\n\t\t\t\t";
}
// line 19
echo ">\n\t\t\t\t<a class=\"ai1ec-load-view ai1ec-tag\"\n\t\t\t\t\t";
// line 21
if (!twig_test_empty($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"))) {
// line 22
echo "\t\t\t\t\t\ttitle=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"), "html_attr");
echo "\"\n\t\t\t\t\t";
}
// line 24
echo "\t\t\t\t\t";
echo isset($context["data_type"]) ? $context["data_type"] : null;
echo "\n\t\t\t\t\thref=\"";
// line 25
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "href"), "html_attr");
echo "\">\n\t\t\t\t\t";
// line 26
echo $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "name");
echo "\n\t\t\t\t</a>\n\t\t\t</span>\n\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['term'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
echo "\t</div>\n</li>\n";
}
开发者ID:USSLomaPrieta,项目名称:usslomaprieta.org,代码行数:60,代码来源:06e4eee3169b93edc33ec32aac5ff78e197d36969e2b8d0437bf2f0283a2.php
示例4: block_input
public function block_input($context, array $blocks = array())
{
// line 10
echo " <div class=\"form-select-wrapper ";
echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "size", array());
echo "\">\n <select class=\"";
// line 11
echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "classes", array());
echo "\" name=\"";
echo $this->env->getExtension('GravTwigExtension')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array())) . ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array()) ? "[]" : "");
echo "\"\n ";
// line 12
if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "autofocus=\"autofocus\"";
}
// line 13
echo " ";
if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "novalidate=\"novalidate\"";
}
// line 14
echo " ";
if (twig_in_filter($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "required=\"required\"";
}
// line 15
echo " ";
if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "multiple=\"multiple\"";
}
// line 16
echo " ";
if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "form", array())) {
echo "form=\"";
echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "form", array());
echo "\"";
}
// line 17
echo " >\n ";
// line 18
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array()));
foreach ($context['_seq'] as $context["key"] => $context["text"]) {
// line 19
echo " <option ";
if ($context["key"] == (isset($context["value"]) ? $context["value"] : null) || twig_in_filter($context["text"], isset($context["value"]) ? $context["value"] : null)) {
echo "selected=\"selected\"";
}
echo " value=\"";
echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array()) ? $context["text"] : $context["key"];
echo "\">";
echo twig_test_empty($context["key"]) ? $context["text"] : twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", $context["key"]));
echo "</option>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo " </select>\n </div>\n";
}
开发者ID:anabecker,项目名称:new-website,代码行数:60,代码来源:8a01a672e7f808927d655a4ddc4d818da1ec6b2f855025e20a1923cfb66a5ecf.php
示例5: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div id=\"menu_buttons\" class=\"well\">\n ";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["funcs"]) ? $context["funcs"] : null);
foreach ($context['_seq'] as $context["key"] => $context["func"]) {
if ($this->getAttribute($context["func"], "display", array())) {
// line 3
echo " ";
if (twig_in_filter($context["key"], isset($context["menu_funcs"]) ? $context["menu_funcs"] : null)) {
// line 4
echo " <button type=\"button\" class=\"btn btn-primary\"\n onclick=\"";
// line 5
echo twig_escape_filter($this->env, $this->getAttribute($context["func"], "action", array()) . "(\"" . $this->getAttribute(isset($context["menu"]) ? $context["menu"] : null, "url", array()) . "\")", "html", null, true);
echo "\">\n <span class=\"";
// line 6
echo twig_escape_filter($this->env, $this->getAttribute($context["func"], "icon", array()), "html", null, true);
echo "\"></span> ";
echo twig_escape_filter($this->env, $this->getAttribute($context["func"], "name", array()), "html", null, true);
echo "\n </button>\n ";
}
// line 9
echo " ";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['func'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 10
echo "</div>";
}
开发者ID:rogerioleal1,项目名称:ci_base,代码行数:33,代码来源:1d7f649eb8716446c7ab3a479239b502d040b56e5a160550b7f24da213a90d73.php
示例6: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<ul class=\"nav nav-tabs\">\n <li";
// line 2
if ((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")) == "files") {
echo " class=\"active\"";
}
echo "><a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("branch", array("repo" => isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "branch" => isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"))), "html", null, true);
echo "\">Files</a></li>\n <li";
// line 3
if (twig_in_filter(isset($context["page"]) ? $context["page"] : $this->getContext($context, "page"), array(0 => "commits", 1 => "searchcommits"))) {
echo " class=\"active\"";
}
echo "><a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("commits", array("repo" => isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "commitishPath" => isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"))), "html", null, true);
echo "\">Commits</a></li>\n <li";
// line 4
if ((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")) == "stats") {
echo " class=\"active\"";
}
echo "><a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("stats", array("repo" => isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "branch" => isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"))), "html", null, true);
echo "\">Stats</a></li>\n \t<li";
// line 5
if ((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")) == "network") {
echo " class=\"active\"";
}
echo "><a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("network", array("repo" => isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "branch" => isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"))), "html", null, true);
echo "\">Network</a></li>\n</ul>\n";
}
开发者ID:syntropysoftware,项目名称:cryptoffice-frontend,代码行数:33,代码来源:df9f7c32f7051d87ad788d8c924e9f851eb271d6996e0dbcb3c5be936b78.php
示例7: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$context = array_merge($this->env->getGlobals(), $context);
// line 1
echo "<ol class=\"traces\">\n ";
// line 2
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getContext($context, 'logs'));
foreach ($context['_seq'] as $context['_key'] => $context['log']) {
// line 3
echo " <li";
if (twig_in_filter($this->getAttribute($this->getContext($context, 'log'), "priorityName", array(), "any", false), array(0 => "EMERG", 1 => "ERR", 2 => "CRIT", 3 => "ALERT", 4 => "ERROR", 5 => "CRITICAL"))) {
echo " class=\"error\"";
}
echo ">\n ";
// line 4
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'log'), "message", array(), "any", false), "html");
echo "\n </li>\n ";
}
$_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 7
echo "</ol>\n";
}
示例8: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 11
echo "\n<td class=\"sonata-ba-list-field sonata-ba-list-field-";
// line 12
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "type", array()), "html", null, true);
echo "\" objectId=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), "html", null, true);
echo "\">\n ";
// line 13
$context["route"] = $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "route", array(), "any", false, true), "name", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "route", array(), "any", false, true), "name", array()), null) : null;
// line 14
echo " ";
$context["action"] = (isset($context["route"]) ? $context["route"] : $this->getContext($context, "route")) == "show" ? "VIEW" : twig_upper_filter($this->env, isset($context["route"]) ? $context["route"] : $this->getContext($context, "route"));
// line 15
echo "\n ";
// line 16
if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "identifier", array(), "any", true, true) && (isset($context["route"]) ? $context["route"] : $this->getContext($context, "route")) && (isset($context["action"]) ? $context["action"] : $this->getContext($context, "action")) && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "hasRoute", array(0 => isset($context["route"]) ? $context["route"] : $this->getContext($context, "route")), "method") && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "isGranted", array(0 => isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), 1 => twig_in_filter(isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), array(0 => "VIEW", 1 => "EDIT")) ? isset($context["object"]) ? $context["object"] : $this->getContext($context, "object") : null), "method")) {
// line 23
echo " <a class=\"sonata-link-identifier\" href=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "generateObjectUrl", array(0 => isset($context["route"]) ? $context["route"] : $this->getContext($context, "route"), 1 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), 2 => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "route", array()), "parameters", array())), "method"), "html", null, true);
echo "\">";
// line 24
$this->displayBlock('field', $context, $blocks);
// line 25
echo "</a>\n ";
} else {
// line 27
echo " ";
$context["isEditable"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "editable", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "editable", array()) && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "isGranted", array(0 => "EDIT", 1 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method");
// line 28
echo " ";
$context["xEditableType"] = $this->env->getExtension('sonata_admin')->getXEditableType($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "type", array()));
// line 29
echo "\n ";
// line 30
if ((isset($context["isEditable"]) ? $context["isEditable"] : $this->getContext($context, "isEditable")) && (isset($context["xEditableType"]) ? $context["xEditableType"] : $this->getContext($context, "xEditableType"))) {
// line 31
echo " ";
$context["url"] = $this->env->getExtension('routing')->getPath("sonata_admin_set_object_field_value", array("context" => "list", "field" => $this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "name", array()), "objectId" => $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), "code" => $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "code", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method")));
// line 32
echo " <span ";
$this->displayBlock('field_span_attributes', $context, $blocks);
echo ">\n ";
// line 33
$this->displayBlock("field", $context, $blocks);
echo "\n </span>\n ";
} else {
// line 36
echo " ";
$this->displayBlock("field", $context, $blocks);
echo "\n ";
}
// line 38
echo " ";
}
// line 39
echo "</td>\n";
}
开发者ID:axelleP,项目名称:Oetherium,代码行数:59,代码来源:b8e22e3a9e11f80e0856ec7119d900a95d0140381fce73640f074681a4b7b91a.php
示例9: block_body
public function block_body($context, array $blocks = array())
{
// line 4
echo " ";
$this->env->loadTemplate("navigation.twig")->display($context);
// line 5
echo "\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"span12\">\n ";
// line 9
if (twig_in_filter(isset($context["page"]) ? $context["page"] : $this->getContext($context, "page"), array(0 => "commits", 1 => "searchcommits"))) {
// line 10
echo " <form class=\"form-search pull-right\" action=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request"), "basepath"), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "html", null, true);
echo "/commits/";
echo twig_escape_filter($this->env, isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"), "html", null, true);
echo "/search\" method=\"POST\">\n <input type=\"text\" name=\"query\" class=\"input-medium search-query\" placeholder=\"Search commits...\" value=\"";
// line 11
echo twig_escape_filter($this->env, array_key_exists("query", $context) ? _twig_default_filter(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "") : "", "html", null, true);
echo "\">\n </form>\n ";
} else {
// line 14
echo " <form class=\"form-search pull-right\" action=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request"), "basepath"), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "html", null, true);
echo "/tree/";
echo twig_escape_filter($this->env, isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"), "html", null, true);
echo "/search\" method=\"POST\">\n <input type=\"text\" name=\"query\" class=\"input-medium search-query\" placeholder=\"Search tree...\" value=\"";
// line 15
echo twig_escape_filter($this->env, array_key_exists("query", $context) ? _twig_default_filter(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "") : "", "html", null, true);
echo "\">\n </form>\n ";
}
// line 18
echo "\n ";
// line 19
if (array_key_exists("branches", $context)) {
// line 20
echo " ";
$this->env->loadTemplate("branch_menu.twig")->display($context);
// line 21
echo " ";
}
// line 22
echo "\n ";
// line 23
$this->env->loadTemplate("menu.twig")->display($context);
// line 24
echo " </div>\n </div>\n\n ";
// line 27
$this->displayBlock('content', $context, $blocks);
// line 28
echo "\n ";
// line 29
$this->env->loadTemplate("footer.twig")->display($context);
// line 30
echo " </div>\n";
}
开发者ID:syntropysoftware,项目名称:cryptoffice-frontend,代码行数:58,代码来源:99c493c39f2056a9943ff238c4b5e1cb6f2bd53f445896a22a458975c77d.php
示例10: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 3
$context["start_date"] = twig_in_filter(trim($this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "date", array()), "start", array())), array(0 => "now", 1 => "")) ? call_user_func_array($this->env->getFilter('date')->getCallable(), array("now", "Y")) : twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "date", array()), "start", array()));
// line 4
$context["end_date"] = twig_in_filter(trim($this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "date", array()), "end", array())), array(0 => "now", 1 => "")) ? call_user_func_array($this->env->getFilter('date')->getCallable(), array("now", "Y")) : twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "date", array()), "end", array()));
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
开发者ID:joseclavijo,项目名称:gsclube,代码行数:9,代码来源:d1b48a6549116236f20180c3211366bdac3c09fb3784b8aeb31ae01c8399031d.php
示例11: block_options
public function block_options($context, array $blocks = array())
{
// line 4
echo " ";
$this->displayParentBlock("options", $context, $blocks);
echo "\n ";
// line 5
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "menu", array()), "getGroupedItems", array(), "method"));
foreach ($context['_seq'] as $context["group"] => $context["items"]) {
// line 6
echo " ";
if (twig_length_filter($this->env, $context["items"])) {
// line 7
echo " <optgroup label=\"";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $context["group"]), "html", null, true);
echo "\">\n ";
// line 8
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["items"]);
foreach ($context['_seq'] as $context["key"] => $context["item"]) {
// line 9
echo " <option\n ";
// line 11
echo " ";
if ($context["key"] == (isset($context["value"]) ? $context["value"] : null)) {
echo "selected=\"selected\"";
}
// line 12
echo " value=\"";
echo twig_escape_filter($this->env, $context["key"]);
echo "\"\n ";
// line 14
echo " ";
if (twig_in_filter($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array()), "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "disabled=\"disabled\"";
}
// line 15
echo " >";
echo $this->getAttribute($context["item"], "spacing", array());
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()));
echo "</option>\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 17
echo " </optgroup>\n ";
}
// line 19
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['group'], $context['items'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
开发者ID:joseclavijo,项目名称:gsclube,代码行数:56,代码来源:9462e0693453024d10f4a74ba5bc9ca010199a55fb3b341203855ff5f5dbdd00.php
示例12: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<select class=\"ai1ec-categories-selector ai1ec-select2-multiselect-selector\"\n\tid=\"";
// line 2
echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : null, "html", null, true);
echo "\"\n\tplaceholder=\"";
// line 3
echo twig_escape_filter($this->env, Ai1ec_I18n::__("Categories"), "html_attr");
echo "\"\n\tdata-placeholder=\"";
// line 4
echo twig_escape_filter($this->env, Ai1ec_I18n::__("Categories"), "html_attr");
echo "\"\n\tmultiple=\"multiple\">\n\t";
// line 6
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["categories"]) ? $context["categories"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["term"]) {
// line 7
echo "\t\t<option value=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), "html", null, true);
echo "\"\n\t\t\t";
// line 8
if (twig_in_filter($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), isset($context["selected_cat_ids"]) ? $context["selected_cat_ids"] : null)) {
// line 9
echo " \tselected=\"selected\"\n ";
}
// line 11
echo "\t\t\t";
if (!twig_test_empty($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"))) {
// line 12
echo "\t\t\t\tdata-description=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"), "html_attr");
echo "\"\n\t\t\t";
}
// line 14
echo "\t\t\t";
if (!twig_test_empty($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "color"))) {
// line 15
echo "\t\t\t\tdata-color=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "color"), "html_attr");
echo "\"\n\t\t\t";
}
// line 17
echo "\t\t\t>\n\t\t\t";
// line 18
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "name"), "html", null, true);
echo "\n\t\t</option>\n\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['term'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo "</select>\n";
}
开发者ID:USSLomaPrieta,项目名称:usslomaprieta.org,代码行数:56,代码来源:fa01bbe4d4ffa4f03a4cba6fb9acbd490824785b969c9e705534675c60f5.php
示例13: block_form_start
public function block_form_start($context, array $blocks = array())
{
// line 2
ob_start();
// line 3
echo " ";
$context["method"] = twig_upper_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"));
// line 4
echo " ";
if (twig_in_filter(isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), array(0 => "GET", 1 => "POST"))) {
// line 5
echo " ";
$context["form_method"] = isset($context["method"]) ? $context["method"] : $this->getContext($context, "method");
// line 6
echo " ";
} else {
// line 7
echo " ";
$context["form_method"] = "POST";
// line 8
echo " ";
}
// line 9
echo " <form name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "vars", array()), "name", array()), "html", null, true);
echo "\" method=\"";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), "html", null, true);
echo "\"";
$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;
if (isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart")) {
echo " enctype=\"multipart/form-data\"";
}
echo " novalidate=\"true\">\n ";
// line 10
if ((isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")) != (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))) {
// line 11
echo " <input type=\"hidden\" name=\"_method\" value=\"";
echo twig_escape_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), "html", null, true);
echo "\" />\n ";
}
echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
}
示例14: block_input
public function block_input($context, array $blocks = array())
{
// line 10
echo " ";
$context["field"] = twig_array_merge(isset($context["field"]) ? $context["field"] : null, array("style" => "background-color: " . (isset($context["value"]) ? $context["value"] : null), "pattern" => "^#([a-fA-F0-9]{6})|(rgba\\(\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*((0.[0-9]+)|[01])\\s*\\))\$"));
// line 11
echo " <div class=\"colorpicker ";
echo $this->getAttribute($this, "contrast", array(0 => $this->env->getExtension('GantryTwig')->colorContrastFunc(twig_lower_filter($this->env, isset($context["value"]) ? $context["value"] : null))), "method");
echo "\">\n <input\n ";
// line 14
echo " type=\"text\"\n name=\"";
// line 15
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)));
echo "\"\n value=\"";
// line 16
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", ")));
echo "\"\n ";
// line 18
echo " ";
$this->displayBlock("global_attributes", $context, $blocks);
echo "\n ";
// line 20
echo " ";
if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), array(0 => "on", 1 => "off"))) {
echo "autocomplete=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()));
echo "\"";
}
// line 21
echo " ";
if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "autofocus=\"autofocus\"";
}
// line 22
echo " ";
if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array(), "any", true, true)) {
echo "pattern=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array()));
echo "\"";
}
// line 23
echo " ";
if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "disabled=\"disabled\"";
}
// line 24
echo " ";
if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array(), "any", true, true)) {
echo "list=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array()));
echo "\"";
}
// line 25
echo " />\n <i class=\"fa fa-tint\"></i>\n </div>\n";
}
开发者ID:vnatuan1989,项目名称:myloyal,代码行数:55,代码来源:1cce5874feac9439c3806957b12cfb544b4bf5966eb43d246d84b6ad56aeabd7.php
示例15: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 39
echo "<div";
echo twig_drupal_escape_filter($this->env, isset($context["attributes"]) ? $context["attributes"] : null, "html", null, true);
echo ">\n ";
// line 40
if (twig_in_filter(isset($context["label_display"]) ? $context["label_display"] : null, array(0 => "before", 1 => "invisible"))) {
// line 41
echo " ";
echo twig_drupal_escape_filter($this->env, isset($context["label"]) ? $context["label"] : null, "html", null, true);
echo "\n ";
}
// line 43
echo " ";
if (!twig_test_empty(isset($context["prefix"]) ? $context["prefix"] : null)) {
// line 44
echo " <span class=\"field-prefix\">";
echo twig_drupal_escape_filter($this->env, isset($context["prefix"]) ? $context["prefix"] : null, "html", null, true);
echo "</span>\n ";
}
// line 46
echo " ";
echo twig_drupal_escape_filter($this->env, isset($context["children"]) ? $context["children"] : null, "html", null, true);
echo "\n ";
// line 47
if (!twig_test_empty(isset($context["suffix"]) ? $context["suffix"] : null)) {
// line 48
echo " <span class=\"field-suffix\">";
echo twig_drupal_escape_filter($this->env, isset($context["suffix"]) ? $context["suffix"] : null, "html", null, true);
echo "</span>\n ";
}
// line 50
echo " ";
if ((isset($context["label_display"]) ? $context["label_display"] : null) == "after") {
// line 51
echo " ";
echo twig_drupal_escape_filter($this->env, isset($context["label"]) ? $context["label"] : null, "html", null, true);
echo "\n ";
}
// line 53
echo " ";
if ($this->getAttribute(isset($context["description"]) ? $context["description"] : null, "content")) {
// line 54
echo " <div";
echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["description"]) ? $context["description"] : null, "attributes"), "html", null, true);
echo ">\n ";
// line 55
echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["description"]) ? $context["description"] : null, "content"), "html", null, true);
echo "\n </div>\n ";
}
// line 58
echo "</div>\n";
}
开发者ID:alnutile,项目名称:drunatra,代码行数:54,代码来源:f71474ba603ea83ccd20b233b7fba7e92ddf9eb8d47f3734667ca705958d2fc2.php