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


PHP twig_capitalize_string_filter函数代码示例

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


在下文中一共展示了twig_capitalize_string_filter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "firstName", array()), "html", null, true);
     echo ",\n\n<p>\nYou've made a \$";
     // line 4
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "amount", array()) / 100, "html", null, true);
     echo " payment to ";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "getUser", array(), "method"), "getOfficialName", array(), "method"), "html", null, true);
     echo ".\nThis charge will appear on your credit card statement as ";
     // line 5
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "appears_on_statement_as", array()), "html", null, true);
     echo ".\nPlease contact your community leadership if you have any questions or concerns regarding this information.\n</p>\n\n<p>Thank You!</p>\n\n<p>\n----------------------------------------------------------- <br>\n";
     // line 13
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "getUser", array(), "method"), "getType", array(), "method")), "html", null, true);
     echo ": ";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "getUser", array(), "method"), "getOfficialName", array(), "method"), "html", null, true);
     echo " <br>\nCampaign: ";
     // line 14
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "getTitle", array(), "method"), "html", null, true);
     echo " <br>\nOrder Number: ";
     // line 15
     echo twig_escape_filter($this->env, isset($context["order_number"]) ? $context["order_number"] : $this->getContext($context, "order_number"), "html", null, true);
     echo " <br>\nTransaction Number: ";
     // line 16
     echo twig_escape_filter($this->env, isset($context["transaction_number"]) ? $context["transaction_number"] : $this->getContext($context, "transaction_number"), "html", null, true);
     echo " <br>\nDate: ";
     // line 17
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "created_at", array()), "D, d M y H:i:s O"), "html", null, true);
     echo "<br>\nAmount: \$";
     // line 18
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "amount", array()) / 100, "html", null, true);
     echo " <br>\n-----------------------------------------------------------  <br>\n</p>";
 }
开发者ID:austinpapp,项目名称:push-notifications-temp,代码行数:34,代码来源:fd82aec5b4721d7f1e4a71a5d1f416e1fdf00b6c3189d8a2fdb112db2dcf.php

示例2: block_extra

 public function block_extra($context, array $blocks = array())
 {
     // line 13
     echo "        <div class=\"attachment-extra\">\n            <ul class=\"attachment-extra-thumbnail\">\n                <li><img src=\"";
     // line 15
     echo twig_escape_filter($this->env, isset($context["Path"]) ? $context["Path"] : $this->getContext($context, "Path"), "html", null, true);
     echo "\" class=\"img-responsive\"/></li>\n            </ul>\n            <ul class=\"attachment-extra-info\">\n                <li><span>";
     // line 18
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("attachment.property.mime"), "html", null, true);
     echo " : </span>";
     echo twig_escape_filter($this->env, twig_replace_filter(twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "mime", array())), array("/" => " :: ")), "html", null, true);
     echo "</li>\n                <li><span>";
     // line 19
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("attachment.property.name"), "html", null, true);
     echo " : </span>";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "name", array()), "html", null, true);
     echo "</li>\n                <li><span>";
     // line 20
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("attachment.property.activity"), "html", null, true);
     echo " : </span>";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "isActive", array()) ? $this->env->getExtension('translator')->trans("attachment.search.field.active") : $this->env->getExtension('translator')->trans("attachment.search.field.inactive"), "html", null, true);
     echo "</li>\n                <li><span>";
     // line 21
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("attachment.property.created"), "html", null, true);
     echo " : </span>";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "created", array()), "html", null, true);
     echo "</li>\n            </ul>\n            <div class=\"clearfix\"></div>\n        </div>\n    ";
 }
开发者ID:hamidudc,项目名称:Proshut,代码行数:28,代码来源:89cbc1d199b983b9644483676859b4eaebf331329b89fb60d81ed86ef2fcbb62.php

