本文整理汇总了PHP中twig_replace_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_replace_filter函数的具体用法?PHP twig_replace_filter怎么用?PHP twig_replace_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twig_replace_filter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: block_extra
public function block_extra($context, array $blocks = array())
{
// line 13
echo " <div class=\"attachment-extra\">\n <ul class=\"attachment-extra-thumbnail\">\n <li><img src=\"";
// line 15
echo twig_escape_filter($this->env, isset($context["Path"]) ? $context["Path"] : $this->getContext($context, "Path"), "html", null, true);
echo "\" class=\"img-responsive\"/></li>\n </ul>\n <ul class=\"attachment-extra-info\">\n <li><span>";
// line 18
echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("attachment.property.mime"), "html", null, true);
echo " : </span>";
echo twig_escape_filter($this->env, twig_replace_filter(twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "mime", array())), array("/" => " :: ")), "html", null, true);
echo "</li>\n <li><span>";
// line 19
echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("attachment.property.name"), "html", null, true);
echo " : </span>";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "name", array()), "html", null, true);
echo "</li>\n <li><span>";
// line 20
echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("attachment.property.activity"), "html", null, true);
echo " : </span>";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "isActive", array()) ? $this->env->getExtension('translator')->trans("attachment.search.field.active") : $this->env->getExtension('translator')->trans("attachment.search.field.inactive"), "html", null, true);
echo "</li>\n <li><span>";
// line 21
echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("attachment.property.created"), "html", null, true);
echo " : </span>";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "created", array()), "html", null, true);
echo "</li>\n </ul>\n <div class=\"clearfix\"></div>\n </div>\n ";
}
开发者ID:hamidudc,项目名称:Proshut,代码行数:28,代码来源:89cbc1d199b983b9644483676859b4eaebf331329b89fb60d81ed86ef2fcbb62.php
示例2: block_linkElement
public function block_linkElement($context, array $blocks = array())
{
// line 23
echo " ";
$context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_htabs.html.twig", 23);
// line 24
echo " ";
$context["itemLink"] = $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "uri", array());
// line 25
echo " ";
if ($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "hasChildren", array()) && $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "displayChildren", array())) {
// line 26
echo " ";
$context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("data-toggle" => "tab"));
// line 27
echo " ";
$context["itemLink"] = "#" . trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "name", array()), array(" " => "_", "#" => "_"))));
// line 28
echo " ";
} else {
// line 29
echo " ";
$context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("class" => $context["oro_menu"]->getadd_attribute_values(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, "class", array(0 => "empty"))));
// line 32
echo " ";
}
// line 33
echo " <a href=\"";
echo twig_escape_filter($this->env, isset($context["itemLink"]) ? $context["itemLink"] : null, "html", null, true);
echo "\"";
echo $context["oro_menu"]->getattributes(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null);
echo ">";
$this->displayBlock("label", $context, $blocks);
echo "</a>\n";
}
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:35,代码来源:c8a2b9c23cb1c77de66f25decb624aa532a5fdb7264d6d7299163ce4f9a47d82.php
示例3: block_gantry
public function block_gantry($context, array $blocks = array())
{
// line 4
$context["action"] = $this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "route", array(0 => (isset($context["configuration"]) ? $context["configuration"] : null) . "/" . twig_replace_filter(isset($context["route"]) ? $context["route"] : null, ".", "/") . "/validate"), "method");
// line 5
echo "<form method=\"post\" action=\"";
echo twig_escape_filter($this->env, isset($context["action"]) ? $context["action"] : null);
echo "\">\n ";
// line 6
if ($this->getAttribute(isset($context["blueprints"]) ? $context["blueprints"] : null, "type", array()) == "collection.list") {
// line 7
echo " ";
$this->loadTemplate("forms/fields.html.twig", "@gantry-admin/pages/configurations/settings/field.html.twig", 7)->display($context);
// line 8
echo " ";
} else {
// line 9
echo " <div class=\"card settings-block\">\n <h4>\n ";
// line 11
if (isset($context["title"]) ? $context["title"] : null) {
// line 12
echo " <span data-title-editable=\"";
echo twig_escape_filter($this->env, trim($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "data", array()), isset($context["title"]) ? $context["title"] : null, array(), "array")));
echo "\" data-collection-key=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["prefix"]) ? $context["prefix"] : null) . (isset($context["title"]) ? $context["title"] : null)), "html", null, true);
echo "\" class=\"title\">\n ";
// line 13
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "data", array()), isset($context["title"]) ? $context["title"] : null, array(), "array"));
echo "\n </span>\n <i class=\"fa fa-pencil font-small\" tabindex=\"0\" aria-label=\"";
// line 15
echo twig_escape_filter($this->env, twig_replace_filter($this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT_TITLE"), array("%s" => twig_escape_filter($this->env, trim($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "data", array()), isset($context["title"]) ? $context["title"] : null, array(), "array"))))), "html", null, true);
echo "\" data-title-edit=\"\"></i>\n ";
} else {
// line 17
echo " ";
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT"), "html", null, true);
echo "\n ";
}
// line 19
echo " </h4>\n <div class=\"inner-params\">\n ";
// line 21
$this->loadTemplate("forms/fields.html.twig", "@gantry-admin/pages/configurations/settings/field.html.twig", 21)->display(array_merge($context, array("skip" => array(0 => isset($context["title"]) ? $context["title"] : null))));
// line 22
echo " </div>\n </div>\n ";
}
// line 25
echo " <div class=\"g-modal-actions\">\n <button class=\"button button-primary\" type=\"submit\">";
// line 26
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_APPLY"), "html", null, true);
echo "</button>\n <button class=\"button button-primary\" data-apply-and-save>";
// line 27
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_APPLY_SAVE"), "html", null, true);
echo "</button>\n <button class=\"button g5-dialog-close\">";
// line 28
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_CANCEL"), "html", null, true);
echo "</button>\n </div>\n</form>\n";
}
开发者ID:joseclavijo,项目名称:gsclube,代码行数:57,代码来源:c1b00e1f17a330c89577e24f0119c700f4cd9f47ba99080d198f99be966a3482.php
示例4: block_gantry
public function block_gantry($context, array $blocks = array())
{
// line 4
echo "<form method=\"post\" action=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "route", array(0 => isset($context["action"]) ? $context["action"] : null), "method"), "html", null, true);
echo "\">\n <div class=\"g-tabs\" role=\"tablist\">\n <ul>\n <li class=\"active\"><a href=\"#\" id=\"g-switcher-platforms-tab\" role=\"presentation\" aria-controls=\"g-switcher-platforms\" role=\"tab\" aria-expanded=\"true\">";
// line 7
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("Widget"), "html", null, true);
echo "</a></li>\n ";
// line 8
if (isset($context["block"]) ? $context["block"] : null) {
// line 9
echo " <li><a href=\"#\" id=\"g-settings-block-tab\" role=\"presentation\" aria-controls=\"g-settings-block\" role=\"tab\" aria-expanded=\"false\">";
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_BLOCK"), "html", null, true);
echo "</a></li>\n ";
}
// line 11
echo " </ul>\n </div>\n\n <div class=\"g-panes\">\n <div class=\"g-pane active\" role=\"tabpanel\" id=\"g-settings-particle\" aria-labelledby=\"g-settings-particle-tab\" aria-expanded=\"true\">\n <div class=\"card settings-block\">\n <h4>\n <span data-title-editable=\"";
// line 18
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "title", array()), "html", null, true);
echo "\" class=\"title\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "title", array()), "html", null, true);
echo "</span> <i class=\"fa fa-pencil font-small\" tabindex=\"0\" aria-label=\"";
echo twig_escape_filter($this->env, twig_replace_filter($this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT_TITLE"), array("%s" => $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "title", array()))), "html", null, true);
echo "\" data-title-edit></i>\n <span class=\"badge font-small\">";
// line 19
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "options", array()), "type", array()), "html", null, true);
echo "</span>\n </h4>\n\n <div class=\"wp-form-params\">\n ";
// line 23
echo isset($context["form"]) ? $context["form"] : null;
echo "\n </div>\n </div>\n </div>\n\n ";
// line 28
if (isset($context["block"]) ? $context["block"] : null) {
// line 29
echo " <div class=\"g-pane\" role=\"tabpanel\" id=\"g-settings-block\" aria-labelledby=\"g-settings-block-tab\" aria-expanded=\"false\">\n <div class=\"card settings-block\">\n <h4>\n ";
// line 32
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_BLOCK"), "html", null, true);
echo "\n </h4>\n <div class=\"inner-params\">\n ";
// line 35
$this->loadTemplate("forms/fields.html.twig", "@gantry-admin/modals/widget.html.twig", 35)->display(array_merge($context, array("blueprints" => $this->getAttribute(isset($context["block"]) ? $context["block"] : null, "form", array()), "data" => $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "options", array()), "prefix" => "block.")));
// line 36
echo " </div>\n </div>\n </div>\n ";
}
// line 40
echo " </div>\n\n <div class=\"g-modal-actions\">\n <button class=\"button button-primary\" type=\"submit\">";
// line 43
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_APPLY"), "html", null, true);
echo "</button>\n <button class=\"button button-primary\" data-apply-and-save>";
// line 44
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_APPLY_SAVE"), "html", null, true);
echo "</button>\n <button class=\"button g5-dialog-close\">";
// line 45
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_CANCEL"), "html", null, true);
echo "</button>\n </div>\n</form>\n";
}
开发者ID:ericssonm,项目名称:JusCuzCustoms,代码行数:55,代码来源:e7ac46e695dd5b756d4c5020c4bb94bc2160df8a9fe9200661a199601fa67ac8.php
示例5: block_gantry
public function block_gantry($context, array $blocks = array())
{
// line 4
echo "<form method=\"post\" action=\"";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "route", array(0 => isset($context["action"]) ? $context["action"] : null), "method"), "html", null, true);
echo "\">\n <div class=\"g-tabs\" role=\"tablist\">\n <ul>\n <li class=\"active\"><a href=\"#\" id=\"g-switcher-platforms-tab\" role=\"presentation\" aria-controls=\"g-switcher-platforms\" role=\"tab\" aria-expanded=\"true\">";
// line 7
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_PARTICLE"), "html", null, true);
echo "</a></li>\n <li><a href=\"#\" id=\"g-settings-block-tab\" role=\"presentation\" aria-controls=\"g-settings-block\" role=\"tab\" aria-expanded=\"false\">";
// line 8
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_BLOCK"), "html", null, true);
echo "</a></li>\n </ul>\n </div>\n\n <div class=\"g-panes\">\n <div class=\"g-pane active\" role=\"tabpanel\" id=\"g-settings-particle\" aria-labelledby=\"g-settings-particle-tab\" aria-expanded=\"true\">\n <div class=\"card settings-block\">\n <h4>\n <span data-title-editable=\"";
// line 16
echo twig_escape_filter($this->env, trim($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "title", array())));
echo "\" class=\"title\">";
echo twig_escape_filter($this->env, trim($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "title", array())));
echo "</span> <i class=\"fa fa-pencil font-small\" tabindex=\"0\" aria-label=\"";
echo twig_escape_filter($this->env, twig_replace_filter($this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT_TITLE"), array("%s" => twig_escape_filter($this->env, trim($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "title", array()))))), "html", null, true);
echo "\" data-title-edit></i>\n <span class=\"badge font-small\">";
// line 17
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "subtype", array()), "html", null, true);
echo "</span>\n ";
// line 18
if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "form", array()), "fields", array()), "enabled", array())) {
// line 19
echo " ";
$this->loadTemplate("forms/fields/enable/enable.html.twig", "@gantry-admin/pages/configurations/layouts/particle.html.twig", 19)->display(array_merge($context, array("name" => "particles." . $this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "subtype", array()) . ".enabled", "field" => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "form", array()), "fields", array()), "enabled", array()), "value" => $this->getAttribute($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "attributes", array()), "enabled", array()), "default" => 1, "disabled" => !$this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "config", array()), "get", array(0 => "particles." . $this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "subtype", array()) . ".enabled", 1 => true), "method"))));
// line 20
echo " ";
}
// line 21
echo " </h4>\n\n <div class=\"inner-params\">\n ";
// line 24
$this->loadTemplate("forms/fields.html.twig", "@gantry-admin/pages/configurations/layouts/particle.html.twig", 24)->display(array_merge($context, array("overrideable" => true, "blueprints" => $this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "form", array()))));
// line 25
echo " </div>\n </div>\n </div>\n\n <div class=\"g-pane\" role=\"tabpanel\" id=\"g-settings-block\" aria-labelledby=\"g-settings-block-tab\" aria-expanded=\"false\">\n <div class=\"card settings-block\">\n <h4>\n ";
// line 32
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_BLOCK"), "html", null, true);
echo "\n </h4>\n <div class=\"inner-params\">\n ";
// line 35
$this->loadTemplate("forms/fields.html.twig", "@gantry-admin/pages/configurations/layouts/particle.html.twig", 35)->display(array_merge($context, array("blueprints" => $this->getAttribute(isset($context["extra"]) ? $context["extra"] : null, "form", array()), "data" => array("block" => $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "block", array())), "prefix" => "block.")));
// line 36
echo " </div>\n </div>\n </div>\n </div>\n\n <div class=\"g-modal-actions\">\n <button class=\"button button-primary\" type=\"submit\">";
// line 42
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_APPLY"), "html", null, true);
echo "</button>\n <button class=\"button button-primary\" data-apply-and-save>";
// line 43
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_APPLY_SAVE"), "html", null, true);
echo "</button>\n <button class=\"button g5-dialog-close\">";
// line 44
echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_CANCEL"), "html", null, true);
echo "</button>\n </div>\n</form>\n";
}
开发者ID:mazykin46,项目名称:portfolio,代码行数:53,代码来源:87248f0973bcf4e28866defd0425eca82d1a3646641741e24c673b23b6f5c32c.php
示例6: block_root
public function block_root($context, array $blocks = array())
{
// line 4
echo " ";
$context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_dots_tabs-content.html.twig", 4);
// line 5
echo "\n <div class=\"tab-content\">\n ";
// line 7
$context["items"] = isset($context["item"]) ? $context["item"] : null;
// line 8
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["items"]) ? $context["items"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 9
echo " ";
$context["showNonAuthorized"] = $this->getAttribute($this->getAttribute($context["item"], "extras", array(), "any", false, true), "showNonAuthorized", array(), "any", true, true) && $this->getAttribute($this->getAttribute($context["item"], "extras", array()), "showNonAuthorized", array());
// line 10
echo " ";
$context["displayable"] = $this->getAttribute($this->getAttribute($context["item"], "extras", array()), "isAllowed", array()) || (isset($context["showNonAuthorized"]) ? $context["showNonAuthorized"] : null);
// line 11
echo " ";
if (isset($context["displayable"]) ? $context["displayable"] : null) {
// line 12
echo " <div class=\"tab-pane\"\n id=\"";
// line 13
echo twig_escape_filter($this->env, trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute($context["item"], "name", array()), array(" " => "_", "#" => "_")))), "html", null, true);
echo "-content\">\n ";
// line 14
$context["options"] = array("tabTitle" => $this->getAttribute($context["item"], "label", array()));
// line 15
echo " ";
$context["options"] = array("defaultUrl" => $this->env->getExtension('routing')->getPath("oro_default"));
// line 16
echo " ";
$context["options"] = twig_array_merge(isset($context["options"]) ? $context["options"] : null, $this->getAttribute($context["item"], "extras", array()));
// line 17
echo " ";
echo $this->env->getExtension('oro_menu')->render($this->getAttribute($context["item"], "name", array()), isset($context["options"]) ? $context["options"] : null);
echo "\n </div>\n ";
}
// line 20
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo " ";
$context["item"] = isset($context["items"]) ? $context["items"] : null;
// line 22
echo " </div>\n";
}
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:53,代码来源:bfd86a92a17796ac1274afc62f4295016ebe03c815fe776bad3870896b463ad1.php
示例7: getpageLinkName
public function getpageLinkName($__text__ = null, ...$__varargs__)
{
$context = $this->env->mergeGlobals(array("text" => $__text__, "varargs" => $__varargs__));
$blocks = array();
ob_start();
try {
echo twig_replace_filter(twig_lower_filter($this->env, isset($context["text"]) ? $context["text"] : null), array(" " => "_"));
} catch (Exception $e) {
ob_end_clean();
throw $e;
}
return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
}
开发者ID:clee03,项目名称:metal,代码行数:13,代码来源:608ec7bc80655bdf337efd0577a714479136b3ca2acf1e513d59db0be2212290.php
示例8: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<h1>Character Profile</h1>\n\n<p>Name: <strong>";
// line 3
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["character"]) ? $context["character"] : null, "name", array()), "html", null, true);
echo "</strong></p>\n<p>Faction: <strong>";
// line 4
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["character"]) ? $context["character"] : null, "faction", array()), "html", null, true);
echo "</p></strong>\n<p>Balance:\n ";
// line 6
if (isset($context["balance"]) ? $context["balance"] : null) {
// line 7
echo " <strong>";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["balance"]) ? $context["balance"] : null, "amount", array()), "html", null, true);
echo "</strong>\n ";
} else {
// line 9
echo " <strong>-</strong>\n ";
}
// line 11
echo "</p>\n\n";
// line 13
if ($this->getAttribute(isset($context["user"]) ? $context["user"] : null, "id", array()) == $this->getAttribute(isset($context["character"]) ? $context["character"] : null, "user_id", array()) || $this->getAttribute(isset($context["user"]) ? $context["user"] : null, "permission_level", array()) == "Administrator") {
// line 14
echo " ";
if (null === (isset($context["balance_request"]) ? $context["balance_request"] : null)) {
// line 15
echo " This character currently does not have a balance. Apply for one\n <a href=\"/balance/apply/";
// line 16
echo twig_escape_filter($this->env, twig_urlencode_filter(twig_replace_filter($this->getAttribute(isset($context["character"]) ? $context["character"] : null, "name", array()), " ", "-")), "html", null, true);
echo "\">here</a>\n ";
} elseif ($this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "completed", array()) == "No" && $this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "status", array()) != "Rejected") {
// line 18
echo " The current balance request for this character is: <a href=\"/balance/view-application/";
echo twig_escape_filter($this->env, twig_urlencode_filter(twig_replace_filter($this->getAttribute(isset($context["character"]) ? $context["character"] : null, "name", array()), " ", "-")), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "status", array()), "html", null, true);
echo "</a>\n ";
} elseif ($this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "complete", array()) == "Yes" && $this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "status", array()) == "Rejected") {
// line 20
echo " Your balance request has been rejected for the following reason:\n <p>";
// line 21
echo twig_escape_filter($this->env, $this->getAttribute(isset($context["balance_request"]) ? $context["balance_request"] : null, "decision_reasoning", array()), "html", null, true);
echo "</p>\n This character may submit a new balance request <a href=\"/balance/apply/";
// line 22
echo twig_escape_filter($this->env, twig_urlencode_filter(twig_replace_filter($this->getAttribute(isset($context["character"]) ? $context["character"] : null, "name", array()), " ", "-")), "html", null, true);
echo "\">here</a>\n ";
}
}
}
开发者ID:MichaelLeah,项目名称:GalacticBank,代码行数:51,代码来源:93967e86cb62348e9f1df7e2680ce6faaa23f3d65f6a916b18cee33f3e68f6d2.php
示例9: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<input type=\"checkbox\" class=\"settings-param-toggle\" id=\"of-";
echo twig_escape_filter($this->env, (isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null));
echo "\"";
echo (isset($context["value"]) ? $context["value"] : null) != (isset($context["default_value"]) ? $context["default_value"] : null) ? " checked=\"checked\"" : "";
echo " role=\"checkbox\" aria-label=\"";
echo twig_escape_filter($this->env, twig_replace_filter($this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_OVERRIDE_CHECKBOX"), array("%s" => trim(twig_title_string_filter($this->env, twig_replace_filter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null), array("." => " ")))))), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_replace_filter($this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_OVERRIDE_CHECKBOX"), array("%s" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array()))), "html", null, true);
echo "\" />\n<label class=\"settings-param-override\" for=\"of-";
// line 2
echo twig_escape_filter($this->env, (isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null));
echo "\"></label>\n";
}
开发者ID:joseclavijo,项目名称:gsclube,代码行数:16,代码来源:3b48243b4c110a1f5be3637c0a09b790dd67feb1e801a2ce4d98644e3105b627.php
示例10: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\"modular-row gallery ";
echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "class", array());
echo "\">\n ";
// line 2
echo isset($context["content"]) ? $context["content"] : null;
echo "\n <div class=\"gallery-items\">\n ";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "media", array()), "images", array()));
foreach ($context['_seq'] as $context["_key"] => $context["galleryimage"]) {
// line 5
echo "\n\n\n <div class=\"gallery-image img-";
// line 8
echo twig_replace_filter($this->getAttribute($context["galleryimage"], "filename", array()), array("." => "-", "_" => "-"));
echo "\">\n ";
// line 9
if ($this->getAttribute($context["galleryimage"], "url", array())) {
// line 10
echo " <div class=\"galleryimg-container\">\n <img src=\"";
// line 11
echo $this->getAttribute($context["galleryimage"], "url", array());
echo "\" >\n </div>\n ";
}
// line 14
echo " ";
if ($this->getAttribute($context["galleryimage"], "description", array())) {
// line 15
echo " <!-- <p>";
echo $this->getAttribute($context["galleryimage"], "description", array());
echo "</p> -->\n ";
}
// line 17
echo " </div>\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['galleryimage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
echo " </div>\n</div>\n";
}
开发者ID:anabecker,项目名称:new-website,代码行数:43,代码来源:55d02f95a7788ba49d905f9ab819c941f3dbc51301ba06510b93c5763999ee98.php
示例11: block_linkElement
public function block_linkElement($context, array $blocks = array())
{
// line 26
echo " ";
$context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_dots_tabs.html.twig", 26);
// line 27
echo " ";
$context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("data-toggle" => "tab"));
// line 28
echo " ";
$context["itemLink"] = "#" . trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "name", array()), array(" " => "_", "#" => "_")))) . "-content";
// line 29
echo " <a href=\"";
echo twig_escape_filter($this->env, isset($context["itemLink"]) ? $context["itemLink"] : null, "html", null, true);
echo "\"";
echo $context["oro_menu"]->getattributes(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null);
echo ">";
$this->displayBlock("label", $context, $blocks);
echo "</a>\n";
}
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:20,代码来源:6be3b7a5fab0fc03a0a0b645a232a396bc2033f74d673679c7717c448b24bdea.php
示例12: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<h1>Your Characters</h1>\n\n<ul>\n";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(isset($context["characters"]) ? $context["characters"] : null);
foreach ($context['_seq'] as $context["_key"] => $context["character"]) {
// line 5
echo " <li><a href=\"/character/";
echo twig_escape_filter($this->env, twig_urlencode_filter(twig_replace_filter($this->getAttribute($context["character"], "name", array()), " ", "-")), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["character"], "name", array()), "html", null, true);
echo "</a></li>\n";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['character'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 7
echo "</ul>\n";
}
开发者ID:MichaelLeah,项目名称:GalacticBank,代码行数:21,代码来源:1085251f9e8fae930281698f257c1e5432e1790404879be7f81b1cdbf3593f38.php
示例13: block_button_widget
public function block_button_widget($context, array $blocks = array())
{
// line 2
if (twig_test_empty(isset($context["label"]) ? $context["label"] : $this->getContext($context, "label"))) {
// line 3
if (!twig_test_empty(isset($context["label_format"]) ? $context["label_format"] : $this->getContext($context, "label_format"))) {
// line 4
$context["label"] = twig_replace_filter(isset($context["label_format"]) ? $context["label_format"] : $this->getContext($context, "label_format"), array("%name%" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "%id%" => isset($context["id"]) ? $context["id"] : $this->getContext($context, "id")));
} else {
// line 9
$context["label"] = $this->env->getExtension('form')->humanize(isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"));
}
}
// line 12
echo "<div class=\"form-row\"><button type=\"";
echo twig_escape_filter($this->env, array_key_exists("type", $context) ? _twig_default_filter(isset($context["type"]) ? $context["type"] : $this->getContext($context, "type"), "button") : "button", "html", null, true);
echo "\" ";
$this->displayBlock("button_attributes", $context, $blocks);
echo ">";
echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans(isset($context["label"]) ? $context["label"] : $this->getContext($context, "label"), array(), isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain")), "html", null, true);
echo "</button></div>";
}
开发者ID:hamidudc,项目名称:Proshut,代码行数:22,代码来源:d4d6784c78450859b4a5abffbd2e55283c2f107334ecb81dac3925d9fc252601.php
示例14: block_content_top
public function block_content_top($context, array $blocks = array())
{
// line 27
echo " <div class=\"alert notice\">";
echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE_LOCATION");
echo ": <b>";
echo twig_replace_filter($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "file", array()), "filename", array()), array(isset($context["base_path"]) ? $context["base_path"] : null => ""));
echo "</b></div>\n <ul class=\"tab-bar\">\n <li class=\"active\"><span>";
// line 29
echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SYSTEM");
echo "</span></li>\n <li><a href=\"";
// line 30
echo isset($context["base_url_relative"]) ? $context["base_url_relative"] : null;
echo "/site\">";
echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SITE");
echo "</a></li>\n <li><a href=\"";
// line 31
echo isset($context["base_url_relative"]) ? $context["base_url_relative"] : null;
echo "/info\">";
echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INFO");
echo "</a></li>\n </ul>\n";
}
开发者ID:clee03,项目名称:metal,代码行数:22,代码来源:3eec9522c2bcde5bbd2475abb2f9efab31326cbb62d5736d6ee11db46e5aae14.php
示例15: doDisplay
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<script type=\"text/javascript\">\n window.GravAdmin = window.GravAdmin || {};\n window.GravAdmin.config = {\n base_url_relative: '";
// line 4
echo isset($context["base_url_relative"]) ? $context["base_url_relative"] : null;
echo "',\n param_sep: '";
// line 5
echo $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array());
echo "',\n enable_auto_updates_check: '";
// line 6
echo $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "plugins", array()), "admin", array()), "enable_auto_updates_check", array());
echo "',\n admin_timeout: '";
// line 7
echo $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "plugins", array()), "admin", array()), "session", array()), "timeout", array()) ? $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "plugins", array()), "admin", array()), "session", array()), "timeout", array()) : 1800;
echo "',\n admin_nonce: '";
// line 8
echo $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "getNonce", array());
echo "',\n pro_enabled: '";
// line 9
echo $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "plugins", array()), "admin-pro", array(), "array"), "enabled", array());
echo "'\n };\n window.GravAdmin.uri_params = {};\n\n ";
// line 13
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["grav"]) ? $context["grav"] : null, "uri", array()), "params", array(0 => null, 1 => true), "method"));
foreach ($context['_seq'] as $context["param"] => $context["value"]) {
// line 14
echo " window.GravAdmin.uri_params.";
echo $context["param"];
echo " = \"";
echo twig_replace_filter($context["value"], array("\\" => "/"));
echo "\";\n ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['param'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 16
echo "</script>\n";
}
开发者ID:StuSpace,项目名称:Grav,代码行数:39,代码来源:63759a5c0c121f491eda2b321cccec9c37529f6e707a90ba3cc98b2b4540cebf.php