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


PHP twig_split_filter函数代码示例

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


在下文中一共展示了twig_split_filter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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                                        <input type=\"text\" class=\"value\" value=\"";
                 // line 268
                 echo twig_escape_filter($this->env, isset($context["acceptType"]) ? $context["acceptType"] : $this->getContext($context, "acceptType"), "html", null, true);
                 echo "\" /> <span class=\"remove\">-</span>\n                                    </p>\n                                ";
             }
             // line 271
             echo "\n                                <p class=\"tuple\">\n                                    <input type=\"text\" class=\"key\" placeholder=\"Key\" />\n                                    <span>=</span>\n                                    <input type=\"text\" class=\"value\" placeholder=\"Value\" /> <span class=\"remove\">-</span>\n                                </p>\n\n                                <button type=\"button\" class=\"add_header\">New header</button>\n                            </fieldset>\n\n                            <fieldset class=\"request-content\">\n                                <legend>Content</legend>\n\n                                <textarea class=\"content\" placeholder=\"Content set here will override the parameters that do not match the url\"></textarea>\n\n                                <p class=\"tuple\">\n                                    <input type=\"text\" class=\"key content-type\" value=\"Content-Type\" disabled=\"disabled\" />\n                                    <span>=</span>\n                                    <input type=\"text\" class=\"value\" placeholder=\"Value\" />\n                                    <button  type=\"button\" class=\"set-content-type\">Set header</button> <small>Replaces header if set</small>\n                                </p>\n                            </fieldset>\n\n                            <div class=\"buttons\">\n                                <input type=\"submit\" value=\"Try!\" />\n                            </div>\n                        </form>\n\n                        <script type=\"text/x-tmpl\" class=\"parameters_tuple_template\">\n                        <p class=\"tuple\">\n                            <input type=\"text\" class=\"key\" 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=\"Value\" /> <span class=\"remove\">-</span>\n                        </p>\n                        </script>\n\n                        <script type=\"text/x-tmpl\" class=\"headers_tuple_template\">\n                        <p class=\"tuple\">\n                            <input type=\"text\" class=\"key\" placeholder=\"Key\" />\n                            <span>=</span>\n                            <input type=\"text\" class=\"value\" placeholder=\"Value\" /> <span class=\"remove\">-</span>\n                        </p>\n                        </script>\n\n\n                        <div class=\"result\">\n                            <h4>Request URL</h4>\n                            <pre class=\"url\"></pre>\n\n                            <h4>Response Headers&nbsp;<small>[<a href=\"\" class=\"to-expand\">Expand</a>]</small>&nbsp;<small class=\"profiler\">[<a href=\"\" class=\"profiler-link\" target=\"_blank\">Profiler</a>]</small></h4>\n                            <pre class=\"headers to-expand\"></pre>\n\n                            <h4>Response Body&nbsp;<small>[<a href=\"\" class=\"to-raw\">Raw</a>]</small></h4>\n                            <pre class=\"response prettyprint\"></pre>\n                        </div>\n                    ";
         }
         // line 333
         echo "                </div>\n            ";
     }
     // line 335
     echo "        </div>\n    </div>\n</li>\n";
     $__internal_c7d283450d281de59a6ed2d7573c1c0a50b91133b531601a6b9ca4ba7588ffbd->leave($__internal_c7d283450d281de59a6ed2d7573c1c0a50b91133b531601a6b9ca4ba7588ffbd_prof);
 }
开发者ID:abbeshamza,项目名称:TestCodeception,代码行数:101,代码来源:7faaf3a3617fbfb234db41483e2b95ea2ff7392426240a3d5ce35ae07a884661.php

示例12: getadd_attribute_values

 public function getadd_attribute_values($__attributes__ = null, $__attribute__ = null, $__values__ = null)
 {
     $context = $this->env->mergeGlobals(array("attributes" => $__attributes__, "attribute" => $__attribute__, "values" => $__values__, "varargs" => func_num_args() > 3 ? array_slice(func_get_args(), 3) : array()));
     $blocks = array();
     ob_start();
     try {
         // line 11
         $context["_values"] = $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, isset($context["attribute"]) ? $context["attribute"] : null, array(), "array", true, true) ? twig_split_filter($this->env, $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, isset($context["attribute"]) ? $context["attribute"] : null, array(), "array"), " ") : array();
         // line 12
         $context["_values"] = twig_array_merge(isset($context["_values"]) ? $context["_values"] : null, isset($context["values"]) ? $context["values"] : null);
         // line 13
         echo twig_escape_filter($this->env, twig_join_filter(isset($context["_values"]) ? $context["_values"] : null, " "), "html", null, true);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:18,代码来源:79f84dcb6ed85fac49de9b0c1ec4de2ab6df3ab25234126261805458f6e0649a.php

