• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP twig_date_format_filter函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: block_input_attributes

 public function block_input_attributes($context, array $blocks = array())
 {
     // line 11
     echo "    type=\"text\"\n    data-grav-field-datetime\n    data-date-formats=\"";
     // line 13
     echo twig_escape_filter($this->env, twig_jsonencode_filter(array("format" => isset($context["js_dateformat"]) ? $context["js_dateformat"] : null)), "html_attr");
     echo "\"\n    ";
     // line 14
     if ($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "min", array())) {
         echo "min=\"";
         echo null === $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "min", array()) ? $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "min", array()) : twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "min", array()), isset($context["php_dateformat"]) ? $context["php_dateformat"] : null);
         echo "\"";
     }
     // line 15
     echo "    ";
     if ($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "max", array())) {
         echo "max=\"";
         echo null === $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "max", array()) ? $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "max", array()) : twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "max", array()), isset($context["php_dateformat"]) ? $context["php_dateformat"] : null);
         echo "\"";
     }
     // line 16
     echo "    ";
     $this->displayParentBlock("input_attributes", $context, $blocks);
     echo "\n";
 }
开发者ID:BenjaminPoilve,项目名称:Seed-Up-Website,代码行数:25,代码来源:58c24b106ca4b456dd23948d964019b9f864093b2c1d7bb9c11481d64401baae.php


示例2: block_page

 public function block_page($context, array $blocks = array())
 {
     // line 61
     echo "    <div id=\"micaso\" class=\"fullsize\"  style=\"  background-color: #F0F0D8;height: 550px;\">\n        \n        <div id=\"contenedor\">\n        ";
     // line 64
     $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["entity"]) {
         // line 65
         echo "            \n            \n            <a href=\"";
         // line 67
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("noticia_show", array("id" => $this->getAttribute($context["entity"], "id", array()))), "html", null, true);
         echo "\"> <div class= 'item_cliente' > <img style=\"width: 50px;\" src=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("public/images/noticia.png"), "html", null, true);
         echo "\" /> <h2 style=\"display: inline-block; margin-left: 25px; margin-right: 40px;\"> ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "titulo", array()), "html", null, true);
         echo " </h2> <h3>";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["entity"], "fecha", array()), "m/d/Y"), "html", null, true);
         echo " </h3> </div> </a>\n\n                        \n                \n              \n            \n            \n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 75
     echo "        </div>\n        \n        \n        \n  \n  \n        <ul>\n        <li>\n\n            <a href=\"";
     // line 84
     echo $this->env->getExtension('routing')->getPath("noticia_new");
     echo "\" class=\"link\"> <div class=\"opcion\"> <img src=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("public/images/noticia.png"), "html", null, true);
     echo "\"/> <div class=\"label\">Agregar Noticia</div> </div> </a>\n            \n        </li>\n    </ul>\n    </div>\n                \n    ";
 }
开发者ID:AndresFelipe27,项目名称:APPWBA-IngenieriaSoftware3,代码行数:31,代码来源:30e24604a8a3f87eb79cf1a296055673dcc5044ed5523c4af14751d05c62.php


示例3: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 4
     echo "<h1>Noticias</h1>\n\n    \n        <tbody>\n        ";
     // line 8
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["tabla"]) ? $context["tabla"] : $this->getContext($context, "tabla"));
     foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
         // line 9
         echo "           \n                <a href=\"";
         // line 10
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("noticias_show", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "tituloNoticias"), "html", null, true);
         echo "</a><br>\n                \n                 <img src=\"";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/uniseries/imagenes/" . $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "fotoNoticias") . ""), "html", null, true);
         echo "\" width=20% height=20%/>\n                 <br>\n                 ";
         // line 14
         if ($this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "fechaNoticias")) {
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "fechaNoticias"), "Y-m-d "), "html", null, true);
         }
         echo "<br><br>\n                 <p>By: ";
         // line 15
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "autorNoticias"), "html", null, true);
         echo "</p><br><br>\n               \n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 18
     echo "        </tbody>\n    </table>\n\n    ";
 }
开发者ID:iker24,项目名称:series,代码行数:33,代码来源:37dc842119262294bb6ef1d2ce058e3bbb874768edd25075c3c520649f93.php


示例4: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 4
     echo "<h1>Utilisateur</h1>\n\n    <table class=\"record_properties text-center table-bordered\">\n        <tbody>\n\n            <tr>\n                <th>Civilité</th>\n                <td>";
     // line 11
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "civ", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Nom</th>\n                <td>";
     // line 15
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "nom", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Prénom</th>\n                <td>";
     // line 19
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "prenom", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Email</th>\n                <td>";
     // line 23
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "mail", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Pass</th>\n                <td>";
     // line 27
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "pass", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Date d'affectation</th>\n                <td>";
     // line 31
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "dateAffectation", array()), "Y-m-d H:i:s"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Nombre de rapports</th>\n                <td>";
     // line 35
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "numRap", array()), "html", null, true);
     echo "</td>\n            </tr>\n        </tbody>\n    </table>\n\n        <ul class=\"record_actions\">\n    <li>\n        <a href=\"";
     // line 42
     echo $this->env->getExtension('routing')->getPath("utilisateur");
     echo "\">\n            Retour à la liste\n        </a>\n    </li>\n    <li>\n        <a href=\"";
     // line 47
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("utilisateur_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()))), "html", null, true);
     echo "\">\n            Editer\n        </a>\n    </li>\n    <li>";
     // line 51
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form');
     echo "</li>\n</ul>\n";
 }
开发者ID:Taskim,项目名称:PPE3,代码行数:35,代码来源:2fd6a28cfcac60629c7d15eb01284478c606f9620a90a6d790dfde21f6ab.php


示例5: block_body

 public function block_body($context, array $blocks = array())
 {
     $__internal_f9fb984cb7021ac3b2998ce347cd0b4c5345a284c502ce99925f63431bd0958a = $this->env->getExtension("native_profiler");
     $__internal_f9fb984cb7021ac3b2998ce347cd0b4c5345a284c502ce99925f63431bd0958a->enter($__internal_f9fb984cb7021ac3b2998ce347cd0b4c5345a284c502ce99925f63431bd0958a_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 4
     echo "<div class=\"col-lg-12\">\n        <h1 class=\"page-header\">Station</h1>\n    </div>\n    <!-- /.col-lg-12 -->\n\n    <table class=\"record_properties\">\n        <tbody>\n            <tr>\n                <th>Id</th>\n                <td>";
     // line 13
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Name</th>\n                <td>";
     // line 17
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "name", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Createdat</th>\n                <td>";
     // line 21
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "createdAt", array()), "Y-m-d H:i:s"), "html", null, true);
     echo "</td>\n            </tr>\n        </tbody>\n    </table>\n\n        <ul class=\"record_actions\">\n    <li>\n        <a href=\"";
     // line 28
     echo $this->env->getExtension('routing')->getPath("station");
     echo "\">\n            Back to the list\n        </a>\n    </li>\n    <li>\n        <a href=\"";
     // line 33
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("station_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()))), "html", null, true);
     echo "\">\n            Edit\n        </a>\n    </li>\n    <li>";
     // line 37
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form');
     echo "</li>\n</ul>\n";
     $__internal_f9fb984cb7021ac3b2998ce347cd0b4c5345a284c502ce99925f63431bd0958a->leave($__internal_f9fb984cb7021ac3b2998ce347cd0b4c5345a284c502ce99925f63431bd0958a_prof);
 }
开发者ID:Ajroudi,项目名称:TuniDrive,代码行数:26,代码来源:944e23c4f02dbc765051ba7ded37c64194d51cfba26f32b14144d1da581aab61.php


示例6: block_body

 public function block_body($context, array $blocks = array())
 {
     $__internal_d890bc2da6bf42658188d289d00baeda84e2c1908d82d21292bcf14e7f0b31db = $this->env->getExtension("native_profiler");
     $__internal_d890bc2da6bf42658188d289d00baeda84e2c1908d82d21292bcf14e7f0b31db->enter($__internal_d890bc2da6bf42658188d289d00baeda84e2c1908d82d21292bcf14e7f0b31db_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 4
     echo "<h1>Fortune</h1>\n\n    <table class=\"record_properties\">\n        <tbody>\n            <tr>\n                <th>Id</th>\n                <td>";
     // line 10
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Title</th>\n                <td>";
     // line 14
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "title", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Author</th>\n                <td>";
     // line 18
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "author", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Content</th>\n                <td>";
     // line 22
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "content", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Createdat</th>\n                <td>";
     // line 26
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "createdAt", array()), "Y-m-d H:i:s"), "html", null, true);
     echo "</td>\n            </tr>\n        </tbody>\n    </table>\n\n        <ul class=\"record_actions\">\n    <li>\n        <a href=\"";
     // line 33
     echo $this->env->getExtension('routing')->getPath("fortune");
     echo "\">\n            Back to the list\n        </a>\n    </li>\n    <li>\n        <a href=\"";
     // line 38
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fortune_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()))), "html", null, true);
     echo "\">\n            Edit\n        </a>\n    </li>\n    <li>";
     // line 42
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form');
     echo "</li>\n</ul>\n";
     $__internal_d890bc2da6bf42658188d289d00baeda84e2c1908d82d21292bcf14e7f0b31db->leave($__internal_d890bc2da6bf42658188d289d00baeda84e2c1908d82d21292bcf14e7f0b31db_prof);
 }
开发者ID:antoinelanglet,项目名称:fortunes,代码行数:32,代码来源:487d8a53e10368a59ad5e627a1447f6a5e23bf88d75486018315b1fa25f685d1.php


示例7: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_e29466b646aa5312093d5b560117c4b73c00765348aa73ac24e59f046156327f = $this->env->getExtension("native_profiler");
     $__internal_e29466b646aa5312093d5b560117c4b73c00765348aa73ac24e59f046156327f->enter($__internal_e29466b646aa5312093d5b560117c4b73c00765348aa73ac24e59f046156327f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "::layout.html.twig"));
     // line 2
     echo "\n<!DOCTYPE html>\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\n  <title>";
     // line 9
     $this->displayBlock('title', $context, $blocks);
     echo "</title>\n\n  ";
     // line 11
     $this->displayBlock('stylesheets', $context, $blocks);
     // line 14
     echo "\n</head>\n\n<body>\n  <div class=\"container\">\n    <div id=\"header\" class=\"jumbotron\">\n      <h1>Mon mini-site</h1>\n    </div>\n\n    <div class=\"row\">\n\n      <div id=\"menu\" class=\"col-md-3\">\n        ";
     // line 27
     echo "        ";
     $this->displayBlock('admin_menu', $context, $blocks);
     // line 29
     echo "      </div>\n\n      <div id=\"content\" class=\"col-md-9\">\n        ";
     // line 33
     echo "        ";
     $this->displayBlock('body', $context, $blocks);
     // line 35
     echo "      </div>\n    </div>\n\n    <hr>\n\n    <footer>\n      <p>Piotr401 © ";
     // line 41
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
     echo ".</p>\n    </footer>\n  </div>\n\n  ";
     // line 46
     echo "  ";
     $this->displayBlock('javascripts', $context, $blocks);
     // line 50
     echo "\n</body>\n</html>\n";
     $__internal_e29466b646aa5312093d5b560117c4b73c00765348aa73ac24e59f046156327f->leave($__internal_e29466b646aa5312093d5b560117c4b73c00765348aa73ac24e59f046156327f_prof);
 }
开发者ID:piotr401,项目名称:mini-site,代码行数:33,代码来源:fec51f0162820f607d2d2db4dd28ef1913728f1cda399908bad5cfef5e8a4ec1.php


示例8: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 6
     echo "    <table class=\"record_properties\">\n        <tbody>\n            <tr>\n                <th>Nom</th>\n                <td>";
     // line 10
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "nomutilisateur", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Prénom</th>\n                <td>";
     // line 14
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "prenomutilisateur", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Email</th>\n                <td>";
     // line 18
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "emailutilisateur", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Agence</th>\n                <td>";
     // line 22
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "agence", array()), "nomAgence", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Login</th>\n                <td>";
     // line 26
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "loginutilisateur", array()), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Date de naissance</th>\n                <td>";
     // line 30
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "dtnaissanceutilisateur", array()), "d/m/Y"), "html", null, true);
     echo "</td>\n            </tr>\n        </tbody>\n    </table>\n    <div class=\"col-sm-3\">";
     // line 34
     echo twig_include($this->env, $context, ":BackOffice:buttom.html.twig", array("nomButtom" => "Retour listing utilisateur", "routeButtom" => $this->env->getExtension('routing')->getPath("ro_utilisateur_homepage"), "glyphicon" => "glyphicon glyphicon-arrow-left"));
     echo "</div>\n    <div class=\"col-sm-3\">";
     // line 35
     echo twig_include($this->env, $context, ":BackOffice:buttom.html.twig", array("nomButtom" => "Modifier infos utilisateur", "routeButtom" => $this->env->getExtension('routing')->getPath("ro_utilisateur_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()))), "glyphicon" => "glyphicon glyphicon-pencil"));
     echo "</div>\n    <div class=\"col-sm-3\">";
     // line 36
     echo twig_include($this->env, $context, ":BackOffice:buttom.html.twig", array("nomButtom" => "Supprimer utilisateur", "routeButtom" => $this->env->getExtension('routing')->getPath("ro_utilisateur_delete", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()))), "glyphicon" => "glyphicon glyphicon-remove"));
     echo "</div>\n";
 }
开发者ID:ramisg85,项目名称:oueslatirami,代码行数:32,代码来源:716ac9bfdb0b9d7ef33d6afbcf6d96f11a9d4f62dd149e24c85142f0e063.php


示例9: block_esieablog_body

 public function block_esieablog_body($context, array $blocks = array())
 {
     // line 10
     echo "\n  <h2>";
     // line 11
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["advert"]) ? $context["advert"] : null, "titre", array()), "html", null, true);
     echo "</h2>\n  <i1>Par ";
     // line 12
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["advert"]) ? $context["advert"] : null, "auteur", array()), "html", null, true);
     echo ", le ";
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["advert"]) ? $context["advert"] : null, "date", array()), "d/m/Y"), "html", null, true);
     echo "</i1>\n\n\n  <div class=\"well\">\n\n   <i2> Les ingrédients : ";
     // line 17
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["advert"]) ? $context["advert"] : null, "ingredients", array()), "html", null, true);
     echo " </i2>\n  </div>\n\n  <div class=\"well\">\n\n   <i3> La préparation : ";
     // line 22
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["advert"]) ? $context["advert"] : null, "preparation", array()), "html", null, true);
     echo " </i3>\n  </div>\n\n\n  <p>\n    <a href=\"";
     // line 27
     echo $this->env->getExtension('routing')->getPath("esiea_blog_home");
     echo "\" class=\"btn btn-default\">\n      <i class=\"glyphicon glyphicon-chevron-left\"></i>\n      Retour à la liste des recettes\n    </a>\n    <a href=\"";
     // line 31
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("esiea_blog_edit", array("id" => $this->getAttribute(isset($context["advert"]) ? $context["advert"] : null, "id", array()))), "html", null, true);
     echo "\" class=\"btn btn-default\">\n      <i class=\"glyphicon glyphicon-edit\"></i>\n      Modifier la recette\n    </a>\n    <a href=\"";
     // line 35
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("esiea_blog_delete", array("id" => $this->getAttribute(isset($context["advert"]) ? $context["advert"] : null, "id", array()))), "html", null, true);
     echo "\" class=\"btn btn-danger\">\n      <i class=\"glyphicon glyphicon-trash\"></i>\n      Supprimer la recette\n    </a>\n  </p>\n\n";
 }
