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 "; }
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"; }
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"; }
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"; }
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"; }
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"; }
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()); }
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 "; } } }
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"; }
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"; }
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"; }
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"; }
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>"; }
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"; }
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"; }
public function block_input($context, array $blocks = array()) { // line 4 echo " <span class=\"enabler\" role=\"checkbox\" aria-checked=\""; echo isset($context["value"]) ? $context["value"] : null ? "true" : "false"; echo "\" tabindex=\"0\" aria-label=\""; echo twig_escape_filter($this->env, isset($context["disabled"]) ? $context["disabled"] : null ? "Disabled" : "Enables " . _twig_default_filter(trim(twig_title_string_filter($this->env, twig_replace_filter(isset($context["scope"]) ? $context["scope"] : null, array("." => " ")))), trim(isset($context["title"]) ? $context["title"] : null)), "html", null, true); echo "\">\n <input\n "; // line 7 echo " type=\"hidden\"\n name=\""; // line 8 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 9 echo isset($context["value"]) ? $context["value"] : null ? 1 : 0; echo "\"\n "; // line 10 if (isset($context["disabled"]) ? $context["disabled"] : null) { echo "disabled=\"disabled\""; } // line 11 echo " "; // line 12 echo " "; $this->displayBlock("global_attributes", $context, $blocks); echo "\n />\n "; // line 14 if (isset($context["disabled"]) ? $context["disabled"] : null) { // line 15 echo " <span><i class=\"fa fa-power-off\"></i></span>\n "; } else { // line 17 echo " <span class=\"toggle\"><span class=\"knob\"></span></span>\n "; } // line 19 echo "</span>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["scope"] = isset($context["prefix"]) ? $context["prefix"] : null; // line 2 echo "\n"; // line 3 if ($this->getAttribute(isset($context["blueprints"]) ? $context["blueprints"] : null, "type", array())) { // line 4 echo " "; $context["field"] = isset($context["blueprints"]) ? $context["blueprints"] : null; // line 5 echo " "; $context["value"] = isset($context["data"]) ? $context["data"] : null; // line 6 echo " "; $context["default_value"] = isset($context["defaults"]) ? $context["defaults"] : null; // line 7 echo "\n "; // line 8 $this->loadTemplate(array(0 => "forms/fields/" . twig_replace_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "type", array()), ".", "/") . ".html.twig", 1 => "forms/fields/unknown/unknown.html.twig"), "forms/fields.html.twig", 8)->display($context); // line 9 echo "\n"; } else { // line 11 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["blueprints"]) ? $context["blueprints"] : null, "fields", array())); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["name"] => $context["field"]) { // line 12 echo " "; if (is_string($__internal_4d22873a3c30e06cefd550717bd5accace9796cd30de5c20351d5f19cb7dfa17 = $context["name"]) && is_string($__internal_2daeffae22b1dc7c50e0b74695c18addead105b54c92b263a2b7cd6b91df0cc2 = ".") && ('' === $__internal_2daeffae22b1dc7c50e0b74695c18addead105b54c92b263a2b7cd6b91df0cc2 || 0 === strpos($__internal_4d22873a3c30e06cefd550717bd5accace9796cd30de5c20351d5f19cb7dfa17, $__internal_2daeffae22b1dc7c50e0b74695c18addead105b54c92b263a2b7cd6b91df0cc2))) { // line 13 echo " "; $context["name"] = twig_slice($this->env, $context["name"], 1, null); // line 14 echo " "; } // line 15 echo "\n "; // line 16 if ($this->getAttribute($context["field"], "type", array()) && !twig_in_filter($context["name"], isset($context["skip"]) ? $context["skip"] : null) && !$this->getAttribute($context["field"], "skip", array()) && !((isset($context["ignore_not_overrideable"]) ? $context["ignore_not_overrideable"] : null) && $this->getAttribute($context["field"], "overridable", array()) === false)) { // line 17 echo " "; $context["field"] = $context["field"] + array("name" => $context["name"]); // line 18 echo " "; $context["value"] = $this->env->getExtension('GantryTwig')->nestedFunc(isset($context["data"]) ? $context["data"] : null, (isset($context["scope"]) ? $context["scope"] : null) . $context["name"]); // line 19 echo " "; $context["default_value"] = $this->env->getExtension('GantryTwig')->nestedFunc(isset($context["defaults"]) ? $context["defaults"] : null, (isset($context["scope"]) ? $context["scope"] : null) . $context["name"]); // line 20 echo "\n "; // line 21 $this->loadTemplate(array(0 => "forms/fields/" . twig_replace_filter($this->getAttribute($context["field"], "type", array()), ".", "/") . ".html.twig", 1 => "forms/fields/unknown/unknown.html.twig"), "forms/fields.html.twig", 21)->display($context); // line 22 echo " "; } // line 23 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['name'], $context['field'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; } }
public function getrender_log_message($__log_index__ = null, $__log__ = null, $__is_deprecation__ = false) { $context = $this->env->mergeGlobals(array("log_index" => $__log_index__, "log" => $__log__, "is_deprecation" => $__is_deprecation__, "varargs" => func_num_args() > 3 ? array_slice(func_get_args(), 3) : array())); $blocks = array(); ob_start(); try { $__internal_07f279c7df176c5a3e1446c7bd0bb83a9454032563e18984a59759be11176211 = $this->env->getExtension("native_profiler"); $__internal_07f279c7df176c5a3e1446c7bd0bb83a9454032563e18984a59759be11176211->enter($__internal_07f279c7df176c5a3e1446c7bd0bb83a9454032563e18984a59759be11176211_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_log_message")); // line 171 echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "message", array()), "html", null, true); echo "\n\n "; // line 173 if (isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation")) { // line 174 echo " "; $context["stack"] = $this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "stack", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "stack", array()), array()) : array(); // line 175 echo " "; $context["id"] = "sf-call-stack-" . (isset($context["log_index"]) ? $context["log_index"] : $this->getContext($context, "log_index")); // line 176 echo "\n "; // line 177 if ($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "errorCount", array(), "any", true, true)) { // line 178 echo " <span class=\"text-small text-bold\">("; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context", array()), "errorCount", array()), "html", null, true); echo " times)</span>\n "; } // line 180 echo "\n "; // line 181 if (isset($context["stack"]) ? $context["stack"] : $this->getContext($context, "stack")) { // line 182 echo " <button class=\"btn-link text-small sf-toggle\" data-toggle-selector=\"#"; echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "\" data-toggle-alt-content=\"Hide stack trace\">Show stack trace</button>\n "; } // line 184 echo "\n "; // line 185 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["stack"]) ? $context["stack"] : $this->getContext($context, "stack")); foreach ($context['_seq'] as $context["index"] => $context["call"]) { if ($context["index"] > 1) { // line 186 echo " "; if ($context["index"] == 2) { // line 187 echo " <ul class=\"sf-call-stack hidden\" id=\""; echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "\">\n "; } // line 189 echo "\n "; // line 190 if ($this->getAttribute($context["call"], "class", array(), "any", true, true)) { // line 191 echo " "; $context["from"] = $this->env->getExtension('code')->abbrClass($this->getAttribute($context["call"], "class", array())) . "::" . $this->env->getExtension('code')->abbrMethod($this->getAttribute($context["call"], "function", array())); // line 192 echo " "; } elseif ($this->getAttribute($context["call"], "function", array(), "any", true, true)) { // line 193 echo " "; $context["from"] = $this->env->getExtension('code')->abbrMethod($this->getAttribute($context["call"], "function", array())); // line 194 echo " "; } elseif ($this->getAttribute($context["call"], "file", array(), "any", true, true)) { // line 195 echo " "; $context["from"] = $this->getAttribute($context["call"], "file", array()); // line 196 echo " "; } else { // line 197 echo " "; $context["from"] = "-"; // line 198 echo " "; } // line 199 echo "\n "; // line 200 $context["file_name"] = $this->getAttribute($context["call"], "file", array(), "any", true, true) && $this->getAttribute($context["call"], "line", array(), "any", true, true) ? twig_last($this->env, twig_split_filter($this->env, twig_replace_filter($this->getAttribute($context["call"], "file", array()), array("\\" => "/")), "/")) : ""; // line 201 echo "\n <li>\n "; // line 203 echo isset($context["from"]) ? $context["from"] : $this->getContext($context, "from"); echo "\n "; // line 204 if (isset($context["file_name"]) ? $context["file_name"] : $this->getContext($context, "file_name")) { // line 205 echo " <span class=\"text-small\">(called from "; echo $this->env->getExtension('code')->formatFile($this->getAttribute($context["call"], "file", array()), $this->getAttribute($context["call"], "line", array()), isset($context["file_name"]) ? $context["file_name"] : $this->getContext($context, "file_name")); echo ")</span>\n "; } // line 207 echo " </li>\n\n "; // line 209 if ($context["index"] == twig_length_filter($this->env, isset($context["stack"]) ? $context["stack"] : $this->getContext($context, "stack")) - 1) { // line 210 echo " </ul>\n "; } // line 212 echo " "; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['index'], $context['call'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 213 echo " "; } else { // line 214 echo " "; if ($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context", array()))) { // line 215 echo " <span class=\"metadata\">\n <strong>Context</strong>: "; // line 216 echo twig_escape_filter($this->env, twig_replace_filter(twig_jsonencode_filter($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context", array()), 64 | 256), array("{\"" => "{ \"", "\"}" => "\" }", "\":{" => "\": {", "\":\"" => "\": \"", "\",\"" => "\", \"")), "html", null, true); // line 218 echo "\n </span>\n "; } // line 221 echo " "; } $__internal_07f279c7df176c5a3e1446c7bd0bb83a9454032563e18984a59759be11176211->leave($__internal_07f279c7df176c5a3e1446c7bd0bb83a9454032563e18984a59759be11176211_prof); } catch (Exception $e) { ob_end_clean(); throw $e; } return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array("if" => 19, "for" => 28, "set" => 31); $filters = array("t" => 20, "length" => 23, "clean_class" => 33, "replace" => 45); $functions = array(); try { $this->env->getExtension('sandbox')->checkSecurity(array('if', 'for', 'set'), array('t', 'length', 'clean_class', 'replace'), array()); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 19 if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 20 echo " <h2>"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Text Formats"))); echo "</h2>\n"; } // line 22 echo "\n"; // line 23 if (twig_length_filter($this->env, isset($context["tips"]) ? $context["tips"] : null)) { // line 24 echo " "; if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 25 echo " <div class=\"compose-tips\">\n "; } // line 27 echo "\n "; // line 28 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["tips"]) ? $context["tips"] : null); foreach ($context['_seq'] as $context["name"] => $context["tip"]) { // line 29 echo " "; if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 30 echo " "; // line 31 $context["tip_classes"] = array(0 => "filter-type", 1 => "filter-" . \Drupal\Component\Utility\Html::getClass($context["name"])); // line 36 echo " <div"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, $context["tip"], "attributes", array()), "addClass", array(0 => isset($context["tip_classes"]) ? $context["tip_classes"] : null), "method"), "html", null, true)); echo ">\n <h3>"; // line 37 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, $context["tip"], "name", array()), "html", null, true)); echo "</h3>\n "; } // line 39 echo "\n "; // line 40 if (twig_length_filter($this->env, twig_template_get_attributes($this, $context["tip"], "list", array()))) { // line 41 echo " <ul class=\"tips\">\n "; // line 42 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, $context["tip"], "list", array())); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 43 echo " "; // line 44 $context["item_classes"] = array(0 => isset($context["long"]) ? $context["long"] : null ? "filter-" . twig_replace_filter(twig_template_get_attributes($this, $context["item"], "id", array()), array("/" => "-")) : ""); // line 48 echo " <li"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, $context["item"], "attributes", array()), "addClass", array(0 => isset($context["item_classes"]) ? $context["item_classes"] : null), "method"), "html", null, true)); echo ">"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, $context["item"], "tip", array()), "html", null, true)); echo "</li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 50 echo " </ul>\n "; } // line 52 echo "\n "; // line 53 if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 54 echo " </div>\n "; } // line 56 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['tip'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 57 echo "\n "; // line 58 if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 59 echo " </div>\n "; } } }
public function block_form_label($context, array $blocks = array()) { // line 206 if (!((isset($context["label"]) ? $context["label"] : null) === false)) { // line 207 if (!(isset($context["compound"]) ? $context["compound"] : null)) { // line 208 $context["label_attr"] = twig_array_merge(isset($context["label_attr"]) ? $context["label_attr"] : null, array("for" => isset($context["id"]) ? $context["id"] : null)); } // line 210 if (isset($context["required"]) ? $context["required"] : null) { // line 211 $context["label_attr"] = twig_array_merge(isset($context["label_attr"]) ? $context["label_attr"] : null, array("class" => trim(($this->getAttribute(isset($context["label_attr"]) ? $context["label_attr"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["label_attr"]) ? $context["label_attr"] : null, "class", array()), "") : "") . " required"))); } // line 213 if (twig_test_empty(isset($context["label"]) ? $context["label"] : null)) { // line 214 if (!twig_test_empty(isset($context["label_format"]) ? $context["label_format"] : null)) { // line 215 $context["label"] = twig_replace_filter(isset($context["label_format"]) ? $context["label_format"] : null, array("%name%" => isset($context["name"]) ? $context["name"] : null, "%id%" => isset($context["id"]) ? $context["id"] : null)); } else { // line 220 $context["label"] = $this->env->getExtension('form')->humanize(isset($context["name"]) ? $context["name"] : null); } } // line 223 echo "<label"; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["label_attr"]) ? $context["label_attr"] : null); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { echo " "; echo twig_escape_filter($this->env, $context["attrname"], "html", null, true); echo "=\""; echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true); echo "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; echo ">"; echo twig_escape_filter($this->env, (isset($context["translation_domain"]) ? $context["translation_domain"] : null) === false ? isset($context["label"]) ? $context["label"] : null : $this->env->getExtension('translator')->trans(isset($context["label"]) ? $context["label"] : null, array(), isset($context["translation_domain"]) ? $context["translation_domain"] : null), "html", null, true); echo "</label>"; } }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8 = $this->env->getExtension("native_profiler"); $__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8->enter($__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "DoctrineBundle:Collector:explain.html.twig")); // line 1 if (twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array")) > 1) { // line 2 echo " "; // line 3 echo " <table style=\"margin: 5px 0;\">\n <thead>\n <tr>\n "; // line 6 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_array_keys_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array"))); foreach ($context['_seq'] as $context["_key"] => $context["label"]) { // line 7 echo " <th>"; echo twig_escape_filter($this->env, $context["label"], "html", null, true); echo "</th>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 9 echo " </tr>\n </thead>\n <tbody>\n "; // line 12 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data")); foreach ($context['_seq'] as $context["_key"] => $context["row"]) { // line 13 echo " <tr>\n "; // line 14 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($context["row"]); foreach ($context['_seq'] as $context["key"] => $context["item"]) { // line 15 echo " <td>"; echo twig_escape_filter($this->env, twig_replace_filter($context["item"], array("," => ", ")), "html", null, true); echo "</td>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 17 echo " </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 19 echo " </tbody>\n </table>\n"; } else { // line 22 echo " "; // line 23 echo " <pre style=\"margin: 5px 0;\">"; // line 24 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data")); foreach ($context['_seq'] as $context["_key"] => $context["row"]) { // line 25 echo twig_escape_filter($this->env, twig_first($this->env, $context["row"]), "html", null, true); echo "\n"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 27 echo "</pre>\n"; } $__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8->leave($__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_c7d283450d281de59a6ed2d7573c1c0a50b91133b531601a6b9ca4ba7588ffbd = $this->env->getExtension("native_profiler"); $__internal_c7d283450d281de59a6ed2d7573c1c0a50b91133b531601a6b9ca4ba7588ffbd->enter($__internal_c7d283450d281de59a6ed2d7573c1c0a50b91133b531601a6b9ca4ba7588ffbd_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "NelmioApiDocBundle::method.html.twig")); // line 1 echo "<li class=\""; echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "method", array())), "html", null, true); echo " operation\" id=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "\">\n <div class=\"heading toggler"; // line 2 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "deprecated", array())) { echo " deprecated"; } echo "\" data-href=\"#"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "\">\n <h3>\n <span class=\"http_method\">\n <i>"; // line 5 echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "method", array())), "html", null, true); echo "</i>\n </span>\n\n "; // line 8 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "deprecated", array())) { // line 9 echo " <span class=\"deprecated\">\n <i>DEPRECATED</i>\n </span>\n "; } // line 13 echo "\n "; // line 14 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "https", array())) { // line 15 echo " <span class=\"icon lock\" title=\"HTTPS\"></span>\n "; } // line 17 echo " "; if ($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "authentication", array())) { // line 18 echo " <span class=\"icon keys\" title=\"Needs "; echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "authenticationRoles", array())) > 0 ? twig_join_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "authenticationRoles", array()), ", ") : "authentication", "html", null, true); echo "\"></span>\n "; } // line 20 echo "\n <span class=\"path\">\n "; // line 22 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "host", array(), "any", true, true)) { // line 23 echo $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "https", array()) ? "https://" : "http://"; // line 24 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "host", array()), "html", null, true); } // line 26 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "uri", array()), "html", null, true); echo "\n </span>\n "; // line 28 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tags", array(), "any", true, true)) { // line 29 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "tags", array())); foreach ($context['_seq'] as $context["tag"] => $context["color_code"]) { // line 30 echo " <span class=\"tag\" "; if (array_key_exists("color_code", $context) && !twig_test_empty($context["color_code"])) { echo "style=\"background-color:"; echo twig_escape_filter($this->env, $context["color_code"], "html", null, true); echo ";\""; } echo ">"; echo twig_escape_filter($this->env, $context["tag"], "html", null, true); echo "</span>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['tag'], $context['color_code'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 32 echo " "; } // line 33 echo " </h3>\n <ul class=\"options\">\n "; // line 35 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "description", array(), "any", true, true)) { // line 36 echo " <li>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "description", array()), "html", null, true); echo "</li>\n "; } // line 38 echo " </ul>\n </div>\n\n <div class=\"content\" style=\"display: "; // line 41 if (array_key_exists("displayContent", $context) && (isset($context["displayContent"]) ? $context["displayContent"] : $this->getContext($context, "displayContent")) == true) { echo "display"; } else { echo "none"; } echo ";\">\n <ul class=\"tabs\">\n "; // line 43 if (isset($context["enableSandbox"]) ? $context["enableSandbox"] : $this->getContext($context, "enableSandbox")) { // line 44 echo " <li class=\"selected\" data-pane=\"content\">Documentation</li>\n <li data-pane=\"sandbox\">Sandbox</li>\n "; } // line 47 echo " </ul>\n\n <div class=\"panes\">\n <div class=\"pane content selected\">\n "; // line 51 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "documentation", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "documentation", array()))) { // line 52 echo " <h4>Documentation</h4>\n <div>"; // line 53 echo $this->env->getExtension('nelmio_api_doc')->markdown($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "documentation", array())); echo "</div>\n "; } // line 55 echo "\n "; // line 56 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "link", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "link", array()))) { // line 57 echo " <h4>Link</h4>\n <div><a href=\""; // line 58 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "link", array()), "html", null, true); echo "\" target=\"_blank\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "link", array()), "html", null, true); echo "</a></div>\n "; } // line 60 echo "\n "; // line 61 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "requirements", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "requirements", array()))) { // line 62 echo " <h4>Requirements</h4>\n <table class=\"fullwidth\">\n <thead>\n <tr>\n <th>Name</th>\n <th>Requirement</th>\n <th>Type</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n "; // line 73 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "requirements", array())); foreach ($context['_seq'] as $context["name"] => $context["infos"]) { // line 74 echo " <tr>\n <td>"; // line 75 echo twig_escape_filter($this->env, $context["name"], "html", null, true); echo "</td>\n <td>"; // line 76 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "requirement", array(), "any", true, true) ? $this->getAttribute($context["infos"], "requirement", array()) : "", "html", null, true); echo "</td>\n <td>"; // line 77 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array(), "any", true, true) ? $this->getAttribute($context["infos"], "dataType", array()) : "", "html", null, true); echo "</td>\n <td>"; // line 78 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array(), "any", true, true) ? $this->getAttribute($context["infos"], "description", array()) : "", "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 81 echo " </tbody>\n </table>\n "; } // line 84 echo "\n "; // line 85 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "filters", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "filters", array()))) { // line 86 echo " <h4>Filters</h4>\n <table class=\"fullwidth\">\n <thead>\n <tr>\n <th>Name</th>\n <th>Information</th>\n </tr>\n </thead>\n <tbody>\n "; // line 95 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "filters", array())); foreach ($context['_seq'] as $context["name"] => $context["infos"]) { // line 96 echo " <tr>\n <td>"; // line 97 echo twig_escape_filter($this->env, $context["name"], "html", null, true); echo "</td>\n <td>\n <table>\n "; // line 100 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($context["infos"]); foreach ($context['_seq'] as $context["key"] => $context["value"]) { // line 101 echo " <tr>\n <td>"; // line 102 echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $context["key"]), "html", null, true); echo "</td>\n <td>"; // line 103 echo twig_escape_filter($this->env, trim(twig_replace_filter(twig_jsonencode_filter($context["value"]), array("\\\\" => "\\")), "\""), "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 106 echo " </table>\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 110 echo " </tbody>\n </table>\n "; } // line 113 echo "\n "; // line 114 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parameters", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "parameters", array()))) { // line 115 echo " <h4>Parameters</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>Parameter</th>\n <th>Type</th>\n <th>Required?</th>\n <th>Format</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n "; // line 127 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "parameters", array())); foreach ($context['_seq'] as $context["name"] => $context["infos"]) { // line 128 echo " "; if (!$this->getAttribute($context["infos"], "readonly", array())) { // line 129 echo " <tr>\n <td>"; // line 130 echo twig_escape_filter($this->env, $context["name"], "html", null, true); echo "</td>\n <td>"; // line 131 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array(), "any", true, true) ? $this->getAttribute($context["infos"], "dataType", array()) : "", "html", null, true); echo "</td>\n <td>"; // line 132 echo $this->getAttribute($context["infos"], "required", array()) ? "true" : "false"; echo "</td>\n <td>"; // line 133 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "format", array()), "html", null, true); echo "</td>\n <td>"; // line 134 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array(), "any", true, true) ? $this->getAttribute($context["infos"], "description", array()) : "", "html", null, true); echo "</td>\n </tr>\n "; } // line 137 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 138 echo " </tbody>\n </table>\n "; } // line 141 echo "\n "; // line 142 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "response", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "response", array()))) { // line 143 echo " <h4>Return</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>Parameter</th>\n <th>Type</th>\n <th>Versions</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n "; // line 154 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "response", array())); foreach ($context['_seq'] as $context["name"] => $context["infos"]) { // line 155 echo " <tr>\n <td>"; // line 156 echo twig_escape_filter($this->env, $context["name"], "html", null, true); echo "</td>\n <td>"; // line 157 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array()), "html", null, true); echo "</td>\n <td>"; // line 158 $this->loadTemplate("NelmioApiDocBundle:Components:version.html.twig", "NelmioApiDocBundle::method.html.twig", 158)->display(array("sinceVersion" => $this->getAttribute($context["infos"], "sinceVersion", array()), "untilVersion" => $this->getAttribute($context["infos"], "untilVersion", array()))); echo "</td>\n <td>"; // line 159 echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 162 echo " </tbody>\n </table>\n "; } // line 165 echo "\n "; // line 166 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "statusCodes", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "statusCodes", array()))) { // line 167 echo " <h4>Status Codes</h4>\n <table class=\"fullwidth\">\n <thead>\n <tr>\n <th>Status Code</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n "; // line 176 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "statusCodes", array())); foreach ($context['_seq'] as $context["status_code"] => $context["descriptions"]) { // line 177 echo " <tr>\n <td><a href=\"http://en.wikipedia.org/wiki/HTTP_"; // line 178 echo twig_escape_filter($this->env, $context["status_code"], "html", null, true); echo "\" target=\"_blank\">"; echo twig_escape_filter($this->env, $context["status_code"], "html", null, true); echo "</a></td>\n <td>\n <ul>\n "; // line 181 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($context["descriptions"]); foreach ($context['_seq'] as $context["_key"] => $context["description"]) { // line 182 echo " <li>"; echo twig_escape_filter($this->env, $context["description"], "html", null, true); echo "</li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['description'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 184 echo " </ul>\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['status_code'], $context['descriptions'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 188 echo " </tbody>\n </table>\n "; } // line 191 echo "\n "; // line 192 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "cache", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "cache", array()))) { // line 193 echo " <h4>Cache</h4>\n <div>"; // line 194 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "cache", array()), "html", null, true); echo "s</div>\n "; } // line 196 echo "\n </div>\n\n "; // line 199 if (isset($context["enableSandbox"]) ? $context["enableSandbox"] : $this->getContext($context, "enableSandbox")) { // line 200 echo " <div class=\"pane sandbox\">\n "; // line 201 if (!(null === $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array())) && $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "https", array()) && $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "secure", array()) != $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "https", array())) { // line 202 echo " Please reload the documentation using the scheme "; if ($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "https", array())) { echo "HTTPS"; } else { echo "HTTP"; } echo " if you want to use the sandbox.\n "; } else { // line 204 echo " <form method=\"\" action=\""; if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "host", array(), "any", true, true)) { echo $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "https", array()) ? "https://" : "http://"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "host", array()), "html", null, true); } echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "uri", array()), "html", null, true); echo "\">\n <fieldset class=\"parameters\">\n <legend>Input</legend>\n "; // line 207 if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "requirements", array(), "any", true, true)) { // line 208 echo " <h4>Requirements</h4>\n "; // line 209 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "requirements", array())); foreach ($context['_seq'] as $context["name"] => $context["infos"]) { // line 210 echo " <p class=\"tuple\">\n <input type=\"text\" class=\"key\" value=\""; // line 211 echo twig_escape_filter($this->env, $context["name"], "html", null, true); echo "\" placeholder=\"Key\" />\n <span>=</span>\n <input type=\"text\" class=\"value\" placeholder=\""; // line 213 if ($this->getAttribute($context["infos"], "description", array(), "any", true, true)) { echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true); } else { echo "Value"; } echo "\" "; if ($this->getAttribute($context["infos"], "default", array(), "any", true, true)) { echo " value=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "default", array()), "html", null, true); echo "\" "; } echo "/> <span class=\"remove\">-</span>\n </p>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 216 echo " "; } // line 217 echo " "; if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "filters", array(), "any", true, true)) { // line 218 echo " <h4>Filters</h4>\n "; // line 219 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "filters", array())); foreach ($context['_seq'] as $context["name"] => $context["infos"]) { // line 220 echo " <p class=\"tuple\">\n <input type=\"text\" class=\"key\" value=\""; // line 221 echo twig_escape_filter($this->env, $context["name"], "html", null, true); echo "\" placeholder=\"Key\" />\n <span>=</span>\n <input type=\"text\" class=\"value\" placeholder=\""; // line 223 if ($this->getAttribute($context["infos"], "description", array(), "any", true, true)) { echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true); } else { echo "Value"; } echo "\" "; if ($this->getAttribute($context["infos"], "default", array(), "any", true, true)) { echo " value=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "default", array()), "html", null, true); echo "\" "; } echo "/> <span class=\"remove\">-</span>\n </p>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 226 echo " "; } // line 227 echo " "; if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "parameters", array(), "any", true, true)) { // line 228 echo " <h4>Parameters</h4>\n "; // line 229 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "parameters", array())); foreach ($context['_seq'] as $context["name"] => $context["infos"]) { // line 230 echo " "; if (!$this->getAttribute($context["infos"], "readonly", array())) { // line 231 echo " <p class=\"tuple\" data-dataType=\""; if ($this->getAttribute($context["infos"], "dataType", array())) { echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array()), "html", null, true); } echo "\" data-format=\""; if ($this->getAttribute($context["infos"], "format", array())) { echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "format", array()), "html", null, true); } echo "\" data-description=\""; if ($this->getAttribute($context["infos"], "description", array())) { echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true); } echo "\">\n <input type=\"text\" class=\"key\" value=\""; // line 232 echo twig_escape_filter($this->env, $context["name"], "html", null, true); echo "\" placeholder=\"Key\" />\n <span>=</span>\n <select class=\"tuple_type\">\n <option value=\"\">Type</option>\n <option value=\"string\">String</option>\n <option value=\"boolean\">Boolean</option>\n <option value=\"file\">File</option>\n </select>\n <input type=\"text\" class=\"value\" placeholder=\""; // line 240 if ($this->getAttribute($context["infos"], "dataType", array())) { echo "["; echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "dataType", array()), "html", null, true); echo "] "; } if ($this->getAttribute($context["infos"], "format", array())) { echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "format", array()), "html", null, true); } if ($this->getAttribute($context["infos"], "description", array())) { echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "description", array()), "html", null, true); } else { echo "Value"; } echo "\" "; if ($this->getAttribute($context["infos"], "default", array(), "any", true, true)) { echo " value=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["infos"], "default", array()), "html", null, true); echo "\" "; } echo "/> <span class=\"remove\">-</span>\n </p>\n "; } // line 243 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['infos'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 244 echo " <button type=\"button\" class=\"add_parameter\">New parameter</button>\n "; } // line 246 echo "\n </fieldset>\n\n <fieldset class=\"headers\">\n "; // line 250 $context["methods"] = twig_split_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "method", array())), "|"); // line 251 echo " "; if (twig_length_filter($this->env, isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods")) > 1) { // line 252 echo " <legend>Method</legend>\n <select name=\"header_method\">\n "; // line 254 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods")); foreach ($context['_seq'] as $context["_key"] => $context["method"]) { // line 255 echo " <option value=\""; echo twig_escape_filter($this->env, $context["method"], "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $context["method"], "html", null, true); echo "</option>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['method'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 257 echo " </select>\n "; } else { // line 259 echo " <input type=\"hidden\" name=\"header_method\" value=\""; echo twig_escape_filter($this->env, twig_join_filter(isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods")), "html", null, true); echo "\" />\n "; } // line 261 echo "\n <legend>Headers</legend>\n\n "; // line 264 if (isset($context["acceptType"]) ? $context["acceptType"] : $this->getContext($context, "acceptType")) { // line 265 echo " <p class=\"tuple\">\n <input type=\"text\" class=\"key\" value=\"Accept\" />\n <span>=</span>\n <input type=\"text\" class=\"value\" value=\""; // line 268 echo twig_escape_filter($this->env, isset($context["acceptType"]) ? $context["acceptType"] : $this->getContext($context, "acceptType"), "html", null, true); echo "\" /> <span class=\"remove\">-</span>\n </p>\n "; } // line 271 echo "\n <p class=\"tuple\">\n <input type=\"text\" class=\"key\" placeholder=\"Key\" />\n <span>=</span>\n <input type=\"text\" class=\"value\" placeholder=\"Value\" /> <span class=\"remove\">-</span>\n </p>\n\n <button type=\"button\" class=\"add_header\">New header</button>\n </fieldset>\n\n <fieldset class=\"request-content\">\n <legend>Content</legend>\n\n <textarea class=\"content\" placeholder=\"Content set here will override the parameters that do not match the url\"></textarea>\n\n <p class=\"tuple\">\n <input type=\"text\" class=\"key content-type\" value=\"Content-Type\" disabled=\"disabled\" />\n <span>=</span>\n <input type=\"text\" class=\"value\" placeholder=\"Value\" />\n <button type=\"button\" class=\"set-content-type\">Set header</button> <small>Replaces header if set</small>\n </p>\n </fieldset>\n\n <div class=\"buttons\">\n <input type=\"submit\" value=\"Try!\" />\n </div>\n </form>\n\n <script type=\"text/x-tmpl\" class=\"parameters_tuple_template\">\n <p class=\"tuple\">\n <input type=\"text\" class=\"key\" placeholder=\"Key\" />\n <span>=</span>\n <select class=\"tuple_type\">\n <option value=\"\">Type</option>\n <option value=\"string\">String</option>\n <option value=\"boolean\">Boolean</option>\n <option value=\"file\">File</option>\n </select>\n <input type=\"text\" class=\"value\" placeholder=\"Value\" /> <span class=\"remove\">-</span>\n </p>\n </script>\n\n <script type=\"text/x-tmpl\" class=\"headers_tuple_template\">\n <p class=\"tuple\">\n <input type=\"text\" class=\"key\" placeholder=\"Key\" />\n <span>=</span>\n <input type=\"text\" class=\"value\" placeholder=\"Value\" /> <span class=\"remove\">-</span>\n </p>\n </script>\n\n\n <div class=\"result\">\n <h4>Request URL</h4>\n <pre class=\"url\"></pre>\n\n <h4>Response Headers <small>[<a href=\"\" class=\"to-expand\">Expand</a>]</small> <small class=\"profiler\">[<a href=\"\" class=\"profiler-link\" target=\"_blank\">Profiler</a>]</small></h4>\n <pre class=\"headers to-expand\"></pre>\n\n <h4>Response Body <small>[<a href=\"\" class=\"to-raw\">Raw</a>]</small></h4>\n <pre class=\"response prettyprint\"></pre>\n </div>\n "; } // line 333 echo " </div>\n "; } // line 335 echo " </div>\n </div>\n</li>\n"; $__internal_c7d283450d281de59a6ed2d7573c1c0a50b91133b531601a6b9ca4ba7588ffbd->leave($__internal_c7d283450d281de59a6ed2d7573c1c0a50b91133b531601a6b9ca4ba7588ffbd_prof); }
public function getrender_log_message($__log_index__ = null, $__log__ = null, $__is_deprecation__ = false, ...$__varargs__) { $context = $this->env->mergeGlobals(array("log_index" => $__log_index__, "log" => $__log__, "is_deprecation" => $__is_deprecation__, "varargs" => $__varargs__)); $blocks = array(); ob_start(); try { $__internal_e3a48ea477df3582fb835c64ca25d824bd73bf29514a037d20987c514445ba1d = $this->env->getExtension("native_profiler"); $__internal_e3a48ea477df3582fb835c64ca25d824bd73bf29514a037d20987c514445ba1d->enter($__internal_e3a48ea477df3582fb835c64ca25d824bd73bf29514a037d20987c514445ba1d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_log_message")); // line 154 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "message", array()), "html", null, true); echo "\n\n "; // line 156 if (isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation")) { // line 157 echo " "; $context["stack"] = twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "stack", array(), "any", true, true) ? _twig_default_filter(twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "stack", array()), array()) : array(); // line 158 echo " "; $context["id"] = "sf-call-stack-" . (isset($context["log_index"]) ? $context["log_index"] : $this->getContext($context, "log_index")); // line 159 echo "\n "; // line 160 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "errorCount", array(), "any", true, true)) { // line 161 echo " <span class=\"text-small text-bold\">("; echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context", array()), "errorCount", array()), "html", null, true); echo " times)</span>\n "; } // line 163 echo "\n "; // line 164 if (isset($context["stack"]) ? $context["stack"] : $this->getContext($context, "stack")) { // line 165 echo " <button class=\"btn-link text-small sf-toggle\" data-toggle-selector=\"#"; echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "\" data-toggle-alt-content=\"Hide stack trace\">Show stack trace</button>\n "; } // line 167 echo "\n "; // line 168 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["stack"]) ? $context["stack"] : $this->getContext($context, "stack")); foreach ($context['_seq'] as $context["index"] => $context["call"]) { if ($context["index"] > 1) { // line 169 echo " "; if ($context["index"] == 2) { // line 170 echo " <ul class=\"sf-call-stack\" id=\""; echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "\" class=\"hidden\">\n "; } // line 172 echo "\n "; // line 173 if (twig_template_get_attributes($this, $context["call"], "class", array(), "any", true, true)) { // line 174 echo " "; $context["from"] = $this->env->getExtension('code')->abbrClass(twig_template_get_attributes($this, $context["call"], "class", array())) . "::" . $this->env->getExtension('code')->abbrMethod(twig_template_get_attributes($this, $context["call"], "function", array())); // line 175 echo " "; } elseif (twig_template_get_attributes($this, $context["call"], "function", array(), "any", true, true)) { // line 176 echo " "; $context["from"] = $this->env->getExtension('code')->abbrMethod(twig_template_get_attributes($this, $context["call"], "function", array())); // line 177 echo " "; } elseif (twig_template_get_attributes($this, $context["call"], "file", array(), "any", true, true)) { // line 178 echo " "; $context["from"] = twig_template_get_attributes($this, $context["call"], "file", array()); // line 179 echo " "; } else { // line 180 echo " "; $context["from"] = "-"; // line 181 echo " "; } // line 182 echo "\n "; // line 183 $context["file_name"] = twig_template_get_attributes($this, $context["call"], "file", array(), "any", true, true) && twig_template_get_attributes($this, $context["call"], "line", array(), "any", true, true) ? twig_last($this->env, twig_split_filter($this->env, twig_replace_filter(twig_template_get_attributes($this, $context["call"], "file", array()), array("\\" => "/")), "/")) : ""; // line 184 echo "\n <li>\n "; // line 186 echo isset($context["from"]) ? $context["from"] : $this->getContext($context, "from"); echo "\n "; // line 187 if (isset($context["file_name"]) ? $context["file_name"] : $this->getContext($context, "file_name")) { // line 188 echo " <span class=\"text-small\">(called from "; echo $this->env->getExtension('code')->formatFile(twig_template_get_attributes($this, $context["call"], "file", array()), twig_template_get_attributes($this, $context["call"], "line", array()), isset($context["file_name"]) ? $context["file_name"] : $this->getContext($context, "file_name")); echo ")</span>\n "; } // line 190 echo " </li>\n\n "; // line 192 if ($context["index"] == twig_length_filter($this->env, isset($context["stack"]) ? $context["stack"] : $this->getContext($context, "stack")) - 1) { // line 193 echo " </ul>\n "; } // line 195 echo " "; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['index'], $context['call'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 196 echo " "; } else { // line 197 echo " "; if (twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : null, "context", array(), "any", true, true) && !twig_test_empty(twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context", array()))) { // line 198 echo " <span class=\"metadata\">\n <strong>Context</strong>: "; // line 199 echo twig_escape_filter($this->env, twig_replace_filter(twig_jsonencode_filter(twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context", array()), 64 | 256), array("{\"" => "{ \"", "\"}" => "\" }", "\":{" => "\": {", "\":\"" => "\": \"", "\",\"" => "\", \"")), "html", null, true); // line 201 echo "\n </span>\n "; } // line 204 echo " "; } $__internal_e3a48ea477df3582fb835c64ca25d824bd73bf29514a037d20987c514445ba1d->leave($__internal_e3a48ea477df3582fb835c64ca25d824bd73bf29514a037d20987c514445ba1d_prof); } catch (Exception $e) { ob_end_clean(); throw $e; } return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 if (twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, 0, array(), "array")) > 1) { // line 2 echo " "; // line 3 echo " <table style=\"margin: 5px 0;\">\n <thead>\n <tr>\n "; // line 6 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_array_keys_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : null, 0, array(), "array"))); foreach ($context['_seq'] as $context["_key"] => $context["label"]) { // line 7 echo " <th>"; echo twig_escape_filter($this->env, $context["label"], "html", null, true); echo "</th>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 9 echo " </tr>\n </thead>\n <tbody>\n "; // line 12 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : null); foreach ($context['_seq'] as $context["_key"] => $context["row"]) { // line 13 echo " <tr>\n "; // line 14 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($context["row"]); foreach ($context['_seq'] as $context["key"] => $context["item"]) { // line 15 echo " <td>"; echo twig_escape_filter($this->env, twig_replace_filter($context["item"], array("," => ", ")), "html", null, true); echo "</td>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 17 echo " </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 19 echo " </tbody>\n </table>\n"; } else { // line 22 echo " "; // line 23 echo " <pre style=\"margin: 5px 0;\">"; // line 24 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : null); foreach ($context['_seq'] as $context["_key"] => $context["row"]) { // line 25 echo twig_escape_filter($this->env, twig_first($this->env, $context["row"]), "html", null, true); echo "\n"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 27 echo "</pre>\n"; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<li class=\"config-select-wrap\">\n "; // line 2 $context["selected_title"] = (isset($context["configuration"]) ? $context["configuration"] : null) == "default" ? $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_BASE_OUTLINE") : ""; // line 3 echo " "; $context["selected_value"] = (isset($context["configuration"]) ? $context["configuration"] : null) == "default" ? "default" : ""; // line 4 echo " "; $context["selected_editable"] = true; // line 5 echo " <select id=\"configuration-selector\" class=\"config-select\" data-selectize-ajaxify data-selectize=\""; echo twig_escape_filter($this->env, twig_jsonencode_filter(array("allowEmptyOption" => true)), "html_attr"); echo "\">\n <optgroup label=\""; // line 6 echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_GLOBAL_DEFAULTS"), "html", null, true); echo "\">\n <option value=\"default\"\n "; // line 8 if ((isset($context["configuration"]) ? $context["configuration"] : null) == "default") { echo "selected=\"selected\""; } // line 9 echo " data-data=\""; echo twig_escape_filter($this->env, twig_jsonencode_filter(array("params" => array("navbar" => true), "url" => $this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "route", array(0 => "configurations/default", 1 => array_key_exists("configuration_page", $context) ? _twig_default_filter(isset($context["configuration_page"]) ? $context["configuration_page"] : null, "styles") : "styles"), "method"))), "html_attr"); echo "\">\n "; // line 10 echo "Base Outline"; echo "\n </option>\n </optgroup>\n\n "; // line 14 $context["user_conf"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "configurations", array()), "user", array()); // line 15 echo " "; if ($this->getAttribute(isset($context["user_conf"]) ? $context["user_conf"] : null, "count", array())) { // line 16 echo " <optgroup label=\""; echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_THEME_OUTLINES"), "html", null, true); echo "\">\n "; // line 17 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["user_conf"]) ? $context["user_conf"] : null); foreach ($context['_seq'] as $context["name"] => $context["title"]) { // line 18 echo " "; if ($context["name"] == (isset($context["configuration"]) ? $context["configuration"] : null)) { // line 19 echo " "; $context["selected_title"] = twig_escape_filter($this->env, $context["title"]); // line 20 echo " "; $context["selected_value"] = twig_escape_filter($this->env, $context["name"]); // line 21 echo " "; } // line 22 echo " <option value=\""; echo twig_escape_filter($this->env, $context["name"]); echo "\"\n "; // line 23 if ($context["name"] == (isset($context["configuration"]) ? $context["configuration"] : null)) { echo "selected=\"selected\""; } // line 24 echo " data-data=\""; echo twig_escape_filter($this->env, twig_jsonencode_filter(array("params" => array("navbar" => true), "url" => $this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "route", array(0 => "configurations", 1 => twig_escape_filter($this->env, $context["name"]), 2 => array_key_exists("configuration_page", $context) ? _twig_default_filter(isset($context["configuration_page"]) ? $context["configuration_page"] : null, "styles") : "styles"), "method"))), "html_attr"); echo "\">\n "; // line 25 echo twig_escape_filter($this->env, $context["title"]); echo "\n </option>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['title'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 28 echo " </optgroup>\n "; } // line 30 echo "\n "; // line 31 $context["system_conf"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "configurations", array()), "system", array()); // line 32 echo " "; if ($this->getAttribute(isset($context["system_conf"]) ? $context["system_conf"] : null, "count", array())) { // line 33 echo " <optgroup label=\""; echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_SYSTEM_OUTLINES"), "html", null, true); echo "\">\n "; // line 34 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["system_conf"]) ? $context["system_conf"] : null); foreach ($context['_seq'] as $context["name"] => $context["title"]) { // line 35 echo " "; if ($context["name"] == (isset($context["configuration"]) ? $context["configuration"] : null)) { // line 36 echo " "; $context["selected_title"] = twig_escape_filter($this->env, $context["title"]); // line 37 echo " "; $context["selected_value"] = twig_escape_filter($this->env, $context["name"]); // line 38 echo " "; $context["selected_editable"] = false; // line 39 echo " "; } // line 40 echo " <option value=\""; echo twig_escape_filter($this->env, $context["name"]); echo "\"\n "; // line 41 if ($context["name"] == (isset($context["configuration"]) ? $context["configuration"] : null)) { echo "selected=\"selected\""; } // line 42 echo " data-data=\""; echo twig_escape_filter($this->env, twig_jsonencode_filter(array("params" => array("navbar" => true), "url" => $this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "route", array(0 => "configurations", 1 => twig_escape_filter($this->env, $context["name"]), 2 => array_key_exists("configuration_page", $context) ? _twig_default_filter(isset($context["configuration_page"]) ? $context["configuration_page"] : null, "styles") : "styles"), "method"))), "html_attr"); echo "\">\n "; // line 43 echo twig_escape_filter($this->env, $context["title"]); echo "\n </option>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['title'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 46 echo " </optgroup>\n "; } // line 48 echo " </select>\n "; // line 49 if (isset($context["selected_editable"]) ? $context["selected_editable"] : null) { // line 50 echo " <span data-title-editable=\""; echo twig_escape_filter($this->env, isset($context["selected_title"]) ? $context["selected_title"] : null, "html", null, true); echo "\" data-g-config-href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "route", array(0 => "configurations", 1 => isset($context["selected_value"]) ? $context["selected_value"] : null, 2 => "rename"), "method")); echo "\" class=\"title g-conf-title-edit\">"; echo twig_escape_filter($this->env, isset($context["selected_title"]) ? $context["selected_title"] : null, "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" => isset($context["selected_title"]) ? $context["selected_title"] : null)), "html", null, true); echo "\" data-title-editable=\""; echo twig_escape_filter($this->env, isset($context["selected_title"]) ? $context["selected_title"] : null, "html", null, true); echo "\" data-title-edit=\"\"></i>\n "; } // line 52 echo "</li>\n"; }
public function block_money_widget($context, array $blocks = array()) { // line 145 echo twig_replace_filter(isset($context["money_pattern"]) ? $context["money_pattern"] : $this->getContext($context, "money_pattern"), array("{{ widget }}" => $this->renderBlock("form_widget_simple", $context, $blocks))); }
public function getinput_datetime($__opt__ = null, ...$__varargs__) { $context = $this->env->mergeGlobals(array("opt" => $__opt__, "varargs" => $__varargs__)); $blocks = array(); ob_start(); try { // line 134 echo " "; $context["__internal_1f9741efa590d4de3ca3d725ca990fa7fbe57fb5bf7bb309785fe3bf47a15e92"] = $this; // line 135 echo "\n "; // line 136 $context["class"] = twig_replace_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "class", array()), "") : "", array("form-control" => "")) . " form-control"; // line 137 echo "\n "; // line 138 $context["attr_data"] = array("id" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "id", array()), "name" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "name", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "name", array()), $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "id", array())) : $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "id", array()), "value" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "value", array()), "type" => "hidden", "class" => "datetime", "data_notice" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "notice", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "notice", array()), "") : ""); // line 146 echo "\n "; // line 147 $context["attr_date"] = array("type" => "text", "disabled" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "disabled", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "disabled", array()), false) : false, "required" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "required", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "required", array()), false) : false, "class" => trim((isset($context["class"]) ? $context["class"] : null) . " datepicker"), "data_errortext" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "errortext", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "errortext", array()), "") : "", "data_field_options" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "options", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "options", array()), false) : false ? twig_jsonencode_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "options", array())) : ""); // line 155 echo "\n "; // line 156 $context["attr_time"] = array("type" => "text", "disabled" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "disabled", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "disabled", array()), false) : false, "required" => $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "required", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "required", array()), false) : false, "class" => trim((isset($context["class"]) ? $context["class"] : null) . " timepicker"), "title" => $this->env->getExtension('Bolt')->trans("Time in 24h/12h format"), "style" => "margin-right: 6px;"); // line 164 echo "\n <input"; // line 165 echo $context["__internal_1f9741efa590d4de3ca3d725ca990fa7fbe57fb5bf7bb309785fe3bf47a15e92"]->getattr(isset($context["attr_data"]) ? $context["attr_data"] : null); echo ">\n <div class=\"input-group\">\n <span class=\"input-group-btn\">\n <button class=\"btn btn-tertiary\" type=\"button\">\n <i class=\"fa fa-calendar\"></i>\n </button>\n </span>\n <input"; // line 172 echo $context["__internal_1f9741efa590d4de3ca3d725ca990fa7fbe57fb5bf7bb309785fe3bf47a15e92"]->getattr(isset($context["attr_date"]) ? $context["attr_date"] : null); echo ">\n "; // line 173 if (!$this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "has_time", array(), "any", true, true) || $this->getAttribute(isset($context["opt"]) ? $context["opt"] : null, "has_time", array()) != false) { // line 174 echo " <input"; echo $context["__internal_1f9741efa590d4de3ca3d725ca990fa7fbe57fb5bf7bb309785fe3bf47a15e92"]->getattr(isset($context["attr_time"]) ? $context["attr_time"] : null); echo ">\n "; } // line 176 echo " <button class=\"btn btn-default btn-xs\" type=\"button\" style=\"margin: 4px 0 0 0;\">\n <i class=\"fa fa-close\"></i>\n </button>\n </div>\n"; } catch (Exception $e) { ob_end_clean(); throw $e; } return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); }
public function block_form_label($context, array $blocks = array()) { $__internal_a708b6267b28a5c96cc9126b24566c73028691e342192f5b037f0194911ebe09 = $this->env->getExtension("native_profiler"); $__internal_a708b6267b28a5c96cc9126b24566c73028691e342192f5b037f0194911ebe09->enter($__internal_a708b6267b28a5c96cc9126b24566c73028691e342192f5b037f0194911ebe09_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "form_label")); // line 211 if (!((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")) === false)) { // line 212 if (!(isset($context["compound"]) ? $context["compound"] : $this->getContext($context, "compound"))) { // line 213 $context["label_attr"] = twig_array_merge(isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr"), array("for" => isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"))); } // line 215 if (isset($context["required"]) ? $context["required"] : $this->getContext($context, "required")) { // line 216 $context["label_attr"] = twig_array_merge(isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr"), array("class" => trim(($this->getAttribute(isset($context["label_attr"]) ? $context["label_attr"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["label_attr"]) ? $context["label_attr"] : null, "class", array()), "") : "") . " required"))); } // line 218 if (twig_test_empty(isset($context["label"]) ? $context["label"] : $this->getContext($context, "label"))) { // line 219 if (!twig_test_empty(isset($context["label_format"]) ? $context["label_format"] : $this->getContext($context, "label_format"))) { // line 220 $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 225 $context["label"] = $this->env->getExtension('form')->humanize(isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")); } } // line 228 echo "<label"; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr")); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { echo " "; echo twig_escape_filter($this->env, $context["attrname"], "html", null, true); echo "=\""; echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true); echo "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; echo ">"; echo twig_escape_filter($this->env, (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain")) === false ? isset($context["label"]) ? $context["label"] : $this->getContext($context, "label") : $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 "</label>"; } $__internal_a708b6267b28a5c96cc9126b24566c73028691e342192f5b037f0194911ebe09->leave($__internal_a708b6267b28a5c96cc9126b24566c73028691e342192f5b037f0194911ebe09_prof); }
public function block_form_label($context, array $blocks = array()) { $__internal_9454d83ec5ef064e5f633ef501c8419ab31a855460e9ef914d6e3a8b48843f40 = $this->env->getExtension("native_profiler"); $__internal_9454d83ec5ef064e5f633ef501c8419ab31a855460e9ef914d6e3a8b48843f40->enter($__internal_9454d83ec5ef064e5f633ef501c8419ab31a855460e9ef914d6e3a8b48843f40_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "form_label")); // line 206 if (!((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")) === false)) { // line 207 if (!(isset($context["compound"]) ? $context["compound"] : $this->getContext($context, "compound"))) { // line 208 $context["label_attr"] = twig_array_merge(isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr"), array("for" => isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"))); } // line 210 if (isset($context["required"]) ? $context["required"] : $this->getContext($context, "required")) { // line 211 $context["label_attr"] = twig_array_merge(isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr"), array("class" => trim(($this->getAttribute(isset($context["label_attr"]) ? $context["label_attr"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["label_attr"]) ? $context["label_attr"] : null, "class", array()), "") : "") . " required"))); } // line 213 if (twig_test_empty(isset($context["label"]) ? $context["label"] : $this->getContext($context, "label"))) { // line 214 if (!twig_test_empty(isset($context["label_format"]) ? $context["label_format"] : $this->getContext($context, "label_format"))) { // line 215 $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 220 $context["label"] = $this->env->getExtension('form')->humanize(isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")); } } // line 223 echo "<label"; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr")); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { echo " "; echo twig_escape_filter($this->env, $context["attrname"], "html", null, true); echo "=\""; echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true); echo "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; echo ">"; echo twig_escape_filter($this->env, (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain")) === false ? isset($context["label"]) ? $context["label"] : $this->getContext($context, "label") : $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 "</label>"; } $__internal_9454d83ec5ef064e5f633ef501c8419ab31a855460e9ef914d6e3a8b48843f40->leave($__internal_9454d83ec5ef064e5f633ef501c8419ab31a855460e9ef914d6e3a8b48843f40_prof); }
public function block_global_attributes($context, array $blocks = array()) { // line 44 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array(), "any", true, true)) { echo " class=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array())); echo "\" "; } // line 45 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "id", array(), "any", true, true)) { echo " id=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "id", array())); echo "\" "; } // line 46 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "style", array(), "any", true, true)) { echo " style=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "style", array())); echo "\" "; } // line 47 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "title", array(), "any", true, true)) { echo " title=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "title", array())); echo "\" "; } // line 48 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "override_target", array(), "any", true, true)) { echo " data-override-target=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "override_target", array()), "html_attr"); echo "\" "; } // line 49 echo " aria-label=\""; echo twig_escape_filter($this->env, 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 "\"\n "; }