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


PHP twig_constant函数代码示例

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


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

示例1: block_navbar

 public function block_navbar($context, array $blocks = array())
 {
     // line 4
     echo "\t<li><a href=\"#\">Login</a></li>\n\t<li><a href=\"";
     // line 5
     echo $this->env->getExtension('routing')->getPath(twig_constant("Main\\StockManagerBundle\\Common\\StockManagerRouting::ABOUT_KEY"));
     echo "\">About</a></li>\n";
 }
开发者ID:alduleacristi,项目名称:stock-manager,代码行数:8,代码来源:876ca0f25b102f324daa82d2ff29d5f798359a2794e6ae2269689e79bf3f.php

示例2: block_content

 public function block_content($context, array $blocks = array())
 {
     $__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049 = $this->env->getExtension("native_profiler");
     $__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049->enter($__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "content"));
     // line 8
     echo "    ";
     $context["version"] = twig_constant("Symfony\\Component\\HttpKernel\\Kernel::MAJOR_VERSION") . "." . twig_constant("Symfony\\Component\\HttpKernel\\Kernel::MINOR_VERSION");
     // line 9
     echo "\n    <h1 class=\"title\">Welcome!</h1>\n\n    <p>Congratulations! You have successfully installed a new Symfony application.</p>\n\n    <div class=\"symfony-blocks-welcome\">\n        <div class=\"block-quick-tour\">\n            <div class=\"illustration\">\n                <img src=\"";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/acmedemo/images/welcome-quick-tour.gif"), "html", null, true);
     echo "\" alt=\"Quick tour\" />\n            </div>\n            <a href=\"http://symfony.com/doc/";
     // line 19
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/quick_tour/index.html\" class=\"sf-button sf-button-selected\">\n                <span class=\"border-l\">\n                    <span class=\"border-r\">\n                        <span class=\"btn-bg\">Read the Quick Tour</span>\n                    </span>\n                </span>\n            </a>\n        </div>\n        ";
     // line 27
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "environment", array()) == "dev") {
         // line 28
         echo "            <div class=\"block-configure\">\n                <div class=\"illustration\">\n                    <img src=\"";
         // line 30
         echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/acmedemo/images/welcome-configure.gif"), "html", null, true);
         echo "\" alt=\"Configure your application\" />\n                </div>\n                <a href=\"";
         // line 32
         echo $this->env->getExtension('routing')->getPath("_configurator_home");
         echo "\" class=\"sf-button sf-button-selected\">\n                    <span class=\"border-l\">\n                        <span class=\"border-r\">\n                            <span class=\"btn-bg\">Configure</span>\n                        </span>\n                    </span>\n                </a>\n            </div>\n        ";
     }
     // line 41
     echo "        <div class=\"block-demo\">\n            <div class=\"illustration\">\n                <img src=\"";
     // line 43
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/acmedemo/images/welcome-demo.gif"), "html", null, true);
     echo "\" alt=\"Demo\" />\n            </div>\n            <a href=\"";
     // line 45
     echo $this->env->getExtension('routing')->getPath("_demo");
     echo "\" class=\"sf-button sf-button-selected\">\n                <span class=\"border-l\">\n                    <span class=\"border-r\">\n                        <span class=\"btn-bg\">Run The Demo</span>\n                    </span>\n                </span>\n            </a>\n        </div>\n    </div>\n\n    <div class=\"symfony-blocks-help\">\n        <div class=\"block-documentation\">\n            <ul>\n                <li><strong>Documentation</strong></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 59
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/book/index.html\">The Book</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 60
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/cookbook/index.html\">The Cookbook</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 61
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/components/index.html\">The Components</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 62
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/reference/index.html\">Reference</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 63
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/glossary.html\">Glossary</a></li>\n            </ul>\n        </div>\n        <div class=\"block-documentation-more\">\n            <ul>\n                <li><strong>Sensio</strong></li>\n                <li><a href=\"http://trainings.sensiolabs.com\">Trainings</a></li>\n                <li><a href=\"http://books.sensiolabs.com\">Books</a></li>\n            </ul>\n        </div>\n        <div class=\"block-community\">\n            <ul>\n                <li><strong>Community</strong></li>\n                <li><a href=\"http://symfony.com/irc\">IRC channel</a></li>\n                <li><a href=\"http://symfony.com/mailing-lists\">Mailing lists</a></li>\n                <li><a href=\"http://forum.symfony-project.org\">Forum</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 79
     echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : $this->getContext($context, "version"), "html", null, true);
     echo "/contributing/index.html\">Contributing</a></li>\n            </ul>\n        </div>\n    </div>\n";
     $__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049->leave($__internal_56d002f5a5159df17fbd1c9696174c2c968333fb28b742aeee21d1bac9968049_prof);
 }
开发者ID:pavsuri,项目名称:PARMT,代码行数:54,代码来源:00c8a6094b77a43b2c1cac2c2636cf16cee210330ff3b37cd60b37c316a523c3.php

示例3: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 4
     echo "    <div id=\"wrapper\">\n        <div id=\"container\">\n            <div id=\"welcome\">\n                <h1><span>Welcome to</span> Symfony ";
     // line 7
     echo twig_escape_filter($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), "html", null, true);
     echo "</h1>\n            </div>\n\n            <div id=\"status\">\n                <p>\n                    <svg id=\"icon-status\" width=\"1792\" height=\"1792\" viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z\" fill=\"#759E1A\"/></svg>\n\n                </p>\n            </div>\n\n            <div id=\"next\">\n                <h2>What's next?</h2>\n                <p>\n                    <svg id=\"icon-book\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-12.5 9 64 64\" enable-background=\"new -12.5 9 64 64\" xml:space=\"preserve\">\n                        <path fill=\"#AAA\" d=\"M6.8,40.8c2.4,0.8,4.5-0.7,4.9-2.5c0.2-1.2-0.3-2.1-1.3-3.2l-0.8-0.8c-0.4-0.5-0.6-1.3-0.2-1.9\n                            c0.4-0.5,0.9-0.8,1.8-0.5c1.3,0.4,1.9,1.3,2.9,2.2c-0.4,1.4-0.7,2.9-0.9,4.2l-0.2,1c-0.7,4-1.3,6.2-2.7,7.5\n                            c-0.3,0.3-0.7,0.5-1.3,0.6c-0.3,0-0.4-0.3-0.4-0.3c0-0.3,0.2-0.3,0.3-0.4c0.2-0.1,0.5-0.3,0.4-0.8c0-0.7-0.6-1.3-1.3-1.3\n                            c-0.6,0-1.4,0.6-1.4,1.7s1,1.9,2.4,1.8c0.8,0,2.5-0.3,4.2-2.5c2-2.5,2.5-5.4,2.9-7.4l0.5-2.8c0.3,0,0.5,0.1,0.8,0.1\n                            c2.4,0.1,3.7-1.3,3.7-2.3c0-0.6-0.3-1.2-0.9-1.2c-0.4,0-0.8,0.3-1,0.8c-0.1,0.6,0.8,1.1,0.1,1.5c-0.5,0.3-1.4,0.6-2.7,0.4l0.3-1.3\n                            c0.5-2.6,1-5.7,3.2-5.8c0.2,0,0.8,0,0.8,0.4c0,0.2,0,0.2-0.2,0.5c-0.2,0.3-0.3,0.4-0.2,0.7c0,0.7,0.5,1.1,1.2,1.1\n                            c0.9,0,1.2-1,1.2-1.4c0-1.2-1.2-1.8-2.6-1.8c-1.5,0.1-2.8,0.9-3.7,2.1c-1.1,1.3-1.8,2.9-2.3,4.5c-0.9-0.8-1.6-1.8-3.1-2.3\n                            c-1.1-0.7-2.3-0.5-3.4,0.3c-0.5,0.4-0.8,1-1,1.6c-0.4,1.5,0.4,2.9,0.8,3.4l0.9,1c0.2,0.2,0.6,0.8,0.4,1.5c-0.3,0.8-1.2,1.3-2.1,1\n                            c-0.4-0.2-1-0.5-0.9-0.9c0.1-0.2,0.2-0.3,0.3-0.5s0.1-0.3,0.1-0.3c0.2-0.6-0.1-1.4-0.7-1.6c-0.6-0.2-1.2,0-1.3,0.8\n                            C4.3,38.4,4.7,40,6.8,40.8z M46.1,20.9c0-4.2-3.2-7.5-7.1-7.5h-3.8C34.8,10.8,32.7,9,30.2,9L-2.3,9.1c-2.8,0.1-4.9,2.4-4.9,5.4\n                            L-7,58.6c0,4.8,8.1,13.9,11.6,14.1l34.7-0.1c3.9,0,7-3.4,7-7.6L46.1,20.9z M-0.3,36.4c0-8.6,6.5-15.6,14.5-15.6\n                            c8,0,14.5,7,14.5,15.6S22.1,52,14.2,52C6.1,52-0.3,45-0.3,36.4z M42.1,65.1c0,1.8-1.5,3.1-3.1,3.1H4.6c-0.7,0-3-1.8-4.5-4.4h30.4\n                            c2.8,0,5-2.4,5-5.4V17.9h3.7c1.6,0,2.9,1.4,2.9,3.1V65.1L42.1,65.1z\"/>\n                    </svg>\n\n                    Read Symfony documentation to learn\n                    <a href=\"http://symfony.com/doc/";
     // line 37
     echo twig_escape_filter($this->env, twig_slice($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), 0, 3), "html", null, true);
     echo "/book/page_creation.html\">\n                        How to create your first page in Symfony\n                    </a>\n                </p>\n            </div>\n\n        </div>\n    </div>\n";
 }
开发者ID:ewrwq,项目名称:xh,代码行数:11,代码来源:cc269d30d83532f2fe9b09f07d178a569bd4b6a65156c2953d2886b032e58668.php

示例4: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "    <base href=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "url"), "html", null, true);
     echo "\"/>\n    <meta property=\"bb:url\" content=\"";
     // line 2
     echo twig_escape_filter($this->env, twig_constant("BB_URL"), "html", null, true);
     echo "\"/>\n    <meta property=\"bb:client_area\" content=\"";
     // line 3
     echo $this->env->getExtension('bb')->twig_bb_client_link_filter("/");
     echo "\"/>\n    ";
 }
开发者ID:jefri55,项目名称:SkillMoneybookersForBoxbilling,代码行数:13,代码来源:df734d2ecaba25038955fb0ccbd8daf65cf81962b422c9f81b366f6967d6.php

示例5: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "    ";
     $context["version"] = twig_constant("Symfony\\Component\\HttpKernel\\Kernel::MAJOR_VERSION") . "." . twig_constant("Symfony\\Component\\HttpKernel\\Kernel::MINOR_VERSION");
     // line 9
     echo "\n    <h1>Welcome!</h1>\n\n    <p>Congratulations! You have successfully installed a new Symfony application.</p>\n\n    <div class=\"symfony-blocks-welcome\">\n        <div class=\"block-quick-tour\">\n            <div class=\"illustration\">\n                <img src=\"";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/acmedemo/images/welcome-quick-tour.gif"), "html", null, true);
     echo "\" alt=\"Quick tour\" />\n            </div>\n            <a class=\"symfony-button-green\" href=\"http://symfony.com/doc/";
     // line 19
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/quick_tour/index.html\">Read the Quick Tour</a>\n        </div>\n        ";
     // line 21
     if ($this->getAttribute($this->getContext($context, "app"), "environment") == "dev") {
         // line 22
         echo "            <div class=\"block-configure\">\n                <div class=\"illustration\">\n                    <img src=\"";
         // line 24
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/acmedemo/images/welcome-configure.gif"), "html", null, true);
         echo "\" alt=\"Configure your application\" />\n                </div>\n                <a class=\"symfony-button-green\" href=\"";
         // line 26
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_configurator_home"), "html", null, true);
         echo "\">Configure</a>\n            </div>\n        ";
     }
     // line 29
     echo "        <div class=\"block-demo\">\n            <div class=\"illustration\">\n                <img src=\"";
     // line 31
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/acmedemo/images/welcome-demo.gif"), "html", null, true);
     echo "\" alt=\"Demo\" />\n            </div>\n            <a class=\"symfony-button-green\" href=\"";
     // line 33
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_demo"), "html", null, true);
     echo "\">Run The Demo</a>\n        </div>\n    </div>\n\n    <div class=\"symfony-blocks-help\">\n        <div class=\"block-documentation\">\n            <ul>\n                <li><strong>Documentation</strong></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 41
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/book/index.html\">The Book</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 42
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/cookbook/index.html\">The Cookbook</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 43
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/components/index.html\">The Components</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 44
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/reference/index.html\">Reference</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 45
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/glossary.html\">Glossary</a></li>\n            </ul>\n        </div>\n        <div class=\"block-documentation-more\">\n            <ul>\n                <li><strong>Sensio</strong></li>\n                <li><a href=\"http://trainings.sensiolabs.com\">Trainings</a></li>\n                <li><a href=\"http://books.sensiolabs.com\">Books</a></li>\n            </ul>\n        </div>\n        <div class=\"block-community\">\n            <ul>\n                <li><strong>Community</strong></li>\n                <li><a href=\"http://symfony.com/irc\">IRC channel</a></li>\n                <li><a href=\"http://symfony.com/mailing-lists\">Mailing lists</a></li>\n                <li><a href=\"http://forum.symfony-project.org\">Forum</a></li>\n                <li><a href=\"http://symfony.com/doc/";
     // line 61
     echo twig_escape_filter($this->env, $this->getContext($context, "version"), "html", null, true);
     echo "/contributing/index.html\">Contributing</a></li>\n            </ul>\n        </div>\n    </div>\n";
 }
开发者ID:joan16v,项目名称:symfony2_test,代码行数:51,代码来源:0acc363ce2dcd2aa6c3b78fe25b6.php

示例6: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<header>\n    <section>\n        <h1>POWERLINE</h1>\n    </section>\n    <section>\n        ";
     // line 6
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array())) {
         // line 7
         echo "            <div class=\"right-block\">\n                <p>";
         // line 8
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "officialName", array()), "html", null, true);
         echo "</p>\n                <p>\n                    ";
         // line 10
         if (isset($context["logoutPath"]) ? $context["logoutPath"] : $this->getContext($context, "logoutPath")) {
             // line 11
             echo "                        <a href=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["logoutPath"]) ? $context["logoutPath"] : $this->getContext($context, "logoutPath"), 1, array(), "array"), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["logoutPath"]) ? $context["logoutPath"] : $this->getContext($context, "logoutPath"), 0, array(), "array"), "html", null, true);
             echo "</a>\n                    ";
         } else {
             // line 13
             echo "                        <a href=\"";
             echo $this->env->getExtension('routing')->getPath("civix_" . $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "type", array()) . "_logout");
             echo "\">Sign Out</a>\n                    ";
         }
         // line 15
         echo "                </p>\n            </div>\n            <div class=\"right-block avatar\">\n                <figure>\n                    <a href=\"";
         // line 19
         echo $this->env->getExtension('routing')->getPath($this->getAttribute($this->getAttribute(isset($context["paths"]) ? $context["paths"] : $this->getContext($context, "paths"), "profile", array()), $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "type", array()), array(), "array"));
         echo "\">\n                        ";
         // line 20
         if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "avatar", array())) {
             // line 21
             echo "                            <img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('vich_uploader')->asset($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "avatar"), "html", null, true);
             echo "\">\n                        ";
         } else {
             // line 23
             echo "                            <img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_constant("DEFAULT_AVATAR", $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()))), "html", null, true);
             echo "\">\n                        ";
         }
         // line 25
         echo "                    </a>\n                </figure>\n            </div>\n            <div class=\"right-block\">\n                <a href=\"";
         // line 29
         echo $this->env->getExtension('routing')->getPath($this->getAttribute($this->getAttribute(isset($context["paths"]) ? $context["paths"] : $this->getContext($context, "paths"), "settings", array()), $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "type", array()), array(), "array"));
         echo "\">\n                    <i class=\"icon-settings\"></i>\n                </a>\n            </div>\n        ";
     }
     // line 34
     echo "    </section>\n</header>";
 }
开发者ID:austinpapp,项目名称:push-notifications-temp,代码行数:51,代码来源:f2c00e1106f05a3145ca3d66d7dd212d93248a8632ec55aca6e08471e993.php

示例7: block_input

 public function block_input($context, array $blocks = array())
 {
     // line 4
     echo "    <div class=\"settings-block\"><div class=\"settings-param-field\"><div class=\"input-group\">\n    ";
     // line 5
     $context["label"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label", array()), $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_PICK_PARTICLE")) : $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_PICK_PARTICLE");
     // line 6
     echo "    ";
     $context["alt_label"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label_alt", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label_alt", array()), $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT_PARTICLE")) : $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT_PARTICLE");
     // line 7
     echo "    <span class=\"g-instancepicker-title\">";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["value"]) ? $context["value"] : null, "title", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["value"]) ? $context["value"] : null, "title", array()), "") : "", "html", null, true);
     echo "</span><button class=\"button\" data-g-instancepicker=\"";
     echo twig_escape_filter($this->env, twig_jsonencode_filter(array("type" => "particle", "field" => twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null))))), "html_attr");
     echo "\" data-g-instancepicker-text=\"";
     echo twig_escape_filter($this->env, isset($context["label"]) ? $context["label"] : null, "html", null, true);
     echo "\" data-g-instancepicker-alttext=\"";
     echo twig_escape_filter($this->env, isset($context["alt_label"]) ? $context["alt_label"] : null, "html", null, true);
     echo "\">";
     echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : null ? isset($context["alt_label"]) ? $context["alt_label"] : null : (isset($context["label"]) ? $context["label"] : null), "html", null, true);
     echo "</button>\n    <input\n            type=\"hidden\"\n            name=\"";
     // line 10
     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 11
     echo isset($context["value"]) ? $context["value"] : null ? twig_escape_filter($this->env, twig_jsonencode_filter(isset($context["value"]) ? $context["value"] : null, twig_constant("JSON_UNESCAPED_UNICODE"))) : "";
     echo "\"\n            ";
     // line 13
     echo "            ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n            ";
     // line 15
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "disabled=\"disabled\"";
     }
     // line 16
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "required=\"required\"";
     }
     // line 17
     echo "            />\n\n    <span class=\"g-reset-field\" data-g-reset-field=\"";
     // line 19
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)));
     echo "\"><i class=\"fa  fa-fw fa-times-circle\"></i></span>\n    </div></div></div>\n";
 }
开发者ID:ericssonm,项目名称:JusCuzCustoms,代码行数:47,代码来源:d592c087716d991674457a3b47b8010d090388ebda2e7baf2b30b669fe27f4d8.php