开发者ID:hafidatabet,项目名称:Blog_Cuisine-symfony2,代码行数:28,代码来源:b0817727c3d094815dffaa16a9c5c005036a2dd18f14ba52536bb9f7f436987d.php


示例10: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_bc23b2005a7c63078ceb225fbb47e9f44567676494f1c4c221121cbe3e3fed75 = $this->env->getExtension("native_profiler");
     $__internal_bc23b2005a7c63078ceb225fbb47e9f44567676494f1c4c221121cbe3e3fed75->enter($__internal_bc23b2005a7c63078ceb225fbb47e9f44567676494f1c4c221121cbe3e3fed75_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "::layout.html.twig"));
     // line 1
     echo "<!DOCTYPE html>\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\n  <title>";
     // line 7
     $this->displayBlock('title', $context, $blocks);
     echo "</title>\n\n  ";
     // line 9
     $this->displayBlock('stylesheets', $context, $blocks);
     // line 13
     echo "</head>\n\n<body>\n  <div class=\"container\">\n    <div id=\"header\" class=\"jumbotron\">\n      <h1>Ma plateforme d'annonces</h1>\n      <p>\n        Ce projet est propulsé par Symfony2,\n        et construit grâce au MOOC OpenClassrooms et SensioLabs.\n      </p>\n      <p>\n        <a class=\"btn btn-primary btn-lg\" href=\"http://fr.openclassrooms.com/informatique/cours/developpez-votre-site-web-avec-le-framework-symfony2\">\n          Participer au MOOC »\n        </a>\n      </p>\n    </div>\n\n    <div class=\"row\">\n      <div id=\"menu\" class=\"col-md-3\">\n        <h3>Les annonces</h3>\n        <ul class=\"nav nav-pills nav-stacked\">\n          <li><a href=\"";
     // line 34
     echo $this->env->getExtension('routing')->getPath("oc_platform_home");
     echo "\">Accueil</a></li>\n          <li><a href=\"";
     // line 35
     echo $this->env->getExtension('routing')->getPath("oc_platform_add");
     echo "\">Ajouter une annonce</a></li>\n        </ul>\n\n        <h4>Dernières annonces</h4>\n        ";
     // line 39
     echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("OCPlatformBundle:Advert:menu", array("limit" => 3)));
     echo "\n      </div>\n      <div id=\"content\" class=\"col-md-9\">\n        ";
     // line 42
     $this->displayBlock('body', $context, $blocks);
     // line 44
     echo "      </div>\n    </div>\n\n    <hr>\n\n    <footer>\n      <p>The sky's the limit © ";
     // line 50
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
     echo " and beyond.</p>\n    </footer>\n  </div>\n\n  ";
     // line 54
     $this->displayBlock('javascripts', $context, $blocks);
     // line 59
     echo "\n</body>\n</html>\n\n";
     $__internal_bc23b2005a7c63078ceb225fbb47e9f44567676494f1c4c221121cbe3e3fed75->leave($__internal_bc23b2005a7c63078ceb225fbb47e9f44567676494f1c4c221121cbe3e3fed75_prof);
 }
开发者ID:andreazambelli,项目名称:GSB,代码行数:35,代码来源:df62c1f09c4122ffecd9e066927b9d6a531b49b22836f251980e1ad14f1b3e3c.php