示例13: getform_tree_entry

 public function getform_tree_entry($__name__ = null, $__data__ = null, $__expanded__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("name" => $__name__, "data" => $__data__, "expanded" => $__expanded__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_b3e87ce6b6f9051b8a6b67333569755de0a3f0bacba73e3eef455932801fb665 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
         $__internal_b3e87ce6b6f9051b8a6b67333569755de0a3f0bacba73e3eef455932801fb665->enter($__internal_b3e87ce6b6f9051b8a6b67333569755de0a3f0bacba73e3eef455932801fb665_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "form_tree_entry"));
         // line 427
         echo "    ";
         $context["tree"] = $this;
         // line 428
         echo "    <li>\n        <div class=\"tree-inner\" data-tab-target-id=\"";
         // line 429
         echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
         echo "-details\">\n            ";
         // line 430
         if ($this->getAttribute($context["data"] ?? null, "errors", array(), "any", true, true) && twig_length_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "errors", array())) > 0) {
             // line 431
             echo "                <div class=\"badge-error\">";
             echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "errors", array())), "html", null, true);
             echo "</div>\n            ";
         }
         // line 433
         echo "\n            ";
         // line 434
         if (!twig_test_empty($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "children", array()))) {
             // line 435
             echo "                <a class=\"toggle-button\" data-toggle-target-id=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-children\" href=\"#\"><span class=\"toggle-icon\"></span></a>\n            ";
         } else {
             // line 437
             echo "                <div class=\"toggle-icon empty\"></div>\n            ";
         }
         // line 439
         echo "\n            ";
         // line 440
         echo twig_escape_filter($this->env, array_key_exists("name", $context) ? _twig_default_filter($context["name"] ?? $this->getContext($context, "name"), "(no name)") : "(no name)", "html", null, true);
         echo " ";
         if ($this->getAttribute($context["data"] ?? null, "type_class", array(), "any", true, true)) {
             echo "[<abbr title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "type_class", array()), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, twig_last($this->env, twig_split_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "type_class", array()), "\\")), "html", null, true);
             echo "</abbr>]";
         }
         // line 441
         echo "        </div>\n\n        ";
         // line 443
         if (!twig_test_empty($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "children", array()))) {
             // line 444
             echo "            <ul id=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-children\" ";
             if (!($context["expanded"] ?? $this->getContext($context, "expanded"))) {
                 echo "class=\"hidden\"";
             }
             echo ">\n                ";
             // line 445
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "children", array()));
             foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
                 // line 446
                 echo "                    ";
                 echo $context["tree"]->getform_tree_entry($context["childName"], $context["childData"], false);
                 echo "\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 448
             echo "            </ul>\n        ";
         }
         // line 450
         echo "    </li>\n";
         $__internal_b3e87ce6b6f9051b8a6b67333569755de0a3f0bacba73e3eef455932801fb665->leave($__internal_b3e87ce6b6f9051b8a6b67333569755de0a3f0bacba73e3eef455932801fb665_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     } catch (Throwable $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
开发者ID:BarloworldTransport,项目名称:BWTSupportWebTools,代码行数:86,代码来源:ce0fb8451d7c6292ff00560e4536e707551b34f888a21eb9375655e0b3bd9b46.php

示例14: block_vich_file_widget

 public function block_vich_file_widget($context, array $blocks = array())
 {
     // line 344
     ob_start();
     // line 345
     echo "    <div class=\"easyadmin-vich-file\">\n        ";
     // line 346
     if (!twig_test_empty(array_key_exists("download_uri", $context) ? _twig_default_filter(isset($context["download_uri"]) ? $context["download_uri"] : null, "") : "")) {
         // line 347
         echo "            ";
         $context["download_title"] = twig_last($this->env, twig_split_filter($this->env, isset($context["download_uri"]) ? $context["download_uri"] : null, "/")) ? twig_last($this->env, twig_split_filter($this->env, isset($context["download_uri"]) ? $context["download_uri"] : null, "/")) : $this->env->getExtension('translator')->trans("download", array(), "VichUploaderBundle");
         // line 348
         echo "            <a href=\"";
         echo twig_escape_filter($this->env, isset($context["download_uri"]) ? $context["download_uri"] : null, "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, isset($context["download_title"]) ? $context["download_title"] : null, "html", null, true);
         echo "</a>\n        ";
     }
     // line 350
     echo "\n        <div class=\"row\">\n            ";
     // line 352
     if ($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "delete", array(), "any", true, true)) {
         // line 353
         echo "            <div class=\"col-sm-3 col-md-2\">\n                ";
         // line 354
         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "delete", array()), 'row');
         echo "\n            </div>\n            ";
     }
     // line 357
     echo "            <div class=\"";
     echo $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "delete", array(), "any", true, true) ? "col-sm-9 col-md-10" : "col-sm-12";
     echo "\">\n                ";
     // line 358
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "file", array()), 'widget');
     echo "\n            </div>\n        </div>\n    </div>\n";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:37,代码来源:9a8e63f95018943b5090a96c6a56b8894a49170923fd2126ba6bb4e1673133ec.php