示例3: block_mainContent

 public function block_mainContent($context, array $blocks = array())
 {
     // line 4
     echo "    <h1 class=\"page-header\">\n        ";
     // line 5
     echo twig_escape_filter($this->env, isset($context["pageHeader"]) ? $context["pageHeader"] : null, "html", null, true);
     echo "\n    </h1>\n\n    <div class=\"col-sm-9 col-md-10 main\">\n        <div class=\"col-md-6\">\n            <h2>Resurser</h2>\n            <ul class=\"list-group\">\n                ";
     // line 12
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["resources"]) ? $context["resources"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["resource"]) {
         // line 13
         echo "                    <li class=\"list-group-item\">\n                        <span class=\"badge\">Ta bort</span>\n                        ";
         // line 15
         echo twig_escape_filter($this->env, $this->getAttribute($context["resource"], "name", array()), "html", null, true);
         echo " - ";
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["resource"], "description", array())), "html", null, true);
         echo "\n                    </li>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['resource'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 18
     echo "            </ul>\n        </div>\n        <div class=\"col-md-6\">\n            <h2>Skapa resurs</h2>\n            <form action=\"";
     // line 22
     echo twig_escape_filter($this->env, isset($context["siteUrl"]) ? $context["siteUrl"] : null, "html", null, true);
     echo "superadmin/resources\" method=\"post\">\n                ";
     // line 23
     echo isset($context["validation_errors"]) ? $context["validation_errors"] : null;
     echo "\n                <div class=\"form-group\">\n                    <label for=\"pass\">Namn</label>\n                    <input type=\"text\" name=\"name\" class=\"form-control\" id=\"name\" placeholder=\"Namn, sammanhängande text ex. loge1lokal\">\n                </div>\n                <div class=\"form-group\">\n                    <label for=\"pass\">Beskrivning</label>\n                    <input type=\"text\" name=\"description\" class=\"form-control\" id=\"description\" placeholder=\"Beskrivning på resursen\">\n                </div>\n                <input type=\"submit\" class=\"btn btn-default\" value=\"Spara\" />\n            </form>\n        </div>\n    </div>\n\n";
 }
开发者ID:frosenlind,项目名称:cq,代码行数:31,代码来源:6be3a19c88e2055aada8c0b659474d44543f0707f1c7a47fe1d7d0100bd67be9.php

示例4: block_section

 public function block_section($context, array $blocks = array())
 {
     // line 10
     echo "<div id=\"section\" class=\"grid_8 prefix_1\">\n    ";
     // line 11
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["adopteds"]) ? $context["adopteds"] : $this->getContext($context, "adopteds"));
     $context['_iterated'] = false;
     foreach ($context['_seq'] as $context["_key"] => $context["adopted"]) {
         // line 12
         echo "        <article class=\"blog\">\n            <div class=\"date\"><time datetime=\"";
         // line 13
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "fechaadopcion"), "c"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_localized_date_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "fechaadopcion"), "l, F j, Y"), "full", "none", "es")), "html", null, true);
         echo "</time></div>\n            <header class=\"ici02\">\n                <h2 class=\"ic1\"><a href=\"";
         // line 15
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_animals_view", array("id" => $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "idanimal"), "slug" => $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "slug"))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "nombre"), "html", null, true);
         echo "</a></h2>\n            </header>\n            <div class=\"box_img\">\n                <img src=\"";
         // line 18
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "img/lista_", 1 => $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "fotografia")))), "html", null, true);
         echo "\" />\n            </div>\n            <div class=\"snippet\">\n                <p>";
         // line 21
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "historia", array(0 => 300), "method"), "html", null, true);
         echo "</p>\n                <div class=\"clear\"></div>\n                <div class=\"button_continue\">\n                    <a class=\"btn02\" \n                    href=\"";
         // line 25
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_animals_view", array("id" => $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "idanimal"), "slug" => $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "slug"))), "html", null, true);
         echo "\">Ficha completa</a>\n                </div>\n            </div>\n            <footer class=\"meta\">\n                <p>Adoptado por: <span class=\"highlight\">";
         // line 29
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "usuario"), "username")), "html", null, true);
         echo "</span></p>\n                <p>Especie: <span class=\"highlight\">";
         // line 30
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "tipo")), "html", null, true);
         echo "</span></p>\n                <p>Raza: <span class=\"highlight\">";
         // line 31
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "raza")), "html", null, true);
         echo "</span></p>\n                <p>Sexo: <span class=\"highlight\">";
         // line 32
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["adopted"]) ? $context["adopted"] : $this->getContext($context, "adopted"), "animal"), "sexo")), "html", null, true);
         echo "</span></p>\n            </footer>\n        </article>\n    ";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 36
         echo "        <div class=\"not_found\"></div>\n        <div class=\"button_back\">\n            <a class=\"btn02\" href=\"";
         // line 38
         echo $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_animals_list");
         echo "\">Volver</a>\n        </div>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['adopted'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 41
     echo "        <div class=\"paginacion\">\n            ";
     // line 42
     echo $this->env->getExtension('knp_pagination')->render(isset($context["adopteds"]) ? $context["adopteds"] : $this->getContext($context, "adopteds"));
     echo "\n        </div> \n</div>\n";
 }