示例11: block_page

 public function block_page($context, array $blocks = array())
 {
     // line 45
     echo "    <div id=\"micaso\" class=\"fullsize\"  style=\"  background-color: #F0F0D8;height: 540px;\">\n        <h1 style=\"    font-weight: 800;\n    font-size: 25px;\n    padding-top: 20px;\n    padding-bottom: 20px;\n    width: 600px;\n    margin: 0px auto;\">Noticia </h1>\n        \n\n    <div class=\"conten_proceso\" >\n \n        <div class=\"conten_img\"><img src=\"";
     // line 56
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("public/images/noticia.png"), "html", null, true);
     echo "\"/></div> \n        <div> <h1 class=\"titulo_proceso\">";
     // line 57
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "titulo", array()), "html", null, true);
     echo "</h1>  </div> \n        <div> <strong> Fecha:  </strong>     ";
     // line 58
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "fecha", array()), "Y-m-d"), "html", null, true);
     echo "</div>\n        <div>       ";
     // line 59
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "noticia", array()), "html", null, true);
     echo "</div>\n        <div>   <strong> Abogado:  </strong>     ";
     // line 60
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "abogado", array()), "html", null, true);
     echo "</div>\n\n\n    </div>          \n\n        <div class=\"conten_opciones\">\n        <a href=\"";
     // line 66
     echo $this->env->getExtension('routing')->getPath("noticia");
     echo "\"> Volver a la lista </a>\n        <br>\n        <a href=\"";
     // line 68
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("noticia_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()))), "html", null, true);
     echo "\"> editar</a>\n        ";
     // line 69
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form');
     echo "\n        </div>\n    \n    </div>\n";
 }
开发者ID:AndresFelipe27,项目名称:APPWBA-IngenieriaSoftware3,代码行数:29,代码来源:956a468e31574d3c6d5a6f1ce8ae3329d5848932b532b81d0e38fc774116.php


示例12: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 4
     echo "<h1>SUPERHEROE</h1>\n\n    <table class=\"record_properties\">\n        <tbody>\n            <tr>\n                <th>Id</th>\n                <td>";
     // line 10
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Nombre</th>\n                <td>";
     // line 14
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "nombre"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Descripcion</th>\n                <td>";
     // line 18
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "descripcion"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Habilidades</th>\n                <td>";
     // line 22
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "habilidades"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Edad</th>\n                <td>";
     // line 26
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "edad"), "Y-m-d H:i:s"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th>Sexo</th>\n                <td>";
     // line 30
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "sexo"), "html", null, true);
     echo "</td>\n            </tr>\n        </tbody>\n    </table>\n\n        <ul class=\"record_actions\">\n    <li>\n        <a href=\"";
     // line 37
     echo $this->env->getExtension('routing')->getPath("superheroe");
     echo "\">\n            Back to the list\n        </a>\n    </li>\n    <li>\n        <a href=\"";
     // line 42
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("superheroe_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true);
     echo "\">\n            Edit\n        </a>\n    </li>\n    <li>";
     // line 46
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form');
     echo "</li>\n</ul>\n";
 }
开发者ID:iker24,项目名称:superheroes,代码行数:32,代码来源:4d92b0398547e193ddac87144cb5b7389298faa4a0fdaefe36f809cb49c8.php


示例13: block_sdzblog_body

 public function block_sdzblog_body($context, array $blocks = array())
 {
     // line 9
     echo "\t\n\t<h2> Liste des articles </h2>\n\t\n\t<ul>\n\t\t";
     // line 13
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["articles"]) ? $context["articles"] : null);
     $context['_iterated'] = false;
     foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
         // line 14
         echo "\t\t\t<li>\n\t\t\t\t<a href=\"";
         // line 15
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("sdzblog_voir", array("id" => $this->getAttribute($context["article"], "id", array()))), "html", null, true);
         echo "\"> ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["article"], "titre", array()), "html", null, true);
         echo " </a>\n\t\t\t\tpar ";
         // line 16
         echo twig_escape_filter($this->env, $this->getAttribute($context["article"], "auteur", array()), "html", null, true);
         echo "\n\t\t\t\tle ";
         // line 17
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["article"], "date", array()), "d/m/Y"), "html", null, true);
         echo "\n\t\t\t</li>\n\t\t";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 20
         echo "\t\t\t<li>Pas (encore !) d'articles</li>\n\t\t";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 22
     echo "\t</ul>\n";
 }
开发者ID:makhloufi-lounis,项目名称:tuto_symfony,代码行数:34,代码来源:b33748a1385abff14946e6ab5a90d468e77cf907b4226e525e76c357219c.php


示例14: block_content


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP twig_ensure_traversable函数代码示例发布时间:2022-05-23
下一篇:
PHP twig_date_converter函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap