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

PHP twig_join_filter函数代码示例

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

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



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

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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