protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["value"] = null === (isset($context["value"]) ? $context["value"] : null) ? $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "default", array()) : (isset($context["value"]) ? $context["value"] : null); // line 2 echo "\n"; // line 3 if (isset($context["exists"]) ? $context["exists"] : null) { // line 4 echo "<div class=\"form-field\">\n <div class=\"form-data form-uploads-wrapper\">\n <h3>"; // line 6 echo $this->env->getExtension('AdminTwigExtension')->tuFilter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array())); echo "</h3>\n <div id=\"gravDropzone\" class=\"dropzone\"></div>\n <span>"; // line 8 echo twig_join_filter(isset($context["value"]) ? $context["value"] : null, "\n"); echo "</span>\n <script>\n \$(function(){\n var URI = \$('[data-media-url]').data('media-url'), thisDropzone,\n modalError = function(args){\n if (args.data.status == 'error' || args.data.status == 'unauthorized'){\n\n if (args.mode == 'addBack'){\n // let's add back the file\n if (args.file instanceof File) this.addFile(args.file);\n else {\n this.files.push(args.file);\n this.options.addedfile.call(this, args.file);\n this.options.thumbnail.call(this, args.file, args.file.extras.url);\n }\n } else if (args.mode == 'removeFile') {\n args.file.rejected = true;\n this.removeFile(args.file);\n }\n\n // fire up the modal\n var modalContainer = \$('[data-remodal-id=generic]');\n modalContainer.find('.error-content').html(args.msg);\n \$.remodal.lookup[modalContainer.data('remodal')].open();\n }\n };\n Dropzone.autoDiscover = false;\n Dropzone.confirm = function(question, accepted, rejected) {\n var modalContainer = \$('[data-remodal-id=delete-media]'),\n acceptHandler = function () {\n if (accepted) {\n accepted();\n }\n \$(document).off('confirm', '[data-remodal-id=delete-media]', acceptHandler);\n \$(document).off('cancel', '[data-remodal-id=delete-media]', rejectHandler);\n },\n rejectHandler = function () {\n if (rejected) {\n rejected();\n }\n \$(document).off('confirm', '[data-remodal-id=delete-media]', acceptHandler);\n \$(document).off('cancel', '[data-remodal-id=delete-media]', rejectHandler);\n };\n\n \$.remodal.lookup[modalContainer.data('remodal')].open();\n \$(document).on('confirm', '[data-remodal-id=delete-media]', acceptHandler);\n \$(document).on('cancel', '[data-remodal-id=delete-media]', rejectHandler);\n };\n Dropzone.options.gravDropzone = {\n addRemoveLinks: false,\n dictRemoveFileConfirmation: '[placeholder]',\n acceptedFiles: \$('[data-media-types]').data('media-types'),\n previewTemplate: \"<div class=\\\"dz-preview dz-file-preview\\\">\\n <div class=\\\"dz-details\\\">\\n <div class=\\\"dz-filename\\\"><span data-dz-name></span></div>\\n <div class=\\\"dz-size\\\" data-dz-size></div>\\n <img data-dz-thumbnail />\\n </div>\\n <div class=\\\"dz-progress\\\"><span class=\\\"dz-upload\\\" data-dz-uploadprogress></span></div>\\n <div class=\\\"dz-success-mark\\\"><span>✔</span></div>\\n <div class=\\\"dz-error-mark\\\"><span>✘</span></div>\\n <div class=\\\"dz-error-message\\\"><span data-dz-errormessage></span></div>\\n<a class=\\\"dz-remove\\\" href=\\\"javascript:undefined;\\\" data-dz-remove>Delete</a>\\n<a class=\\\"dz-insert\\\" href=\\\"javascript:undefined;\\\" data-dz-insert>Insert</a>\\n</div>\",\n init: function() {\n thisDropzone = this;\n \$.get(URI + '/task"; // line 63 echo $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()); echo "listmedia/admin-nonce:' + GravAdmin.config.admin_nonce, function(data) {\n\n \$.proxy(modalError, this, {\n data: data,\n msg: '<p>An error occurred while trying to list files</p><pre>'+data.message+'</pre>'\n })();\n\n if (data.results) {\n \$.each(data.results, function(filename, data){\n var mockFile = { name: filename, size: data.size, accepted: true, extras: data };\n thisDropzone.files.push(mockFile);\n thisDropzone.options.addedfile.call(thisDropzone, mockFile);\n\n if (filename.match(/\\.(jpg|jpeg|png|gif)\$/)) {\n thisDropzone.options.thumbnail.call(thisDropzone, mockFile, data.url);\n }\n });\n }\n\n \$('.dz-preview').prop('draggable', 'true');\n });\n\n this.on(\"complete\", function(file) {\n if (file.accepted) {\n \$('.dz-preview').prop('draggable', 'true');\n return;\n }\n var data = {status: 'error', message: 'Unsupported file type: ' + file.name.match(/\\..+/).join('')};\n \$.proxy(modalError, this, {\n file: file,\n data: data,\n mode: 'removeFile',\n msg: '<p>An error occurred while trying to add the file <strong>'+file.name+'</strong></p><pre>'+data.message+'</pre>'\n })();\n });\n\n this.on('success', function(file, response){\n thisDropzone = this;\n \$.proxy(modalError, this, {\n file: file,\n data: response,\n mode: 'removeFile',\n msg: '<p>An error occurred while trying to upload the file <strong>'+file.name+'</strong></p><pre>'+response.message+'</pre>'\n })();\n });\n\n this.on('removedfile', function(file) {\n if (!file.accepted || file.rejected) return;\n thisDropzone = this;\n \$.post(URI + '/task"; // line 112 echo $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()); echo "delmedia', {filename: file.name, 'admin-nonce': GravAdmin.config.admin_nonce}, function(data){\n \$.proxy(modalError, thisDropzone, {\n file: file,\n data: data,\n mode: 'addBack',\n msg: '<p>An error occurred while trying to remove the file <strong>'+file.name+'</strong></p><pre>'+data.message+'</pre>'\n })();\n });\n });\n\n this.on('sending', function(file, xhr, formData){\n formData.append('admin-nonce', GravAdmin.config.admin_nonce);\n });\n }\n };\n\n var dropzone = new Dropzone(\"#gravDropzone\", { url: URI + '/task"; // line 128 echo $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()); echo "addmedia', createImageThumbnails: { thumbnailWidth: 150} });\n\n \$(\"#gravDropzone\").delegate('.dz-preview', 'dragstart', function(e){\n var uri = encodeURI(\$(this).find('.dz-filename').text());\n uri = uri.replace(/\\(/g, '%28');\n uri = uri.replace(/\\)/g, '%29');\n\n var shortcode = '![](' + uri + ')';\n if (!uri.match(/\\.(jpg|jpeg|png|gif)\$/)) {\n shortcode = '[' + decodeURI(uri) + '](' + uri + ')';\n }\n\n dropzone.disable();\n \$(this).addClass('hide-backface');\n e.originalEvent.dataTransfer.effectAllowed = 'copy';\n e.originalEvent.dataTransfer.setData('text', shortcode);\n });\n\n \$(\"#gravDropzone\").delegate('.dz-preview', 'dragend', function(e){\n dropzone.enable();\n \$(this).removeClass('hide-backface');\n });\n });\n </script>\n </div>\n</div>\n"; } else { // line 155 echo "<div class=\"form-tab\">\n <div class=\"form-field\">\n <div class=\"form-label\">\n <label>\n You cannot add media files until you save the page. Just click 'Save' on top\n </label>\n </div>\n </div>\n</div>\n"; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n <meta name=\"generator\" content=\"EasyAdmin\" />\n\n <title>EasyAdmin Error</title>\n\n <link href=\""; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/easyadmin/stylesheet/bootstrap.min.css"), "html", null, true); echo "\" rel=\"stylesheet\">\n <link href=\""; // line 13 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/easyadmin/stylesheet/font-awesome.min.css"), "html", null, true); echo "\" rel=\"stylesheet\">\n <link href=\""; // line 14 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/easyadmin/stylesheet/admin.css"), "html", null, true); echo "\" rel=\"stylesheet\">\n <link rel=\"shortcut icon\" type=\"image/png\" href=\"/favicon.png\">\n </head>\n\n <body class=\"error\">\n <div id=\"wrapper\" class=\"container\">\n <div id=\"header\" class=\"col-lg-2\">\n <div id=\"header-contents\" class=\"row\">\n <div id=\"header-logo\" class=\"col-xs-6 col-md-2 col-lg-12\">\n <a href=\""; // line 23 echo $this->env->getExtension('routing')->getPath("admin"); echo "\">EasyAdmin</a>\n </div>\n </div>\n </div>\n\n <div id=\"content\" class=\"col-lg-10 col-lg-offset-2\">\n <div class=\"row\">\n <div class=\"col-sm-9\" id=\"main\">\n <h1>Runtime error</h1>\n <p class=\"lead\">\n The requested <code>"; // line 33 echo twig_escape_filter($this->env, $this->getContext($context, "action"), "html", null, true); echo "</code> action is not allowed.\n </p>\n\n <h2>How to fix this problem</h2>\n\n <ul>\n <li>\n Change this action for one of the following allowed actions:\n <code>"; // line 41 echo twig_join_filter($this->getContext($context, "enabled_actions"), "</code>, <code>"); echo "</code>\n </li>\n <li>\n If the action name is correct, make sure it's included in\n the <code>actions</code> option in the <code>"; // line 45 echo twig_escape_filter($this->env, $this->getContext($context, "view"), "html", null, true); echo "</code>\n view configuration of your entity.\n </li>\n </ul>\n\n <pre>easy_admin:\n entities:\n YourEntity:\n # ...\n "; // line 54 echo twig_escape_filter($this->env, $this->getContext($context, "view"), "html", null, true); echo ":\n actions:\n ['"; // line 56 echo twig_escape_filter($this->env, $this->getContext($context, "action"), "html", null, true); echo "', ...]\n # ...\n </pre>\n </div>\n </div>\n </div>\n </div>\n</body>\n</html>\n"; }
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"; }
public function block_body($context, array $blocks = array()) { // line 7 echo " <article class=\"blog\">\n <header>\n <div class=\"date\"><time datetime=\""; // line 9 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "created"), "c"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "created"), "l, F j, Y"), "html", null, true); echo "</time></div>\n <h2>"; // line 10 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "title"), "html", null, true); echo "</h2>\n </header>\n <img src=\""; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "images/", 1 => $this->getAttribute($this->getContext($context, "blog"), "image")))), "html", null, true); echo "\" alt=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "title"), "html", null, true); echo " image not found\" class=\"large\" />\n <div>\n <p>"; // line 14 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "blog"), "html", null, true); echo "</p>\n </div>\n </article>\n <section class=\"comments\" id=\"comments\">\n <section class=\"previous-comments\">\n <h3>Comments</h3>\n "; // line 20 $this->env->loadTemplate("BloggerBlogBundle:Comment:index.html.twig")->display(array_merge($context, array("comments" => $this->getContext($context, "comments")))); // line 21 echo " <h3>Add Comment</h3>\n "; // line 22 echo $this->env->getExtension('actions')->renderAction("BloggerBlogBundle:Comment:new", array("blog_id" => $this->getAttribute($this->getContext($context, "blog"), "id")), array()); // line 23 echo " </section>\n </section>\n"; }
public function block_input($context, array $blocks = array()) { // line 7 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "array", array())) { // line 8 echo " "; $context["name"] = (isset($context["name"]) ? $context["name"] : null) . "._json"; // line 9 echo " "; $context["value"] = twig_jsonencode_filter(array_key_exists("value", $context) ? _twig_default_filter(isset($context["value"]) ? $context["value"] : null, array()) : array()); // line 10 echo " "; } else { // line 11 echo " "; $context["value"] = twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", "); // line 12 echo " "; } // line 13 echo "\n <input\n "; // line 16 echo " type=\"hidden\"\n name=\""; // line 17 echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)), "html", null, true); echo "\"\n value=\""; // line 18 echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : null, "html", null, true); echo "\"\n "; // line 20 echo " "; $this->displayBlock("global_attributes", $context, $blocks); echo "\n />\n"; }
public function block_content($context, array $blocks = array()) { // line 4 echo " <div class=\"row\">\n <div class=\"col-lg-12\">\n <h1 class=\"page-header\">Logo Edit</h1>\n </div>\n </div>\n <!-- /.row -->\n <div class=\"row\">\n <center>\n <form action=\""; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("acme_logoedit", array("id" => isset($context["id"]) ? $context["id"] : null)), "html", null, true); echo "\" method=\"POST\" id=\"form\" enctype=\"multipart/form-data\" name=\"form\" class=\"form-group\" novalidate=\"novalidate\">\n "; // line 13 if (!$this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "vars"), "valid")) { // line 14 echo " <div class=\"alert alert-danger\"> \n "; // line 15 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "logo"), 'errors'); echo "\n </div>\n "; } // line 18 echo " <div class=\"form-group col-lg-12\">\n "; // line 19 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "logo"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Logo: ")); echo "\n <div class=\"col-sm-2\">\n "; // line 21 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "logo"), 'widget', array("attr" => array("class" => "btn btn-default btn-file"))); echo "\n </div>\n </div>\n <div class=\"form-group col-lg-12\">\n "; // line 25 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "logo"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Image: ")); echo "\n <div class=\"col-sm-1\">\n <img src=\""; // line 27 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/logo/", 1 => isset($context["logo"]) ? $context["logo"] : null))), "html", null, true); echo "\" style=\"width:80px; height: 50px;\" />\n </div>\n </div>\n <div class=\"form-group col-lg-12\">\n <div class=\"col-sm-6\">\n <input type=\"submit\" formnovalidate value=\"Edit\" name=\"edit\" class=\"btn btn-primary\" />\n <input type=\"reset\" name=\"Reset\" value=\"Reset\" class=\"btn btn-danger\" onclick=\"javascript:window.location.href='"; // line 33 echo $this->env->getExtension('routing')->getPath("acme_info_logo"); echo "'\"/>\n </div>\n </div>\n </form>\n </center>\n </div> \n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 if ((isset($context["view"]) ? $context["view"] : null) == "show") { // line 2 echo " <ul>\n "; // line 3 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["value"]) ? $context["value"] : null); foreach ($context['_seq'] as $context["_key"] => $context["element"]) { // line 4 echo " <li>"; echo twig_escape_filter($this->env, $context["element"], "html", null, true); echo "</li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['element'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 6 echo " </ul>\n"; } else { // line 8 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('easyadmin_extension')->truncateText($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", ")), "html", null, true); echo "\n"; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["updates"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "platform", array()), "updates", array()); // line 2 if (isset($context["updates"]) ? $context["updates"] : null) { // line 3 $context["version"] = twig_last($this->env, twig_split_filter($this->env, $this->getAttribute(isset($context["updates"]) ? $context["updates"] : null, 0, array()), " ")); // line 4 echo "<div class=\"g-grid\">\n <div class=\"g-block\">\n <div class=\"update-header clearfix\">\n <span class=\"update-text\">"; // line 7 echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_UPDATES_AVAILABLE"), "html", null, true); echo ": "; echo twig_escape_filter($this->env, twig_join_filter(isset($context["updates"]) ? $context["updates"] : null, ", "), "html", null, true); echo "</span>\n <div class=\"update-tools\">\n <a href=\""; // line 9 echo $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "platform", array()), "update", array()); echo "\" class=\"button button-update\"><i class=\"fa fa-refresh\"></i> <span>"; echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_UPDATE"), "html", null, true); echo "</span></a>\n <a href=\"#\" data-changelog=\""; // line 10 echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : null, "html", null, true); echo "\" class=\"button button-update\"><i class=\"fa fa-book\"></i> <span>"; echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_CHANGELOG"), "html", null, true); echo "</span></a>\n <a href=\"#\" class=\"fa fa-close\" data-g-close=\".g-grid\"></a>\n </div>\n </div>\n </div>\n</div>\n"; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 if (array_key_exists("entities", $context)) { // line 2 echo " <header>نتایج جستجو برای: "; echo twig_escape_filter($this->env, isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "html", null, true); echo "</header>\n "; // line 3 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities")); foreach ($context['_seq'] as $context["_key"] => $context["book"]) { // line 4 echo " <article id=\"book\">\n <figure>\n "; // line 6 $context["cover"] = twig_last($this->env, twig_split_filter($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "/")); echo " \n "; // line 8 echo " <img src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter(twig_join_filter(array(0 => "uploads/", 1 => isset($context["cover"]) ? $context["cover"] : $this->getContext($context, "cover"))), "my_thumb", true), "html", null, true); echo "\" />\n </figure>\n <figcaption> \n <div id=\"comments_num\" title=\""; // line 11 if ($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum")) { echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true); echo " دیدگاه"; } else { echo "بدون دیدگاه"; } echo "\"><h3>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true); echo "</h3></div>\n <a href=\""; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_show", array("id" => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "link"))), "html", null, true); echo "\"><h1>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "name"), "html", null, true); echo "</h1></a>\n <h3>"; // line 13 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "author"), "html", null, true); echo "</h3>\n <a href=\""; // line 14 echo twig_escape_filter($this->env, twig_join_filter(array(0 => "uploads/", 1 => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "file"))), "html", null, true); echo "\"><button type=\"button\" class=\"btn btn-info\">دریافت</button></a>\n </figcaption>\n </article> \n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['book'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 18 echo " <div id=\"clr\"></div>\n "; // line 19 echo $this->env->getExtension('knp_pagination')->render(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities")); echo "\n"; } else { // line 21 echo " "; $this->env->loadTemplate("ChakoshHomeBundle:Home:noresult_content.html.twig")->display($context); } // line 23 echo "\n"; }
public function block_content($context, array $blocks = array()) { // line 4 echo " <div class=\"row\">\n <div class=\"col-lg-12\">\n <h1 class=\"page-header\">Testimonial Edit Form</h1>\n </div>\n </div>\n <div class=\"row\">\n <center>\n <form action=\""; // line 11 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("acme_testiedit", array("id" => isset($context["id"]) ? $context["id"] : null)), "html", null, true); echo "\" method=\"post\" id=\"form\" enctype=\"multipart/form-data\" name=\"form\">\n "; // line 12 if (!$this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "vars"), "valid")) { // line 13 echo " <div class=\"alert alert-danger\"> \n "; // line 14 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "name"), 'errors'); echo "\n "; // line 15 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "post"), 'errors'); echo "\n "; // line 16 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "description"), 'errors'); echo "\n </div>\n "; } // line 19 echo " <div class=\"form-group col-lg-12\">\n "; // line 20 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "name"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Name: ")); echo "\n <div class=\"col-sm-10\">\n "; // line 22 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "name"), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Name"))); echo "\n </div>\n </div>\n <div class=\"form-group col-lg-12\">\n "; // line 26 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "post"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Post: ")); echo "\n <div class=\"col-sm-10\">\n "; // line 28 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "post"), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Post"))); echo "\n </div>\n </div>\n <div class=\"form-group col-lg-12\">\n "; // line 32 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "description"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Description: ")); echo "\n <div class=\"col-sm-10\">\n "; // line 34 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "description"), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Description"))); echo "\n </div>\n </div>\n <div class=\"form-group col-lg-12\">\n "; // line 38 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "image"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Image: ")); echo "\n <div class=\"col-sm-2\">\n "; // line 40 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "image"), 'widget', array("attr" => array("class" => "btn btn-default btn-file"))); echo "\n </div>\n </div> \n <div class=\"form-group col-lg-12\">\n "; // line 44 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "image"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Image: ")); echo "\n <div class=\"col-sm-1\">\n <img src=\""; // line 46 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/testimonials/", 1 => isset($context["id"]) ? $context["id"] : null, 2 => "/", 3 => isset($context["image"]) ? $context["image"] : null))), "html", null, true); echo "\" style=\"width:80px; height: 50px;\" />\n </div>\n </div> \n <div class=\"form-group col-lg-6\">\n <input type=\"submit\" formnovalidate value=\"Save\" name=\"insert\" class=\"btn btn-primary\" />\n <input type=\"reset\" name=\"Reset\" value=\"Reset\" class=\"btn btn-danger\" onclick=\"javascript:window.location.href = '"; // line 51 echo $this->env->getExtension('routing')->getPath("acme_info_testimonials"); echo "'\"/>\n </div> \n </form>\n </center>\t\t\t\n </div>\n "; }
public function block_body($context, array $blocks = array()) { // line 3 echo "<div class=\"body3\">\n\t\t<div class=\"main zerogrid\">\n<!-- content -->\n\t\t\t<article id=\"content\">\n <div class=\"wrapper\">\n "; // line 8 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["products"]) ? $context["products"] : $this->getContext($context, "products")); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["product"]) { // line 9 echo " <section class=\"col-1-3\">\n\t\t\t\t\t<div class=\"wrap-col\">\n\t\t\t\t\t\t<div class=\"wrapper pad_bot2\">\n\t\t\t\t\t\t\t<h3><span class=\"dropcap\">"; // line 12 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index"), "html", null, true); echo "</span>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["product"]) ? $context["product"] : $this->getContext($context, "product"), "name"), "html", null, true); echo "</h3>\n\t\t\t\t\t\t\t<figure><img src=\""; // line 13 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/products/", 1 => $this->getAttribute(isset($context["product"]) ? $context["product"] : $this->getContext($context, "product"), "id"), 2 => "/", 3 => $this->getAttribute(isset($context["product"]) ? $context["product"] : $this->getContext($context, "product"), "image")))), "html", null, true); echo "\" alt=\"\"></figure>\n\t\t\t\t\t\t\t<p class=\"pad_bot1\">"; // line 14 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["product"]) ? $context["product"] : $this->getContext($context, "product"), "description"), "html", null, true); echo "</p>\n\t\t\t\t\t\t\t<a href=\"#\" class=\"link1\">Read More</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t</section>\n "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 20 echo " </div>\n\t\t\t</article>\n\t\t</div>\n\t</div>\n\t<div class=\"body4\">\n\t\t<div class=\"main zerogrid\">\n\t\t\t<article id=\"content2\">\n\t\t\t\t<div class=\"wrapper row\">\n\t\t\t\t\t<section class=\"col-1-4\">\n\t\t\t\t\t<div class=\"wrap-col\">\n\t\t\t\t\t\t<h4>Why Us?</h4>\n\t\t\t\t\t\t<ul class=\"list1\">\n\t\t\t\t\t\t\t<li><a href=\"#\">Lorem ipsum dolor sit</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\">Dmet, consectetur</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\">Adipisicing elit eiusmod </a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\">Tempor incididunt ut</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t</section>\n\t\t\t\t\t<section class=\"col-1-4\">\n\t\t\t\t\t<div class=\"wrap-col\">\n\t\t\t\t\t\t<h4>Address</h4>\n\t\t\t\t\t\t<ul class=\"address\">\n\t\t\t\t\t\t\t<li><span>Country:</span>USA</li>\n\t\t\t\t\t\t\t<li><span>City:</span>San Diego</li>\n\t\t\t\t\t\t\t<li><span>Phone:</span>8 800 154-45-67</li>\n\t\t\t\t\t\t\t<li><span>Email:</span><a href=\"mailto:\">progress@mail.com</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t</section>\n\t\t\t\t\t<section class=\"col-1-4\">\n\t\t\t\t\t<div class=\"wrap-col\">\n\t\t\t\t\t\t<h4>Follow Us</h4>\n\t\t\t\t\t\t<ul id=\"icons\">\n\t\t\t\t\t\t\t<li><a href=\"#\"><img src=\""; // line 54 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/icon1.jpg"), "html", null, true); echo "\" alt=\"\">Facebook</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\"><img src=\""; // line 55 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/icon2.jpg"), "html", null, true); echo "\" alt=\"\">Twitter</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\"><img src=\""; // line 56 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/icon3.jpg"), "html", null, true); echo "\" alt=\"\">LinkedIn</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\"><img src=\""; // line 57 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/icon4.jpg"), "html", null, true); echo "\" alt=\"\">Delicious</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t</section>\n\t\t\t\t\t<section class=\"col-1-4\">\n\t\t\t\t\t<div class=\"wrap-col\">\n\t\t\t\t\t\t<h4>Newsletter</h4>\n\t\t\t\t\t\t<form id=\"newsletter\" method=\"post\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"wrapper\">\n\t\t\t\t\t\t\t\t\t<input class=\"input\" type=\"text\" value=\"Type Your Email Here\" onblur=\"if(this.value=='') this.value='Type Your Email Here'\" onfocus=\"if(this.value =='Type Your Email Here' ) this.value=''\" >\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<a href=\"#\" class=\"button\" onclick=\"document.getElementById('newsletter').submit()\">Subscribe</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t</section>\n\t\t\t\t</div>\n\t\t\t</article>\n<!-- content end -->\n\t\t</div>\n\t</div>\n\t\t<div class=\"main zerogrid\">\n<!-- footer -->\n\t\t\t<footer>\n\t\t\t\t<a href=\"http://www.zerotheme.com/432/free-responsive-html5-css3-website-templates.html\" target=\"_blank\">Html5 Templates</a> by <a href=\"http://www.templatemonster.com/\" target=\"_blank\">Templatesmonster.com</a><br>\n\t\t\t\t<a href=\"http://www.zerotheme.com/432/free-responsive-html5-css3-website-templates.html\" target=\"_blank\">Responsive Themes</a> by <a href=\"http://www.zerotheme.com/\" target=\"_blank\">Zerotheme.com</a><br>\n\t\t\t</footer>\n<!-- footer end -->\n\t\t</div>\n<script type=\"text/javascript\"> Cufon.now(); </script>\n<script>\n\t\$(document).ready(function() {\n\t\ttabs.init();\n\t})\n</script>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 ob_start(); // line 2 echo " "; if ($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "children", array())) { // line 3 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["segments"]) ? $context["segments"] : null); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["segment"]) { // line 4 echo " "; $this->loadTemplate("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", array()) . ".html.twig", "@nucleus/layout/grid.html.twig", 4)->display(array_merge($context, array("segments" => $this->getAttribute($context["segment"], "children", array())))); // line 5 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 6 echo " "; } $context["html"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 8 echo "\n\n"; // line 10 if (trim(isset($context["html"]) ? $context["html"] : null)) { // line 11 echo " <div class=\"g-grid"; echo $this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "class", array()) ? " " . twig_escape_filter($this->env, twig_join_filter($this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "class", array()), " ")) : ""; echo "\">\n "; // line 12 echo isset($context["html"]) ? $context["html"] : null; echo "\n </div>\n"; } // line 15 echo "\n\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<section id=\"main-slider\" class=\"no-margin\">\n <div class=\"carousel slide\">\n <ol class=\"carousel-indicators\">\n <li data-target=\"#main-slider\" data-slide-to=\"0\" class=\"active\"></li>\n <li data-target=\"#main-slider\" data-slide-to=\"1\"></li>\n <li data-target=\"#main-slider\" data-slide-to=\"2\"></li>\n </ol>\n <div class=\"carousel-inner\">\n "; // line 9 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, "images")); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["image"]) { // line 10 echo " "; if ($this->getAttribute($this->getContext($context, "loop"), "index") % 2 == 0) { // line 11 echo " <div class=\"item active\" style=\"background-image: url('"; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/slider_background_image/", 1 => $this->getAttribute($this->getContext($context, "image"), "backgroundimage")))), "html", null, true); echo "')\">\n "; } else { // line 13 echo " <div class=\"item\" style=\"background-image: url('"; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/slider_background_image/", 1 => $this->getAttribute($this->getContext($context, "image"), "backgroundimage")))), "html", null, true); echo "')\">\n "; } // line 14 echo " \n <div class=\"container\">\n <div class=\"row slide-margin\">\n <div class=\"col-sm-6\">\n <div class=\"carousel-content\">\n <h1 class=\"animation animated-item-1\">"; // line 19 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "image"), "title"), "html", null, true); echo "</h1>\n <h2 class=\"animation animated-item-2\">"; // line 20 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "image"), "description"), "html", null, true); echo "</h2>\n <a class=\"btn-slide animation animated-item-3\" href=\"#\">Read More</a>\n </div>\n </div>\n\n <div class=\"col-sm-6 hidden-xs animation animated-item-4\">\n <div class=\"slider-img\">\n <img src=\""; // line 27 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/", 1 => $this->getAttribute($this->getContext($context, "image"), "image")))), "html", null, true); echo "\" class=\"img-responsive\">\n </div>\n </div>\n\n </div>\n </div>\n </div>\n "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 34 echo " \n </div><!--/.carousel-inner-->\n </div><!--/.carousel-->\n <a class=\"prev hidden-xs\" href=\"#main-slider\" data-slide=\"prev\">\n <i class=\"fa fa-chevron-left\"></i>\n </a>\n <a class=\"next hidden-xs\" href=\"#main-slider\" data-slide=\"next\">\n <i class=\"fa fa-chevron-right\"></i>\n </a>\n</section><!--/#main-slider-->"; }
public function block_input($context, array $blocks = array()) { // line 10 echo " "; $context["field"] = twig_array_merge(isset($context["field"]) ? $context["field"] : null, array("style" => "background-color: " . (isset($context["value"]) ? $context["value"] : null), "pattern" => "^#([a-fA-F0-9]{6})|(rgba\\(\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*((0.[0-9]+)|[01])\\s*\\))\$")); // line 11 echo " <div class=\"colorpicker "; echo $this->getAttribute($this, "contrast", array(0 => $this->env->getExtension('GantryTwig')->colorContrastFunc(twig_lower_filter($this->env, isset($context["value"]) ? $context["value"] : null))), "method"); echo "\">\n <input\n "; // line 14 echo " type=\"text\"\n name=\""; // line 15 echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null))); echo "\"\n value=\""; // line 16 echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", "))); echo "\"\n "; // line 18 echo " "; $this->displayBlock("global_attributes", $context, $blocks); echo "\n "; // line 20 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), array(0 => "on", 1 => "off"))) { echo "autocomplete=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array())); echo "\""; } // line 21 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "autofocus=\"autofocus\""; } // line 22 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array(), "any", true, true)) { echo "pattern=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array())); echo "\""; } // line 23 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "disabled=\"disabled\""; } // line 24 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array(), "any", true, true)) { echo "list=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array())); echo "\""; } // line 25 echo " />\n <i class=\"fa fa-tint\"></i>\n </div>\n"; }
public function block_content($context, array $blocks = array()) { // line 4 echo " <div class=\"row\">\n <div class=\"col-lg-12\">\n <h1 class=\"page-header\">News List</h1>\n </div>\n <!-- /.col-lg-12 -->\n </div>\n <!-- /.row -->\n <div class=\"row\">\n <div class=\"col-lg-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-heading\">\n News List\n\t\t\t\t<div style=\"float:right; margin-top:-15px;\" class=\"panel-heading\"><a href=\"news/add\"><button type=\"button\" class=\"btn btn-primary btn-sm\">Add News</button></a></div>\n </div>\n <!-- /.panel-heading -->\n <div class=\"panel-body\">\n <div class=\"table-responsive\">\n <table class=\"table table-striped table-bordered table-hover\" id=\"dataTables-example\">\n <thead>\n <tr>\n <th>Serial No</th>\n <th>Title</th>\n\t\t\t\t\t <th>Image</th>\n <th>Description</th>\n <th>Operations</th>\n </tr>\n </thead>\n <tbody>\n\t\t\t\t\t"; // line 32 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, "news")); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["product"]) { // line 33 echo " <tr class=\"gradeA\">\n <td>"; // line 34 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "loop"), "index"), "html", null, true); echo "</td>\n <td>"; // line 35 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "product"), "title"), "html", null, true); echo "</td>\n <td><img src=\""; // line 36 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/news/", 1 => $this->getAttribute($this->getContext($context, "product"), "id"), 2 => "/", 3 => $this->getAttribute($this->getContext($context, "product"), "image")))), "html", null, true); echo "\" style=\"width:80px; height: 50px;\" /></td>\n <td width=\"250px;\">"; // line 37 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "product"), "description"), "html", null, true); echo "</td>\n <td>\n\t\t\t\t\t\t<a href=\""; // line 39 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("acme_news_edit", array("id" => $this->getAttribute($this->getContext($context, "product"), "id"))), "html", null, true); echo "\" class=\"btn btn-primary\">edit</a>\n \t\t\t\t\t<a href=\""; // line 40 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("acme_news_delete", array("id" => $this->getAttribute($this->getContext($context, "product"), "id"))), "html", null, true); echo "\" class=\"btn btn-danger\" onclick=\"return confirm('are sure delete?')\">delete</a></li>\n\t\t\t\t\t </td>\n </tr>\n\t\t\t\t\t"; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 44 echo " </tbody>\n\t\t\t\t <!-- div>"; // line 45 echo $this->getContext($context, "paginator"); echo "</div--> \n </table>\n </div>\n </div>\n </div>\n </div>\n"; }
/** * These are all deprecated and will be removed in 0.21.0 * * @param Twig_Environment $twig * @deprecated since 0.20.7 * @return Twig_Environment */ function add_timber_filters_deprecated($twig) { $twig->addFilter(new Twig_SimpleFilter('get_src_from_attachment_id', 'twig_get_src_from_attachment_id')); $twig->addFilter(new Twig_SimpleFilter('wp_body_class', array($this, 'body_class'))); $twig->addFilter(new Twig_SimpleFilter('twitterify', array('TimberHelper', 'twitterify'))); $twig->addFilter(new Twig_SimpleFilter('twitterfy', array('TimberHelper', 'twitterify'))); $twig->addFilter(new Twig_SimpleFilter('string', function ($arr, $glue = ' ') { return twig_join_filter($arr, $glue); })); return $twig; }
public function block_content($context, array $blocks = array()) { // line 4 echo " <div class=\"row\">\n <div class=\"col-lg-12\">\n <h1 class=\"page-header\">Followus Add Form</h1>\n </div>\n </div>\n <div class=\"row\">\n <center>\n <form action=\""; // line 11 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("acme_followedit", array("id" => $this->getAttribute(isset($context["follow"]) ? $context["follow"] : $this->getContext($context, "follow"), "id"))), "html", null, true); echo "\" method=\"post\" "; echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), 'enctype'); echo " class=\"form-group\">\n "; // line 12 if (!$this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "vars"), "valid")) { // line 13 echo " <div class=\"alert alert-danger\"> \n "; // line 14 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "title"), 'errors'); echo "\n "; // line 15 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "logo"), 'errors'); echo "\n "; // line 16 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "link"), 'errors'); echo "\n </div>\n "; } // line 19 echo " <div class=\"form-group col-lg-12\">\n "; // line 20 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "title"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Title: ")); echo "\n <div class=\"col-sm-10\">\n "; // line 22 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "title"), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Title"))); echo "\n </div>\n </div>\n <div class=\"form-group col-lg-12\">\n "; // line 26 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "logo"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Logo: ")); echo "\n <div class=\"col-sm-1\">\n <img src=\""; // line 28 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/follow/", 1 => $this->getAttribute(isset($context["follow"]) ? $context["follow"] : $this->getContext($context, "follow"), "id"), 2 => "/", 3 => $this->getAttribute(isset($context["follow"]) ? $context["follow"] : $this->getContext($context, "follow"), "logo")))), "html", null, true); echo "\"/>\n </div>\n </div> \n <div class=\"form-group col-lg-12\">\n "; // line 32 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "logo"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Logo: ")); echo "\n <div class=\"col-sm-2\">\n "; // line 34 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "logo"), 'widget', array("attr" => array("class" => "btn btn-default btn-file"))); echo "\n </div>\n </div>\n <div class=\"form-group col-lg-12\">\n "; // line 38 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "link"), 'label', array("label_attr" => array("class" => "control-label col-sm-2"), "label" => "Link: ")); echo "\n <div class=\"col-sm-10\">\n "; // line 40 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "link"), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Link"))); echo "\n </div>\n </div> \n <div class=\"form-group col-lg-6\">\n <input type=\"submit\" formnovalidate value=\"Edit\" name=\"edit\" class=\"btn btn-primary\"/>\n <input type=\"reset\" name=\"Reset\" value=\"Reset\" class=\"btn btn-danger\" onclick=\"javascript:window.location.href='"; // line 45 echo $this->env->getExtension('routing')->getPath("acme_footer_followus"); echo "'\"/>\n </div>\n </form>\n </center> \n </div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["value"] = null === (isset($context["value"]) ? $context["value"] : null) ? $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "default", array()) : (isset($context["value"]) ? $context["value"] : null); // line 2 echo "\n<input data-grav-field=\"hidden\" data-grav-disabled=\"false\" type=\"hidden\" class=\"input\" name=\""; // line 3 echo $this->env->getExtension('GravTwigExtension')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array())); echo "\" value=\""; echo twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", "); echo "\" />\n"; }
public function block_content($context, array $blocks = array()) { // line 3 if (array_key_exists("category", $context)) { echo "<header><span class=\"glyphicon glyphicon-briefcase\"></span> آرشیو دسته ی: "; echo twig_escape_filter($this->env, isset($context["category"]) ? $context["category"] : $this->getContext($context, "category"), "html", null, true); echo "</header>"; } // line 4 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities")); foreach ($context['_seq'] as $context["_key"] => $context["book"]) { // line 5 echo "<article id=\"book\">\n <figure>\n "; // line 7 $context["cover"] = twig_last($this->env, twig_split_filter($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "/")); // line 8 echo " "; // line 9 echo " <img src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter(twig_join_filter(array(0 => "uploads/", 1 => isset($context["cover"]) ? $context["cover"] : $this->getContext($context, "cover"))), "my_thumb", true), "html", null, true); echo "\" />\n </figure>\n <figcaption> \n <div id=\"comments_num\" title=\""; // line 12 if ($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum")) { echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true); echo " دیدگاه"; } else { echo "بدون دیدگاه"; } echo "\"><h3>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true); echo "</h3></div>\n <a href=\""; // line 13 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_show", array("id" => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "link"))), "html", null, true); echo "\"><h1>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "name"), "html", null, true); echo "</h1></a>\n <h3>"; // line 14 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "author"), "html", null, true); echo "</h3>\n <a href=\""; // line 15 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "file"), "html", null, true); echo "\"><button type=\"button\" class=\"btn btn-info\">دریافت</button></a>\n </figcaption>\n</article> \n"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['book'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 19 echo "<div id=\"clr\"></div>\n"; // line 20 echo $this->env->getExtension('knp_pagination')->render(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities")); echo "\n<script type=\"text/javascript\">\n\n</script>\n"; }
public function block_body($context, array $blocks = array()) { // line 6 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, "blogs")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["blog"]) { // line 7 echo " <article class=\"blog\">\n <div class=\"date\"><time datetime=\""; // line 8 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "created"), "c"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "created"), "l, F j, Y"), "html", null, true); echo "</time></div>\n <header>\n <h2><a href=\""; // line 10 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("BloggerBlogBundle_blog_show", array("id" => $this->getAttribute($this->getContext($context, "blog"), "id"), "slug" => $this->getAttribute($this->getContext($context, "blog"), "slug"))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "title"), "html", null, true); echo "</a></h2>\n </header>\n\n <img src=\""; // line 13 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "images/", 1 => $this->getAttribute($this->getContext($context, "blog"), "image")))), "html", null, true); echo "\" />\n <div class=\"snippet\">\n <p>"; // line 15 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "blog", array(0 => 500), "method"), "html", null, true); echo "</p>\n <p class=\"continue\"><a href=\""; // line 16 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("BloggerBlogBundle_blog_show", array("id" => $this->getAttribute($this->getContext($context, "blog"), "id"), "slug" => $this->getAttribute($this->getContext($context, "blog"), "slug"))), "html", null, true); echo "\">Continue reading...</a></p>\n </div>\n\n <footer class=\"meta\">\n <p>Comments: <a href=\""; // line 20 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("BloggerBlogBundle_blog_show", array("id" => $this->getAttribute($this->getContext($context, "blog"), "id"), "slug" => $this->getAttribute($this->getContext($context, "blog"), "slug"))), "html", null, true); echo "#comments\">"; echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "comments")), "html", null, true); echo "</a></p>\n <p>Posted by <span class=\"highlight\">"; // line 21 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "author"), "html", null, true); echo "</span> at "; echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "created"), "h:iA"), "html", null, true); echo "</p>\n <p>Tags: <span class=\"highlight\">"; // line 22 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "blog"), "tags"), "html", null, true); echo "</span></p>\n </footer>\n </article>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 26 echo " <p>There are no blog entries for symblog</p>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 try { // line 2 echo "\n "; // line 3 $context["enabled"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "config", array()), "get", array(0 => "particles." . $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "type", array()) . ".enabled", 1 => 1), "method"); // line 4 echo " "; $context["particle"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "config", array()), "getJoined", array(0 => "particles." . $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "type", array()), 1 => $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array())), "method"); // line 5 echo "\n "; // line 6 ob_start(); // line 7 echo " "; if ((isset($context["enabled"]) ? $context["enabled"] : null) && (null === $this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "enabled", array()) || $this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "enabled", array()))) { // line 8 echo " "; $this->loadTemplate(array(0 => "particles/" . ($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "subtype", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "subtype", array()), "position") : "position") . ".html.twig", 1 => "@particles/" . ($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "subtype", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "subtype", array()), "position") : "position") . ".html.twig"), "@nucleus/content/position.html.twig", 8)->display(array("gantry" => isset($context["gantry"]) ? $context["gantry"] : null, "site" => isset($context["site"]) ? $context["site"] : null, "page" => $this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "page", array()), "particle" => isset($context["particle"]) ? $context["particle"] : null)); // line 10 echo " "; } // line 11 echo " "; $context["html"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 12 echo "\n "; // line 13 if (trim(isset($context["html"]) ? $context["html"] : null)) { // line 14 echo " <div class=\"g-content"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "classes", array()) ? " " . twig_escape_filter($this->env, twig_join_filter($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "classes", array()), " ")) : "", "html", null, true); echo "\">\n "; // line 15 echo isset($context["html"]) ? $context["html"] : null; echo "\n </div>\n "; } // line 18 echo "\n"; } catch (\Exception $e) { if ($context['gantry']->debug()) { throw $e; } $context['e'] = $e; // line 20 echo " <div class=\"alert alert-error\"><strong>Error</strong> while rendering "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "subtype", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "subtype", array()), "position") : "position", "html", null, true); echo ".</div>\n"; } }
public function block_content($context, array $blocks = array()) { // line 50 echo " <header>\n <h3>"; // line 51 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "name"), "html", null, true); echo "</h3>\n <h3> | </h3>\n <h3>"; // line 53 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "author"), "html", null, true); echo "</h3>\n <div id=\"category\">\n "; // line 55 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["cat"]) { // line 56 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("category_show", array("category" => $this->getAttribute(isset($context["cat"]) ? $context["cat"] : $this->getContext($context, "cat"), "name"))), "html", null, true); echo "\">\n <span class=\"label label-success\">"; // line 57 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["cat"]) ? $context["cat"] : $this->getContext($context, "cat"), "name"), "html", null, true); echo "</span>\n </a>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 60 echo " <span class=\"label label-success\">دسته بندی نشده</span>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 62 echo " </div>\n </header>\n <a class=\"image-popup-no-margins\" href=\""; // line 64 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "html", null, true); echo "\">\n <div id=\"cover_image\">\n <figure id=\"single\">\n "; // line 67 $context["cover"] = twig_last($this->env, twig_split_filter($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "/")); // line 68 echo " <img src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter(twig_join_filter(array(0 => "uploads/", 1 => isset($context["cover"]) ? $context["cover"] : $this->getContext($context, "cover"))), "my_thumb"), "html", null, true); echo "\" />\n <div id=\"download\">\n <a href=\""; // line 70 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "file"), "html", null, true); echo "\"><button type=\"submit\" class=\"btn btn-info\" />دریافت</button></a>\n </div>\n </figure>\n </div> \n </a>\n \n <footer id=\"single-footer\"> \n <p>"; // line 77 echo $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "content"); echo "</p>\n </footer>\n <div id=\"clr\"></div>\n "; // line 80 $this->env->loadTemplate("ChakoshHomeBundle:Base:comments.html.twig")->display(array_merge($context, isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"))); }
public function block_page_subtitle($context, array $blocks = array()) { // line 13 echo " "; echo $this->env->getExtension('Bolt')->trans(array(0 => "contenttypes", 1 => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array()), "slug", array()), 2 => "name", 3 => "plural"), array("DEFAULT" => $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array()), "name", array()))); echo "\n "; // line 14 if ($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "filter", array())) { // line 15 echo " <small>("; echo $this->env->getExtension('Bolt')->trans("filtered by <em>'%filter%'</em>", array("%filter%" => twig_join_filter($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "filter", array()), ", "))); echo ")</small>\n "; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["subtype"] = $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "subtype", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "subtype", array()), $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "type", array())) : $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "type", array()); // line 2 $context["enabled"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "config", array()), "get", array(0 => "particles." . (isset($context["subtype"]) ? $context["subtype"] : null) . ".enabled", 1 => 1), "method"); // line 3 echo "\n"; // line 4 ob_start(); // line 5 echo " "; if ((isset($context["enabled"]) ? $context["enabled"] : null) && (null === $this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "enabled", array()) || $this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "enabled", array()))) { // line 6 echo " "; if ((isset($context["subtype"]) ? $context["subtype"] : null) == "pagecontent") { // line 7 echo " "; $context["class"] = "g-content"; // line 8 echo " "; echo isset($context["content"]) ? $context["content"] : null; echo "\n "; } elseif ((isset($context["subtype"]) ? $context["subtype"] : null) == "system-messages") { // line 10 echo " "; $context["class"] = "g-system-messages"; // line 11 echo " "; echo $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "platform", array()), "displaySystemMessages", array(), "method"); echo "\n "; } // line 13 echo " "; } $context["html"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 15 echo "\n"; // line 16 if (trim(isset($context["html"]) ? $context["html"] : null)) { // line 17 echo " <div class=\""; echo twig_escape_filter($this->env, (isset($context["class"]) ? $context["class"] : null) . ($this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "class", array()) ? " " . twig_join_filter($this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "class", array()), " ") : ""), "html", null, true); echo "\">\n "; // line 18 echo isset($context["html"]) ? $context["html"] : null; echo "\n </div>\n"; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 if ((isset($context["view"]) ? $context["view"] : null) == "show") { // line 2 echo " "; echo nl2br(twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : null, "html", null, true)); echo "\n"; } else { // line 4 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('easyadmin_extension')->truncateText($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", ")), "html", null, true); echo "\n"; } }
public function block_head_application($context, array $blocks = array()) { // line 4 echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n <title>"; // line 5 echo twig_escape_filter($this->env, array_key_exists("errorcode", $context) ? _twig_default_filter(isset($context["errorcode"]) ? $context["errorcode"] : null, 500) : 500, "html", null, true); echo " "; echo twig_escape_filter($this->env, array_key_exists("error", $context) ? _twig_default_filter(isset($context["error"]) ? $context["error"] : null, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR")) : $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_ENGINE_UNKNOWN_ERROR"), "html", null, true); echo "</title>\n "; // line 6 echo twig_join_filter($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "styles", array(0 => "head", 1 => true), "method"), "\n "); echo "\n "; // line 7 echo twig_join_filter($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "scripts", array(0 => "head", 1 => true), "method"), "\n "); }
public function block_javascripts($context, array $blocks = array()) { // line 11 echo " "; $this->displayParentBlock("javascripts", $context, $blocks); echo "\n <script type=\"text/javascript\" src=\""; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/fosjsrouting/js/router.js"), "html", null, true); echo "\"></script>\n <script type=\"text/javascript\" src=\""; // line 13 echo $this->env->getExtension('routing')->getPath("fos_js_routing_js", array("callback" => "fos.Router.setData")); echo "\"></script>\n\n "; // line 15 $this->loadTemplate(twig_join_filter(array(0 => "IndicadoresBundle::messages_js.html.twig")), "IndicadoresBundle::standard_layout.html.twig", 15)->display($context); }
public function block_input($context, array $blocks = array()) { // line 4 echo " <input\n "; // line 6 echo " type=\"checkbox\"\n name=\""; // line 7 echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null))); echo "\"\n value=\""; // line 8 echo twig_escape_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", ")); echo "\"\n "; // line 10 echo " "; $this->displayBlock("global_attributes", $context, $blocks); echo "\n "; // line 12 echo " "; if ((isset($context["value"]) ? $context["value"] : null) == true) { echo "checked=\"checked\" "; } // line 13 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), array(0 => "on", 1 => "off"))) { echo "autocomplete=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array())); echo "\""; } // line 14 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "autofocus=\"autofocus\""; } // line 15 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "disabled=\"disabled\""; } // line 16 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "required", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "required=\"required\""; } // line 17 echo " />\n\n "; // line 19 $this->displayBlock('reset_field', $context, $blocks); }
public function block_field($context, array $blocks = array()) { // line 10 echo " <div class=\"form-field\">\n <div class=\"form-data form-markdown-wrapper cm-s-paper\">\n <textarea data-grav-mdeditor=\""; // line 12 echo twig_escape_filter($this->env, twig_jsonencode_filter(array("markdown" => true)), "html_attr"); echo "\" name=\""; echo $this->env->getExtension('GravTwigExtension')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array())); echo "\" data-grav-urlpreview=\""; echo isset($context["base_url"]) ? $context["base_url"] : null; echo "/media/"; echo trim($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "route", array()), "/"); echo ".json\">"; echo twig_escape_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, "\n"), "html"); echo "</textarea>\n </div>\n </div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["enabled"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "config", array()), "get", array(0 => "particles." . $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "type", array()) . ".enabled", 1 => 1), "method"); // line 2 $context["spacer"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "config", array()), "getJoined", array(0 => "particles." . $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "type", array()), 1 => $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array())), "method"); // line 3 echo "\n"; // line 4 if ((isset($context["enabled"]) ? $context["enabled"] : null) && (null === $this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "enabled", array()) || $this->getAttribute($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "attributes", array()), "enabled", array()))) { // line 5 echo " <div class=\"spacer"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "classes", array()) ? " " . twig_escape_filter($this->env, twig_join_filter($this->getAttribute(isset($context["segment"]) ? $context["segment"] : null, "classes", array()), " ")) : "", "html", null, true); echo "\"></div>\n"; } }