示例8: block_body

 public function block_body($context, array $blocks = array())
 {
     $__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0 = $this->env->getExtension("native_profiler");
     $__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0->enter($__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 4
     echo "    <div id=\"wrapper\">\n        <div id=\"container\">\n            <div id=\"welcome\">\n                <h1><span>Welcome to</span> Symfony ";
     // line 7
     echo twig_escape_filter($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), "html", null, true);
     echo "</h1>\n            </div>\n\n            <div id=\"status\">\n                <p>\n                    <svg id=\"icon-status\" width=\"1792\" height=\"1792\" viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z\" fill=\"#759E1A\"/></svg>\n\n                    Your application is now ready. You can start working on it at:\n                    <code>";
     // line 15
     echo twig_escape_filter($this->env, isset($context["base_dir"]) ? $context["base_dir"] : $this->getContext($context, "base_dir"), "html", null, true);
     echo "</code>\n                </p>\n            </div>\n\n            <div id=\"next\">\n                <h2>What's next?</h2>\n                <p>\n                    <svg id=\"icon-book\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-12.5 9 64 64\" enable-background=\"new -12.5 9 64 64\" xml:space=\"preserve\">\n                        <path fill=\"#AAA\" d=\"M6.8,40.8c2.4,0.8,4.5-0.7,4.9-2.5c0.2-1.2-0.3-2.1-1.3-3.2l-0.8-0.8c-0.4-0.5-0.6-1.3-0.2-1.9\n                            c0.4-0.5,0.9-0.8,1.8-0.5c1.3,0.4,1.9,1.3,2.9,2.2c-0.4,1.4-0.7,2.9-0.9,4.2l-0.2,1c-0.7,4-1.3,6.2-2.7,7.5\n                            c-0.3,0.3-0.7,0.5-1.3,0.6c-0.3,0-0.4-0.3-0.4-0.3c0-0.3,0.2-0.3,0.3-0.4c0.2-0.1,0.5-0.3,0.4-0.8c0-0.7-0.6-1.3-1.3-1.3\n                            c-0.6,0-1.4,0.6-1.4,1.7s1,1.9,2.4,1.8c0.8,0,2.5-0.3,4.2-2.5c2-2.5,2.5-5.4,2.9-7.4l0.5-2.8c0.3,0,0.5,0.1,0.8,0.1\n                            c2.4,0.1,3.7-1.3,3.7-2.3c0-0.6-0.3-1.2-0.9-1.2c-0.4,0-0.8,0.3-1,0.8c-0.1,0.6,0.8,1.1,0.1,1.5c-0.5,0.3-1.4,0.6-2.7,0.4l0.3-1.3\n                            c0.5-2.6,1-5.7,3.2-5.8c0.2,0,0.8,0,0.8,0.4c0,0.2,0,0.2-0.2,0.5c-0.2,0.3-0.3,0.4-0.2,0.7c0,0.7,0.5,1.1,1.2,1.1\n                            c0.9,0,1.2-1,1.2-1.4c0-1.2-1.2-1.8-2.6-1.8c-1.5,0.1-2.8,0.9-3.7,2.1c-1.1,1.3-1.8,2.9-2.3,4.5c-0.9-0.8-1.6-1.8-3.1-2.3\n                            c-1.1-0.7-2.3-0.5-3.4,0.3c-0.5,0.4-0.8,1-1,1.6c-0.4,1.5,0.4,2.9,0.8,3.4l0.9,1c0.2,0.2,0.6,0.8,0.4,1.5c-0.3,0.8-1.2,1.3-2.1,1\n                            c-0.4-0.2-1-0.5-0.9-0.9c0.1-0.2,0.2-0.3,0.3-0.5s0.1-0.3,0.1-0.3c0.2-0.6-0.1-1.4-0.7-1.6c-0.6-0.2-1.2,0-1.3,0.8\n                            C4.3,38.4,4.7,40,6.8,40.8z M46.1,20.9c0-4.2-3.2-7.5-7.1-7.5h-3.8C34.8,10.8,32.7,9,30.2,9L-2.3,9.1c-2.8,0.1-4.9,2.4-4.9,5.4\n                            L-7,58.6c0,4.8,8.1,13.9,11.6,14.1l34.7-0.1c3.9,0,7-3.4,7-7.6L46.1,20.9z M-0.3,36.4c0-8.6,6.5-15.6,14.5-15.6\n                            c8,0,14.5,7,14.5,15.6S22.1,52,14.2,52C6.1,52-0.3,45-0.3,36.4z M42.1,65.1c0,1.8-1.5,3.1-3.1,3.1H4.6c-0.7,0-3-1.8-4.5-4.4h30.4\n                            c2.8,0,5-2.4,5-5.4V17.9h3.7c1.6,0,2.9,1.4,2.9,3.1V65.1L42.1,65.1z\"/>\n                    </svg>\n\n                    Read the documentation to learn\n                    <a href=\"http://symfony.com/doc/";
     // line 39
     echo twig_escape_filter($this->env, twig_slice($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), 0, 3), "html", null, true);
     echo "/book/page_creation.html\">\n                        How to create your first page in Symfony\n                    </a>\n                </p>\n            </div>\n\n        </div>\n    </div>\n";
     $__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0->leave($__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0_prof);
 }
开发者ID:kibimimi,项目名称:monprojettest,代码行数:17,代码来源:bf061a7dbf5c69c1d97c51d303a1885ec856deb6cefa9fa9b7b30786d31aa029.php

示例9: block_collection_widget

 public function block_collection_widget($context, array $blocks = array())
 {
     $__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d = $this->env->getExtension("native_profiler");
     $__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d->enter($__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "collection_widget"));
     // line 4
     echo "    ";
     if (!array_key_exists("prototype", $context)) {
         // line 5
         echo "        <div class=\"alert alert-danger\">\n            In order to render labels properly, prototype is required! Try setting the following options:<br/>\n            * <strong>allow_add:</strong> true<br/>\n            * <strong>prototype_only:</strong> true<br/>\n            This way will ensure that prototype will be rendered and the user will not be able to add new rows.\n        </div>\n    ";
     }
     // line 12
     echo "\n    ";
     // line 13
     if ((isset($context["layout"]) ? $context["layout"] : $this->getContext($context, "layout")) == twig_constant("StoreBundle\\Constant\\CollectionLayoutConstants::SINGLE_TABLE")) {
         // line 14
         echo "        ";
         $this->displayBlock("single_table_collection", $context, $blocks);
         echo "\n    ";
     }
     $__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d->leave($__internal_a5564e3e6c6ea414c7997f63e5ec4b4573ca08c238610b2c7d8359bbf9c71f9d_prof);
 }
