本文整理汇总了PHP中twig_constant函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_constant函数的具体用法?PHP twig_constant怎么用?PHP twig_constant使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twig_constant函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 " <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(" " => " "));
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, "use
|
请发表评论