当前位置: 首页>>代码示例>>PHP>>正文


PHP twig_truncate_filter函数代码示例

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


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

示例1: lunrGenerator

 public function lunrGenerator(Twig_Environment $env, $posts)
 {
     $data = array('entries' => array());
     foreach ($posts as $post) {
         $meta = $post->meta();
         if (isset($meta['exclude_from_search'])) {
             continue;
         }
         $blocks = $post->blocks();
         if (isset($blocks['content'])) {
             $content = $this->compactFilter(strip_tags($blocks['content']));
         } else {
             $content = '';
         }
         if (isset($meta['description'])) {
             $description = $meta['description'];
         } else {
             $description = twig_truncate_filter($env, $content, 280);
         }
         $data['entries'][] = array('title' => $this->compactFilter(strip_tags($post->title())), 'url' => $post->url(), 'date' => date('Y-m-d H:i:s O', $post->date()), 'body' => htmlentities($content, ENT_COMPAT, "UTF-8", $double_encode = false), 'description' => htmlentities($description, ENT_COMPAT, "UTF-8", $double_encode = false));
     }
     $result = json_encode($data, JSON_PRETTY_PRINT, 5);
     if (false === $result) {
         $lastError = json_last_error();
         switch ($lastError) {
             case JSON_ERROR_NONE:
                 return 'No error has occurred';
             case JSON_ERROR_DEPTH:
                 return 'The maximum stack depth has been exceeded    ';
             case JSON_ERROR_STATE_MISMATCH:
                 return 'Invalid or malformed JSON';
             case JSON_ERROR_CTRL_CHAR:
                 return 'Control character error, possibly incorrectly encoded';
             case JSON_ERROR_SYNTAX:
                 return 'Syntax error';
             case JSON_ERROR_UTF8:
                 return 'Malformed UTF-8 characters, possibly incorrectly encoded';
             case JSON_ERROR_RECURSION:
                 return 'One or more recursive references in the value to be encoded';
             case JSON_ERROR_INF_OR_NAN:
                 return 'One or more NAN or INF values in the value to be encoded';
             case JSON_ERROR_UNSUPPORTED_TYPE:
                 return 'A value of a type that cannot be encoded was given';
             default:
                 return "Error #:" . $lastError;
         }
     }
     return $result;
 }
开发者ID:sitobcn82,项目名称:blog,代码行数:49,代码来源:Text.php

示例2: block_title

 public function block_title($context, array $blocks = array())
 {
     // line 15
     echo "    ";
     if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) {
         // line 16
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     } else {
         // line 18
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     }
 }
开发者ID:saberyounis,项目名称:Sonata-Project,代码行数:16,代码来源:b86cec180d94f969ba97b634a9eb00cde43cadfc80b406bdcffd2d1770c7.php

示例3: block_title

 public function block_title($context, array $blocks = array())
 {
     $__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed = $this->env->getExtension("native_profiler");
     $__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed->enter($__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title"));
     // line 15
     echo "    ";
     if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) {
         // line 16
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     } else {
         // line 18
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     }
     $__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed->leave($__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed_prof);
 }
开发者ID:manudatta12,项目名称:POC,代码行数:19,代码来源:b52cbe05b559d4249aae2bc7a429079b1da760a60c6b89f04c711b4b60f6789b.php

示例4: block_title

 public function block_title($context, array $blocks = array())
 {
     $__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8 = $this->env->getExtension("native_profiler");
     $__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8->enter($__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title"));
     // line 15
     echo "    ";
     if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) {
         // line 16
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     } else {
         // line 18
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     }
     $__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8->leave($__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8_prof);
 }
开发者ID:stuckiest,项目名称:SymfonyBlog,代码行数:19,代码来源:8ea7eb74cb8e1bfc218e9b2ec80b54f457e347327e52371e19b0102df71524f0.php

示例5: block_title

 public function block_title($context, array $blocks = array())
 {
     $__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0 = $this->env->getExtension("native_profiler");
     $__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0->enter($__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title"));
     // line 15
     echo "    ";
     if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) {
         // line 16
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     } else {
         // line 18
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     }
     $__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0->leave($__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0_prof);
 }
