protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     $context["title"] = \Craft\Craft::t("Entries");
     // line 3
     $context["elementType"] = "Entry";
     // line 6
     $context["sections"] = $this->getAttribute($this->getAttribute($this->getContext($context, "craft"), "sections"), "getEditableSections", array(), "method");
     // line 7
     $context["newEntrySections"] = array();
     // line 9
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getContext($context, "sections"));
     foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
         // line 10
         if ($this->getAttribute($this->getContext($context, "section"), "type") != "single" && $this->getAttribute($this->getContext($context, "currentUser"), "can", array(0 => "createEntries:" . $this->getAttribute($this->getContext($context, "section"), "id")), "method")) {
             // line 11
             $context["newEntrySections"] = twig_array_merge($this->getContext($context, "newEntrySections"), array(0 => $this->getContext($context, "section")));
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 38
     if (array_key_exists("sectionHandle", $context)) {
         // line 39
         \Craft\craft()->templates->includeJs("window.defaultSectionHandle = \"" . $this->getContext($context, "sectionHandle") . "\";");
     }
     $this->parent->display($context, array_merge($this->blocks, $blocks));
 }
 public function block_user_block($context, array $blocks = array())
 {
     $__internal_2e82b8561b6709514040b7a04b08ecdc92951d24c44dcf2ed2ea84529f4066dc = $this->env->getExtension("native_profiler");
     $__internal_2e82b8561b6709514040b7a04b08ecdc92951d24c44dcf2ed2ea84529f4066dc->enter($__internal_2e82b8561b6709514040b7a04b08ecdc92951d24c44dcf2ed2ea84529f4066dc_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "user_block"));
     // line 2
     echo "    ";
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array())) {
         // line 3
         echo "        ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "html", null, true);
         echo "\n\n        ";
         // line 5
         if ($this->env->getExtension('security')->isGranted("ROLE_PREVIOUS_ADMIN") && $this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array())) {
             // line 6
             echo "            <a href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "route", array()), twig_array_merge($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "parameters", array()), array("_switch_user" => "_exit"))), "html", null, true);
             echo "\">(exit)</a>\n        ";
         }
         // line 8
         echo "\n        - <a href=\"";
         // line 9
         echo $this->env->getExtension('routing')->getUrl("sonata_user_admin_security_logout");
         echo "\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("user_block_logout", array(), "SonataUserBundle"), "html", null, true);
         echo "</a>\n    ";
     }
     $__internal_2e82b8561b6709514040b7a04b08ecdc92951d24c44dcf2ed2ea84529f4066dc->leave($__internal_2e82b8561b6709514040b7a04b08ecdc92951d24c44dcf2ed2ea84529f4066dc_prof);
 }
 public function block_user_block($context, array $blocks = array())
 {
     $__internal_6acb4c7f7af66eb58528fcab169dc9edc1afc8c2f6ae808ad997f78f5982aadd = $this->env->getExtension("native_profiler");
     $__internal_6acb4c7f7af66eb58528fcab169dc9edc1afc8c2f6ae808ad997f78f5982aadd->enter($__internal_6acb4c7f7af66eb58528fcab169dc9edc1afc8c2f6ae808ad997f78f5982aadd_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "user_block"));
     // line 2
     echo "    ";
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array())) {
         // line 3
         echo "        ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "html", null, true);
         echo "\n\n        ";
         // line 5
         if ($this->env->getExtension('security')->isGranted("ROLE_PREVIOUS_ADMIN") && $this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array())) {
             // line 6
             echo "            <a href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "route", array()), twig_array_merge($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "parameters", array()), array("_switch_user" => "_exit"))), "html", null, true);
             echo "\">(exit)</a>\n        ";
         }
         // line 8
         echo "\n        - <a href=\"";
         // line 9
         echo $this->env->getExtension('routing')->getUrl("sonata_user_admin_security_logout");
         echo "\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("user_block_logout", array(), "SonataUserBundle"), "html", null, true);
         echo "</a>\n    ";
     }
     $__internal_6acb4c7f7af66eb58528fcab169dc9edc1afc8c2f6ae808ad997f78f5982aadd->leave($__internal_6acb4c7f7af66eb58528fcab169dc9edc1afc8c2f6ae808ad997f78f5982aadd_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<li class=\"";
     echo twig_escape_filter($this->env, array_key_exists("name", $context) ? isset($context["name"]) ? $context["name"] : $this->getContext($context, "name") : "", "html", null, true);
     echo " ";
     echo (isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")) == (isset($context["current"]) ? $context["current"] : $this->getContext($context, "current")) ? "active" : "";
     echo " ";
     echo array_key_exists("clickable", $context) && !(isset($context["clickable"]) ? $context["clickable"] : $this->getContext($context, "clickable")) ? "disabled" : "";
     echo "\">\n    ";
     // line 2
     if ((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")) != (isset($context["current"]) ? $context["current"] : $this->getContext($context, "current")) && (!array_key_exists("clickable", $context) || (isset($context["clickable"]) ? $context["clickable"] : $this->getContext($context, "clickable")))) {
         // line 3
         echo "        <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath(isset($context["route"]) ? $context["route"] : $this->getContext($context, "route"), twig_array_merge(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), array(isset($context["pageParameterName"]) ? $context["pageParameterName"] : $this->getContext($context, "pageParameterName") => isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, array_key_exists("text", $context) ? isset($context["text"]) ? $context["text"] : $this->getContext($context, "text") : (isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "html", null, true);
         echo "</a>\n    ";
     } else {
         // line 5
         echo "        <span>";
         echo twig_escape_filter($this->env, array_key_exists("text", $context) ? isset($context["text"]) ? $context["text"] : $this->getContext($context, "text") : (isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "html", null, true);
         echo "</span>\n    ";
     }
     // line 7
     echo "</li>";
 }
 public function block_user_block($context, array $blocks = array())
 {
     $__internal_1137af9700aa3dad3167f889aecf79e905747b20038039988df8935cb94f4982 = $this->env->getExtension("native_profiler");
     $__internal_1137af9700aa3dad3167f889aecf79e905747b20038039988df8935cb94f4982->enter($__internal_1137af9700aa3dad3167f889aecf79e905747b20038039988df8935cb94f4982_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "user_block"));
     // line 2
     echo "    ";
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array())) {
         // line 3
         echo "        ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "html", null, true);
         echo "\n\n        ";
         // line 5
         if ($this->env->getExtension('security')->isGranted("ROLE_PREVIOUS_ADMIN") && $this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array())) {
             // line 6
             echo "            <a href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "route", array()), twig_array_merge($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "parameters", array()), array("_switch_user" => "_exit"))), "html", null, true);
             echo "\">(exit)</a>\n        ";
         }
         // line 8
         echo "\n        - <a href=\"";
         // line 9
         echo $this->env->getExtension('routing')->getUrl("sonata_user_admin_security_logout");
         echo "\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("user_block_logout", array(), "SonataUserBundle"), "html", null, true);
         echo "</a>\n    ";
     }
     $__internal_1137af9700aa3dad3167f889aecf79e905747b20038039988df8935cb94f4982->leave($__internal_1137af9700aa3dad3167f889aecf79e905747b20038039988df8935cb94f4982_prof);
 }
 public function block_user_block($context, array $blocks = array())
 {
     // line 2
     echo "    ";
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array())) {
         // line 3
         echo "        ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "html", null, true);
         echo "\n\n        ";
         // line 5
         if ($this->env->getExtension('security')->isGranted("ROLE_PREVIOUS_ADMIN") && $this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array())) {
             // line 6
             echo "            <a href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "route", array()), twig_array_merge($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "parameters", array()), array("_switch_user" => "_exit"))), "html", null, true);
             echo "\">(exit)</a>\n        ";
         }
         // line 8
         echo "\n        - <a href=\"";
         // line 9
         echo $this->env->getExtension('routing')->getUrl("sonata_user_admin_security_logout");
         echo "\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("user_block_logout", array(), "SonataUserBundle"), "html", null, true);
         echo "</a>\n    ";
     }
 }
 public function block_generic_label($context, array $blocks = array())
 {
     // line 14
     echo " ";
     ob_start();
     // line 15
     echo "     ";
     if (isset($context["required"]) ? $context["required"] : $this->getContext($context, "required")) {
         // line 16
         echo "         ";
         $context["attr"] = twig_array_merge(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr"), array("class" => ($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class"), "") : "") . " required"));
         // line 17
         echo "     ";
     }
     // line 18
     echo "     <label";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr"));
     foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
         echo " ";
         echo twig_escape_filter($this->env, isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname"), "html", null, true);
         echo "=\"";
         echo twig_escape_filter($this->env, isset($context["attrvalue"]) ? $context["attrvalue"] : $this->getContext($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, $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>\n ";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
     // line 20
     echo " ";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["attr"] = twig_array_merge(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr"), array("class" => ($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array()), "") : "") . " modal"));
     // line 2
     echo "<div";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "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 ">\n    <div class=\"modal-header\">\n        ";
     // line 4
     $this->displayBlock('header', $context, $blocks);
     // line 5
     echo "    </div>\n    <div class=\"modal-body\">\n        ";
     // line 7
     $this->displayBlock('body', $context, $blocks);
     // line 8
     echo "    </div>\n    <div class=\"modal-footer\">\n        ";
     // line 10
     $this->displayBlock('footer', $context, $blocks);
     // line 11
     echo "    </div>\n</div>\n";
 }
 public function block_user_block($context, array $blocks = array())
 {
     $__internal_313efc5e2dd3eb13597f52742aac0794fd98a3f1864a75a1c582453d88a245cc = $this->env->getExtension("native_profiler");
     $__internal_313efc5e2dd3eb13597f52742aac0794fd98a3f1864a75a1c582453d88a245cc->enter($__internal_313efc5e2dd3eb13597f52742aac0794fd98a3f1864a75a1c582453d88a245cc_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "user_block"));
     // line 2
     echo "    ";
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array())) {
         // line 3
         echo "        ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "html", null, true);
         echo "\n\n        ";
         // line 5
         if ($this->env->getExtension('security')->isGranted("ROLE_PREVIOUS_ADMIN") && $this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array())) {
             // line 6
             echo "            <a href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "route", array()), twig_array_merge($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "parameters", array()), array("_switch_user" => "_exit"))), "html", null, true);
             echo "\">(exit)</a>\n        ";
         }
         // line 8
         echo "\n        - <a href=\"";
         // line 9
         echo $this->env->getExtension('routing')->getUrl("sonata_user_admin_security_logout");
         echo "\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("user_block_logout", array(), "SonataUserBundle"), "html", null, true);
         echo "</a>\n    ";
     }
     $__internal_313efc5e2dd3eb13597f52742aac0794fd98a3f1864a75a1c582453d88a245cc->leave($__internal_313efc5e2dd3eb13597f52742aac0794fd98a3f1864a75a1c582453d88a245cc_prof);
 }
 public function block_user_block($context, array $blocks = array())
 {
     $__internal_d8d00d64d17e0e212bd4294e7b2c2ae79acf46074ebe270d64857a95d4c81179 = $this->env->getExtension("native_profiler");
     $__internal_d8d00d64d17e0e212bd4294e7b2c2ae79acf46074ebe270d64857a95d4c81179->enter($__internal_d8d00d64d17e0e212bd4294e7b2c2ae79acf46074ebe270d64857a95d4c81179_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "user_block"));
     // line 2
     echo "    ";
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array())) {
         // line 3
         echo "        ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "html", null, true);
         echo "\n\n        ";
         // line 5
         if ($this->env->getExtension('security')->isGranted("ROLE_PREVIOUS_ADMIN") && $this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array())) {
             // line 6
             echo "            <a href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "route", array()), twig_array_merge($this->getAttribute($this->getAttribute(isset($context["sonata_user"]) ? $context["sonata_user"] : $this->getContext($context, "sonata_user"), "impersonating", array()), "parameters", array()), array("_switch_user" => "_exit"))), "html", null, true);
             echo "\">(exit)</a>\n        ";
         }
         // line 8
         echo "\n        - <a href=\"";
         // line 9
         echo $this->env->getExtension('routing')->getUrl("sonata_user_admin_security_logout");
         echo "\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("user_block_logout", array(), "SonataUserBundle"), "html", null, true);
         echo "</a>\n    ";
     }
     $__internal_d8d00d64d17e0e212bd4294e7b2c2ae79acf46074ebe270d64857a95d4c81179->leave($__internal_d8d00d64d17e0e212bd4294e7b2c2ae79acf46074ebe270d64857a95d4c81179_prof);
 }
 public function block_max_per_page($context, array $blocks = array())
 {
     // line 23
     echo "    <label class=\"control-label\" for=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "uniqid"), "html", null, true);
     echo "_per_page\">";
     echo $this->env->getExtension('translator')->getTranslator()->trans("label_per_page", array(), "SonataAdminBundle");
     echo "</label>\n    <select class=\"per-page small\" id=\"";
     // line 24
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "uniqid"), "html", null, true);
     echo "_per_page\" style=\"width: auto; height: auto\">\n        ";
     // line 25
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "getperpageoptions"));
     foreach ($context['_seq'] as $context["_key"] => $context["per_page"]) {
         // line 26
         echo "            <option ";
         if ((isset($context["per_page"]) ? $context["per_page"] : $this->getContext($context, "per_page")) == $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "datagrid"), "pager"), "maxperpage")) {
             echo "selected=\"selected\"";
         }
         echo " value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "generateUrl", array(0 => "list", 1 => array("filter" => twig_array_merge($this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "datagrid"), "values"), array("_page" => 1, "_per_page" => isset($context["per_page"]) ? $context["per_page"] : $this->getContext($context, "per_page"))))), "method"), "html", null, true);
         echo "\">\n                ";
         // line 27
         echo twig_escape_filter($this->env, isset($context["per_page"]) ? $context["per_page"] : $this->getContext($context, "per_page"), "html", null, true);
         echo "\n            </option>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['per_page'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 30
     echo "    </select>\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";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_61567dded09642dfe4f4e11ed919ef4f764a79304a2b2997344c800929a13ae3 = $this->env->getExtension("native_profiler");
     $__internal_61567dded09642dfe4f4e11ed919ef4f764a79304a2b2997344c800929a13ae3->enter($__internal_61567dded09642dfe4f4e11ed919ef4f764a79304a2b2997344c800929a13ae3_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@CraueFormFlow/FormFlow/stepList_content.html.twig"));
     // line 3
     if (!twig_test_empty($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getStepLabels", array(), "method"))) {
         // line 4
         echo "<ol class=\"craue_formflow_steplist\">\n\t\t";
         // line 5
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getStepLabels", array(), "method"));
         $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["_key"] => $context["stepLabel"]) {
             // line 6
             echo "\t\t\t<li";
             $this->displayBlock("craue_flow_stepList_class", $context, $blocks);
             echo ">";
             // line 7
             if ($this->env->getExtension('craue_formflow')->isStepLinkable(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), $this->getAttribute($context["loop"], "index", array()))) {
                 // line 8
                 echo "<a href=\"";
                 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "attributes", array()), "get", array(0 => "_route"), "method"), $this->env->getExtension('craue_formflow')->addDynamicStepNavigationParameter(twig_array_merge($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "query", array()), "all", array()), $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "attributes", array()), "get", array(0 => "_route_params"), "method")), isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), $this->getAttribute($context["loop"], "index", array()))), "html", null, true);
                 echo "\">";
                 // line 11
                 $this->displayBlock("craue_flow_stepLabel", $context, $blocks);
                 // line 12
                 echo "</a>";
             } else {
                 // line 14
                 $this->displayBlock("craue_flow_stepLabel", $context, $blocks);
             }
             // line 16
             echo "</li>\n\t\t";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stepLabel'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 18
         echo "\t</ol>";
     }
     $__internal_61567dded09642dfe4f4e11ed919ef4f764a79304a2b2997344c800929a13ae3->leave($__internal_61567dded09642dfe4f4e11ed919ef4f764a79304a2b2997344c800929a13ae3_prof);
 }
 public function block_navbar_tabs_content($context, array $blocks = array())
 {
     // line 21
     echo "    ";
     $context["options"] = twig_array_merge(isset($context["options"]) ? $context["options"] : null, array("template" => "OroNavigationBundle:Menu:_dots_tabs-content.html.twig", "depth" => 1));
     // line 22
     echo "    ";
     echo $this->env->getExtension('knp_menu')->render(isset($context["item"]) ? $context["item"] : null, isset($context["options"]) ? $context["options"] : null);
     echo "\n";
 }
 public function block_global_attributes($context, array $blocks = array())
 {
     // line 4
     echo "    data-grav-selectize=\"";
     echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array(), "any", true, true) ? twig_array_merge($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "selectize", array()), array("create" => true)) : array("create" => true)), "html_attr");
     echo "\"\n    ";
     // line 5
     $this->displayParentBlock("global_attributes", $context, $blocks);
     echo "\n";
 }
 public function block_input($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $context["field"] = twig_array_merge(array("icon" => "fa-file-image-o", "filter" => ".(jpe?g|gif|png|svg)\$"), isset($context["field"]) ? $context["field"] : null);
     // line 5
     echo "    ";
     $this->displayParentBlock("input", $context, $blocks);
     echo "\n";
 }
 public function block_root($context, array $blocks = array())
 {
     // line 4
     $context["listAttributes"] = twig_array_merge($this->getAttribute(isset($context["item"]) ? $context["item"] : $this->getContext($context, "item"), "childrenAttributes", array()), array("class" => "nav navbar-nav"));
     // line 5
     $context["request"] = $this->getAttribute(isset($context["item"]) ? $context["item"] : $this->getContext($context, "item"), "getExtra", array(0 => "request"), "method");
     // line 6
     echo "    ";
     $this->displayBlock("list", $context, $blocks);
 }
 public function block_input($context, array $blocks = array())
 {
     // line 10
     echo "        ";
     $context["field"] = twig_array_merge(isset($context["field"]) ? $context["field"] : null, array("style" => "background-color: " . (isset($context["value"]) ? $context["value"] : null), "pattern" => "^#([a-fA-F0-9]{6})|(rgba\\(\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*((0.[0-9]+)|[01])\\s*\\))\$"));
     // line 11
     echo "        <div class=\"colorpicker ";
     echo $this->getAttribute($this, "contrast", array(0 => $this->env->getExtension('GantryTwig')->colorContrastFunc(twig_lower_filter($this->env, isset($context["value"]) ? $context["value"] : null))), "method");
     echo "\">\n        <input\n            ";
     // line 14
     echo "            type=\"text\"\n            name=\"";
     // line 15
     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 16
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", ")));
     echo "\"\n            ";
     // line 18
     echo "            ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n            ";
     // line 20
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), array(0 => "on", 1 => "off"))) {
         echo "autocomplete=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()));
         echo "\"";
     }
     // line 21
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "autofocus=\"autofocus\"";
     }
     // line 22
     echo "            ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array(), "any", true, true)) {
         echo "pattern=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array()));
         echo "\"";
     }
     // line 23
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "disabled=\"disabled\"";
     }
     // line 24
     echo "            ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array(), "any", true, true)) {
         echo "list=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array()));
         echo "\"";
     }
     // line 25
     echo "            />\n            <i class=\"fa fa-tint\"></i>\n        </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_63ac200978ea1e5f0835c73daa7a5952119d1febb3017a612b02190339c17530 = $this->env->getExtension("native_profiler");
     $__internal_63ac200978ea1e5f0835c73daa7a5952119d1febb3017a612b02190339c17530->enter($__internal_63ac200978ea1e5f0835c73daa7a5952119d1febb3017a612b02190339c17530_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@EasyAdmin/default/includes/_actions.html.twig"));
     // line 1
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["actions"]) ? $context["actions"] : $this->getContext($context, "actions"));
     foreach ($context['_seq'] as $context["_key"] => $context["action"]) {
         // line 2
         echo "    ";
         if ("list" == $this->getAttribute($context["action"], "name", array())) {
             // line 3
             echo "        ";
             $context["action_href"] = $this->getAttribute(isset($context["request_parameters"]) ? $context["request_parameters"] : null, "referer", array(), "any", true, true) ? urldecode($this->getAttribute(isset($context["request_parameters"]) ? $context["request_parameters"] : $this->getContext($context, "request_parameters"), "referer", array())) : $this->env->getExtension('routing')->getPath("easyadmin", twig_array_merge(isset($context["request_parameters"]) ? $context["request_parameters"] : $this->getContext($context, "request_parameters"), array("action" => "list")));
             // line 4
             echo "    ";
         } elseif ("method" == $this->getAttribute($context["action"], "type", array())) {
             // line 5
             echo "        ";
             $context["action_href"] = $this->env->getExtension('routing')->getPath("easyadmin", twig_array_merge(isset($context["request_parameters"]) ? $context["request_parameters"] : $this->getContext($context, "request_parameters"), array("action" => $this->getAttribute($context["action"], "name", array()), "id" => isset($context["item_id"]) ? $context["item_id"] : $this->getContext($context, "item_id"))));
             // line 6
             echo "    ";
         } elseif ("route" == $this->getAttribute($context["action"], "type", array())) {
             // line 7
             echo "        ";
             $context["action_href"] = $this->env->getExtension('routing')->getPath($this->getAttribute($context["action"], "name", array()), twig_array_merge(isset($context["request_parameters"]) ? $context["request_parameters"] : $this->getContext($context, "request_parameters"), array("action" => $this->getAttribute($context["action"], "name", array()), "id" => isset($context["item_id"]) ? $context["item_id"] : $this->getContext($context, "item_id"))));
             // line 8
             echo "    ";
         }
         // line 9
         echo "\n    <a class=\"";
         // line 10
         echo twig_escape_filter($this->env, $this->getAttribute($context["action"], "css_class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["action"], "css_class", array()), "") : "", "html", null, true);
         echo "\" href=\"";
         echo twig_escape_filter($this->env, isset($context["action_href"]) ? $context["action_href"] : $this->getContext($context, "action_href"), "html", null, true);
         echo "\">";
         // line 11
         if ($this->getAttribute($context["action"], "icon", array())) {
             echo "<i class=\"fa fa-";
             echo twig_escape_filter($this->env, $this->getAttribute($context["action"], "icon", array()), "html", null, true);
             echo "\"></i> ";
         }
         // line 12
         if ($this->getAttribute($context["action"], "label", array(), "any", true, true) && !twig_test_empty($this->getAttribute($context["action"], "label", array()))) {
             // line 13
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["action"], "label", array()), twig_array_merge(isset($context["trans_parameters"]) ? $context["trans_parameters"] : $this->getContext($context, "trans_parameters"), array("%entity_id%" => isset($context["item_id"]) ? $context["item_id"] : $this->getContext($context, "item_id"))), "messages"), "html", null, true);
         }
         // line 15
         echo "</a>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['action'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     $__internal_63ac200978ea1e5f0835c73daa7a5952119d1febb3017a612b02190339c17530->leave($__internal_63ac200978ea1e5f0835c73daa7a5952119d1febb3017a612b02190339c17530_prof);
 }
 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 block_content_right($context, array $blocks = array())
 {
     // line 3
     echo "<div class=\"col-xs-12\" align=\"center\">\n    <ul class=\"pagination\">\n            ";
     // line 5
     if ($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "page", array()) > 1) {
         // line 6
         echo "                <li>\n                    <a href=\"";
         // line 7
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route", array()), twig_array_merge($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route_params", array()), array("page" => 1))), "html", null, true);
         echo "\">Début</a>\n                </li>\n                <li>\n                <a href=\"";
         // line 11
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route", array()), twig_array_merge($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route_params", array()), array("page" => $this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "page", array()) - 1))), "html", null, true);
         echo "\">«</a>\n                </li>\n            ";
     }
     // line 15
     echo "            ";
     // line 16
     echo "            ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(range(max($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "page", array()) - 4, 1), min($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "page", array()) + 4, $this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "pages_count", array()))));
     foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
         // line 18
         echo "                    <li";
         if ($context["p"] == $this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "page", array())) {
             echo " class=\"active\"";
         }
         echo ">\n                        <a href=\"";
         // line 19
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route", array()), twig_array_merge($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route_params", array()), array("page" => $context["p"]))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $context["p"], "html", null, true);
         echo "</a>\n                    </li>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 23
     echo "            ";
     if ($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "page", array()) < $this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "pages_count", array())) {
         // line 24
         echo "                <li>\n                    <a href=\"";
         // line 25
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route", array()), twig_array_merge($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route_params", array()), array("page" => $this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "page", array()) + 1))), "html", null, true);
         echo "\">»</a>\n                </li>\n                <li>\n                    <a href=\"";
         // line 29
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route", array()), twig_array_merge($this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "route_params", array()), array("page" => $this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : $this->getContext($context, "pagination"), "pages_count", array())))), "html", null, true);
         echo "\">Fin</a>\n                </li>\n            ";
     }
     // line 33
     echo "    </ul>\n</div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["actions"]) ? $context["actions"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["action"]) {
         // line 2
         echo "    ";
         if ("list" == $this->getAttribute($context["action"], "name", array())) {
             // line 3
             echo "        ";
             $context["action_href"] = $this->getAttribute(isset($context["request_parameters"]) ? $context["request_parameters"] : null, "referer", array(), "any", true, true) ? urldecode($this->getAttribute(isset($context["request_parameters"]) ? $context["request_parameters"] : null, "referer", array())) : $this->env->getExtension('routing')->getPath("easyadmin", twig_array_merge(isset($context["request_parameters"]) ? $context["request_parameters"] : null, array("action" => "list")));
             // line 4
             echo "    ";
         } elseif ("method" == $this->getAttribute($context["action"], "type", array())) {
             // line 5
             echo "        ";
             $context["action_href"] = $this->env->getExtension('routing')->getPath("easyadmin", twig_array_merge(isset($context["request_parameters"]) ? $context["request_parameters"] : null, array("action" => $this->getAttribute($context["action"], "name", array()), "id" => isset($context["item_id"]) ? $context["item_id"] : null)));
             // line 6
             echo "    ";
         } elseif ("route" == $this->getAttribute($context["action"], "type", array())) {
             // line 7
             echo "        ";
             $context["action_href"] = $this->env->getExtension('routing')->getPath($this->getAttribute($context["action"], "name", array()), twig_array_merge(isset($context["request_parameters"]) ? $context["request_parameters"] : null, array("action" => $this->getAttribute($context["action"], "name", array()), "id" => isset($context["item_id"]) ? $context["item_id"] : null)));
             // line 8
             echo "    ";
         }
         // line 9
         echo "\n    <a class=\"";
         // line 10
         echo twig_escape_filter($this->env, $this->getAttribute($context["action"], "css_class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["action"], "css_class", array()), "") : "", "html", null, true);
         echo "\" href=\"";
         echo twig_escape_filter($this->env, isset($context["action_href"]) ? $context["action_href"] : null, "html", null, true);
         echo "\">";
         // line 11
         if ($this->getAttribute($context["action"], "icon", array())) {
             echo "<i class=\"fa fa-";
             echo twig_escape_filter($this->env, $this->getAttribute($context["action"], "icon", array()), "html", null, true);
             echo "\"></i> ";
         }
         // line 12
         if ($this->getAttribute($context["action"], "label", array(), "any", true, true) && !twig_test_empty($this->getAttribute($context["action"], "label", array()))) {
             // line 13
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["action"], "label", array()), twig_array_merge(isset($context["trans_parameters"]) ? $context["trans_parameters"] : null, array("%entity_id%" => isset($context["item_id"]) ? $context["item_id"] : null)), "messages"), "html", null, true);
         }
         // line 15
         echo "</a>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['action'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["taxonomies"] = null === (isset($context["taxonomies"]) ? $context["taxonomies"] : null) ? $this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "data", array(0 => "site"), "method"), "taxonomies", array()) : (isset($context["taxonomies"]) ? $context["taxonomies"] : null);
     // line 2
     $context["parentname"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array());
     // line 3
     echo "\n";
     // line 4
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["taxonomies"]) ? $context["taxonomies"] : null);
     $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["_key"] => $context["name"]) {
         // line 5
         echo "\n    ";
         // line 6
         $context["value"] = $this->env->getExtension('GravTwigExtension')->arrayFunc($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "value", array(0 => "header.taxonomy." . $context["name"]), "method", true, true) ? _twig_default_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "value", array(0 => "header.taxonomy." . $context["name"]), "method"), array()) : array());
         // line 7
         echo "    ";
         $context["sub_taxonomies"] = twig_get_array_keys_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["grav"]) ? $context["grav"] : null, "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"], array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["grav"]) ? $context["grav"] : null, "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"]), array()) : array());
         // line 8
         echo "    ";
         $context["list"] = twig_array_merge(twig_array_merge(array(), isset($context["sub_taxonomies"]) ? $context["sub_taxonomies"] : null), isset($context["value"]) ? $context["value"] : null);
         // line 9
         echo "\n    ";
         // line 10
         $context["field"] = array("type" => "select", "classes" => "fancy create", "label" => twig_capitalize_string_filter($this->env, $context["name"]), "name" => (isset($context["parentname"]) ? $context["parentname"] : null) . "." . $context["name"], "multiple" => true, "options" => isset($context["list"]) ? $context["list"] : null, "selectize" => array("create" => true));
         // line 21
         echo "\n    ";
         // line 22
         $this->loadTemplate(array(0 => "forms/fields/select/select.html.twig"), "forms/fields/taxonomy/taxonomy.html.twig", 22)->display($context);
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['name'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 3
     $context["originalValue"] = isset($context["value"]) ? $context["value"] : null;
     // line 4
     $context["value"] = null === (isset($context["value"]) ? $context["value"] : null) ? $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "default", array()) : (isset($context["value"]) ? $context["value"] : null);
     // line 5
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "use", array()) == "keys" && $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "default", array())) {
         // line 6
         $context["value"] = twig_array_merge($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "default", array()), isset($context["value"]) ? $context["value"] : null);
     }
     // line 1
     $this->parent->display($context, array_merge($this->blocks, $blocks));
 }
 public function block_root($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $context["listAttributes"] = $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "childrenAttributes", array());
     // line 5
     echo "    ";
     $context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:dropdown.html.twig", 5);
     // line 6
     echo "    ";
     $context["listAttributes"] = twig_array_merge(isset($context["listAttributes"]) ? $context["listAttributes"] : null, array("class" => $context["oro_menu"]->getadd_attribute_values(isset($context["listAttributes"]) ? $context["listAttributes"] : null, "class", array(0 => "dropdown-menu")), "role" => "menu", "aria-labelledby" => "dropdownMenu"));
     // line 12
     echo "    ";
     $this->displayBlock("list", $context, $blocks);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     $context["sub"] = array();
     // line 3
     echo "\n";
     // line 4
     if ($this->env->getExtension('Bolt')->isAllowed("extensions||extensions:config")) {
         // line 5
         echo "\n    ";
         // line 7
         echo "    ";
         $context["sub"] = twig_array_merge(isset($context["sub"]) ? $context["sub"] : null, array(0 => array("icon" => "fa:cubes", "label" => $this->env->getExtension('Bolt')->trans("View/install Extensions"), "link" => $this->env->getExtension('routing')->getPath("extend", array()), "isallowed" => "extensions"), 1 => array("icon" => "fa:cog", "label" => $this->env->getExtension('Bolt')->trans("Configure Extensions"), "link" => $this->env->getExtension('routing')->getPath("files", array("namespace" => "config", "path" => "extensions")), "isallowed" => "extensions:config")));
         // line 21
         echo "\n    ";
         // line 23
         echo "    ";
         if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "extensions", array()), "getMenuoptions", array())) > 0) {
             // line 24
             echo "        ";
             $context["sub"] = twig_array_merge(isset($context["sub"]) ? $context["sub"] : null, array(0 => "-"));
             // line 25
             echo "    ";
         }
         // line 26
         echo "\n\n";
     }
     // line 29
     echo "\n";
     // line 31
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "extensions", array()), "getMenuoptions", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["extension"]) {
         // line 32
         echo "    ";
         $context["sub"] = twig_array_merge(isset($context["sub"]) ? $context["sub"] : null, array(0 => array("icon" => $this->getAttribute($context["extension"], "icon", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["extension"], "icon", array()), "fa:briefcase") : "fa:briefcase", "label" => $this->getAttribute($context["extension"], "label", array()), "link" => $this->getAttribute($context["extension"], "path", array()))));
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['extension'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 40
     echo "\n";
     // line 41
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["nav"]) ? $context["nav"] : null, "submenu", array(0 => "fa:cubes", 1 => $this->env->getExtension('Bolt')->trans("Extras"), 2 => isset($context["sub"]) ? $context["sub"] : null, 3 => (isset($context["page_nav"]) ? $context["page_nav"] : null) == "Settings/ExtendBolt"), "method"), "html", null, true);
     echo "\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["localeParamName"] = array_key_exists("localeParamName", $context) ? _twig_default_filter(isset($context["localeParamName"]) ? $context["localeParamName"] : null, "dataLocale") : "dataLocale";
     // line 2
     echo "<div id=\"locale-switcher\" class=\"btn-group\">\n    <span class=\"btn dropdown-toggle\" data-toggle=\"dropdown\">\n        ";
     // line 4
     echo $this->env->getExtension('pim_locale_extension')->flag($this->env, isset($context["currentLocaleCode"]) ? $context["currentLocaleCode"] : null);
     echo "\n        <i class=\"icon-caret-down\"></i>\n    </span>\n    <ul class=\"dropdown-menu\">\n        ";
     // line 8
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["locales"]) ? $context["locales"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
         // line 9
         echo "            <li";
         if ((isset($context["currentLocaleCode"]) ? $context["currentLocaleCode"] : null) == $this->getAttribute($context["locale"], "code", array())) {
             echo " class=\"active\"";
         }
         echo ">\n                ";
         // line 10
         $context["routeParams"] = twig_array_merge(array_key_exists("routeParams", $context) ? _twig_default_filter(isset($context["routeParams"]) ? $context["routeParams"] : null, array()) : array(), array(isset($context["localeParamName"]) ? $context["localeParamName"] : null => $this->getAttribute($context["locale"], "code", array())));
         // line 11
         echo "                <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath(isset($context["routeName"]) ? $context["routeName"] : null, isset($context["routeParams"]) ? $context["routeParams"] : null), "html", null, true);
         echo "\"\n                   title=\"";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('pim_locale_extension')->localeLabel($this->getAttribute($context["locale"], "code", array())), "html", null, true);
         echo "\">\n                    <span class=\"indicator\">\n                        ";
         // line 14
         if ((isset($context["currentLocaleCode"]) ? $context["currentLocaleCode"] : null) == $this->getAttribute($context["locale"], "code", array())) {
             // line 15
             echo "                            <i class=\"icon-circle\"></i>\n                        ";
         }
         // line 17
         echo "                    </span>\n                    ";
         // line 18
         echo $this->env->getExtension('pim_locale_extension')->flag($this->env, $this->getAttribute($context["locale"], "code", array()));
         echo "\n                </a>\n            </li>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['locale'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 22
     echo "    </ul>\n</div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     echo "\n";
     // line 3
     $context["option"] = array("class" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array()), "") : "", "height" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "height", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "height", array()), "") : "", "label" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array()), "") : "", "required" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "required", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "required", array()), false) : false, "errortext" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "error", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "error", array()), "") : "", "info" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array()), "") : "", "options" => $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array(), "any", false, true), "ckeditor", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array(), "any", false, true), "ckeditor", array()), "") : "");
     // line 12
     echo "\n";
     // line 14
     echo "\n";
     // line 15
     $context["param"] = array();
     // line 16
     echo "\n";
     // line 17
     if ($this->getAttribute(isset($context["option"]) ? $context["option"] : null, "height", array())) {
         // line 18
         echo "    ";
         $context["param"] = twig_array_merge(isset($context["param"]) ? $context["param"] : null, array("height" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "height", array())));
     }
     // line 20
     echo "\n";
     // line 21
     if ($this->getAttribute(isset($context["option"]) ? $context["option"] : null, "options", array())) {
         // line 22
         echo "    ";
         $context["param"] = twig_array_merge(isset($context["param"]) ? $context["param"] : null, array("ckeditor" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "options", array())));
     }
     // line 24
     echo "\n";
     // line 25
     $context["attr_html"] = array("class" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "class", array()) . " ckeditor", "data_param" => isset($context["param"]) ? $context["param"] : null ? twig_jsonencode_filter(isset($context["param"]) ? $context["param"] : null) : "", "name" => isset($context["name"]) ? $context["name"] : null, "id" => isset($context["key"]) ? $context["key"] : null, "required" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "required", array()), "data_errortext" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "errortext", array()));
     // line 33
     echo "\n";
     // line 35
     echo "\n<fieldset class=\"html\">\n    <div class=\"col-sm-12\">\n        <label class=\"control-label\">";
     // line 38
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "info", array()) ? $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "infopop", array(0 => isset($context["labelkey"]) ? $context["labelkey"] : null, 1 => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "info", array())), "method") : (isset($context["labelkey"]) ? $context["labelkey"] : null), "html", null, true);
     echo "</label>\n        <textarea";
     // line 39
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "attr", array(0 => isset($context["attr_html"]) ? $context["attr_html"] : null), "method"), "html", null, true);
     echo ">";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method"), "") : "", "html", null, true);
     echo "</textarea>\n    </div>\n</fieldset>\n";
 }
 public function getfiles_path($__pathsegments__ = null, $__namespace__ = null, $__pathoptions__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("pathsegments" => $__pathsegments__, "namespace" => $__namespace__, "pathoptions" => $__pathoptions__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         // line 2
         echo "    ";
         $context["namespace_path"] = $this->env->getExtension('routing')->getPath("files", isset($context["pathoptions"]) ? $context["pathoptions"] : null);
         // line 3
         echo "    <p>\n        ";
         // line 4
         echo $this->env->getExtension('Bolt')->trans("Path:");
         echo "\n        <a href=\"";
         // line 5
         echo twig_escape_filter($this->env, isset($context["namespace_path"]) ? $context["namespace_path"] : null, "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, isset($context["namespace"]) ? $context["namespace"] : null, "html", null, true);
         echo "</a>\n\n        ";
         // line 7
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["pathsegments"]) ? $context["pathsegments"] : null);
         foreach ($context['_seq'] as $context["path"] => $context["segment"]) {
             // line 8
             echo "            /\n            ";
             // line 9
             $context["pathoptions"] = twig_array_merge(isset($context["pathoptions"]) ? $context["pathoptions"] : null, array("path" => $context["path"], "namespace" => isset($context["namespace"]) ? $context["namespace"] : null));
             // line 10
             echo "            <a href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("files", isset($context["pathoptions"]) ? $context["pathoptions"] : null), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $context["segment"], "html", null, true);
             echo "</a>\n        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['path'], $context['segment'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 12
         echo "    </p>\n";
     } 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 3
     $context["options"] = array();
     // line 4
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "themes", array()));
     foreach ($context['_seq'] as $context["slug"] => $context["package"]) {
         // line 5
         $context["option"] = array($context["slug"] => $this->getAttribute($this->getAttribute($context["package"], "toArray", array(), "method"), "name", array()));
         // line 6
         $context["options"] = twig_array_merge(isset($context["options"]) ? $context["options"] : null, isset($context["option"]) ? $context["option"] : null);
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['slug'], $context['package'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 1
     $this->parent->display($context, array_merge($this->blocks, $blocks));
 }