开发者ID:velkony,项目名称:store,代码行数:21,代码来源:d6cfa81623ec278c6892f6b4c40d86b5aec05f2acdfec3aa3f089eafb4d20397.php

示例10: block_header

 public function block_header($context, array $blocks = array())
 {
     $__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77 = $this->env->getExtension("native_profiler");
     $__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77->enter($__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "header"));
     // line 16
     echo "    ";
     $this->displayParentBlock("header", $context, $blocks);
     echo "\n    <div class=\"fullwidth\">\n        <div class=\"container\">\n            <div class=\"logo\">\n                <a href=\"";
     // line 20
     echo $this->env->getExtension('routing')->getPath("santa_homepage");
     echo "\">\n                        <img src=\"";
     // line 21
     echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/santa/images/logo.png?v=") . twig_constant("APP_VER"), "html", null, true);
     echo "\">\n                        Твой анонимный Санта\n                    </a>\n                </div>\n            <ul class=\"menu\">\n                <li class=\"active\"><a href=\"";
     // line 26
     echo $this->env->getExtension('routing')->getPath("santa_homepage");
     echo "\">Главная</a></li>\n                ";
     // line 28
     echo "                <li class=\"\"><a href=\"";
     echo $this->env->getExtension('routing')->getPath("santa_register");
     echo "\">Регистрация</a></li>\n                <li class=\"\"><a href=\"";
     // line 29
     echo $this->env->getExtension('routing')->getPath("santa_login");
     echo "\">Вход</a></li>\n            </ul>    \n        </div>\n        \n    </div>\n    ";
     // line 34
     if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "get", array(0 => "_route"), "method") == "santa_homepage") {
         // line 35
         echo "        <div class=\"fullwidth preview\">\n            <div class=\"\"></div>\n        </div>\n    ";
     } else {
         // line 39
         echo "        <div class=\"fullwidth forbc\">\n            <div class=\"container\">\n                <div class=\"breadcrumbs\">\n                    ";
         // line 42
         $this->displayBlock('breadcrumbs', $context, $blocks);
         // line 45
         echo "                </div>    \n            </div>\n        </div>\n    ";
     }
     // line 49
     echo "    \n";
     $__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77->leave($__internal_79d5289736ff8d2ac97385de83e8be642e5bec9272a6b51ffe858ba3db414a77_prof);
 }
开发者ID:mshishkov,项目名称:santanno,代码行数:40,代码来源:544680adaa4d008358b25bd079ff2cb9b4a794abb996729ede1dcbd4b53621c3.php

示例11: doDisplay