示例15: block_vich_file_widget

 public function block_vich_file_widget($context, array $blocks = array())
 {
     $__internal_4dc69c9c9d424baa7f027f4816c8ee2b7f20ac5dc828629353a0dd2bd8937c1c = $this->env->getExtension("native_profiler");
     $__internal_4dc69c9c9d424baa7f027f4816c8ee2b7f20ac5dc828629353a0dd2bd8937c1c->enter($__internal_4dc69c9c9d424baa7f027f4816c8ee2b7f20ac5dc828629353a0dd2bd8937c1c_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "vich_file_widget"));
     // line 344
     ob_start();
     // line 345
     echo "    <div class=\"easyadmin-vich-file\">\n        ";
     // line 346
     if (!twig_test_empty(array_key_exists("download_uri", $context) ? _twig_default_filter(isset($context["download_uri"]) ? $context["download_uri"] : $this->getContext($context, "download_uri"), "") : "")) {
         // line 347
         echo "            ";
         $context["download_title"] = twig_last($this->env, twig_split_filter($this->env, isset($context["download_uri"]) ? $context["download_uri"] : $this->getContext($context, "download_uri"), "/")) ? twig_last($this->env, twig_split_filter($this->env, isset($context["download_uri"]) ? $context["download_uri"] : $this->getContext($context, "download_uri"), "/")) : $this->env->getExtension('translator')->trans("download", array(), "VichUploaderBundle");
         // line 348
         echo "            <a href=\"";
         echo twig_escape_filter($this->env, isset($context["download_uri"]) ? $context["download_uri"] : $this->getContext($context, "download_uri"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, isset($context["download_title"]) ? $context["download_title"] : $this->getContext($context, "download_title"), "html", null, true);
         echo "</a>\n        ";
     }
     // line 350
     echo "\n        <div class=\"row\">\n            ";
     // line 352
     if ($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "delete", array(), "any", true, true)) {
         // line 353
         echo "            <div class=\"col-sm-3 col-md-2\">\n                ";
         // line 354
         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "delete", array()), 'row');
         echo "\n            </div>\n            ";
     }
     // line 357
     echo "            <div class=\"";
     echo $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "delete", array(), "any", true, true) ? "col-sm-9 col-md-10" : "col-sm-12";
     echo "\">\n                ";
     // line 358
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "file", array()), 'widget');
     echo "\n            </div>\n        </div>\n    </div>\n";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
     $__internal_4dc69c9c9d424baa7f027f4816c8ee2b7f20ac5dc828629353a0dd2bd8937c1c->leave($__internal_4dc69c9c9d424baa7f027f4816c8ee2b7f20ac5dc828629353a0dd2bd8937c1c_prof);
 }
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:40,代码来源:70eea615fabf882c5decddec589b4dac2eea9b7ae18d08064f1e57b6a59b523d.php


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