开发者ID:Checo1983,项目名称:petfriends,代码行数:60,代码来源:cafbc6038311deda8e11884a7c01f58cba204870db1f671262735e1fdc5b.php

示例5: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 5
     echo "<div id=\"main\" role=\"main\" class=\"container\">\n  Hoje o almoço será no ";
     // line 6
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, isset($context["restaurante"]) ? $context["restaurante"] : $this->getContext($context, "restaurante")), "html", null, true);
     echo "\n</div>\n";
 }
开发者ID:silvioneto,项目名称:ondealmocar,代码行数:8,代码来源:47b7a12dc352500be5921d7e8105d2e7495fe71c7e4ef593c8df75df1af6.php

示例6: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"communication_list_count\">\n    ";
     // line 2
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : null, "getTotalItemCount", array()), "html", null, true);
     echo " communication(s) trouvée(s)\n</div>\n\n";
     // line 11
     echo "\n<div class=\"communication_list_pagination\">\n    ";
     // line 13
     echo $this->env->getExtension('knp_pagination')->render(isset($context["pagination"]) ? $context["pagination"] : null);
     echo "\n</div>\n\n";
     // line 16
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["pagination"]) ? $context["pagination"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["communication"]) {
         // line 17
         echo "    <div class=\"communication_item\" >\n        <table>\n            <tr>\n                <td valign=\"top\">\n\n                    <div class=\"communication_user_and_date\" >\n                        <div class=\"communication_user_image\" >\n                            ";
         // line 27
         echo "                            <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("aet_annuaire_communication_view", array("id" => $this->getAttribute($context["communication"], "id", array()))), "html", null, true);
         echo "\">\n                                <img\n                                  src=\"";
         // line 29
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl($this->getAttribute($this->getAttribute($context["communication"], "image", array()), "webPath", array())), "html", null, true);
         echo "\"\n                                  alt=\"";
         // line 30
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["communication"], "image", array()), "alt", array()), "html", null, true);
         echo "\"\n                                />\n                            </a>\n                        </div>\n                        <div class=\"communication_user_name\"><i>Par ";
         // line 34
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute($context["communication"], "user", array()), "firstName", array())), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($this->getAttribute($context["communication"], "user", array()), "lastName", array())), "html", null, true);
         echo "</i></div>\n                        <div class=\"communication_date\"><i>Le ";
         // line 35
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["communication"], "date", array()), "d/m/Y"), "html", null, true);
         echo "</i></div>\n                    </div>\n\n                </td>\n                <td valign=\"top\">\n                    <div class=\"communication_title\" >\n                        <a href=\"";
         // line 41
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("aet_annuaire_communication_view", array("id" => $this->getAttribute($context["communication"], "id", array()))), "html", null, true);
         echo "\">";
         echo twig_length_filter($this->env, $this->getAttribute($context["communication"], "title", array())) > 80 ? twig_slice($this->env, $this->getAttribute($context["communication"], "title", array()), 0, 80) . "..." : $this->getAttribute($context["communication"], "title", array());
         echo "</a>\n                    </div>\n                    <div class=\"communication_body\" >\n                        ";
         // line 45
         echo "                        ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["communication"], "shortDesc", array()), "html", null, true);
         echo "\n                    </div>\n                </td>\n            </tr>\n\n\n        </table>\n    </div>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['communication'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 54
     echo "\n";
     // line 56
     echo "<div class=\"communication_list_pagination\">\n    ";
     // line 57
     echo $this->env->getExtension('knp_pagination')->render(isset($context["pagination"]) ? $context["pagination"] : null);
     echo "\n</div>";
 }
开发者ID:AetFrance,项目名称:SiteFoyerAet,代码行数:57,代码来源:0003d2b8fe95f9ed547dcb844e1bfe062b8959ea5862a03ca3cc40c36e83.php

示例7: 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

示例8: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["taxonomies"] = null === (isset($context["taxonomies"]) ? $context["taxonomies"] : null) ? $this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "data", array(0 => "site"), "method"), "taxonomies", array()) : (isset($context["taxonomies"]) ? $context["taxonomies"] : null);
     // line 2
     $context["parentname"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array());
     // line 3
     echo "\n";
     // line 4
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["taxonomies"]) ? $context["taxonomies"] : null);
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["_key"] => $context["name"]) {
         // line 5
         echo "\n    ";
         // line 6
         $context["value"] = $this->env->getExtension('GravTwigExtension')->arrayFunc($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "value", array(0 => "header.taxonomy." . $context["name"]), "method", true, true) ? _twig_default_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "value", array(0 => "header.taxonomy." . $context["name"]), "method"), array()) : array());
         // line 7
         echo "    ";
         $context["sub_taxonomies"] = twig_get_array_keys_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["grav"]) ? $context["grav"] : null, "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"], array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["grav"]) ? $context["grav"] : null, "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"]), array()) : array());
         // line 8
         echo "    ";
         $context["list"] = twig_array_merge(twig_array_merge(array(), isset($context["sub_taxonomies"]) ? $context["sub_taxonomies"] : null), isset($context["value"]) ? $context["value"] : null);
         // line 9
         echo "\n    ";
         // line 10
         $context["field"] = array("type" => "select", "classes" => "fancy create", "label" => twig_capitalize_string_filter($this->env, $context["name"]), "name" => (isset($context["parentname"]) ? $context["parentname"] : null) . "." . $context["name"], "multiple" => true, "options" => isset($context["list"]) ? $context["list"] : null, "selectize" => array("create" => true));
         // line 21
         echo "\n    ";
         // line 22
         $this->loadTemplate(array(0 => "forms/fields/select/select.html.twig"), "forms/fields/taxonomy/taxonomy.html.twig", 22)->display($context);
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['name'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
开发者ID:anabecker,项目名称:new-website,代码行数:51,代码来源:6c96f12f46acdbf3a1493578d6c0e735e8cf45441326c6202a9c879d6a8a8927.php

示例9: block_content_header

 public function block_content_header($context, array $blocks = array())
 {
     // line 10
     echo "    <div class=\"type\">";
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "categoryName")), "html", null, true);
     echo "</div>\n    <h1>";
     // line 11
     echo $context["__internal_ff448dc76c96a2d01e060554289df0582b3ec87ccb3c8ff255280c9bf865bbc7"]->getnamespace_link($this->getAttribute(isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "namespace"));
     if ($this->getAttribute(isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "namespace")) {
         echo "\\";
     }
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "shortname"), "html", null, true);
     echo "</h1>\n";
 }
开发者ID:stanislavVysotskyi,项目名称:masterOfCode,代码行数:14,代码来源:bd6f794a82b95acfde6a6f2048778716621815a792b5ff8c1405a108e8b4.php

示例10: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 4
     echo "    <h1>App Webpage</h1>\n    ";
     // line 5
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, isset($context["a_variable"]) ? $context["a_variable"] : null), "html", null, true);
     echo "\n    ";
     // line 6
     echo twig_escape_filter($this->env, isset($context["v"]) ? $context["v"] : null, "html", null, true);
     echo "\n    ";
     // line 7
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('testasa')->getCallable(), array()), "html", null, true);
     echo "\n";
 }
开发者ID:Arunkumarcs,项目名称:Themis-Reinitialize,代码行数:14,代码来源:4698281739c16b411477f60537ea5711fa160349938a722b47d4d27f296290f8.php