//.........这里部分代码省略.........
             // line 98
             if ($this->getAttribute($context["entry"], "cities", array(), "any", true, true) && 1 == twig_length_filter($this->env, $this->getAttribute($context["entry"], "cities", array())) && twig_join_filter($this->getAttribute($context["entry"], "cities", array()))) {
                 // line 99
                 echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["entry"], "cities", array())), "html", null, true);
             } elseif ($this->getAttribute($context["entry"], "cities", array(), "any", true, true) && 1 < twig_length_filter($this->env, $this->getAttribute($context["entry"], "cities", array()))) {
                 // line 101
                 echo "<span title=\"";
                 echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["entry"], "cities", array()), ", "), "html", null, true);
                 echo "\">";
                 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_FromDifferentCities")), "html", null, true);
                 echo "</span>";
             }
             $context["entryCity"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
             // line 104
             echo "\n                                ";
             // line 105
             ob_start();
             // line 106
             echo "<strong>\n                                        ";
             // line 107
             if ($this->getAttribute($context["entry"], "nb_visits", array()) == 1) {
                 // line 108
                 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OneVisit")), "html", null, true);
             } else {
                 // line 110
                 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_NVisits", $this->getAttribute($context["entry"], "nb_visits", array()))), "html", null, true);
             }
             // line 112
             echo "</strong>";
             $context["entryVisits"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
             // line 114
             echo "\n                                ";
             // line 115
             ob_start();
             // line 116
             if (isset($context["entryCity"]) ? $context["entryCity"] : $this->getContext($context, "entryCity")) {
                 // line 117
                 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_CityAndCountry", isset($context["entryCity"]) ? $context["entryCity"] : $this->getContext($context, "entryCity"), $this->getAttribute($context["entry"], "prettyName", array())));
             } else {
                 // line 119
                 echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "prettyName", array()), "html", null, true);
             }
             // line 122
             echo "&nbsp;<img src=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "flag", array()), "html", null, true);
             echo "\" title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "prettyName", array()), "html", null, true);
             echo "\"/>";
             $context["entryCountry"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
             // line 125
             echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_XFromY", isset($context["entryVisits"]) ? $context["entryVisits"] : $this->getContext($context, "entryVisits"), isset($context["entryCountry"]) ? $context["entryCountry"] : $this->getContext($context, "entryCountry")));
             if (!$this->getAttribute($context["loop"], "last", array())) {
                 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['entry'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 127
         echo "                                <a class=\"visitor-profile-show-map\" href=\"#\" ";
         if (twig_test_empty(array_key_exists("userCountryMapUrl", $context) ? _twig_default_filter(isset($context["userCountryMapUrl"]) ? $context["userCountryMapUrl"] : $this->getContext($context, "userCountryMapUrl"), "") : "")) {
             echo "style=\"display:none\"";
         }
         echo ">(";
         echo strtr(call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_ShowMap")), array(" " => "&nbsp;"));
         echo ")</a> <img class=\"loadingPiwik\" style=\"display:none;\" src=\"plugins/Morpheus/images/loading-blue.gif\"/>\n                        </p>\n                        <div class=\"visitor-profile-map\" style=\"display:none\" data-href=\"";
         // line 129
         echo twig_escape_filter($this->env, array_key_exists("userCountryMapUrl", $context) ? _twig_default_filter(isset($context["userCountryMapUrl"]) ? $context["userCountryMapUrl"] : $this->getContext($context, "userCountryMapUrl"), "") : "", "html", null, true);
         echo "\">\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"visitor-profile-visits-info\">\n                <div class=\"visitor-profile-pages-visited\">\n                    <h1>";
         // line 136
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_VisitedPages")), "html", null, true);
         echo "</h1>\n                </div>\n                <div class=\"visitor-profile-visits-container\">\n                    <ol class=\"visitor-profile-visits\">\n                        ";
         // line 140
         $this->env->loadTemplate("@Live/getVisitList.twig")->display(array_merge($context, array("visits" => $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "startCounter" => 1)));
         // line 141
         echo "                    </ol>\n                </div>\n                <div class=\"visitor-profile-more-info\">\n                    ";
         // line 144
         if ($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "getRowsCount", array(), "method") >= twig_constant("Piwik\\Plugins\\Live\\VisitorProfile::VISITOR_PROFILE_MAX_VISITS_TO_SHOW")) {
             // line 145
             echo "                    <a href=\"#\">";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_LoadMoreVisits")), "html", null, true);
             echo "</a> <img class=\"loadingPiwik\" style=\"display:none;\" src=\"plugins/Morpheus/images/loading-blue.gif\"/>\n                    ";
         } else {
             // line 147
             echo "                    <span class=\"visitor-profile-no-visits\">";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_NoMoreVisits")), "html", null, true);
             echo "</span>\n                    ";
         }
         // line 149
         echo "                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<script type=\"text/javascript\">\n\$(function() { require('piwik/UI').VisitorProfileControl.initElements(); });\n</script>\n";
     }
 }
开发者ID:bossrabbit,项目名称:piwik,代码行数:101,代码来源:758e1e5009dfd3e6bdc26d756cf489c86e704bbb66d6557ab7ecfa9ed2b8.php

示例12: block_content


//.........这里部分代码省略.........
             } else {
                 // line 48
                 echo "                            <a class=\"btnIconLeft mr10 api-link\" href=\"";
                 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/extension/activate", array("type" => $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "type"), "id" => $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "id")));
                 echo "\" data-api-confirm=\"Are you sure?\" data-api-jsonp=\"onAfterModuleActivated\"><img src=\"images/icons/dark/cog.png\" alt=\"\" class=\"icon\"><span>Activate</span></a>\n                            ";
             }
             // line 50
             echo "                        ";
         } else {
             // line 51
             echo "                        &nbsp;\n                        ";
         }
         // line 53
         echo "\n                        ";
         // line 54
         if ($this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "has_settings")) {
             // line 55
             echo "                            <a class=\"bb-button btn14\" href=\"";
             echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("extension/settings");
             echo "/";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ext"]) ? $context["ext"] : null, "id"), "html", null, true);
             echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\" class=\"icon\" title=\"";
             echo gettext("Module settings");
             echo "\"></a>\n                        ";
         }
         // line 57
         echo "                    </td>\n                </tr>\n                ";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 60
         echo "                    <tr>\n                        <td colspan=\"4\">\n                            ";
         // line 62
         echo gettext("The list is empty");
         // line 63
         echo "                        </td>\n                    </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ext'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 66
     echo "                </tbody>\n                <tfoot>\n                    <tr>\n                        <td colspan=\"4\"></td>\n                    </tr>\n                </tfoot>\n            </table>\n\n            <div class=\"help\">\n                <h5>BoxBilling modules on extension site</h5>\n            </div>\n            ";
     // line 77
     $this->env->loadTemplate("partial_extensions.phtml")->display($context);
     // line 78
     echo "        </div>\n\n        <div class=\"tab_content nopadding\" id=\"tab-hooks\">\n            <table class=\"tableStatic wide\">\n                <thead>\n                    <tr>\n                        <td>";
     // line 84
     echo gettext("Extension");
     echo "</td>\n                        <td>";
     // line 85
     echo gettext("Hook");
     echo "</td>\n                    </tr>\n                </thead>\n\n                <tbody>\n                ";
     // line 90
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "hook_get_list", array(0 => array("per_page" => 90)), "method"), "list"));
     foreach ($context['_seq'] as $context["_key"] => $context["hook"]) {
         // line 91
         echo "                <tr>\n                    <td>\n                        ";
         // line 93
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["hook"]) ? $context["hook"] : null, "rel_id")), "html", null, true);
         echo "\n                    </td>\n                    <td>\n                        ";
         // line 96
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["hook"]) ? $context["hook"] : null, "event"), "html", null, true);
         echo "\n                    </td>\n                </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hook'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 100
     echo "                </tbody>\n            </table>\n        </div>\n            \n        <div class=\"tab_content nopadding\" id=\"tab-core\">\n            <div class=\"help\">\n                <h3>";
     // line 106
     echo gettext("Automatic update");
     echo "</h3>\n                <p>";
     // line 107
     echo gettext("Automatic updater is a tool to update BoxBilling to latest version in one click. Works on these hosting environments where PHP has permissions to overwrite files uploaded via FTP.");
     echo "</p>\n            </div>\n\n            <div class=\"body\">\n                <a href=\"";
     // line 111
     echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/extension/update_core");
     echo "\" title=\"\" class=\"btnIconLeft mr10 mt5 api-link\" data-api-confirm=\"Make sure that you have made database and files backups before proceeding with automatic update. Click OK when you are ready to continue.\" data-api-msg=\"Update complete\"><img src=\"images/icons/dark/cog.png\" alt=\"\" class=\"icon\"><span>Update BoxBilling</span></a>\n            </div>\n\n            <div class=\"help\">\n                <h3>";
     // line 115
     echo gettext("Manual update");
     echo "</h3>\n                <p>";
     // line 116
     echo gettext("Manual update is a solution when auto updater can not work on current installation environment");
     echo "</p>\n            </div>\n\n            <div class=\"body list arrowGreen\">\n                <ul>\n                    <li>Download latest BoxBilling from <a href=\"http://www.boxbilling.com/download\" target=\"_blank\">www.boxbilling.com</a></li>\n                    <li>Extract files at your computer</li>\n                    <li>Upload (overwrite) extracted files via FTP to <strong>";
     // line 123
     echo twig_escape_filter($this->env, twig_constant("BB_PATH_ROOT"), "html", null, true);
     echo "</strong></li>\n                    <li>When upload is complete, execute <a href=\"";
     // line 124
     echo twig_escape_filter($this->env, twig_constant("BB_URL"), "html", null, true);
     echo "bb-update.php\" target=\"_blank\">";
     echo twig_escape_filter($this->env, twig_constant("BB_URL"), "html", null, true);
     echo "bb-update.php</a> in your browser</li>\n                    <li>Your BoxBilling is now updated to latest version.</li>\n                </ul>\n            </div>\n        </div>\n        \n        <div class=\"tab_content nopadding\" id=\"tab-about\">\n            <div class=\"help\">\n                <h3>";
     // line 132
     echo gettext("Extending BoxBilling");
     echo "</h3>\n                <p>";
     // line 133
     echo gettext("BoxBilling gives developers all the capabilities to customize, integrate & extend the core system into your own website & applications.");
     echo "</p>\n            </div>\n            <div class=\"body\">\n                <h2 class=\"pt20\">More extensions</h2>\n                <p>If you can not find extensions you are looking for in this admin area, please visit extensions site at <a href=\"http://extensions.boxbilling.com\" target=\"_blank\">http://extensions.boxbilling.com</a></p>\n\n                <h2 class=\"pt20\">How to create new extension</h2>\n                <div class=\"pt20 list arrowGrey\">\n                    <ul>\n                        <li>Create free account at <a href=\"https://github.com/signup/free\" target=\"_blank\">Github</a></li>\n                        <li>Create new public repository dedicated for extension only</li>\n                        <li>Repository must have plugin json file. <a href=\"http://extensions.boxbilling.com/article/getting-started\" target=\"_blank\">More information</a></li>\n                        <li>Login to <a href=\"http://extensions.boxbilling.com/\" target=\"_blank\">BoxBilling extensions site</a> with github account.</li>\n                        <li>If your repository contains valid json file, it can be registered in extensions site.</li>\n                        <li>Registered extensions can be visible in every BoxBilling admin area.</li>\n                    </ul>\n                </div>\n\n                <h2 class=\"pt20\">Supported extension types</h2>\n                <div class=\"pt20 list arrowGrey\">\n                    <ul>\n                        <li>Payment gateways</li>\n                        <li>Server managers</li>\n                        <li>Domain registrars</li>\n                        <li>Client area themes</li>\n                        <li>Admin area themes</li>\n                        <li>Translations for client and admin areas</li>\n                        <li>Event hooks - Hooks can be injected into the process, change its behaviour, stop executing actions</li>\n                        <li>API module - External program which uses BoxBilling API</li>\n                    </ul>\n                </div>\n\n                <h2 class=\"pt20\">Extension support</h2>\n                <p>Contact extensions developers directly for support. You can find issue tracker on extension site.</p>\n            </div>\n        </div>\n    </div>\n</div>\n\n";
 }
