• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP twig_array_merge函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: doDisplay

 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));
 }
开发者ID:scisahaha,项目名称:generator-craft,代码行数:30,代码来源:def07c47446cf35135712952b2680794a0455ef146d605605ca430a2420e.php


示例2: block_user_block

 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);
 }
开发者ID:LamaDelRay,项目名称:test_symf,代码行数:28,代码来源:6d1f8415ba65beb999d2a3bd44b260094f2bd2ca1953cbd3f6ffaecb35a5dd4b.php


示例3: block_user_block

 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);
 }
开发者ID:manudatta12,项目名称:POC,代码行数:28,代码来源:84698edd0c78437b40bbddb68a1e856deeb9b0d552670a6e14ac099af2849c24.php


示例4: doDisplay

 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>";
 }
开发者ID:austinpapp,项目名称:push-notifications-temp,代码行数:27,代码来源:90de0e56b8c90c28731c09556f9d73bc1c54942920beb09dd36e6223871b.php


示例5: block_user_block

 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);
 }
开发者ID:manudatta12,项目名称:POC,代码行数:28,代码来源:e744c09ef8c6a361c499aecf4a3a3c1e41547b62be01ea976331c9ea30d7ecb4.php


示例6: block_user_block

 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    ";
     }
 }
开发者ID:saberyounis,项目名称:Sonata-Project,代码行数:25,代码来源:5db44f265628cfc73b748faad639dd24e89930812292b51b7af6471bef81.php


示例7: block_generic_label

 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 " ";
 }
开发者ID:FARIDMESCAM,项目名称:Manufacture,代码行数:35,代码来源:6cf4d049cc59724a9f7f360478317f77ad9ace77bda4751c4d584e0348b1.php


示例8: doDisplay

 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";
 }
开发者ID:austinpapp,项目名称:push-notifications-temp,代码行数:32,代码来源:2d70cf184126014917689ff63fe3c4182669860fb273db56175e5d1c226b.php


示例9: block_user_block

 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);
 }
开发者ID:viral810,项目名称:ngSimpleCMS,代码行数:28,代码来源:c4551948309b23adf9d2ee9934f13a9493cb7b593eafa41584d517e0edd1bb7d.php


示例10: block_user_block

 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);
 }
开发者ID:LamaDelRay,项目名称:test_symf,代码行数:28,代码来源:f8574b8f4f7c26ac3067d7f5b25786643f4324d03fb471b0aff8e29809af1f24.php


示例11: block_max_per_page

 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";
 }
开发者ID:serialken,项目名称:BugTracker,代码行数:33,代码来源:b4e9d809fafa829ccbbacb553fefc19f71015fa7b92156e24ca94d99574a.php


示例12: block_linkElement

 public function block_linkElement($context, array $blocks = array())
 {
     // line 23
     echo "    ";
     $context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_htabs.html.twig", 23);
     // line 24
     echo "    ";
     $context["itemLink"] = $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "uri", array());
     // line 25
     echo "    ";
     if ($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "hasChildren", array()) && $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "displayChildren", array())) {
         // line 26
         echo "        ";
         $context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("data-toggle" => "tab"));
         // line 27
         echo "        ";
         $context["itemLink"] = "#" . trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "name", array()), array(" " => "_", "#" => "_"))));
         // line 28
         echo "    ";
     } else {
         // line 29
         echo "        ";
         $context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("class" => $context["oro_menu"]->getadd_attribute_values(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, "class", array(0 => "empty"))));
         // line 32
         echo "    ";
     }
     // line 33
     echo "    <a href=\"";
     echo twig_escape_filter($this->env, isset($context["itemLink"]) ? $context["itemLink"] : null, "html", null, true);
     echo "\"";
     echo $context["oro_menu"]->getattributes(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null);
     echo ">";
     $this->displayBlock("label", $context, $blocks);
     echo "</a>\n";
 }
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:35,代码来源:c8a2b9c23cb1c77de66f25decb624aa532a5fdb7264d6d7299163ce4f9a47d82.php


示例13: doDisplay

 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);
 }
开发者ID:kibimimi,项目名称:monprojettest,代码行数:57,代码来源:b49bcd78f733226bceab91165ee8cc33128cc89522025173dbacf81a89b25cae.php


示例14: block_navbar_tabs_content

 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";
 }
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:10,代码来源:d2d043d71124e8d7dce46a910b9a6fd3d5825b3a255e99d79b20bcb2f15bb5a6.php


示例15: block_global_attributes

 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";
 }
开发者ID:hamishhossack,项目名称:the-little-festival,代码行数:10,代码来源:d4c38b2ac9a732b986f2df04646610a007f5e49fff029ca4abaf2c105015dd0a.php


示例16: block_input

 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";
 }
开发者ID:joseclavijo,项目名称:gsclube,代码行数:10,代码来源:9a1543f13cbab68bafefe0866926628e9495570c73a1aa4396355d8a7ae0b8f2.php


示例17: block_root


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP twig_capitalize_string_filter函数代码示例发布时间:2022-05-23
下一篇:
PHP twfy_debug_timestamp函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap