本文整理汇总了PHP中twig_split_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_split_filter函数的具体用法?PHP twig_split_filter怎么用?PHP twig_split_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twig_split_filter函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
$context["updates"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "platform", array()), "updates", array());
// line 2
if (isset($context["updates"]) ? $context["updates"] : null) {
// line 3
$context["version"] = twig_last($this->env, twig_split_filter($this->env, $this->getAttribute(isset($context["updates"]) ? $context["updates"] : null, 0, array()), " "));
// line 4
echo "<div class=\"g-grid\">\n <div class=\"g-block\">\n <div class=\"update-header clearfix\">\n <span class=\"update-text\">";
// line 7
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_UPDATES_AVAILABLE"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, twig_join_filter(isset($context["updates"]) ? $context["updates"] : null, ", "), "html", null, true);
echo "</span>\n <div class=\"update-tools\">\n <a href=\"";
// line 9
echo $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "platform", array()), "update", array());
echo "\" class=\"button button-update\"><i class=\"fa fa-refresh\"></i> <span>";
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_UPDATE"), "html", null, true);
echo "</span></a>\n <a href=\"#\" data-changelog=\"";
// line 10
echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : null, "html", null, true);
echo "\" class=\"button button-update\"><i class=\"fa fa-book\"></i> <span>";
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_CHANGELOG"), "html", null, true);
echo "</span></a>\n <a href=\"#\" class=\"fa fa-close\" data-g-close=\".g-grid\"></a>\n </div>\n </div>\n </div>\n</div>\n";
}
}
开发者ID:JozefAB,项目名称:neoacu,代码行数:27,代码来源:5898ef490d6dd8931038dda7d87af6a7a0c7f4220d4205490120da11f9e53839.php
示例2: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
if (array_key_exists("entities", $context)) {
// line 2
echo " <header>نتایج جستجو برای: ";
echo twig_escape_filter($this->env, isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "html", null, true);
echo "</header>\n ";
// line 3
$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["book"]) {
// line 4
echo " <article id=\"book\">\n <figure>\n ";
// line 6
$context["cover"] = twig_last($this->env, twig_split_filter($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "/"));
echo " \n ";
// line 8
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter(twig_join_filter(array(0 => "uploads/", 1 => isset($context["cover"]) ? $context["cover"] : $this->getContext($context, "cover"))), "my_thumb", true), "html", null, true);
echo "\" />\n </figure>\n <figcaption> \n <div id=\"comments_num\" title=\"";
// line 11
if ($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum")) {
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true);
echo " دیدگاه";
} else {
echo "بدون دیدگاه";
}
echo "\"><h3>";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true);
echo "</h3></div>\n <a href=\"";
// line 12
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_show", array("id" => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "link"))), "html", null, true);
echo "\"><h1>";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "name"), "html", null, true);
echo "</h1></a>\n <h3>";
// line 13
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "author"), "html", null, true);
echo "</h3>\n <a href=\"";
// line 14
echo twig_escape_filter($this->env, twig_join_filter(array(0 => "uploads/", 1 => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "file"))), "html", null, true);
echo "\"><button type=\"button\" class=\"btn btn-info\">دریافت</button></a>\n </figcaption>\n </article> \n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['book'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
echo " <div id=\"clr\"></div>\n ";
// line 19
echo $this->env->getExtension('knp_pagination')->render(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
echo "\n";
} else {
// line 21
echo " ";
$this->env->loadTemplate("ChakoshHomeBundle:Home:noresult_content.html.twig")->display($context);
}
// line 23
echo "\n";
}
开发者ID:amirmasoud,项目名称:symfony-bookstore,代码行数:59,代码来源:d75ce510930a64e6bfa65329e17967186db85b69dc713f9b24aa4cfa7fc1.php
示例3: block_content
public function block_content($context, array $blocks = array())
{
// line 3
if (array_key_exists("category", $context)) {
echo "<header><span class=\"glyphicon glyphicon-briefcase\"></span> آرشیو دسته ی: ";
echo twig_escape_filter($this->env, isset($context["category"]) ? $context["category"] : $this->getContext($context, "category"), "html", null, true);
echo "</header>";
}
// line 4
$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["book"]) {
// line 5
echo "<article id=\"book\">\n <figure>\n ";
// line 7
$context["cover"] = twig_last($this->env, twig_split_filter($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "/"));
// line 8
echo " ";
// line 9
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter(twig_join_filter(array(0 => "uploads/", 1 => isset($context["cover"]) ? $context["cover"] : $this->getContext($context, "cover"))), "my_thumb", true), "html", null, true);
echo "\" />\n </figure>\n <figcaption> \n <div id=\"comments_num\" title=\"";
// line 12
if ($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum")) {
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true);
echo " دیدگاه";
} else {
echo "بدون دیدگاه";
}
echo "\"><h3>";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true);
echo "</h3></div>\n <a href=\"";
// line 13
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_show", array("id" => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "link"))), "html", null, true);
echo "\"><h1>";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "name"), "html", null, true);
echo "</h1></a>\n <h3>";
// line 14
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "author"), "html", null, true);
echo "</h3>\n <a href=\"";
// line 15
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "file"), "html", null, true);
echo "\"><button type=\"button\" class=\"btn btn-info\">دریافت</button></a>\n </figcaption>\n</article> \n";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['book'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
echo "<div id=\"clr\"></div>\n";
// line 20
echo $this->env->getExtension('knp_pagination')->render(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
echo "\n<script type=\"text/javascript\">\n\n</script>\n";
}
开发者ID:amirmasoud,项目名称:symfony-bookstore,代码行数:53,代码来源:80fed850e713adc17dd442ccb6d602a431ce026ba909c9a4d7f1c017d946.php
示例4: block_page_content
public function block_page_content($context, array $blocks = array())
{
// line 6
echo " <div class=\"page-header\">\n <h1>Namespaces</h1>\n </div>\n\n ";
// line 10
if (isset($context["namespaces"]) ? $context["namespaces"] : $this->getContext($context, "namespaces")) {
// line 11
echo " <div class=\"namespaces clearfix\">\n ";
// line 12
$context["last_name"] = "";
// line 13
echo " ";
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["namespaces"]) ? $context["namespaces"] : $this->getContext($context, "namespaces"));
foreach ($context['_seq'] as $context["_key"] => $context["namespace"]) {
// line 14
echo " ";
$context["top_level"] = twig_first($this->env, twig_split_filter($this->env, $context["namespace"], "\\"));
// line 15
echo " ";
if ((isset($context["top_level"]) ? $context["top_level"] : $this->getContext($context, "top_level")) != (isset($context["last_name"]) ? $context["last_name"] : $this->getContext($context, "last_name"))) {
// line 16
echo " ";
if (isset($context["last_name"]) ? $context["last_name"] : $this->getContext($context, "last_name")) {
echo "</ul></div>";
}
// line 17
echo " <div class=\"namespace-container\">\n <h2>";
// line 18
echo twig_escape_filter($this->env, isset($context["top_level"]) ? $context["top_level"] : $this->getContext($context, "top_level"), "html", null, true);
echo "</h2>\n <ul>\n ";
// line 20
$context["last_name"] = isset($context["top_level"]) ? $context["top_level"] : $this->getContext($context, "top_level");
// line 21
echo " ";
}
// line 22
echo " <li><a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForNamespace($context, $context["namespace"]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["namespace"], "html", null, true);
echo "</a></li>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['namespace'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 24
echo " </ul>\n </div>\n </div>\n ";
}
// line 28
echo "\n";
}
开发者ID:getgrav,项目名称:grav-api,代码行数:52,代码来源:237c016f72fec75c4c09ac71892ac592985f8515c1ff8386e1539e6929ef.php
示例5: block_content
public function block_content($context, array $blocks = array())
{
// line 50
echo " <header>\n <h3>";
// line 51
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "name"), "html", null, true);
echo "</h3>\n <h3> | </h3>\n <h3>";
// line 53
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "author"), "html", null, true);
echo "</h3>\n <div id=\"category\">\n ";
// line 55
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(isset($context["category"]) ? $context["category"] : $this->getContext($context, "category"));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
// line 56
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("category_show", array("category" => $this->getAttribute(isset($context["cat"]) ? $context["cat"] : $this->getContext($context, "cat"), "name"))), "html", null, true);
echo "\">\n <span class=\"label label-success\">";
// line 57
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["cat"]) ? $context["cat"] : $this->getContext($context, "cat"), "name"), "html", null, true);
echo "</span>\n </a>\n ";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 60
echo " <span class=\"label label-success\">دسته بندی نشده</span>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 62
echo " </div>\n </header>\n <a class=\"image-popup-no-margins\" href=\"";
// line 64
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "html", null, true);
echo "\">\n <div id=\"cover_image\">\n <figure id=\"single\">\n ";
// line 67
$context["cover"] = twig_last($this->env, twig_split_filter($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "/"));
// line 68
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter(twig_join_filter(array(0 => "uploads/", 1 => isset($context["cover"]) ? $context["cover"] : $this->getContext($context, "cover"))), "my_thumb"), "html", null, true);
echo "\" />\n <div id=\"download\">\n <a href=\"";
// line 70
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "file"), "html", null, true);
echo "\"><button type=\"submit\" class=\"btn btn-info\" />دریافت</button></a>\n </div>\n </figure>\n </div> \n </a>\n \n <footer id=\"single-footer\"> \n <p>";
// line 77
echo $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "content");
echo "</p>\n </footer>\n <div id=\"clr\"></div>\n ";
// line 80
$this->env->loadTemplate("ChakoshHomeBundle:Base:comments.html.twig")->display(array_merge($context, isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment")));
}
开发者ID:amirmasoud,项目名称:symfony-bookstore,代码行数:51,代码来源:3e132825bcfbab2fd51b3af26c6d704fbcfbd23720c2b31dc33f0fa1a8a1.php
示例6: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_913efd20ade0fd96b4cc351a3325337265d2689c41c1f3637a85b14df3332e8a = $this->env->getExtension("native_profiler");
$__internal_913efd20ade0fd96b4cc351a3325337265d2689c41c1f3637a85b14df3332e8a->enter($__internal_913efd20ade0fd96b4cc351a3325337265d2689c41c1f3637a85b14df3332e8a_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@EasyAdmin/default/layout.html.twig"));
// line 1
echo "<!DOCTYPE html>\naaaaa\n<html lang=\"";
// line 3
echo twig_escape_filter($this->env, _twig_default_filter(twig_first($this->env, twig_split_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "locale", array()), "_")), "en"), "html", null, true);
echo "\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">\n <meta name=\"generator\" content=\"EasyAdmin\" />\n\n <title>";
// line 10
$this->displayBlock('page_title', $context, $blocks);
echo "</title>\n\n ";
// line 12
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 19
echo "\n ";
// line 20
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getExtension('easyadmin_extension')->getBackendConfiguration("design.assets.css"));
foreach ($context['_seq'] as $context["_key"] => $context["css_asset"]) {
// line 21
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl($context["css_asset"]), "html", null, true);
echo "\">\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['css_asset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
echo "\n ";
// line 24
$this->displayBlock('head_favicon', $context, $blocks);
// line 28
echo "\n <!--[if lt IE 9]>\n <script src=\"";
// line 30
echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/easyadmin/stylesheet/html5shiv.min.css"), "html", null, true);
echo "\"</script>\n <script src=\"";
// line 31
echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/easyadmin/stylesheet/respond.min.css"), "html", null, true);
echo "\"></script>\n <![endif]-->\n\n ";
// line 34
$this->displayBlock('head_javascript', $context, $blocks);
// line 35
echo " </head>\n\n ";
// line 37
$this->displayBlock('body', $context, $blocks);
// line 145
echo "</html>\n";
$__internal_913efd20ade0fd96b4cc351a3325337265d2689c41c1f3637a85b14df3332e8a->leave($__internal_913efd20ade0fd96b4cc351a3325337265d2689c41c1f3637a85b14df3332e8a_prof);
}
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:50,代码来源:625ca5f17ec7027ce71d21a038db06ed9b84029e44e2c921ac64b3ca7ebe8cfe.php
示例7: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<!DOCTYPE html>\n<html lang=\"";
// line 2
echo twig_escape_filter($this->env, _twig_default_filter(twig_first($this->env, twig_split_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array()), "locale", array()), "_")), "en"), "html", null, true);
echo "\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">\n <meta name=\"generator\" content=\"EasyAdmin\" />\n\n <title>";
// line 9
$this->displayBlock('page_title', $context, $blocks);
echo "</title>\n\n ";
// line 11
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 18
echo "\n ";
// line 19
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getExtension('easyadmin_extension')->getBackendConfiguration("design.assets.css"));
foreach ($context['_seq'] as $context["_key"] => $context["css_asset"]) {
// line 20
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl($context["css_asset"]), "html", null, true);
echo "\">\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['css_asset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo "\n ";
// line 23
$this->displayBlock('head_favicon', $context, $blocks);
// line 27
echo "\n <!--[if lt IE 9]>\n <script src=\"";
// line 29
echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/easyadmin/stylesheet/html5shiv.min.css"), "html", null, true);
echo "\"</script>\n <script src=\"";
// line 30
echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/easyadmin/stylesheet/respond.min.css"), "html", null, true);
echo "\"></script>\n <![endif]-->\n\n ";
// line 33
$this->displayBlock('head_javascript', $context, $blocks);
// line 34
echo " </head>\n\n ";
// line 36
$this->displayBlock('body', $context, $blocks);
// line 145
echo "</html>\n";
}
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:47,代码来源:1987699cdf423224e92b78b342139e551671b02339c328d44fa27309ad2aca26.php
示例8: block_content
public function block_content($context, array $blocks = array())
{
// line 3
echo "<section class=\"row\">\n <div class=\"col-md-3\">\n </div>\n <div class=\"col-md-3\"></div>\n <div class=\"col-md-3\"></div>\n <div class=\"col-md-3\">\n <a href=\"";
// line 9
echo $this->env->getExtension('routing')->getPath("admin_new");
echo "\"><button type=\"button\" class=\"btn btn-primary\"><span class=\"fa-plus\"></span> جدید</button></a>\n </div>\n</section>\n<section>\n <table class=\"table\">\n <thead>\n <tr>\n <th>کاور</th>\n <th>دیدگاه</th>\n <th>نام</th>\n <th>نویسنده</th>\n </tr>\n </thead>\n <tbody>\n ";
// line 23
$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["book"]) {
// line 24
echo " ";
$context["cover"] = twig_last($this->env, twig_split_filter($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "/"));
// line 25
echo " <tr>\n <td><img src=\"";
// line 26
echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter(twig_join_filter(array(0 => "uploads/", 1 => isset($context["cover"]) ? $context["cover"] : $this->getContext($context, "cover"))), "small", true), "html", null, true);
echo "\" /></td>\n <td>";
// line 27
if ($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum")) {
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true);
echo " دیدگاه";
} else {
echo "بدون دیدگاه";
}
echo "</td>\n <td><a href=\"";
// line 28
echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("admin_edit", array("id" => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "id"))), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "name"), "html", null, true);
echo "</a></td>\n <td>";
// line 29
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "author"), "html", null, true);
echo "</td>\n </tr>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['book'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
echo " </tbody>\n </table>\n</section>\n";
// line 35
echo $this->env->getExtension('knp_pagination')->render(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
echo "\n";
}
开发者ID:amirmasoud,项目名称:symfony-bookstore,代码行数:45,代码来源:acaa177ecd9d5c4a875a879f655b6176016182c11f7108e195b19e54d3d4.php
示例9: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3 = $this->env->getExtension("native_profiler");
$__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3->enter($__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@EasyAdmin/default/layout.html.twig"));
// line 1
echo "<!DOCTYPE html>\n<html lang=\"";
// line 2
echo twig_escape_filter($this->env, _twig_default_filter(twig_first($this->env, twig_split_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "locale", array()), "_")), "en"), "html", null, true);
echo "\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n <meta name=\"generator\" content=\"EasyAdmin\" />\n\n <title>";
// line 10
$this->displayBlock('page_title', $context, $blocks);
echo "</title>\n\n ";
// line 12
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 17
echo "\n ";
// line 18
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getExtension('easyadmin_extension')->getBackendConfiguration("design.assets.css"));
foreach ($context['_seq'] as $context["_key"] => $context["css_asset"]) {
// line 19
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl($context["css_asset"]), "html", null, true);
echo "\">\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['css_asset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo "\n ";
// line 22
$this->displayBlock('head_favicon', $context, $blocks);
// line 26
echo "\n ";
// line 27
$this->displayBlock('head_javascript', $context, $blocks);
// line 28
echo " </head>\n\n ";
// line 30
$this->displayBlock('body', $context, $blocks);
// line 129
echo "</html>\n";
$__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3->leave($__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3_prof);
}
开发者ID:3lolo,项目名称:lr_app,代码行数:44,代码来源:f773ee60405ccbd59b8d6c4e9c9fac8e905b1305897622e64de1a588e0315641.php
示例10: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 2
echo "\n";
// line 3
$context["hasLess"] = false;
// line 4
echo "\n";
// line 5
// asset "15df054"
$context["asset_url"] = $this->env->getExtension('asset')->getAssetUrl("css/oro.css");
// line 6
echo " ";
$context["isLess"] = twig_in_filter("less", twig_split_filter($this->env, isset($context["asset_url"]) ? $context["asset_url"] : null, "."));
// line 7
echo " ";
$context["hasLess"] = isset($context["isLess"]) ? $context["isLess"] : null ? true : (isset($context["hasLess"]) ? $context["hasLess"] : null);
// line 8
echo "\n <link rel=\"";
// line 9
if (isset($context["isLess"]) ? $context["isLess"] : null) {
echo "stylesheet/less";
} else {
echo "stylesheet";
}
echo "\" media=\"all\" href=\"";
echo twig_escape_filter($this->env, isset($context["asset_url"]) ? $context["asset_url"] : null, "html", null, true);
echo "\" />\n";
unset($context["asset_url"]);
// line 11
echo "\n";
// line 12
if (isset($context["hasLess"]) ? $context["hasLess"] : null) {
// line 13
echo " <script type=\"text/javascript\">localStorage.clear();</script>\n <script type=\"text/javascript\" src=\"";
// line 14
echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/oroassetic/lib/less-1.3.3.min.js"), "html", null, true);
echo "\"></script>\n <script type=\"text/javascript\">less.watch();</script>\n";
}
}
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:40,代码来源:56e911c30fd7a3500dbe18638e625af6e9a2c1d8dec8f53a4127ff00f094d863.php
示例11: doDisplay
//.........这里部分代码省略.........
if (!$this->getAttribute($context["infos"], "readonly", array())) {
// line 231
echo " <p class=\"tuple\" data-dataType=\"";
if ($this->getAttribute($context["infos"], "dataType", array())) {
echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array()), "html", null, true);
}
echo "\" data-format=\"";
if ($this->getAttribute($context["infos"], "format", array())) {
echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "format", array()), "html", null, true);
}
echo "\" data-description=\"";
if ($this->getAttribute($context["infos"], "description", array())) {
echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true);
}
echo "\">\n <input type=\"text\" class=\"key\" value=\"";
// line 232
echo twig_escape_filter($this->env, $context["name"], "html", null, true);
echo "\" placeholder=\"Key\" />\n <span>=</span>\n <select class=\"tuple_type\">\n <option value=\"\">Type</option>\n <option value=\"string\">String</option>\n <option value=\"boolean\">Boolean</option>\n <option value=\"file\">File</option>\n </select>\n <input type=\"text\" class=\"value\" placeholder=\"";
// line 240
if ($this->getAttribute($context["infos"], "dataType", array())) {
echo "[";
echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array()), "html", null, true);
echo "] ";
}
if ($this->getAttribute($context["infos"], "format", array())) {
echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "format", array()), "html", null, true);
}
if ($this->getAttribute($context["infos"], "description", array())) {
echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true);
} else {
echo "Value";
}
echo "\" ";
if ($this->getAttribute($context["infos"], "default", array(), "any", true, true)) {
echo " value=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "default", array()), "html", null, true);
echo "\" ";
}
echo "/> <span class=\"remove\">-</span>\n </p>\n ";
}
// line 243
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 244
echo " <button type=\"button\" class=\"add_parameter\">New parameter</button>\n ";
}
// line 246
echo "\n </fieldset>\n\n <fieldset class=\"headers\">\n ";
// line 250
$context["methods"] = twig_split_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "method", array())), "|");
// line 251
echo " ";
if (twig_length_filter($this->env, isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods")) > 1) {
// line 252
echo " <legend>Method</legend>\n <select name=\"header_method\">\n ";
// line 254
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods"));
foreach ($context['_seq'] as $context["_key"] => $context["method"]) {
// line 255
echo " <option value=\"";
echo twig_escape_filter($this->env, $context["method"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["method"], "html", null, true);
echo "</option>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['method'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 257
echo " </select>\n ";
} else {
// line 259
echo " <input type=\"hidden\" name=\"header_method\" value=\"";
echo twig_escape_filter($this->env, twig_join_filter(isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods")), "html", null, true);
echo "\" />\n ";
}
// line 261
echo "\n <legend>Headers</legend>\n\n ";
// line 264
if (isset($context["acceptType"]) ? $context["acceptType"] : $this->getContext($context, "acceptType")) {
// line 265
echo " <p class=\"tuple\">\n <input type=\"text\" class=\"key\" value=\"Accept\" />\n <span>=</span>\n
|
请发表评论