示例11: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_9c621437edd2f6f59ae8d070fd973503571fd9a58102fa309795535c01f42141 = $this->env->getExtension("native_profiler");
     $__internal_9c621437edd2f6f59ae8d070fd973503571fd9a58102fa309795535c01f42141->enter($__internal_9c621437edd2f6f59ae8d070fd973503571fd9a58102fa309795535c01f42141_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TrainCoreBundle:Default:main-layout.html.twig"));
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t<link rel=\"icon\" type=\"image/png\" href=\"";
     // line 7
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/train/pics/favicon.png"), "html", null, true);
     echo "\" />\n    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\n    <meta name=\"description\" content=\"\">\n    <meta name=\"author\" content=\"\">\n    <link rel=\"icon\" href=\"favicon.ico\">\n\t\n\t";
     // line 13
     $this->displayBlock('title', $context, $blocks);
     // line 16
     echo "\t\n    <!-- Bootstrap core CSS -->\n    <link  rel=\"stylesheet\" href=\"";
     // line 18
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/train/bootstrap/dist/css/bootstrap.min.css"), "html", null, true);
     echo "\">\n\n    <!-- Custom styles for this template -->\n    <link  rel=\"stylesheet\" href=\"";
     // line 21
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/train/bootstrap/less/jumbotron-narrow.less"), "html", null, true);
     echo "\">\n\n\n    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\n    <!--[if lt IE 9]>\n      <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\n      <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\n    <![endif]-->\n  </head>\n\n  <body style=\"background-color:white;\">\n    <div class=\"container\">\n      <div class=\"header clearfix\">\n        <nav>\n          <ul class=\"nav nav-pills pull-right\">\n\n            <li role=\"presentation\" class=\"active\"><a href=\"";
     // line 37
     echo $this->env->getExtension('routing')->getPath("train_core_homepage");
     echo "\">Accueil</a></li>\n\t\t\t";
     // line 38
     if ($this->env->getExtension('security')->isGranted("ROLE_USER")) {
         // line 39
         echo "\t\t\t<li role=\"presentation\"><a href=\"#\">Connecté en tant que ";
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "username", array())), "html", null, true);
         echo "</a></li>\t\n\t\t\t<li role=\"presentation\"><a href=\"";
         // line 40
         echo $this->env->getExtension('routing')->getPath("logout");
         echo "\">Se déconnecter</a></li>\t\t\n\t\t\t";
     }
     // line 42
     echo "\t\t\t<li role=\"presentation\"><a href=\"#\">Comment ça fonctionne?</a></li>\n            <li role=\"presentation\"><a href=\"#\">A propos</a></li>\n          </ul>\n        </nav>\n        <h3 class=\"text-muted\"><a href=\"";
     // line 46
     echo $this->env->getExtension('routing')->getPath("train_core_homepage");
     echo "\">\n\t\t<img src=\"";
     // line 47
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/train/bootstrap/pics/path2.png"), "html", null, true);
     echo "\" alt=\"Path\" /></a></h3>\n      </div>\n\t";
     // line 49
     $this->displayBlock('body', $context, $blocks);
     // line 52
     echo "      <footer class=\"footer\">\n        <p>&copy; 2015 Slim&Théo, Ecole des Mines de Nantes</p>\n      </footer>\n\n    </div> <!-- /container -->\n\t\n\t <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>\n\t<script src=\"";
     // line 59
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/train/bootstrap/dist/js/bootstrap.min.js"), "html", null, true);
     echo "\"></script>\n\n\n  </body>\n  \n</html>\n";
     $__internal_9c621437edd2f6f59ae8d070fd973503571fd9a58102fa309795535c01f42141->leave($__internal_9c621437edd2f6f59ae8d070fd973503571fd9a58102fa309795535c01f42141_prof);
 }
开发者ID:asa93,项目名称:Batch,代码行数:49,代码来源:5e60c8613cff832d8dab4b94eb157f20b727454333dcb60e3156dad6700fff0c.php

示例12: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_1f5b5c856e655c0202ce2f6eec849f62235aaca3b3faf658782511aea622b053 = $this->env->getExtension("native_profiler");
     $__internal_1f5b5c856e655c0202ce2f6eec849f62235aaca3b3faf658782511aea622b053->enter($__internal_1f5b5c856e655c0202ce2f6eec849f62235aaca3b3faf658782511aea622b053_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "LabsFrontBundle:Includes:top-header.html.twig"));
     // line 1
     echo "<div class=\"top-header\">\n    <div class=\"container\">\n        <div class=\"currency \">\n            <div class=\"dropdown\">\n                <a class=\"current-open\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" href=\"#\">";
     // line 5
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, "Service Client"), "html", null, true);
     echo "</a>\n                <ul class=\"dropdown-menu\" role=\"menu\">\n                    <li><a href=\"#\">Je suis fournisseurs</a></li>\n                    <li><a href=\"#\">Je suis Acheteur Grossiste</a></li>\n                </ul>\n            </div>\n        </div>\n        <div class=\"language \">\n            <div class=\"dropdown\">\n                <a class=\"current-open\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" href=\"#\">\n                    ";
     // line 15
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, "Centre d'aide | Helpline Center"), "html", null, true);
     echo "\n                </a>\n                <ul class=\"dropdown-menu\" role=\"menu\">\n                    <li><a href=\"#\">Pour votre compte</a></li>\n                    <li><a href=\"#\">Pour votre commande</a></li>\n                    <li><a href=\"#\">Pour votre paiement</a></li>\n                    <li><a href=\"#\">Autre</a></li>\n                </ul>\n            </div>\n        </div>\n        <div class=\"top-bar-social\">\n            <a href=\"#\"><i class=\"fa fa-facebook\"></i></a>\n            <a href=\"#\"><i class=\"fa fa-twitter\"></i></a>\n            <a href=\"#\"><i class=\"fa fa-pinterest\"></i></a>\n            <a href=\"#\"><i class=\"fa fa-google-plus\"></i></a>\n        </div>\n        <div class=\"support-link\">\n            <a href=\"#\">";
     // line 32
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, "A propos de Toudeal.com"), "html", null, true);
     echo "</a>\n            <a href=\"#\">";
     // line 33
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, "Support technique"), "html", null, true);
     echo "</a>\n        </div>\n        ";
     // line 35
     if ($this->env->getExtension('security')->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
         // line 36
         echo "        <div id=\"user-info-top\" class=\"user-info pull-right\">\n            <div class=\"dropdown\">\n                <a class=\"current-open\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" href=\"#\"><span>";
         // line 38
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, "mon compte"), "html", null, true);
         echo "</span></a>\n                <ul class=\"dropdown-menu mega_dropdown\" role=\"menu\">\n                    <li><a href=\"login.html\">Mes Suggestions</a></li>\n                    <li><a href=\"#\">Mes Commandes</a></li>\n                    <li><a href=\"#\">Mes Informations</a></li>\n                    <li><a href=\"#\">Mes Factures</a></li>\n                    <li><a href=\"#\">Mes Favoris</a></li>\n                    <li><a href=\"#\">Mon SAV</a></li>\n                    <li><a href=\"#\">Mon Adresse</a></li>\n                    <li><a href=\"#\">Mes Avis</a></li>\n                    <li><a href=\"";
         // line 48
         echo $this->env->getExtension('routing')->getPath("fos_user_security_logout");
         echo "\">Se deconnecter</a></li>\n                </ul>\n            </div>\n        </div>\n        ";
     } else {
         // line 53
         echo "            <div class=\"support-link\">\n                <a href=\"";
         // line 54
         echo $this->env->getExtension('routing')->getPath("fos_user_registration_register");
         echo "\">";
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, "Créer mon compte"), "html", null, true);
         echo "</a>\n                <a href=\"";
         // line 55
         echo $this->env->getExtension('routing')->getPath("fos_user_security_login");
         echo "\">";
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, "J'ai déja un compte"), "html", null, true);
         echo "</a>\n            </div>\n        ";
     }
     // line 58
     echo "    </div>\n</div>\n";
     $__internal_1f5b5c856e655c0202ce2f6eec849f62235aaca3b3faf658782511aea622b053->leave($__internal_1f5b5c856e655c0202ce2f6eec849f62235aaca3b3faf658782511aea622b053_prof);
 }
开发者ID:raphydev,项目名称:onep,代码行数:46,代码来源:ff126cb8a78b27fd3e22ad5c9961c70bdd09fd4493af594205043f013de1281c.php