开发者ID:shine2lay,项目名称:jack,代码行数:19,代码来源:1e4555f0066dd1c7f7ff0289f69e258a0b56facaaa9fa1e1dedd9830c9a68cf5.php

示例6: block_title

 public function block_title($context, array $blocks = array())
 {
     $__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0 = $this->env->getExtension("native_profiler");
     $__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0->enter($__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title"));
     // line 15
     echo "    ";
     if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) {
         // line 16
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     } else {
         // line 18
         echo "        ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true);
         echo "\n    ";
     }
     $__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0->leave($__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0_prof);
 }
开发者ID:APanteleychuk,项目名称:symf_pro,代码行数:19,代码来源:a030f47041ecf9eb0588d60f5e082f3c20f0899613aa6e93c454e01ce478befa.php

示例7: block_field

 public function block_field($context, array $blocks = array())
 {
     $__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9 = $this->env->getExtension("native_profiler");
     $__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9->enter($__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field"));
     // line 4
     if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
         // line 5
         echo " \n    ";
     } else {
         // line 7
         if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) {
             // line 8
             $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array());
             // line 9
             echo "            ";
             $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30;
             // line 10
             echo "            ";
             $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false;
             // line 11
             echo "            ";
             $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "...";
             // line 12
             echo "            ";
             echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator"));
         } else {
             // line 14
             if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) {
                 // line 15
                 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"));
             }
             // line 17
             echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value");
             echo "\n        ";
         }
         // line 19
         echo "    ";
     }
     $__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9->leave($__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9_prof);
 }
开发者ID:shine2lay,项目名称:jack,代码行数:40,代码来源:e33931e297128d0d99484f1091675dc7032bc7e42f689f0d7f3e87c5ea86807d.php

示例8: block_field

 public function block_field($context, array $blocks = array())
 {
     $__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0 = $this->env->getExtension("native_profiler");
     $__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0->enter($__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field"));
     // line 4
     if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
         // line 5
         echo " \n    ";
     } else {
         // line 7
         if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) {
             // line 8
             $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array());
             // line 9
             echo "            ";
             $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30;
             // line 10
             echo "            ";
             $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false;
             // line 11
             echo "            ";
             $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "...";
             // line 12
             echo "            ";
             echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator"));
         } else {
             // line 14
             if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) {
                 // line 15
                 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"));
             }
             // line 17
             echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value");
             echo "\n        ";
         }
         // line 19
         echo "    ";
     }
     $__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0->leave($__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0_prof);
 }
开发者ID:stuckiest,项目名称:SymfonyBlog,代码行数:40,代码来源:b63ae91ddecf06d073c7f09468475e6fc0628ca533893267c9b5179aa60b6a2e.php

示例9: block_field

 public function block_field($context, array $blocks = array())
 {
     $__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f = $this->env->getExtension("native_profiler");
     $__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f->enter($__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field"));
     // line 4
     if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
         // line 5
         echo " \n    ";
     } else {
         // line 7
         if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) {
             // line 8
             $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array());
             // line 9
             echo "            ";
             $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30;
             // line 10
             echo "            ";
             $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false;
             // line 11
             echo "            ";
             $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "...";
             // line 12
             echo "            ";
             echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator"));
         } else {
             // line 14
             if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) {
                 // line 15
                 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"));
             }
             // line 17
             echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value");
             echo "\n        ";
         }
         // line 19
         echo "    ";
     }
     $__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f->leave($__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f_prof);
 }
开发者ID:shine2lay,项目名称:jack,代码行数:40,代码来源:3f7b34711b4960b867ebd535461af9055c69c750b894b9fa7c6f864e298ac515.php