开发者ID:jefri55,项目名称:SkillMoneybookersForBoxbilling,代码行数:101,代码来源:534e8e389feb88c8dec7ac8a516402816dfff4b72b0125ab6d5d97c98301.php

示例13: block_panel

 public function block_panel($context, array $blocks = array())
 {
     $__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28 = $this->env->getExtension("native_profiler");
     $__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28->enter($__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 48
     echo "    <h2>Log Messages</h2>\n\n    ";
     // line 50
     if (twig_test_empty(twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array()))) {
         // line 51
         echo "        <div class=\"empty\">\n            <p>No log messages available.</p>\n        </div>\n    ";
     } else {
         // line 55
         echo "        ";
         // line 56
         echo "        ";
         list($context["deprecation_logs"], $context["debug_logs"], $context["info_and_error_logs"]) = array(array(), array(), array());
         // line 57
         echo "        ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             // line 58
             echo "            ";
             if (twig_template_get_attributes($this, twig_template_get_attributes($this, $context["log"], "context", array(), "any", false, true), "level", array(), "any", true, true) && twig_template_get_attributes($this, twig_template_get_attributes($this, $context["log"], "context", array(), "any", false, true), "type", array(), "any", true, true) && twig_in_filter(twig_template_get_attributes($this, twig_template_get_attributes($this, $context["log"], "context", array()), "type", array()), array(0 => twig_constant("E_DEPRECATED"), 1 => twig_constant("E_USER_DEPRECATED")))) {
                 // line 59
                 echo "                ";
                 $context["deprecation_logs"] = twig_array_merge(isset($context["deprecation_logs"]) ? $context["deprecation_logs"] : $this->getContext($context, "deprecation_logs"), array(0 => $context["log"]));
                 // line 60
                 echo "            ";
             } elseif (twig_template_get_attributes($this, $context["log"], "priorityName", array()) == "DEBUG") {
                 // line 61
                 echo "                ";
                 $context["debug_logs"] = twig_array_merge(isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs"), array(0 => $context["log"]));
                 // line 62
                 echo "            ";
             } else {
                 // line 63
                 echo "                ";
                 $context["info_and_error_logs"] = twig_array_merge(isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs"), array(0 => $context["log"]));
                 // line 64
                 echo "            ";
             }
             // line 65
             echo "        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 66
         echo "\n        <div class=\"sf-tabs\">\n            <div class=\"tab\">\n                <h3 class=\"tab-title\">Info. &amp; Errors <span class=\"badge\">";
         // line 69
         echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs")), "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 72
         if (twig_test_empty(isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs"))) {
             // line 73
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages of this level.</p>\n                        </div>\n                    ";
         } else {
             // line 77
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["info_and_error_logs"]) ? $context["info_and_error_logs"] : $this->getContext($context, "info_and_error_logs"), true);
             echo "\n                    ";
         }
         // line 79
         echo "                </div>\n            </div>\n\n            <div class=\"tab\">\n                ";
         // line 85
         echo "                <h3 class=\"tab-title\">Deprecations <span class=\"badge\">";
         echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : null, "countdeprecations", array(), "any", true, true) ? _twig_default_filter(twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : null, "countdeprecations", array()), 0) : 0, "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 88
         if (twig_test_empty(isset($context["deprecation_logs"]) ? $context["deprecation_logs"] : $this->getContext($context, "deprecation_logs"))) {
             // line 89
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages about deprecated features.</p>\n                        </div>\n                    ";
         } else {
             // line 93
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["deprecation_logs"]) ? $context["deprecation_logs"] : $this->getContext($context, "deprecation_logs"), false, true);
             echo "\n                    ";
         }
         // line 95
         echo "                </div>\n            </div>\n\n            <div class=\"tab\">\n                <h3 class=\"tab-title\">Debug <span class=\"badge\">";
         // line 99
         echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs")), "html", null, true);
         echo "</span></h3>\n\n                <div class=\"tab-content\">\n                    ";
         // line 102
         if (twig_test_empty(isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs"))) {
             // line 103
             echo "                        <div class=\"empty\">\n                            <p>There are no log messages of this level.</p>\n                        </div>\n                    ";
         } else {
             // line 107
             echo "                        ";
             echo $context["helper"]->getrender_table(isset($context["debug_logs"]) ? $context["debug_logs"] : $this->getContext($context, "debug_logs"));
             echo "\n                    ";
         }
         // line 109
         echo "                </div>\n            </div>\n        </div>\n    ";
     }
     $__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28->leave($__internal_baac7bf31e61104acabaacc3b580933daf2f204325afb3a594ce8667dd588c28_prof);
 }