示例13: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 8
     echo "    ";
     $this->displayParentBlock("body", $context, $blocks);
     echo "\n    <h1>Plugin Webpage</h1>\n    ";
     // line 10
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, isset($context["a_variable"]) ? $context["a_variable"] : null), "html", null, true);
     echo "\n    ";
     // line 11
     echo twig_escape_filter($this->env, isset($context["v"]) ? $context["v"] : null, "html", null, true);
     echo "\n    ";
     // line 12
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('testasa')->getCallable(), array()), "html", null, true);
     echo "\n    ";
     // line 13
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["ENV"]) ? $context["ENV"] : null, "page", array(), "array"), "plugin_assets_url", array(), "array"), "html", null, true);
     echo "\n";
 }
开发者ID:Arunkumarcs,项目名称:Themis-Reinitialize,代码行数:19,代码来源:14446ba47995ab98ede62b4b261dc07b2b53c05a795077dbb24496fd2758dded.php

示例14: block_options

 public function block_options($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $this->displayParentBlock("options", $context, $blocks);
     echo "\n    ";
     // line 5
     $context["current"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "menu", array()), "getDefaultMenuName", array(), "method");
     // line 6
     echo "    ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "menu", array()), "getMenus", array(), "method"));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 7
         echo "        ";
         $context["text"] = twig_capitalize_string_filter($this->env, $context["key"]);
         // line 8
         echo "        <option\n                ";
         // line 10
         echo "                ";
         if ($context["key"] == (isset($context["value"]) ? $context["value"] : null)) {
             echo "selected=\"selected\"";
         }
         // line 11
         echo "                value=\"";
         echo twig_escape_filter($this->env, $context["key"]);
         echo "\"\n                ";
         // line 13
         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 14
         echo "                >";
         echo twig_escape_filter($this->env, isset($context["text"]) ? $context["text"] : null);
         echo (isset($context["current"]) ? $context["current"] : null) == $context["key"] && $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "menu", array()), "hasDefaultMenu", array(), "method") ? " ★" : "";
         echo "</option>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
开发者ID:ericssonm,项目名称:JusCuzCustoms,代码行数:42,代码来源:b500c3881d7b419b93c12a8b4788be5863882df2df02f2106bc13b4b933268b9.php

示例15: block_mainContent

 public function block_mainContent($context, array $blocks = array())
 {
     // line 5
     echo "    <div class=\"row\">\n        <div class=\"col-md-6\">\n            <h2>Dina uppgifter i matrikeln</h2>\n            <p>Användarnmn, namn, adress mm.</p>\n\n            ";
     // line 10
     echo twig_var_dump($this->env, $context);
     echo "\n        </div>\n        <div class=\"col-md-6\">\n            <h2>Inloggningsuppgifter</h2>\n            <p>\n                Användarnamn: ";
     // line 15
     echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["activeUser"]) ? $context["activeUser"] : null, "username", array())), "html", null, true);
     echo "<br />\n                E-postadress: ";
     // line 16
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["activeUser"]) ? $context["activeUser"] : null, "email", array()), "html", null, true);
     echo "<br />\n            </p>\n            <hr>\n\n            <form action=\"";
     // line 20
     echo twig_escape_filter($this->env, isset($context["siteUrl"]) ? $context["siteUrl"] : null, "html", null, true);
     echo "mypage\" method=\"post\">\n                ";
     // line 21
     echo isset($context["validation_errors"]) ? $context["validation_errors"] : null;
     echo "\n                <div class=\"form-group\">\n                    <label for=\"pass\">Nytt lösenord</label>\n                    <input type=\"password\" name=\"pass\" class=\"form-control\" id=\"pass\" placeholder=\"Nytt lösenord\">\n                </div>\n                <div class=\"form-group\">\n                    <label for=\"pass2\">Repetera nytt lösenord</label>\n                    <input type=\"password\" name=\"pass2\" class=\"form-control\" id=\"pass2\" placeholder=\"Repetera nytt lösenord\">\n                </div>\n                <input type=\"submit\" class=\"btn btn-default\" value=\"Spara\" />\n            </form>\n        </div>\n    </div>\n";
 }
开发者ID:frosenlind,项目名称:cq,代码行数:20,代码来源:2ef5aafe74d61b6aba8f03bfa61059bb0222b9a7b331f17d40b2574c8e72287e.php


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