示例10: block_field

 public function block_field($context, array $blocks = array())
 {
     $__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336 = $this->env->getExtension("native_profiler");
     $__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336->enter($__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field"));
     // line 4
     if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
         // line 5
         echo " \n    ";
     } else {
         // line 7
         if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) {
             // line 8
             $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array());
             // line 9
             echo "            ";
             $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30;
             // line 10
             echo "            ";
             $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false;
             // line 11
             echo "            ";
             $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "...";
             // line 12
             echo "            ";
             echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator"));
         } else {
             // line 14
             if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) {
                 // line 15
                 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"));
             }
             // line 17
             echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value");
             echo "\n        ";
         }
         // line 19
         echo "    ";
     }
     $__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336->leave($__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336_prof);
 }
开发者ID:stuckiest,项目名称:SymfonyBlog,代码行数:40,代码来源:115b202d006f4c22af6a439dd3b935b80168d334f6d1155579f0bdb00cb43f9c.php

示例11: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 11
     echo "    <div itemscope itemtype=\"http://schema.org/CreativeWork\">\n        <h1 id=\"title\" class=\"uppercase\" itemprop=\"headline\">Textes annexes</h1>\n        \n        <div id=\"contentMiddleFrame\" itemprop=\"text\"> \n            ";
     // line 15
     if (!twig_test_empty(isset($context["pagination"]) ? $context["pagination"] : null)) {
         // line 16
         echo "                ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["pagination"]) ? $context["pagination"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["annexText"]) {
             // line 17
             echo "                    <div itemscope itemtype=\"http://schema.org/Thing\">\n                        <p class=\"capital underline subtitle bold\" itemprop=\"name\">";
             // line 18
             echo twig_escape_filter($this->env, $this->getAttribute($context["annexText"], "title", array()), "html", null, true);
             echo "</p>\n                        <p itemprop=\"description\">";
             // line 19
             echo twig_truncate_filter($this->env, strip_tags($this->getAttribute($context["annexText"], "contents", array())), 370, true);
             echo "</p>\n                        <a class=\"colorUnderlineLink\" itemprop=\"url\" href=\"";
             // line 20
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("apa_story_annexText", array("numero" => $this->getAttribute($context["annexText"], "id", array()))), "html", null, true);
             echo "\">Lire la suite</a>\n                    </div>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['annexText'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 23
         echo "            ";
     } else {
         // line 24
         echo "                Il n'existe pas encore de textes annexes.\n            ";
     }
     // line 26
     echo "        </div>\n        <div id=\"pagination\" itemprop=\"pagination\">";
     // line 27
     echo $this->env->getExtension('knp_pagination')->render(isset($context["pagination"]) ? $context["pagination"] : null);
     echo "</div>\n    </div>\n";
 }
开发者ID:axelleP,项目名称:Oetherium,代码行数:38,代码来源:a3e82ab2a9de248675a11b631e261af589c8034680fb2c8cef5694dfbf7ea074.php

示例12: block_field

 public function block_field($context, array $blocks = array())
 {
     // line 4
     if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) {
         // line 5
         echo "&nbsp;\n    ";
     } else {
         // line 7
         if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) {
             // line 8
             $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array());
             // line 9
             echo "            ";
             $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30;
             // line 10
             echo "            ";
             $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false;
             // line 11
             echo "            ";
             $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "...";
             // line 12
             echo "            ";
             echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator"));
         } else {
             // line 14
             if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) {
                 // line 15
                 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"));
             }
             // line 17
             echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value");
             echo "\n        ";
         }
         // line 19
         echo "    ";
     }
 }
开发者ID:axelleP,项目名称:Oetherium,代码行数:37,代码来源:79f9f089adb33f3a52a0dd3b270add3e756e2be4556ba7edf00645f862370a87.php

示例13: block_content


//.........这里部分代码省略.........
         if (isset($context["request"])) {
             $_request_ = $context["request"];
         } else {
             $_request_ = null;
         }
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("per_page" => 5, "page" => $this->getAttribute($_request_, "page"), "hide_addons" => 1)), "method"), "list"));
         $context['_iterated'] = false;
         foreach ($context['_seq'] as $context["i"] => $context["order"]) {
             // line 188
             echo "                <tr class=\"";
             if (isset($context["i"])) {
                 $_i_ = $context["i"];
             } else {
                 $_i_ = null;
             }
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true);
             echo "\">\n                    <td><a href=\"";
             // line 189
             echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order/service/manage");
             echo "/";
             if (isset($context["order"])) {
                 $_order_ = $context["order"];
             } else {
                 $_order_ = null;
             }
             echo twig_escape_filter($this->env, $this->getAttribute($_order_, "id"), "html", null, true);
             echo "\">";
             if (isset($context["order"])) {
                 $_order_ = $context["order"];
             } else {
                 $_order_ = null;
             }
             echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_order_, "title"), 30), "html", null, true);
             echo "</a></td>\n                    <td><span class=\"label ";
             // line 190
             if (isset($context["order"])) {
                 $_order_ = $context["order"];
             } else {
                 $_order_ = null;
             }
             if ($this->getAttribute($_order_, "status") == "active") {
                 echo "label-success";
             } elseif ($this->getAttribute($_order_, "status") == "pending_setup") {
                 echo "label-warning";
             }
             echo "\">";
             if (isset($context["mf"])) {
                 $_mf_ = $context["mf"];
             } else {
                 $_mf_ = null;
             }
             if (isset($context["order"])) {
                 $_order_ = $context["order"];
             } else {
                 $_order_ = null;
             }
             echo $_mf_->getstatus_name($this->getAttribute($_order_, "status"));
             echo "</span></td>\n                </tr>\n                ";
             $context['_iterated'] = true;
         }
         if (!$context['_iterated']) {
             // line 193
             echo "                <tr>\n                    <td colspan=\"3\">";
             // line 194
             echo gettext("The list is empty");
开发者ID:NurulRizal,项目名称:BB,代码行数:67,代码来源:eeea4839802b7c79f8c66cd61367e368590d38c32cc2efbea091b4fad4ce.php

示例14: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>";
     // line 5
     $this->displayBlock('title', $context, $blocks);
     echo "</title>\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n        <meta name=\"description\" content=\"Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.\">\n        <meta name=\"author\" content=\"Oueslati Rami\">\n\n        <!-- The styles -->\n        <link rel=\"stylesheet\" href=\"";
     // line 11
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/bootstrap.css"), "html", null, true);
     echo "\" type=\"text/css\" />\n        <link rel=\"stylesheet\" href=\"";
     // line 12
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/charisma-app.css"), "html", null, true);
     echo "\" type=\"text/css\" />\n        <link rel=\"stylesheet\" href=\"";
     // line 13
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/bower_components/chosen/chosen.min.css"), "html", null, true);
     echo "\" type=\"text/css\" />\n        <link rel=\"stylesheet\" href=\"";
     // line 14
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/bower_components/responsive-tables/responsive-tables.css"), "html", null, true);
     echo "\" type=\"text/css\" />\n        <link rel=\"stylesheet\" href=\"";
     // line 15
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/elfinder.theme.css"), "html", null, true);
     echo "\" type=\"text/css\" />\n        <link rel=\"stylesheet\" href=\"";
     // line 16
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/jquery.iphone.toggle.css"), "html", null, true);
     echo "\" type=\"text/css\" />\n        <link rel=\"stylesheet\" href=\"";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/animate.min.css"), "html", null, true);
     echo "\" type=\"text/css\" />\n        <link rel=\"stylesheet\" href=\"";
     // line 18
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/datepicker.css"), "html", null, true);
     echo "\" type=\"text/css\" />\n        <link rel=\"stylesheet\" href=\"";
     // line 19
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/flags.css"), "html", null, true);
     echo "\" type=\"text/css\" />\n\n        <!-- The fav icon -->\n        <link rel=\"shortcut icon\" href=\"";
     // line 22
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/img/img/favicon.ico"), "html", null, true);
     echo "\">\n    </head>\n\n    <body>\n        <!-- topbar starts -->\n        <div class=\"navbar navbar-default\" role=\"navigation\">\n            <div class=\"navbar-inner\">\n                <button type=\"button\" class=\"navbar-toggle pull-left animated flip\">\n                    <span class=\"sr-only\">Toggle navigation</span>\n                    <span class=\"icon-bar\"></span>\n                    <span class=\"icon-bar\"></span>\n                    <span class=\"icon-bar\"></span>\n                </button>\n\n                <!--<a class=\"navbar-brand\" href=\"index.html\"> <img alt=\"Charisma Logo\" src=\"";
     // line 36
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/img/logoAkka.png"), "html", null, true);
     echo "\" class=\"hidden-xs\"/></a>-->\n\n                <div class=\"pull-right\">\n                    <img src=\"";
     // line 39
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/img/blank.gif"), "html", null, true);
     echo "\" class=\"flag flag-fr\" alt=\"Fr\" />\n                    <img src=\"";
     // line 40
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/img/blank.gif"), "html", null, true);
     echo "\" class=\"flag flag-gb\" alt=\"En\" />\n                </div>\n\n                <!-- user dropdown starts -->\n                <div class=\"btn-group pull-right\">\n                    <button class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\">\n                        <i class=\"glyphicon glyphicon-user\"></i><span class=\"hidden-sm hidden-xs\"> admin</span>\n                        <span class=\"caret\"></span>\n                    </button>\n                    <ul class=\"dropdown-menu\">\n                        <li><a href=\"#\">Mon profile</a></li>\n                        <li class=\"divider\"></li>\n                        <li><a href=\"";
     // line 52
     echo $this->env->getExtension('routing')->getPath("utilisateur_deconnexion");
     echo "\">Déconnexion</a></li>\n                    </ul>\n                </div>\n                <!-- user dropdown ends -->\n\n                <ul class=\"collapse navbar-collapse nav navbar-nav top-menu\">\n                    <li><a href=\"#\"><i class=\"glyphicon glyphicon-globe\"></i> Bonjour ";
     // line 58
     if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "user", array(), "any", false, true), "firstname", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "user", array(), "any", false, true), "lastname", array(), "any", true, true)) {
         echo " ";
         echo twig_escape_filter($this->env, twig_truncate_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "firstname", array())), 20, true, "..."), "html", null, true);
         echo " - ";
         echo twig_escape_filter($this->env, twig_truncate_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "lastname", array())), 20, true, "..."), "html", null, true);
         echo " ";
     }
     echo "</a></li>\n                    <li class=\"dropdown\">\n                        <a href=\"#\" data-toggle=\"dropdown\"><i class=\"glyphicon glyphicon-star\"></i> Dropdown <span class=\"caret\"></span></a>\n                        <ul class=\"dropdown-menu\" role=\"menu\">\n                            <li><a href=\"#\">Action</a></li>\n                            <li><a href=\"#\">Another action</a></li>\n                            <li><a href=\"#\">Something else here</a></li>\n                            <li class=\"divider\"></li>\n                            <li><a href=\"#\">Separated link</a></li>\n                            <li class=\"divider\"></li>\n                            <li><a href=\"#\">One more separated link</a></li>\n                        </ul>\n                    </li>\n                    <li>\n                        <form class=\"navbar-search pull-left\">\n                            <input placeholder=\"Search\" class=\"search-query form-control col-md-10\" name=\"query\" type=\"text\">\n                        </form>\n                    </li>\n                </ul>\n\n            </div>\n        </div>\n        <!-- topbar ends -->\n        <div class=\"ch-container\">\n            <div class=\"row\">\n\n                <!-- left menu starts -->\n                <div class=\"col-sm-2 col-lg-2\">\n                    <div class=\"sidebar-nav\">\n                        <div class=\"nav-canvas\">\n                            <div class=\"nav-sm nav nav-stacked\">\n\n                            </div>\n                            <ul class=\"nav nav-pills nav-stacked main-menu\">\n                                <li class=\"nav-header\">Main</li>\n                                <li><a class=\"ajax-link\" href=\"index.html\"><i class=\"glyphicon glyphicon-signal\"></i><span> Tableau de bord</span></a>\n                                </li>\n                                <li class=\"accordion\">\n                                    <a href=\"";
     // line 96
     echo $this->env->getExtension('routing')->getPath("ro_utilisateur_homepage");
     echo "\"><i class=\"glyphicon glyphicon-user\"></i><span> Utilisateurs</span></a>\n                                    <ul class=\"nav nav-pills nav-stacked\">\n                                        <li><a href=\"";
     // line 98
     echo $this->env->getExtension('routing')->getPath("ro_utilisateur_add");
     echo "\">Ajouter un utilisateur</a></li>\n                                        <li><a href=\"";
     // line 99
     echo $this->env->getExtension('routing')->getPath("ro_utilisateur_homepage");
     echo "\">Listing utilisateur</a></li>\n                                    </ul>\n                                </li>\n                                <li class=\"accordion\">\n                                    <a href=\"";
     // line 103
     echo $this->env->getExtension('routing')->getPath("ro_agence_homepage");
     echo "\"><i class=\"glyphicon glyphicon-home\"></i><span> Agence</span></a>\n                                    <ul class=\"nav nav-pills nav-stacked\">\n                                        <li><a href=\"";
     // line 105
     echo $this->env->getExtension('routing')->getPath("ro_agence_add");
     echo "\">Ajouter une agence</a></li>\n                                        <li><a href=\"";
     // line 106
     echo $this->env->getExtension('routing')->getPath("ro_agence_homepage");
     echo "\">Listing agence</a></li>\n                                    </ul>\n                                </li>\n                                <li class=\"accordion\">\n                                    <a href=\"";
     // line 110
     echo $this->env->getExtension('routing')->getPath("ro_vehicule_homepage");
     echo "\"><i class=\"glyphicon glyphicon-road\"></i><span> Véhicule</span></a>\n                                    <ul class=\"nav nav-pills nav-stacked\">\n                                        <li><a href=\"";
     // line 112
     echo $this->env->getExtension('routing')->getPath("ro_vehicule_add");
     echo "\">Ajouter un véhicule</a></li>\n                                        <li><a href=\"";
     // line 113
     echo $this->env->getExtension('routing')->getPath("ro_vehicule_homepage");
     echo "\">Listing véhicule</a></li>\n                                    </ul>\n                                </li>\n                                <li class=\"accordion\">\n                                    <a href=\"";
     // line 117
     echo $this->env->getExtension('routing')->getPath("ro_equipement_homepage");
     echo "\"><i class=\"glyphicon glyphicon-th\"></i><span> Equipement</span></a>\n                                    <ul class=\"nav nav-pills nav-stacked\">\n                                        <li><a href=\"";
     // line 119
     echo $this->env->getExtension('routing')->getPath("ro_equipement_add");
     echo "\">Ajouter un équipement</a></li>\n                                        <li><a href=\"";
     // line 120
     echo $this->env->getExtension('routing')->getPath("ro_equipement_homepage");
     echo "\">Listing équipement</a></li>\n                                    </ul>\n                                </li>\n                                <li class=\"accordion\">\n                                    <a href=\"";
     // line 124
     echo $this->env->getExtension('routing')->getPath("ro_categorie_homepage");
     echo "\"><i class=\"glyphicon glyphicon-th-list\"></i><span> Catégorie</span></a>\n                                    <ul class=\"nav nav-pills nav-stacked\">\n                                        <li><a href=\"";
     // line 126
     echo $this->env->getExtension('routing')->getPath("ro_categorie_add");
     echo "\">Ajouter une catégorie</a></li>\n                                        <li><a href=\"";
//.........这里部分代码省略.........
开发者ID:ramisg85,项目名称:oueslatirami,代码行数:101,代码来源:4573fdda0aa110772172cda06decb929ad01e0852d3b5ae368569d1c4454.php

示例15: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 113
     echo "\n\n<div class=\"widget simpleTabs\">\n    <ul class=\"tabs\">\n        <li><a href=\"#tab-index\">";
     // line 117
     echo gettext("Invoices");
     echo "</a></li>\n        <li><a href=\"#tab-new\">";
     // line 118
     echo gettext("New Invoice");
     echo "</a></li>\n    </ul>\n\n    <div class=\"tabs_container\">\n        <div class=\"fix\"></div>\n        <div class=\"tab_content nopadding\" id=\"tab-index\">\n\n            ";
     // line 125
     echo $context["mf"]->gettable_search();
     echo "\n            <table class=\"tableStatic wide\">\n                <thead>\n                    <tr>\n                        <td style=\"width: 2%\"><input type=\"checkbox\" class=\"batch-delete-master-checkbox\"/></td>\n                        <td colspan=\"3\">";
     // line 130
     echo gettext("Invoice");
     echo "</td>\n                        <td>";
     // line 131
     echo gettext("Amount");
     echo "</td>\n                        <td>";
     // line 132
     echo gettext("Issued at");
     echo "</td>\n                        <td>";
     // line 133
     echo gettext("Paid at");
     echo "</td>\n                        <td>";
     // line 134
     echo gettext("Status");
     echo "</td>\n                        <td width=\"13%\">&nbsp;</td>\n                    </tr>\n                </thead>\n                <tbody>\n                    ";
     // line 139
     $context["invoices"] = $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "invoice_get_list", array(0 => twig_array_merge(array("per_page" => 30, "page" => $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "page")), isset($context["request"]) ? $context["request"] : null)), "method");
     // line 140
     echo "                    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["invoices"]) ? $context["invoices"] : null, "list"));
     $context['_iterated'] = false;
     foreach ($context['_seq'] as $context["_key"] => $context["invoice"]) {
         // line 141
         echo "                    <tr>\n                        <td><input type=\"checkbox\" class=\"batch-delete-checkbox\" data-item-id=\"";
         // line 142
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id"), "html", null, true);
         echo "\"/></td>\n                        <td style=\"width:5%;\"><img src=\"";
         // line 143
         echo twig_escape_filter($this->env, twig_gravatar_filter($this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "buyer"), "email")), "html", null, true);
         echo "?size=20\" alt=\"";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "buyer"), "email"), "html", null, true);
         echo "\" title=\"";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "buyer"), "first_name"), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "buyer"), "last_name"), "html", null, true);
         echo "\"/></td>\n                        <td><a href=\"";
         // line 144
         echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client");
         echo "/manage/";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "client"), "id"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "client"), "first_name"), 1, null, "."), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "client"), "last_name"), 20), "html", null, true);
         echo "</a></td>\n                        <td style=\"width:15%;\" title=\"";
         // line 145
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "serie_nr"), "html", null, true);
         echo "</td>\n                        <td>";
         // line 146
         echo $context["mf"]->getcurrency_format($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "total"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency"));
         echo "</td>\n                        <td>";
         // line 147
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "created_at"), "Y-m-d"), "html", null, true);
         echo "</td>\n                        <td>";
         // line 148
         if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "paid_at")) {
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "paid_at"), "Y-m-d"), "html", null, true);
         } else {
             echo "-";
         }
         echo "</td>\n                        <td>";
         // line 149
         echo $context["mf"]->getstatus_name($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "status"));
         echo "</td>\n                        <td class=\"actions\">\n                            <a class=\"bb-button btn14\" href=\"";
         // line 151
         echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("/invoice/manage");
         echo "/";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id"), "html", null, true);
         echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a>\n                            <a class=\"btn14 bb-rm-tr api-link\" href=\"";
         // line 152
         echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/invoice/delete", array("id" => $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id")));
         echo "\" data-api-confirm=\"Are you sure?\" data-api-reload=\"1\"><img src=\"images/icons/dark/trash.png\" alt=\"\"></a>\n                        </td>\n                    </tr>\n                    ";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 156
         echo "                    <tr>\n                        <td colspan=\"8\">";
         // line 157
         echo gettext("The list is empty");
         echo "</td>\n                    </tr>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['invoice'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
//.........这里部分代码省略.........
开发者ID:jefri55,项目名称:SkillMoneybookersForBoxbilling,代码行数:101,代码来源:9d4d9e61d141a6b916741e72a17f8e554028d2b291760c2e9b3a7ddc6653.php


注:本文中的twig_truncate_filter函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。