开发者ID:RuntyCybin,项目名称:CProject,代码行数:99,代码来源:cf2d1a7271c66bb550f8bde059353286b4e107bdc2409a2f8e84654bf8192133.php

示例14: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if ($this->getAttribute($this->getContext($context, "properties"), "show_visualization_only")) {
         // line 2
         echo "    ";
         $template = $this->env->resolveTemplate($this->getContext($context, "visualizationTemplate"));
         $template->display($context);
     } else {
         // line 5
         $context["summaryRowId"] = twig_constant("Piwik\\DataTable::ID_SUMMARY_ROW");
         // line 6
         $context["isSubtable"] = $this->getAttribute($this->getContext($context, "javascriptVariablesToSet", true), "idSubtable", array(), "any", true, true) && $this->getAttribute($this->getContext($context, "javascriptVariablesToSet"), "idSubtable") != 0;
         // line 7
         echo "<div class=\"dataTable ";
         echo twig_escape_filter($this->env, $this->getContext($context, "visualizationCssClass"), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "properties", true), "datatable_css_class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "properties", true), "datatable_css_class"), "") : "", "html", null, true);
         echo " ";
         if ($this->getContext($context, "isSubtable")) {
             echo "subDataTable";
         }
         echo "\"\n     data-table-type=\"";
         // line 8
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "properties"), "datatable_js_type"), "html", null, true);
         echo "\"\n     data-report=\"";
         // line 9
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "properties"), "report_id"), "html", null, true);
         echo "\"\n     data-props=\"";
         // line 10
         if (twig_test_empty($this->getContext($context, "clientSideProperties"))) {
             echo "{}";
         } else {
             echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getContext($context, "clientSideProperties")), "html", null, true);
         }
         echo "\"\n     data-params=\"";
         // line 11
         if (twig_test_empty($this->getContext($context, "clientSideParameters"))) {
             echo "{}";
         } else {
             echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getContext($context, "clientSideParameters")), "html", null, true);
         }
         echo "\">\n    <div class=\"reportDocumentation\">\n        ";
         // line 13
         if (!twig_test_empty($this->getAttribute($this->getContext($context, "properties", true), "documentation", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "properties", true), "documentation")) : "")) {
             echo "<p>";
             echo $this->getAttribute($this->getContext($context, "properties"), "documentation");
             echo "</p>";
         }
         // line 14
         echo "        ";
         if (array_key_exists("reportLastUpdatedMessage", $context)) {
             echo "<span class='helpDate'>";
             echo twig_escape_filter($this->env, $this->getContext($context, "reportLastUpdatedMessage"), "html", null, true);
             echo "</span>";
         }
         // line 15
         echo "    </div>\n    <div class=\"dataTableWrapper\">\n        ";
         // line 17
         if (array_key_exists("error", $context)) {
             // line 18
             echo "            ";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "error"), "message"), "html", null, true);
             echo "\n        ";
         } else {
             // line 20
             echo "            ";
             if (twig_test_empty($this->getContext($context, "dataTable")) || $this->getAttribute($this->getContext($context, "dataTable"), "getRowsCount", array(), "method") == 0 || (array_key_exists("dataTableHasNoData", $context) ? _twig_default_filter($this->getContext($context, "dataTableHasNoData"), false) : false)) {
                 // line 21
                 echo "                <div class=\"pk-emptyDataTable\">\n                ";
                 // line 22
                 if (array_key_exists("showReportDataWasPurgedMessage", $context) && $this->getContext($context, "showReportDataWasPurgedMessage")) {
                     // line 23
                     echo "                    ";
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_DataForThisReportHasBeenPurged", $this->getContext($context, "deleteReportsOlderThan"))), "html", null, true);
                     echo "\n                ";
                 } else {
                     // line 25
                     echo "                    ";
                     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_ThereIsNoDataForThisReport")), "html", null, true);
                     echo "\n                ";
                 }
                 // line 27
                 echo "                </div>\n            ";
             } else {
                 // line 29
                 echo "                ";
                 $template = $this->env->resolveTemplate($this->getContext($context, "visualizationTemplate"));
                 $template->display($context);
                 // line 30
                 echo "            ";
             }
             // line 31
             echo "\n            ";
             // line 32
             if ($this->getAttribute($this->getContext($context, "properties"), "show_footer")) {
                 // line 33
                 echo "                ";
                 $this->env->loadTemplate("@CoreHome/_dataTableFooter.twig")->display($context);
                 // line 34
//.........这里部分代码省略.........
开发者ID:KiwiJuicer,项目名称:handball-dachau,代码行数:101,代码来源:2cc0d9a4d866abc05da5c82f7c720916639e417d859bd8e26ae10474d5bc.php

示例15: getstate

 public function getstate($__translation__ = null)
 {
     $context = $this->env->mergeGlobals(array("translation" => $__translation__, "varargs" => func_num_args() > 1 ? array_slice(func_get_args(), 1) : array()));
     $blocks = array();
     ob_start();
     try {
         $__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671 = $this->env->getExtension("native_profiler");
         $__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671->enter($__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "state"));
         // line 102
         echo "    ";
         if ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK")) {
             // line 103
             echo "        same as fallback\n    ";
         } elseif ($this->getAttribute(isset($context["translation"]) ? $context["translation"] : $this->getContext($context, "translation"), "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING")) {
             // line 105
             echo "        missing\n    ";
         }
         $__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671->leave($__internal_d0afb1351ed7391b5fb6b5ec990e4952bf3417c099482632f3b4ae8cc74d9671_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
开发者ID:shadman,项目名称:phpAndJavascriptTest,代码行数:24,代码来源:1ca9e170494eb75a76d2f1ae97467930cc2790f005c869d41e8fe6af5c568cea.php


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