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


PHP twig_join_filter函数代码示例

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


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

示例1: doDisplay

 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";
     }
 }
开发者ID:clee03,项目名称:metal,代码行数:30,代码来源:3fc607342831a206e20cf5e206499d75aeb8c385201660b98c7dc021c1ee788d.php

示例2: doDisplay

 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";
 }
开发者ID:guich25,项目名称:AppConge,代码行数:32,代码来源:bfc78ff65a6a06aea7e522d08dd91b257cb3cd4b097581ace65ab8cf2947.php

示例3: block_section

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

示例4: block_body

 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";
 }
开发者ID:richpolis,项目名称:sf2Pruebas,代码行数:29,代码来源:d43b6ca29980a5d92fa485565fa6.php

示例5: block_input

 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";
 }
开发者ID:ericssonm,项目名称:JusCuzCustoms,代码行数:35,代码来源:04027b82562cce43c2fb49bc3451ec1f858bf4c6902014bd46beb4f9d57d3f85.php

示例6: block_content

 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";
 }
开发者ID:miteshchavada,项目名称:svipl,代码行数:33,代码来源:a2f0a4f6f8c211726538cf35d1457ede93bcb03e5d20b03429cc33b8ad7b.php

示例7: doDisplay

 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";
     }
 }
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:27,代码来源:37c51874d74e733273e9cd2957c5102c7b4c7993312cdaacc5e1e1f1f6b649e2.php

示例8: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["updates"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "platform", array()), "updates", array());
     // line 2
     if (isset($context["updates"]) ? $context["updates"] : null) {
         // line 3
         $context["version"] = twig_last($this->env, twig_split_filter($this->env, $this->getAttribute(isset($context["updates"]) ? $context["updates"] : null, 0, array()), " "));
         // line 4
         echo "<div class=\"g-grid\">\n    <div class=\"g-block\">\n        <div class=\"update-header clearfix\">\n            <span class=\"update-text\">";
         // line 7
         echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_UPDATES_AVAILABLE"), "html", null, true);
         echo ": ";
         echo twig_escape_filter($this->env, twig_join_filter(isset($context["updates"]) ? $context["updates"] : null, ", "), "html", null, true);
         echo "</span>\n            <div class=\"update-tools\">\n                <a href=\"";
         // line 9
         echo $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "platform", array()), "update", array());
         echo "\" class=\"button button-update\"><i class=\"fa fa-refresh\"></i> <span>";
         echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_UPDATE"), "html", null, true);
         echo "</span></a>\n                <a href=\"#\" data-changelog=\"";
         // line 10
         echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : null, "html", null, true);
         echo "\" class=\"button button-update\"><i class=\"fa fa-book\"></i> <span>";
         echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_CHANGELOG"), "html", null, true);
         echo "</span></a>\n                <a href=\"#\" class=\"fa fa-close\" data-g-close=\".g-grid\"></a>\n            </div>\n        </div>\n    </div>\n</div>\n";
     }
 }
开发者ID:JozefAB,项目名称:neoacu,代码行数:27,代码来源:5898ef490d6dd8931038dda7d87af6a7a0c7f4220d4205490120da11f9e53839.php

示例9: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if (array_key_exists("entities", $context)) {
         // line 2
         echo "    <header>نتایج جستجو برای: ";
         echo twig_escape_filter($this->env, isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "html", null, true);
         echo "</header>\n    ";
         // line 3
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
         foreach ($context['_seq'] as $context["_key"] => $context["book"]) {
             // line 4
             echo "    <article id=\"book\">\n            <figure>\n                ";
             // line 6
             $context["cover"] = twig_last($this->env, twig_split_filter($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "cover"), "/"));
             echo "            \n                ";
             // line 8
             echo "                <img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter(twig_join_filter(array(0 => "uploads/", 1 => isset($context["cover"]) ? $context["cover"] : $this->getContext($context, "cover"))), "my_thumb", true), "html", null, true);
             echo "\" />\n            </figure>\n            <figcaption>            \n                <div id=\"comments_num\" title=\"";
             // line 11
             if ($this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum")) {
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true);
                 echo " دیدگاه";
             } else {
                 echo "بدون دیدگاه";
             }
             echo "\"><h3>";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "commentNum"), "html", null, true);
             echo "</h3></div>\n                <a href=\"";
             // line 12
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_show", array("id" => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "link"))), "html", null, true);
             echo "\"><h1>";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "name"), "html", null, true);
             echo "</h1></a>\n                <h3>";
             // line 13
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "author"), "html", null, true);
             echo "</h3>\n                <a href=\"";
             // line 14
             echo twig_escape_filter($this->env, twig_join_filter(array(0 => "uploads/", 1 => $this->getAttribute(isset($context["book"]) ? $context["book"] : $this->getContext($context, "book"), "file"))), "html", null, true);
             echo "\"><button type=\"button\" class=\"btn btn-info\">دریافت</button></a>\n            </figcaption>\n    </article>    \n    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['book'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 18
         echo "    <div id=\"clr\"></div>\n    ";
         // line 19
         echo $this->env->getExtension('knp_pagination')->render(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
         echo "\n";
     } else {
         // line 21
         echo "    ";
         $this->env->loadTemplate("ChakoshHomeBundle:Home:noresult_content.html.twig")->display($context);
     }
     // line 23
     echo "\n";
 }
开发者ID:amirmasoud,项目名称:symfony-bookstore,代码行数:59,代码来源:d75ce510930a64e6bfa65329e17967186db85b69dc713f9b24aa4cfa7fc1.php

示例10: block_content

 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    ";
 }
开发者ID:miteshchavada,项目名称:svipl,代码行数:57,代码来源:f76f4a6806e48f3a89f52f1b12f08094209da2c94cc4404c20694623ee78.php

示例11: block_body

 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";
 }
开发者ID:miteshchavada,项目名称:svipl,代码行数:56,代码来源:8adc7398414a6bca651369c2454ddae7b9e4ba944874a28b51ea93471f80.php

示例12: doDisplay

 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";
 }
开发者ID:ericssonm,项目名称:JusCuzCustoms,代码行数:56,代码来源:bb473f2a99300f1f5e84e6e61442989528b97d53b5ba1263829228d79c5a2ec3.php

示例13: doDisplay

 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-->";
 }
开发者ID:miteshchavada,项目名称:svipl,代码行数:55,代码来源:1479fd21b01649c2cabcf34a3ab4d798b2981b8c9cbcab095d22048de7ae.php

示例14: block_input

 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";
 }
开发者ID:vnatuan1989,项目名称:myloyal,代码行数:55,代码来源:1cce5874feac9439c3806957b12cfb544b4bf5966eb43d246d84b6ad56aeabd7.php

示例15: block_content

 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";
 }
开发者ID:miteshchavada,项目名称:svipl,代码行数:54,代码来源:91dd2aad65b35e24196d8648c2299bcc9a8d403cfc7ab5b955b1edf4accf.php


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