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"; }
/** * @requires extension intl * @requires PHP 5.5 */ public function testLocalizedDateFilterWithDateTimeZone() { class_exists('Twig_Extensions_Extension_Intl'); $env = $this->getMockBuilder('Twig_Environment')->disableOriginalConstructor()->getMock(); if (defined('HHVM_VERSION_ID')) { $timezone = 'Europe/Paris'; } else { $timezone = '+01:00'; } $date = twig_localized_date_filter($env, new DateTime('2015-01-01T00:00:00', new DateTimeZone('UTC')), 'short', 'long', 'en', $timezone); $this->assertEquals('1/1/15 1:00:00 AM GMT+01:00', $date); }
public function block_content($context, array $blocks = array()) { // line 7 echo "<div class=\"content-view-line\"> <article class=\"class-blog-post\"> <div class=\"attribute-header\"> "; // line 12 echo " <h2><a href="; echo $this->env->getExtension('routing')->getPath((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location"))); echo " title=\""; echo twig_escape_filter($this->env, $this->env->getExtension('ezpublish.content')->getTranslatedFieldValue((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "title"), "html", null, true); echo "\">"; echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "title"); echo "</a></h2> </div> <div class=\"attribute-byline with-comments\"> <span class=\"date\">"; // line 17 echo twig_escape_filter($this->env, twig_localized_date_filter($this->env, $this->env->getExtension('ezpublish.content')->getTranslatedFieldValue((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "publication_date"), "short", "short", $this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : $this->getContext($context, "app")), "request", array()), "locale", array())), "html", null, true); echo "</span> <span class=\"author\">"; // line 18 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["author"]) ? $context["author"] : $this->getContext($context, "author")), "contentInfo", array()), "name", array()), "html", null, true); echo "</span> <span class=\"tags\"> "; // line 20 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Tags:"), "html", null, true); echo " "; // line 22 echo " "; echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "tags", array("template" => $this)); echo " </span> </div> <div class=\"attribute-body\"> "; // line 27 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "body"); echo " </div> </article> </div> "; }
public function block_section($context, array $blocks = array()) { // line 10 echo "<div class=\"grid_8 prefix_1\">\n <article class=\"blog\">\n <header class=\"ici02\">\n <div class=\"date\"><time datetime=\""; // line 13 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "creado"), "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["post"]) ? $context["post"] : $this->getContext($context, "post"), "creado"), "l, F j, Y"), "full", "none", "es")), "html", null, true); echo "</time></div>\n <h2 class=\"ic1\">"; // line 14 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "titulo"), "html", null, true); echo "</h2>\n </header>\n <img src=\""; // line 16 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "img/", 1 => $this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "imagen")))), "html", null, true); echo "\" alt=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "titulo"), "html", null, true); echo " imagen no encontrada\" class=\"large\" />\n <div>\n <p>"; // line 18 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "contenido"), "html", null, true); echo "</p>\n </div>\n </article>\n <section class=\"comments\" id=\"comments\">\n <section class=\"previous-comments\">\n <h3>Comentarios</h3>\n "; // line 24 $this->env->loadTemplate("JMPCPetFriendsProtectorsBundle:Comments:index.html.twig")->display(array_merge($context, array("comments" => isset($context["comments"]) ? $context["comments"] : $this->getContext($context, "comments")))); // line 25 echo " </section>\n <h3>Nuevo comentario</h3>\n "; // line 27 if ($this->env->getExtension('security')->isGranted("IS_AUTHENTICATED_REMEMBERED")) { echo " \n "; // line 28 echo $this->env->getExtension('actions')->renderUri($this->env->getExtension('http_kernel')->controller("JMPCPetFriendsProtectorsBundle:Comments:new", array("post_id" => $this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "id"))), array()); echo " \n "; } else { // line 30 echo " <p>Para comentar debe estar registrado</p>\n "; } // line 32 echo " </section>\n <div class=\"button_back\">\n <a class=\"btn02\" href=\""; // line 34 echo $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_homepage"); echo "\">Volver</a>\n </div>\n</div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 4 echo " "; // line 7 $context["content_size"] = "8"; // line 8 echo " <div class=\"content-view-line\"> <article class=\"class-article row\"> "; // line 12 if ((!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "image"))) { // line 13 echo " <div class=\"span2\"> <div class=\"attribute-image\"> "; // line 15 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "image", array("template" => "eZDemoBundle:fields:ezimage_simple.html.twig", "parameters" => array("alias" => "articlethumbnail"))); // line 22 echo " </div> </div> "; // line 25 $context["content_size"] = "6"; // line 26 echo " "; } // line 27 echo " <div class=\"span"; // line 28 echo twig_escape_filter($this->env, (isset($context["content_size"]) ? $context["content_size"] : $this->getContext($context, "content_size")), "html", null, true); echo "\"> <div class=\"attribute-header\"> <h2> <a href="; // line 31 echo $this->env->getExtension('routing')->getPath((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location"))); echo " title=\""; echo twig_escape_filter($this->env, $this->env->getExtension('ezpublish.content')->getTranslatedFieldValue((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "title"), "html", null, true); echo "\" class=\"teaser-link\">"; echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "title"); echo "</a> </h2> </div> <div class=\"attribute-byline with-comments\"> <span class=\"date\"> "; // line 37 echo twig_escape_filter($this->env, twig_localized_date_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "contentInfo", array()), "publishedDate", array()), "short", "short", $this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : $this->getContext($context, "app")), "request", array()), "locale", array())), "html", null, true); echo " </span> "; // line 39 if ((!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "intro"))) { // line 40 echo " <span class=\"author\"> "; // line 41 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "author", array("template" => "eZDemoBundle:fields:ezauthor_simple.html.twig")); // line 47 echo " </span> "; } // line 50 echo " </div> "; // line 52 if ((!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "intro"))) { // line 53 echo " <div class=\"attribute-short\"> "; // line 54 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "intro"); echo " </div> "; } // line 57 echo " </div> </article> </div> "; }
public function block_section($context, array $blocks = array()) { // line 11 echo "<div id=\"section\" class=\"grid_8 prefix_1\">\n "; // line 12 if ($this->env->getExtension('security')->isGranted("IS_AUTHENTICATED_REMEMBERED")) { // line 13 echo " <span class=\"new_post\"><a href="; echo $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_lost_new"); echo ">Nuevo amigo desaparecido</a></span>\n "; } // line 14 echo " \n "; // line 15 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["losts"]) ? $context["losts"] : $this->getContext($context, "losts")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["lost"]) { // line 16 echo " <article class=\"blog\">\n <div class=\"date\"><time datetime=\""; // line 17 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "fechaperdida"), "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["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "fechaperdida"), "l, F j, Y"), "full", "none", "es")), "html", null, true); echo "</time></div>\n <header class=\"ici02\">\n <h2 class=\"ic1\"><a href=\""; // line 19 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_lost_view", array("id" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "idanimalperdido"), "slug" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "slug"))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "nombre"), "html", null, true); echo "</a></h2>\n </header>\n <div class=\"box_img\">\n <img src=\""; // line 22 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "img/lista_", 1 => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "fotografia")))), "html", null, true); echo "\" />\n </div>\n <div class=\"snippet\">\n <p>"; // line 25 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "mensaje", array(0 => 300), "method"), "html", null, true); echo "</p>\n <div class=\"clear\"></div>\n <div class=\"button_continue\">\n <a class=\"btn02\" href=\""; // line 28 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_lost_view", array("id" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "idanimalperdido"), "slug" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "slug"))), "html", null, true); echo "\">Ficha completa</a>\n </div>\n </div>\n <footer class=\"meta\">\n <p>Especie: <span class=\"highlight\">"; // line 32 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "tipo")), "html", null, true); echo "</span></p>\n <p>Raza: <span class=\"highlight\">"; // line 33 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "raza")), "html", null, true); echo "</span></p>\n <p>Sexo: <span class=\"highlight\">"; // line 34 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "sexo")), "html", null, true); echo "</span></p>\n </footer>\n <div class=\"links_post\">\n "; // line 37 if ($this->env->getExtension('security')->isGranted("ROLE_ADMIN")) { echo " \n <a id=\"delete\" onclick=\"return confirm('¿Borrar entrada?')\" href= "; // line 38 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_lost_delete", array("id" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "idanimalperdido"), "slug" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "slug"))), "html", null, true); echo ">Borrar Entrada</a>\n <a href="; // line 39 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_lost_edit", array("id" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "idanimalperdido"), "slug" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "slug"))), "html", null, true); echo ">Editar Entrada</a>\n "; } elseif ($this->env->getExtension('security')->isGranted("IS_AUTHENTICATED_REMEMBERED")) { // line 40 echo " \n <a href="; // line 41 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_lost_edit", array("id" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "idanimalperdido"), "slug" => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "slug"))), "html", null, true); echo ">Editar Entrada</a>\n "; } // line 43 echo " </div>\n </article> \n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 46 echo " <div class=\"not_found\"></div>\n <div class=\"button_back\">\n <a class=\"btn02\" href=\""; // line 48 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['lost'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 51 echo " <div class=\"paginacion\">\n "; // line 52 echo $this->env->getExtension('knp_pagination')->render(isset($context["losts"]) ? $context["losts"] : $this->getContext($context, "losts")); echo "\n </div>\n</div>\n"; }
public function block_main($context, array $blocks = array()) { $__internal_ceb14daae0754ae2ebf38375358cd7b7ad94ccf9d773881dad07ba18fed86826 = $this->env->getExtension("native_profiler"); $__internal_ceb14daae0754ae2ebf38375358cd7b7ad94ccf9d773881dad07ba18fed86826->enter($__internal_ceb14daae0754ae2ebf38375358cd7b7ad94ccf9d773881dad07ba18fed86826_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "main")); // line 6 echo " <h1>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "title", array()), "html", null, true); echo "</h1>\n\n "; // line 8 echo $this->env->getExtension('app.extension')->markdownToHtml($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "content", array())); echo "\n\n <div id=\"post-add-comment\" class=\"well\">\n "; // line 17 echo " "; if ($this->env->getExtension('security')->isGranted("IS_AUTHENTICATED_FULLY")) { // line 18 echo " "; echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("AppBundle:Blog:commentForm", array("id" => $this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "id", array())))); echo "\n "; } else { // line 20 echo " <p>\n <a class=\"btn btn-success\" href=\""; // line 21 echo $this->env->getExtension('routing')->getPath("security_login_form"); echo "\">\n <i class=\"fa fa-sign-in\"></i> "; // line 22 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("action.sign_in"), "html", null, true); echo "\n </a>\n "; // line 24 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("post.to_publish_a_comment"), "html", null, true); echo "\n </p>\n "; } // line 27 echo " </div>\n\n <h3>"; // line 29 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->transchoice("post.num_comments", twig_length_filter($this->env, $this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "comments", array()))), "html", null, true); echo "</h3>\n\n "; // line 31 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "comments", array())); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["comment"]) { // line 32 echo " <div class=\"row post-comment\">\n <h4 class=\"col-sm-3\">\n <strong>"; // line 34 echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "authorEmail", array()), "html", null, true); echo "</strong> "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("post.commented_on"), "html", null, true); echo "\n <strong>"; // line 35 echo twig_escape_filter($this->env, twig_localized_date_filter($this->env, $this->getAttribute($context["comment"], "publishedAt", array()), "medium", "short"), "html", null, true); echo "</strong>\n </h4>\n <div class=\"col-sm-9\">\n "; // line 38 echo $this->env->getExtension('app.extension')->markdownToHtml($this->getAttribute($context["comment"], "content", array())); echo "\n </div>\n </div>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 42 echo " <div class=\"post-comment\">\n <p>"; // line 43 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("post.no_comments"), "html", null, true); echo "</p>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; $__internal_ceb14daae0754ae2ebf38375358cd7b7ad94ccf9d773881dad07ba18fed86826->leave($__internal_ceb14daae0754ae2ebf38375358cd7b7ad94ccf9d773881dad07ba18fed86826_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 4 echo "\n\n "; // line 6 if ($this->env->getExtension('security')->isGranted("ROLE_ADMIN")) { echo " \n <span class=\"new_post\"><a href="; // line 7 echo $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_new"); echo ">Nueva Entrada</a></span>\n "; } // line 8 echo " \n "; // line 9 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["posts"]) ? $context["posts"] : $this->getContext($context, "posts")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["post"]) { // line 10 echo " <article class=\"blog\">\n <div class=\"date\"><time datetime=\""; // line 11 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "creado"), "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($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "creado"), "l, F j, Y"), "full", "none", "es")), "html", null, true); echo "</time></div>\n <header class=\"ici02\">\n <h2 class=\"ic1\"><a href=\""; // line 13 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_list", array("id" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "id"), "slug" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "slug"))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "titulo"), "html", null, true); echo "</a></h2>\n </header>\n <div class=\"box_img\">\n <img src=\""; // line 16 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["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "imagen")))), "html", null, true); echo "\" />\n </div>\n <div class=\"snippet\">\n <p>"; // line 19 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "contenido", array(0 => 300), "method"), "html", null, true); echo "</p>\n <div class=\"clear\"></div>\n <div class=\"button_continue\">\n <a class=\"btn02\" href=\""; // line 22 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_list", array("id" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "id"), "slug" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "slug"))), "html", null, true); echo "\">Continua...</a>\n </div>\n </div>\n \n <footer class=\"meta\">\n <p>Comentarios: <a href=\""; // line 27 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_list", array("id" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "id"), "slug" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "slug"))), "html", null, true); echo "#comentarios\">"; echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "comentarios")), "html", null, true); echo "</a></p>\n <p>Enviado por <span class=\"highlight\">"; // line 28 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "autor"), "html", null, true); echo "</span> a las "; echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "creado"), "h:iA"), "html", null, true); echo "</p>\n <p>Etiquetas: <span class=\"highlight\">"; // line 29 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "tags"), "html", null, true); echo "</span></p>\n </footer>\n "; // line 31 if ($this->env->getExtension('security')->isGranted("ROLE_ADMIN")) { echo " \n <div class=\"links_post\">\n <a onclick=\"return confirm('¿Borrar entrada?')\" href= "; // line 33 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_delete", array("id" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "id"), "slug" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "slug"))), "html", null, true); echo ">Borrar Entrada</a>\n <a href="; // line 34 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_edit", array("id" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "id"), "slug" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "slug"))), "html", null, true); echo ">Editar Entrada</a>\n </div>\n \n "; } // line 38 echo " </article> \n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 39 echo " "; echo " \n <div class=\"not_found\"></div>\n <div class=\"button_back\">\n <a class=\"btn02\" href=\""; // line 42 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['post'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 45 echo " <div class=\"paginacion\">\n "; // line 46 echo $this->env->getExtension('knp_pagination')->render(isset($context["posts"]) ? $context["posts"] : $this->getContext($context, "posts")); echo "\n </div>\n \n\n "; }
public function block_section($context, array $blocks = array()) { // line 13 echo "<div class=\"grid_12 prefix_1\">\n <article class=\"blog\">\n <header class=\"ici02\">\n <div class=\"date\"><time datetime=\""; // line 16 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "fechaperdida"), "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["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "fechaperdida"), "l, F j, Y"), "full", "none", "es")), "html", null, true); echo "</time></div>\n <h2 class=\"ic1\">"; // line 17 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "nombre"), "html", null, true); echo "</h2>\n </header>\n \n <div class=\"adopt_content\">\n <img src=\""; // line 21 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "img/", 1 => $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "fotografia")))), "html", null, true); echo "\" alt=\"Imagen de "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "nombre"), "html", null, true); echo " no encontrada\" class=\"large\" />\n </div>\n <div id=\"fieldset_content\">\n <fieldset><legend>Ficha de "; // line 24 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "nombre"), "html", null, true); echo "</legend>\n <div id=\"animal_token\">\n <div><span class=\"title_span\">Raza:</span>\n <span>"; // line 27 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "tipo")), "html", null, true); echo " \n "; // line 28 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "raza"), "html", null, true); echo "</span>\n </div>\n <div><span class=\"title_span\">Sexo:</span>\n <span>"; // line 31 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "sexo")), "html", null, true); echo "</span>\n </div>\n <div><span class=\"title_span\">Tamaño:</span>\n <span>"; // line 34 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "tamano")), "html", null, true); echo "</span>\n </div>\n <div class=\"clear\"></div>\n <div><span class=\"title_span\">Color:</span>\n <span class=\"color_span\" style=\"background:"; // line 38 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "color"), "html", null, true); echo "\">Color</span>\n </div>\n <div><span class=\"title_span\">Comportamiento:</span>\n <span>"; // line 41 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "comportamiento")), "html", null, true); echo "</span>\n </div>\n <div><span class=\"title_span\">Chip:</span>\n "; // line 44 if ($this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "chip") == 1) { // line 45 echo " <span>Si</span>\n "; } else { // line 47 echo " <span>No</span>\n "; } // line 49 echo " </div>\n <div><span class=\"title_span\">Usuario:</span>\n <span><a href=\"#\">"; // line 51 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "idusuariomascperd")), "html", null, true); echo "</a></span>\n </div>\n <div class=\"clear\"></div>\n <div><span class=\"title_span\">Mensaje:</span>\n <span class=\"title_span_textarea\">"; // line 55 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["lost"]) ? $context["lost"] : $this->getContext($context, "lost"), "mensaje"), "html", null, true); echo "</span>\n </div>\n </div>\n </fieldset>\n </div>\n \n <div class=\"google_maps\" id=\"localization\">\n <div class=\"previous-comments\">\n <h3>Localización</h3>\n "; // line 64 $this->env->loadTemplate("JMPCPetFriendsProtectorsBundle:Lost:localization.html.twig")->display($context); // line 65 echo " </div>\n \n </div>\n </article>\n <div class=\"adopte_content\">\n <h3>Formulario Mascota Encontrada</h3>\n \n "; // line 72 if ($this->env->getExtension('security')->isGranted("IS_AUTHENTICATED_REMEMBERED")) { echo " \n "; // line 73 $this->env->loadTemplate("JMPCPetFriendsProtectorsBundle:Lost:form.html.twig")->display(array_merge($context, array("form" => isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")))); echo " \n "; } else { // line 75 echo " <div><p>Registrate para poder rellenar el formulario</p></div>\n "; } // line 77 echo " </div>\n \n <div class=\"clear\"></div>\n <div class=\"button_back\">\n <a class=\"btn02\" href=\""; // line 81 echo $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_lost"); echo "\">Volver</a>\n </div>\n</div>\n"; }
public function block_eztime_field($context, array $blocks = array()) { // line 95 ob_start(); // line 96 echo " "; if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; } if ($this->getAttribute($this->getAttribute($_field_, "value"), "time")) { // line 97 echo " "; if (isset($context["fieldSettings"])) { $_fieldSettings_ = $context["fieldSettings"]; } else { $_fieldSettings_ = null; } if ($this->getAttribute($_fieldSettings_, "useSeconds")) { // line 98 echo " "; if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; } if (isset($context["parameters"])) { $_parameters_ = $context["parameters"]; } else { $_parameters_ = null; } $context["field_value"] = twig_localized_date_filter($this->env, $this->getAttribute($this->getAttribute($_field_, "value"), "time"), "none", "medium", $this->getAttribute($_parameters_, "locale")); // line 99 echo " "; } else { // line 100 echo " "; if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; } if (isset($context["parameters"])) { $_parameters_ = $context["parameters"]; } else { $_parameters_ = null; } $context["field_value"] = twig_localized_date_filter($this->env, $this->getAttribute($this->getAttribute($_field_, "value"), "time"), "none", "short", $this->getAttribute($_parameters_, "locale")); // line 101 echo " "; } // line 102 echo " "; $this->displayBlock("simple_block_field", $context, $blocks); echo "\n "; } echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); }
public function block_section($context, array $blocks = array()) { // line 12 echo "<div class=\"grid_12 prefix_1\">\n <article class=\"blog\">\n <header class=\"ici02\">\n <div class=\"date\"><time datetime=\""; // line 15 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "fechaalta"), "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["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "fechaalta"), "l, F j, Y"), "full", "none", "es")), "html", null, true); echo "</time></div>\n <h2 class=\"ic1\">"; // line 16 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "nombre"), "html", null, true); echo "</h2>\n </header>\n \n \n <section class=\"adopt_content\">\n <img src=\""; // line 21 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "img/", 1 => $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "fotografia")))), "html", null, true); echo "\" alt=\"Imagen de "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "nombre"), "html", null, true); echo " no encontrada\" class=\"large\" />\n "; // line 22 if ($this->env->getExtension('security')->isGranted("IS_AUTHENTICATED_REMEMBERED")) { echo " \n <div class=\"btn_adopt\"><a class=\"btn\" href=\"#\">Adoptame</a></div>\n "; } else { // line 25 echo " <div class=\"btn_adopt\"><a class=\"btn\" href=\"#\" disabled=\"disabled\">Adoptame</a></div>\n "; } // line 27 echo " </section>\n \n <div id=\"fieldset_content\">\n <fieldset><legend>Ficha de "; // line 30 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "nombre"), "html", null, true); echo "</legend>\n <div id=\"animal_token\">\n <div><span class=\"title_span\">Raza:</span>\n <span>"; // line 33 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "tipo")), "html", null, true); echo " \n "; // line 34 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "raza"), "html", null, true); echo "</span>\n </div>\n <div><span class=\"title_span\">Sexo:</span>\n <span>"; // line 37 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "sexo")), "html", null, true); echo "</span>\n </div>\n <div><span class=\"title_span\">Tamaño:</span>\n <span>"; // line 40 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "tamano")), "html", null, true); echo "</span>\n </div>\n <div class=\"clear\"></div>\n <div><span class=\"title_span\">Color:</span>\n <span class=\"color_span\" style=\"background:"; // line 44 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "color"), "html", null, true); echo "\">Color</span>\n </div>\n <div><span class=\"title_span\">Comportamiento:</span>\n <span>"; // line 47 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "comportamiento")), "html", null, true); echo "</span>\n </div>\n <div><span class=\"title_span\">Chip:</span>\n "; // line 50 if ($this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "chip") == 1) { // line 51 echo " <span>Si</span>\n "; } else { // line 53 echo " <span>No</span>\n "; } // line 55 echo " </div>\n <div class=\"clear\"></div>\n <div><span class=\"title_span\">Historia:</span>\n <span class=\"title_span_textarea\">"; // line 58 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["animal"]) ? $context["animal"] : $this->getContext($context, "animal"), "historia"), "html", null, true); echo "</span>\n </div>\n </div>\n </fieldset>\n </div>\n <section class=\"google_maps\" id=\"localization\">\n <section class=\"previous-comments\">\n <h3>Localización</h3>\n "; // line 66 $this->env->loadTemplate("JMPCPetFriendsProtectorsBundle:Animals:localization.html.twig")->display($context); // line 67 echo " </section>\n </section>\n </article>\n <div class=\"clear\"></div>\n \n <div class=\"button_back\">\n <a class=\"btn02\" href=\""; // line 73 echo $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_animals_list"); echo "\">Volver</a>\n </div>\n</div>\n"; }
public function block_main($context, array $blocks = array()) { $__internal_b0f2d26524004a3fac2c4f2fa12801b60c7c1834824eae036605bc9222b61d89 = $this->env->getExtension("native_profiler"); $__internal_b0f2d26524004a3fac2c4f2fa12801b60c7c1834824eae036605bc9222b61d89->enter($__internal_b0f2d26524004a3fac2c4f2fa12801b60c7c1834824eae036605bc9222b61d89_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "main")); // line 6 echo " <h1>"; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title.post_list"), "html", null, true); echo "</h1>\n\n <table class=\"table table-striped\">\n <thead>\n <tr>\n <th>"; // line 11 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label.title"), "html", null, true); echo "</th>\n <th><i class=\"fa fa-user\"></i> "; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label.author"), "html", null, true); echo "</th>\n <th><i class=\"fa fa-calendar\"></i> "; // line 13 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label.published_at"), "html", null, true); echo "</th>\n <th><i class=\"fa fa-cogs\"></i> "; // line 14 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label.actions"), "html", null, true); echo "</th>\n </tr>\n </thead>\n <tbody>\n "; // line 18 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["posts"]) ? $context["posts"] : $this->getContext($context, "posts")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["post"]) { // line 19 echo " <tr>\n <td>"; // line 20 echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "title", array()), "html", null, true); echo "</td>\n <td>"; // line 21 echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "authorEmail", array()), "html", null, true); echo "</td>\n <td>"; // line 22 if ($this->getAttribute($context["post"], "publishedAt", array())) { echo twig_escape_filter($this->env, twig_localized_date_filter($this->env, $this->getAttribute($context["post"], "publishedAt", array()), "short", "short"), "html", null, true); } echo "</td>\n <td>\n <div class=\"item-actions\">\n <a href=\""; // line 25 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("admin_post_show", array("id" => $this->getAttribute($context["post"], "id", array()))), "html", null, true); echo "\" class=\"btn btn-sm btn-default\">\n "; // line 26 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("action.show"), "html", null, true); echo "\n </a>\n\n "; // line 29 if ($this->getAttribute($context["post"], "isAuthor", array(0 => $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array())), "method")) { // line 30 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("admin_post_edit", array("id" => $this->getAttribute($context["post"], "id", array()))), "html", null, true); echo "\" class=\"btn btn-sm btn-primary\">\n <i class=\"fa fa-edit\"></i> "; // line 31 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("action.edit"), "html", null, true); echo "\n </a>\n "; } // line 34 echo " </div>\n </td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 38 echo " <tr>\n <td colspan=\"4\" align=\"center\">"; // line 39 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("post.no_posts_found"), "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 42 echo " </tbody>\n </table>\n"; $__internal_b0f2d26524004a3fac2c4f2fa12801b60c7c1834824eae036605bc9222b61d89->leave($__internal_b0f2d26524004a3fac2c4f2fa12801b60c7c1834824eae036605bc9222b61d89_prof); }
public function block_section($context, array $blocks = array()) { // line 16 echo "\n\n<script type=\"text/javascript\">\n\n\$(document).ready(function() {\n initialize('"; // line 21 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "nombreCiudad"), "html", null, true); echo "');\n});\n\n</script>\n\n\n"; // line 28 echo " <div id=\"w\">\n <div id=\"content\" class=\"clearfix\">\n <div id=\"userphoto\">\n "; // line 31 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["files"]) ? $context["files"] : $this->getContext($context, "files")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["file"]) { // line 32 echo " <img class=\"img_profile\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "img/", 1 => $this->getAttribute(isset($context["file"]) ? $context["file"] : $this->getContext($context, "file"), "fotoUsuario")))), "html", null, true); echo "\" alt=\"foto de usuario\">\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 34 echo " <img class=\"img_profile\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/avatar.png"), "html", null, true); echo "\" alt=\"foto de usuario\">\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 36 echo " </div>\n\n <h1 class=\"profile\">"; // line 38 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "nombre"), "html", null, true); echo "</h1>\n\n <nav id=\"profiletabs\">\n <ul class=\"clearfix\">\n <li><a href=\"#locale\" class=\"sel\">Localización</a></li>\n <li><a href=\"#bio\">Acerca de vosotros</a></li>\n <li><a href=\"#pet\">Tu Mascota</a></li>\n <li><a href=\"#settings\">Tus Datos</a></li>\n </ul>\n </nav>\n\n <section id=\"locale\">\n <p><b>Pais: </b>"; // line 50 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "nombrePais"), "html", null, true); echo "</p><p><b>Ciudad: </b>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "nombreCiudad"), "html", null, true); echo "</p>\n <div class=\"box_form_photo\">\n <form class=\"form_photo_profile\" method=\"POST\" action=\""; // line 52 echo $this->env->getExtension('routing')->getPath("jmpc_pet_friends_update_files"); echo "\" \n enctype=\"multipart/form-data\" name=\"form_photo_profile\">\n <input type=\"file\" id=\"profile_photo\" name=\"profile_photo\"/>\n <input id=\"submit_profile_photo\" type=\"submit\" value=\"Cambiar foto\" /> \n </form>\n </div>\n <div class=\"box_profile\">\n <div id=\"map_canvas\"></div>\n </div>\n </section>\n \n <section id=\"bio\" class=\"hidden\">\n <p><b>Sobre vosotros</b></p><p>"; // line 64 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "sobreVosotros"), "html", null, true); echo "</p>\n </section>\n \n <section id=\"pet\" class=\"hidden\">\n <div id=\"petphoto\">\n "; // line 69 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["files"]) ? $context["files"] : $this->getContext($context, "files")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["file"]) { // line 70 echo " <img class=\"img_pet\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "img/", 1 => $this->getAttribute(isset($context["file"]) ? $context["file"] : $this->getContext($context, "file"), "fotoMascota")))), "html", null, true); echo "\" alt=\"foto de tu mascota\">\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 72 echo " <img class=\"img_pet\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/avatar.png"), "html", null, true); echo "\" alt=\"foto de tu mascota\">\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 74 echo " </div>\n <p><b>Nombre: </b>"; // line 75 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "nombreMascota"), "html", null, true); echo "</p>\n <p><b>Especie: </b>"; // line 76 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "especie")), "html", null, true); echo "</p>\n <div class=\"box_form_photo_pet\">\n <form class=\"form_photo_profile_pet\" method=\"POST\" action=\""; // line 78 echo $this->env->getExtension('routing')->getPath("jmpc_pet_friends_update_files_pet"); echo "\" \n enctype=\"multipart/form-data\" name=\"form_photo_profile_pet\">\n <input type=\"file\" id=\"profile_photo_pet\" name=\"profile_photo_pet\"/>\n <input id=\"submit_profile_photo_pet\" type=\"submit\" value=\"Cambiar foto\" /> \n </form>\n </div>\n </section>\n\n <section id=\"settings\" class=\"hidden\">\n <span>Editar tu perfil </span><span><img class=\"img_edit\" src=\""; // line 87 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/edit.png"), "html", null, true); echo "\" alt=\"*Edit*\"></span>\n\n <p class=\"setting\"><span>Usuario</span> "; // line 89 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "username"), "html", null, true); echo "</p>\n\n <p class=\"setting\"><span>Direccion E-mail</span> "; // line 91 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "email"), "html", null, true); echo "</p>\n\n <p class=\"setting\"><span>Nombre de tu mascota</span>"; // line 93 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "nombreMascota"), "html", null, true); echo "</p>\n\n <p class=\"setting\"><span>Especie</span>"; // line 95 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "especie")), "html", null, true); echo "</p>\n\n <p class=\"setting\"><span>Pais</span>"; // line 97 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "nombrePais"), "html", null, true); echo "</p>\n\n <p class=\"setting\"><span>Ciudad</span>"; // line 99 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "nombreCiudad"), "html", null, true); echo "</p>\n\n <p class=\"setting\"><span>Ultima vez online</span>\n "; // line 102 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["user"]) ? $context["user"] : $this->getContext($context, "user"), "lastLogin"), "l, F j, Y"), "full", "none", "es")), "html", null, true); echo "</p>\n </section>\n \n </div><!-- @end #content -->\n </div><!-- @end #w -->\n <div id=\"dialogoPerfil\" title=\"Modificar Datos de Usuario\" style=\"display:none;\">\n <form id=\"form_register\" action=\""; // line 108 echo $this->env->getExtension('routing')->getPath("fos_user_profile_edit"); echo "\" "; echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), 'enctype'); echo " method=\"POST\" class=\"fos_user_profile_edit\">\n "; // line 109 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), 'widget'); echo "\n <div>\n <input class=\"boton\" type=\"submit\" value=\"Modificar\" />\n </div>\n </form> \n </div>\n\n"; }
public function block_content($context, array $blocks = array()) { // line 13 echo " <section class=\"content-view-full\"> <div class=\"class-blog-post\"> <div class=\"row\"> <div class=\"span8\"> <div class=\"attribute-header\"> <h1>"; // line 18 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "title"); echo "</h1> </div> <div class=\"attribute-byline\"> <span class=\"date\"> "; // line 23 echo twig_escape_filter($this->env, twig_localized_date_filter($this->env, $this->env->getExtension('ezpublish.content')->getTranslatedFieldValue((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "publication_date"), "short", "short", $this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : $this->getContext($context, "app")), "request", array()), "locale", array())), "html", null, true); echo " </span> <span class=\"author\">"; // line 26 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["author"]) ? $context["author"] : $this->getContext($context, "author")), "contentInfo", array()), "name", array()), "html", null, true); echo "</span> </div> <div class=\"attribute-body float-break\"> "; // line 30 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "body"); echo " </div> <div class=\"attribute-tags\"> "; // line 34 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "tags", array("attr" => array("class" => "tags-wrapper"))); echo " </div> <div class=\"attribute-comments\"> "; // line 38 echo $this->env->getExtension('ez_comments')->renderForContent($this->getAttribute((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "contentInfo", array())); echo " </div> "; // line 42 echo " "; echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("eZDemoBundle:Demo:viewTagRelatedContent", array("location" => (isset($context["location"]) ? $context["location"] : $this->getContext($context, "location"))))); echo " </div> <div class=\"span4\"> <aside> <section class=\"content-view-aside\"> "; // line 49 echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("eZDemoBundle:Demo:viewParentExtraInfo", array("location" => (isset($context["location"]) ? $context["location"] : $this->getContext($context, "location"))))); echo " </section> </aside> </div> </div> </div> </section> "; }
public function block_eztime_field($context, array $blocks = array()) { // line 102 ob_start(); // line 103 echo " "; if ((!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), (isset($context["field"]) ? $context["field"] : $this->getContext($context, "field"))))) { // line 104 echo " "; if ($this->getAttribute((isset($context["fieldSettings"]) ? $context["fieldSettings"] : $this->getContext($context, "fieldSettings")), "useSeconds", array())) { // line 105 echo " "; $context["field_value"] = twig_localized_date_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["field"]) ? $context["field"] : $this->getContext($context, "field")), "value", array()), "time", array()), "none", "medium", $this->getAttribute((isset($context["parameters"]) ? $context["parameters"] : $this->getContext($context, "parameters")), "locale", array())); // line 106 echo " "; } else { // line 107 echo " "; $context["field_value"] = twig_localized_date_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["field"]) ? $context["field"] : $this->getContext($context, "field")), "value", array()), "time", array()), "none", "short", $this->getAttribute((isset($context["parameters"]) ? $context["parameters"] : $this->getContext($context, "parameters")), "locale", array())); // line 108 echo " "; } // line 109 echo " "; $this->displayBlock("simple_block_field", $context, $blocks); echo " "; } echo trim(preg_replace('/>\s+</', '><', ob_get_clean())); }
public function block_content($context, array $blocks = array()) { // line 8 echo "<section class=\"content-view-full\"> <article class=\"class-article row\"> <div class=\"span8\"> <div class=\"attribute-header\"> <h1>"; // line 12 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "title"); echo "</h1> </div> <div class=\"attribute-byline\"> <span class=\"date\"> "; // line 17 echo twig_escape_filter($this->env, twig_localized_date_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "contentInfo", array()), "publishedDate", array()), "short", "short", $this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : $this->getContext($context, "app")), "request", array()), "locale", array())), "html", null, true); echo " </span> "; // line 19 if ((!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "author"))) { // line 20 echo " <span class=\"author\"> "; // line 21 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "author", array("template" => "eZDemoBundle:fields:ezauthor_simple.html.twig")); // line 27 echo " </span> "; } // line 30 echo " </div> "; // line 32 if (((isset($context["showImage"]) ? $context["showImage"] : $this->getContext($context, "showImage")) && (!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "image")))) { // line 33 echo " <div class=\"attribute-image full-head\"> "; // line 34 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "image", array("template" => "eZDemoBundle:fields:ezimage_simple.html.twig", "parameters" => array("alias" => "articleimage"))); // line 41 echo " "; // line 43 if ((!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "caption"))) { // line 44 echo " <div class=\"attribute-caption\"> "; // line 45 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "caption"); echo " </div> "; } // line 48 echo " </div> "; } // line 50 echo " "; // line 51 if (((isset($context["showSummary"]) ? $context["showSummary"] : $this->getContext($context, "showSummary")) && (!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "intro")))) { // line 52 echo " <div class=\"attribute-short\"> "; // line 53 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "intro"); echo " </div> "; } // line 56 echo " "; // line 57 if ((!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "body"))) { // line 58 echo " <div class=\"attribute-long\"> "; // line 59 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "body"); echo " </div> "; } // line 62 echo " <div class=\"attribute-tags\"> "; // line 64 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "tags", array("attr" => array("class" => "tags-wrapper"))); // line 70 echo " </div> <div class=\"attribute-star-rating\"> "; // line 74 echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("eZDemoBundle:Demo:viewStarRating", array("location" => (isset($context["location"]) ? $context["location"] : $this->getContext($context, "location"))))); echo " </div> <div class=\"attribute-socialize\"> "; // line 78 $this->env->loadTemplate("eZDemoBundle:parts:social_buttons.html.twig")->display($context); // line 79 echo " </div> <div class=\"attribute-comments\"> "; // line 82 echo $this->env->getExtension('ez_comments')->renderForContent($this->getAttribute((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "contentInfo", array())); echo " </div> "; // line 85 echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("eZDemoBundle:Demo:viewTipAFriend", array("location" => (isset($context["location"]) ? $context["location"] : $this->getContext($context, "location"))))); echo " </div> <div class=\"span4\"> <aside> <section class=\"content-view-aside\"> "; // line 90 if ((!$this->env->getExtension('ezpublish.content')->isFieldEmpty((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "location"))) { // line 91 echo " <h2>"; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Location"), "html", null, true); echo "</h2> <article> <div class=\"attribute-location\"> "; // line 94 echo $this->env->getExtension('ezpublish.content')->renderField((isset($context["content"]) ? $context["content"] : $this->getContext($context, "content")), "location", array("parameters" => array("width" => "100%", "height" => "330px", "showMap" => true, "showInfo" => false))); // line 100 echo " </div> </article> "; } // line 104 echo " "; // line 105 echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("eZDemoBundle:Demo:viewTagRelatedContent", array("location" => (isset($context["location"]) ? $context["location"] : $this->getContext($context, "location"))))); echo " </section> </aside> </div> </article> </section> "; }