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

PHP twig_number_format_filter函数代码示例

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

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



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

示例1: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 3
     echo "<div class=\"row-fluid\">\n    <div class=\" col-lg-8\">\n        <div class=\"panel panel-default\">\n          <!-- Default panel contents -->\n          <div class=\"panel-heading\">Choose atleast 6 numbers below.</div>\n          <div class=\"panel-body\">\n                <div id=\"betting-form-container\">\n                    ";
     // line 10
     if ($this->getAttribute(isset($context["flash"]) ? $context["flash"] : null, "error") != "") {
         // line 11
         echo "                        <div class=\"alert alert-warning\">";
         echo $this->getAttribute(isset($context["flash"]) ? $context["flash"] : null, "error");
         echo "</div>\n                    ";
     }
     // line 13
     echo "                    ";
     if ($this->getAttribute(isset($context["flash"]) ? $context["flash"] : null, "info") != "") {
         // line 14
         echo "                        <div class=\"alert alert-success\">";
         echo $this->getAttribute(isset($context["flash"]) ? $context["flash"] : null, "info");
         echo "</div>\n                    ";
     }
     // line 16
     echo "                    <form role=\"form\" id=\"betting-form\" method=\"POST\">\n                        <input type=\"hidden\" value=\"";
     // line 17
     echo twig_escape_filter($this->env, isset($context["csrf_token"]) ? $context["csrf_token"] : null, "html", null, true);
     echo "\" name=\"csrf_token\"/>\n                        <ul id=\"betting-form-list\">\n                            \n                        </ul>\n                        <div style=\"clear: both; margin-top:35px;\"><br /></div>\n                        <div class=\"form-actions\">\n                            <button type=\"submit\" name=\"submit\" class=\"btn btn-primary disabled\" disabled=\"disabled\" id=\"place-bet\">Place Bet</button>\n                            <label class=\"pull-right\">\n                              <input type=\"checkbox\" id=\"lucky-pick\" name=\"lucky_pick\"/> Luck Pick\n                            </label>\n                        </div>\n                    </form>\n                    <div style=\"clear: both;\"></div>\n                </div>\n          </div>\n        </div>\n    </div>\n    <div class=\" col-lg-4\">\n        <div class=\"panel panel-default\">\n          <!-- Default panel contents -->\n          <div class=\"panel-heading\">Todays Draw</div>\n          <div class=\"panel-body\"  style=\"text-align: center;\">\n                <p style=\"margin: 0px;\">Total Price</p>\n                <h1 style=\"margin: 0px;\">\$";
     // line 40
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute(isset($context["draw"]) ? $context["draw"] : null, "winning_price"), 2), "html", null, true);
     echo "</h1>\n          </div>\n        </div>\n    </div>\n    <div class=\" col-lg-4\">\n        <div class=\"panel panel-default\">\n          <!-- Default panel contents -->\n          <div class=\"panel-heading\">Time Left</div>\n          <div class=\"panel-body\"  style=\"text-align: center;\">\n              <div style=\"padding-left: 60px;\">\n                <script type=\"application/javascript\">\n                var myCountdown2 = new Countdown({\n                    time: ";
     // line 52
     echo twig_escape_filter($this->env, isset($context["left"]) ? $context["left"] : null, "html", null, true);
     echo ", \n                    width:200, \n                    height:80, \n                    rangeHi:\"hour\"\t// <- no comma on last item!\n                });\n                // ARRAY PROTOTYPE\n                Array.prototype.remove = function() {\n                    var what, a = arguments, L = a.length, ax;\n                    while (L && this.length) {\n                        what = a[--L];\n                        while ((ax = this.indexOf(what)) !== -1) {\n                            this.splice(ax, 1);\n                        }\n                    }\n                    return this;\n                };\n                jQuery(document).ready(function(){\n                    // LETS LOAD THE CHECKBOXES HERE\n                    for(var i=1;i<43;i++){\n                        jQuery('#betting-form-list').append('<li>'+i+'<input type=\"checkbox\" value=\"'+i+'\" name=\"bet[]\" class=\"bets\" id=\"check-'+i+'\"></li>');\n                    }\n                    // NOW LETS \n                    var bets = [];\n                    jQuery('.bets').click(function(){\n                    if(jQuery('#lucky-pick').is(':checked')){\n                        alert(\"You cannot manually select or remove an item while lucky pick is selected.\");\n                        return false;\n                    }else{\n                        \n                        if(jQuery(this).is(':checked')){\n                            if(bets.length >= 6){\n                                alert(\"You can only select atleast 6 numbers.\");\n                                return false;\n                            }else{\n                                jQuery(this).closest('li').css('background-color','#f9d5db');\n                                if(jQuery.inArray(this.value, bets) > -1){\n                                    //do something\n                                    alert(\"This number already exists.\");    \n                                    return false;\n                                }else{\n                                    \n                                    bets.push(this.value);\n                                    \n                                    if(bets.length >= 6){\n                                        jQuery('#place-bet').removeAttr('disabled');\n                                        jQuery('#place-bet').removeClass('disabled');\n                                    }\n                                   \n                                }\n                            }\n                        }else{\n                            \n                            for(var i=0;i<bets.length;i++){\n                                if(bets[i] ==  this.value){\n                                    bets = bets.splice(bets[i]);\n                                }\n                            }\n                            \n                            if(bets.length <= 5){\n                                jQuery('#place-bet').attr('disabled','disabled');\n                                jQuery('#place-bet').addClass('disabled');\n                            }else{\n                                jQuery('#place-bet').removeAttr('disabled');\n                                jQuery('#place-bet').removeClass('disabled');\n                            }\n                            jQuery(this).closest('li').removeAttr('style');\n                        }  \n                    }\n                    });\n                    \n                    // LUCK PICK \n                    jQuery('#lucky-pick').click(function(){\n                        if(jQuery(this).is(':checked')){\n                            bets = new Array;\n                            // UNCHECK ALL THE CHECKBOXES FIRST and REMOVE LI STYLES\n                            jQuery('.bets').removeAttr('checked');\n                            jQuery('.bets').closest('li').removeAttr('style');\n                            // GENERATE SHUFFLE THE ARRAY VALUES\n                            sets = [];\n                            for(var i=1;i<43;i++){\n                                sets.push(i);\n                            }\n                            sets =  sets.sort(function() { return 0.5 - Math.random() });\n                            \n                            // LETS CHECK FIRST 6 VALUES ITERATE ALL CHECKBOXES\n                            randoms = sets.slice(0,6);\n                              for(var x=0;x<randoms.length;x++){\n                                    jQuery(\"#check-\"+randoms[x]).prop('checked', true);\n                                    jQuery(\"#check-\"+randoms[x]).closest('li').css('background-color','#f9d5db');\n                                    bets.push(randoms[x]);\n                              }  \n                            console.log(bets);\n                            // ENABLE BUTTON AT LAST\n                            if(bets.length <= 5){\n                                jQuery('#place-bet').attr('disabled','disabled');\n                                jQuery('#place-bet').addClass('disabled');\n                            }else{\n                                jQuery('#place-bet').removeAttr('disabled');\n                                jQuery('#place-bet').removeClass('disabled');\n                            }\n                            \n                        }else{\n                            // UNCHECK ALL THE CHECKBOXES FIRST and REMOVE LI STYLES\n                            jQuery('.bets').removeAttr('checked');\n                            jQuery('.bets').closest('li').removeAttr('style');\n                            jQuery('#lucky-pick').removeAttr(\"checked\");\n                            bets = [];\n                            if(bets.length <= 5){\n                                jQuery('#place-bet').attr('disabled','disabled');\n                                jQuery('#place-bet').addClass('disabled');\n                            }else{\n                                jQuery('#place-bet').removeAttr('disabled');\n                                jQuery('#place-bet').removeClass('disabled');\n                            }\n                        }\n                    });\n                });\n                </script>\n              </div>\n          </div>\n        </div>\n    </div>\n</div>\n";
 }
开发者ID:kxopa,项目名称:PHPLotterySystem,代码行数:31,代码来源:857a1dd2ed41dda6685aaaa092463cd7fac40e042c4bd80690d3916aa53f.php


示例2: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     echo "\n<style>\n\n</style>\n\n<table border=\"0\" width=\"100%\">\n    <tr>\n        <td colspan=\"5\" height=\"6\"></td>\n    </tr>\n    <tr>\n        <td width=\"6\"></td>\n        <td width=\"30%\" style=\"text-align:center;vertical-align:middle;\">\n            <div style=\"white-space:nowrap;\">";
     // line 14
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_SystemLoad")), "html", null, true);
     echo "</div>\n            <div style=\"margin-top:8px;font-size:1.2em;font-weight:bold;\">";
     // line 15
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad")), "html", null, true);
     echo " %</b> </div>\n            <div>(";
     // line 16
     echo twig_escape_filter($this->env, isset($context["numCores"]) ? $context["numCores"] : $this->getContext($context, "numCores"), "html", null, true);
     echo "&nbsp;";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_Cores")), "html", null, true);
     echo ")</div>\n        </td>\n        <td width=\"20\" style=\"text-align:center;vertical-align:middle;\">&nbsp;</td>\n        <td width=\"30%\" style=\"text-align:center;vertical-align:middle;\">\n            <div style=\"white-space:nowrap;\">";
     // line 20
     echo twig_escape_filter($this->env, isset($context["memLabel"]) ? $context["memLabel"] : $this->getContext($context, "memLabel"), "html", null, true);
     echo "</div>\n            <div style=\"margin-top:8px;font-size:1.2em;font-weight:bold;\">";
     // line 21
     echo twig_escape_filter($this->env, isset($context["memVal"]) ? $context["memVal"] : $this->getContext($context, "memVal"), "html", null, true);
     echo " MB</b></div>\n            <div>(";
     // line 22
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["memProc"]) ? $context["memProc"] : $this->getContext($context, "memProc")), "html", null, true);
     echo "&nbsp;%)</div>\n        </td>\n        <td width=\"6\"></td>\n    </tr>\n    <tr>\n        <td colspan=\"5\" height=\"6\"></td>\n    </tr>\n</table>";
 }
开发者ID:bossrabbit,项目名称:piwik,代码行数:25,代码来源:c4dc1e69c0ea4a16dbdf474d1eedb4563e588be5f8ba67048729e6622bc1.php


示例3: block_body

 public function block_body($context, array $blocks = array())
 {
     $__internal_2279798b464714439a4e9ce5704da987d5f8831b5a942dfa56bca4f20db22c00 = $this->env->getExtension("native_profiler");
     $__internal_2279798b464714439a4e9ce5704da987d5f8831b5a942dfa56bca4f20db22c00->enter($__internal_2279798b464714439a4e9ce5704da987d5f8831b5a942dfa56bca4f20db22c00_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 7
     echo "<h1>Clothes</h1>\n\n    <div class=\"container\">\n        <div class=\"row\">\n            <div class=\"col-md-6\">\n                <img class=\"item-image\" src=\"http://placehold.it/500x400\" alt=\"\">\n            </div>\n            <div class=\"col-md-6\">\n                <h2>";
     // line 15
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "name", array()), "html", null, true);
     echo " </h2>\n                <h2>&euro;";
     // line 16
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "price", array()), 2, ".", ","), "html", null, true);
     echo "</h2>\n                <h3>Rating:\n                    ";
     // line 18
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(range(0, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "rating", array())));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 19
         echo "                        <span class=\"glyphicon glyphicon-star\"></span>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 21
     echo "\n                </h3>\n                <hr>\n                <p>";
     // line 24
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "details", array()), "html", null, true);
     echo "</p>\n            </div>\n        </div>\n    </div>\n\n    <ul class=\"record_actions\">\n        <li>\n            <a href=\"";
     // line 31
     echo $this->env->getExtension('routing')->getPath("clothes");
     echo "\">\n                Back to the list\n            </a>\n        </li>\n    </ul>\n";
     $__internal_2279798b464714439a4e9ce5704da987d5f8831b5a942dfa56bca4f20db22c00->leave($__internal_2279798b464714439a4e9ce5704da987d5f8831b5a942dfa56bca4f20db22c00_prof);
 }
开发者ID:Radicis,项目名称:clothing_store_project,代码行数:32,代码来源:47d64bf9b1098af7508d009a34fbcb2432f584158cb0d1f1267be483c7fdb7d9.php


示例4: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["data"] = $this->getAttribute(isset($context["history"]) ? $context["history"] : $this->getContext($context, "history"), "getDataAsArray", array(), "method");
     // line 2
     echo "\n<table>\n    <tr>\n        <td><strong>Payment Request:</strong></td>\n        <td>";
     // line 6
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "getTitle", array(), "method"), "html", null, true);
     echo "</td>\n    </tr>\n    <tr>\n        <td><strong>Payout amount:</strong></td>\n        <td>\$";
     // line 10
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, ((isset($context["marketplaceAmount"]) ? $context["marketplaceAmount"] : $this->getContext($context, "marketplaceAmount")) + (isset($context["customerAmount"]) ? $context["customerAmount"] : $this->getContext($context, "customerAmount"))) / 100, 2, ".", ","), "html", null, true);
     echo "</td>\n    </tr>\n    <tr>\n        <td><strong>Fees:</strong></td>\n        <td>\$";
     // line 14
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["marketplaceAmount"]) ? $context["marketplaceAmount"] : $this->getContext($context, "marketplaceAmount")) / 100, 2, ".", ","), "html", null, true);
     echo "</td>\n    </tr>\n</table>\n\n<p>\n    ----------------------------------------------------------- <br>\n    Transaction Number: ";
     // line 20
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["history"]) ? $context["history"] : $this->getContext($context, "history"), "getPublicId", array(), "method"), "html", null, true);
     echo " <br>\n    Date: ";
     // line 21
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "created_at", array()), "D, d M y H:i:s O"), "html", null, true);
     echo "<br>\n    Amount: \$";
     // line 22
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "amount", array()) / 100, "html", null, true);
     echo " <br>\n    -----------------------------------------------------------  <br>\n</p>\n";
 }
开发者ID:austinpapp,项目名称:push-notifications-temp,代码行数:25,代码来源:ff9867902c4b4efc6fe5ef14185f945077f7b22d3c6ea2bc62b5d3535c37.php


示例5: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 6
     echo "<div class=\"row\">\n    <div class=\"span12\">\n        <div class=\"row\">\n            <div class=\"span3\">Amount</div>\n            <div class=\"span5\">\$";
     // line 10
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["amount"]) ? $context["amount"] : $this->getContext($context, "amount")) / 100, 2, ".", ","), "html", null, true);
     echo "</div>\n        </div>\n    </div>\n</div>\n";
 }
开发者ID:austinpapp,项目名称:push-notifications-temp,代码行数:8,代码来源:599204d2bd0d59aabb707a8e10f5489de16fd3e5b88efb6936b7ace050e4.php


示例6: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<section class=\"g-grid submenu-selector\">\n    ";
     // line 2
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "groups", array()));
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["group"] => $context["children"]) {
         // line 3
         echo "        ";
         $context["width"] = twig_number_format_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "columnWidth", array(0 => $context["group"]), "method"), 1);
         // line 4
         echo "        ";
         $context["special"] = array_key_exists("column", $context) && $context["group"] == (isset($context["column"]) ? $context["column"] : null);
         // line 5
         echo "        ";
         $context["target"] = "list-" . $context["group"];
         // line 6
         echo "        <div class=\"g-block\" data-mm-id=\"";
         echo twig_escape_filter($this->env, isset($context["target"]) ? $context["target"] : null);
         echo "\" style=\"flex: 0 1 ";
         echo twig_escape_filter($this->env, twig_round(isset($context["width"]) ? $context["width"] : null, 1), "html", null, true);
         echo "%\">\n            <div class=\"submenu-column\">\n                ";
         // line 8
         $this->loadTemplate("menu/list.html.twig", "@gantry-admin/menu/columns.html.twig", 8)->display(array_merge($context, array("item" => isset($context["special"]) ? $context["special"] : null ? isset($context["override"]) ? $context["override"] : null : (isset($context["item"]) ? $context["item"] : null), "group" => $context["group"])));
         // line 9
         echo "                ";
         $context["size"] = twig_length_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "groups", array()));
         // line 10
         echo "            </div>\n            <div class=\"submenu-ratio\">\n                <span class=\"percentage\"><input type=\"text\" class=\"column-pc\" value=\"";
         // line 12
         echo twig_escape_filter($this->env, twig_round(isset($context["width"]) ? $context["width"] : null, 1), "html", null, true);
         echo "\" tabindex=\"";
         echo twig_escape_filter($this->env, $context["group"] + 1, "html", null, true);
         echo "\" min=\"5\" max=\"95\" />%</span>\n            </div>\n        </div>\n    ";
         ++$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['group'], $context['children'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 16
     echo "</section>\n<span class=\"fa fa-plus add-column\"></span>\n";
 }
开发者ID:ericssonm,项目名称:JusCuzCustoms,代码行数:58,代码来源:5669a5396e8e384481c4d5fa35997d28761ee300768db3d39e442e4979c50ad5.php


示例7: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if ($this->getAttribute(isset($context["field_options"]) ? $context["field_options"] : null, "format", array())) {
         // line 2
         echo "    ";
         echo twig_escape_filter($this->env, sprintf($this->getAttribute(isset($context["field_options"]) ? $context["field_options"] : null, "format", array()), isset($context["value"]) ? $context["value"] : null), "html", null, true);
         echo "\n";
     } else {
         // line 4
         echo "    ";
         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["value"]) ? $context["value"] : null, 2), "html", null, true);
         echo "\n";
     }
 }
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:15,代码来源:f050e6b4c6e3b2da7bf08307f4a64aaac2b837e268b8977c8fda9465b75b2f66.php


示例8: block_body

 public function block_body($context, array $blocks = array())
 {
     $__internal_544665ed3fbaaebd4281eb206842aa4578d2ccb8acbb8cbfb7b6f06cc0a279ff = $this->env->getExtension("native_profiler");
     $__internal_544665ed3fbaaebd4281eb206842aa4578d2ccb8acbb8cbfb7b6f06cc0a279ff->enter($__internal_544665ed3fbaaebd4281eb206842aa4578d2ccb8acbb8cbfb7b6f06cc0a279ff_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 5
     echo "<div class=\"row\">\n        <div class=\"col-md-3\">\n            <p class=\"lead\">Filters</p>\n            <div class=\"list-group\">\n                <a href=\"#\" class=\"list-group-item\">Category 1</a>\n                <a href=\"#\" class=\"list-group-item\">Category 2</a>\n                <a href=\"#\" class=\"list-group-item\">Category 3</a>\n            </div>\n            <ul>\n                <li>\n                    <a href=\"";
     // line 15
     echo $this->env->getExtension('routing')->getPath("clothes_new");
     echo "\">\n                        Create a new entry\n                    </a>\n                </li>\n            </ul>\n        </div>\n        <div class=\"col-md-9\">\n            ";
     // line 22
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
     foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
         // line 23
         echo "                <div class=\"col-sm-4 col-lg-4 col-md-4\">\n                    <div class=\"thumbnail\">\n                        <img src=\"http://placehold.it/320x150\" alt=\"\">\n                        <div class=\"caption\">\n                            <h4 class=\"pull-right\">&euro;";
         // line 27
         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["item"], "price", array()), 2, ".", ","), "html", null, true);
         echo "</h4>\n                            <h4><a href=\"";
         // line 28
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clothes_show", array("id" => $this->getAttribute($context["item"], "id", array()))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "name", array()), "html", null, true);
         echo "</a>\n                            </h4>\n                            <p>";
         // line 30
         echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "details", array()), "html", null, true);
         echo "</p>\n                        </div>\n                        <div class=\"ratings\">\n                            <p>\n                                ";
         // line 34
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(range(0, $this->getAttribute($context["item"], "rating", array())));
         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
             // line 35
             echo "                                    <span class=\"glyphicon glyphicon-star\"></span>\n                                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 37
         echo "                            </p>\n                        </div>\n                    </div>\n                </div>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 42
     echo "        </div>\n    </div>\n\n";
     $__internal_544665ed3fbaaebd4281eb206842aa4578d2ccb8acbb8cbfb7b6f06cc0a279ff->leave($__internal_544665ed3fbaaebd4281eb206842aa4578d2ccb8acbb8cbfb7b6f06cc0a279ff_prof);
 }
开发者ID:bamper,项目名称:clothing_store_symfony,代码行数:46,代码来源:b9e82daad4b9a9990b02f0feff421485854b601c03911ffb4c9a78222aea3510.php


示例9: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_9715e77ac924b3ebce40b3002108170484882bbaedaca8565bba91d8d8f0d4f1 = $this->env->getExtension("native_profiler");
     $__internal_9715e77ac924b3ebce40b3002108170484882bbaedaca8565bba91d8d8f0d4f1->enter($__internal_9715e77ac924b3ebce40b3002108170484882bbaedaca8565bba91d8d8f0d4f1_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@EasyAdmin/default/field_integer.html.twig"));
     // line 1
     if ($this->getAttribute(isset($context["field_options"]) ? $context["field_options"] : $this->getContext($context, "field_options"), "format", array())) {
         // line 2
         echo "    ";
         echo twig_escape_filter($this->env, sprintf($this->getAttribute(isset($context["field_options"]) ? $context["field_options"] : $this->getContext($context, "field_options"), "format", array()), isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
         echo "\n";
     } else {
         // line 4
         echo "    ";
         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
         echo "\n";
     }
     $__internal_9715e77ac924b3ebce40b3002108170484882bbaedaca8565bba91d8d8f0d4f1->leave($__internal_9715e77ac924b3ebce40b3002108170484882bbaedaca8565bba91d8d8f0d4f1_prof);
 }
开发者ID:3lolo,项目名称:lr_app,代码行数:18,代码来源:579b30edafcc04cb35e7b49eb67411d1dcde16c50a55efe2eda31092681a6156.php


示例10: block_body

 public function block_body($context, array $blocks = array())
 {
     $__internal_723a85a6ab48a931290f86eb6f05b107111760aa33e339493f209f483d71557b = $this->env->getExtension("native_profiler");
     $__internal_723a85a6ab48a931290f86eb6f05b107111760aa33e339493f209f483d71557b->enter($__internal_723a85a6ab48a931290f86eb6f05b107111760aa33e339493f209f483d71557b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 4
     echo "    <!-- Page Content -->\n    <div class=\"container\">\n\n        <div class=\"row\">\n            <div class=\"col-md-12\">\n\n                <div class=\"row carousel-holder\">\n\n                    <div class=\"col-md-12\">\n                        <div id=\"carousel-example-generic\" class=\"carousel slide\" data-ride=\"carousel\">\n                            <ol class=\"carousel-indicators\">\n                                <li data-target=\"#carousel-example-generic\" data-slide-to=\"0\" class=\"active\"></li>\n                                <li data-target=\"#carousel-example-generic\" data-slide-to=\"1\"></li>\n                                <li data-target=\"#carousel-example-generic\" data-slide-to=\"2\"></li>\n                            </ol>\n                            <div class=\"carousel-inner\">\n                                <div class=\"item active\">\n                                    <img class=\"slide-image\" src=\"http://placehold.it/800x300\" alt=\"\">\n\n                                </div>\n                                <div class=\"item\">\n                                    <img class=\"slide-image\" src=\"http://placehold.it/800x300\" alt=\"\">\n                                </div>\n                                <div class=\"item\">\n                                    <img class=\"slide-image\" src=\"http://placehold.it/800x300\" alt=\"\">\n                                </div>\n                            </div>\n                            <a class=\"left carousel-control\" href=\"#carousel-example-generic\" data-slide=\"prev\">\n                                <span class=\"glyphicon glyphicon-chevron-left\"></span>\n                            </a>\n                            <a class=\"right carousel-control\" href=\"#carousel-example-generic\" data-slide=\"next\">\n                                <span class=\"glyphicon glyphicon-chevron-right\"></span>\n                            </a>\n                        </div>\n                    </div>\n\n                </div>\n\n            ";
     // line 42
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
     foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
         // line 43
         echo "                <div class=\"col-sm-4 col-lg-4 col-md-4\">\n                    <div class=\"thumbnail\">\n                        <img src=\"http://placehold.it/320x150\" alt=\"\">\n                        <div class=\"caption\">\n                            <h4 class=\"pull-right\">&euro;";
         // line 47
         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["item"], "price", array()), 2, ".", ","), "html", null, true);
         echo "</h4>\n                            <h4><a href=\"";
         // line 48
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clothes_show", array("id" => $this->getAttribute($context["item"], "id", array()))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "name", array()), "html", null, true);
         echo "</a>\n                            </h4>\n                            <p>";
         // line 50
         echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "details", array()), "html", null, true);
         echo "</p>\n                        </div>\n                        <div class=\"ratings\">\n                            <p>\n                                ";
         // line 54
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(range(0, $this->getAttribute($context["item"], "rating", array())));
         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
             // line 55
             echo "                                    <span class=\"glyphicon glyphicon-star\"></span>\n                                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 57
         echo "                            </p>\n                        </div>\n                    </div>\n                </div>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 62
     echo "                </div>\n\n            </div>\n\n        </div>\n\n    </div>\n    <!-- /.container -->\n";
     $__internal_723a85a6ab48a931290f86eb6f05b107111760aa33e339493f209f483d71557b->leave($__internal_723a85a6ab48a931290f86eb6f05b107111760aa33e339493f209f483d71557b_prof);
 }
开发者ID:bamper,项目名称:clothing_store_symfony,代码行数:43,代码来源:a3a899150a362d0068059281f455cdb4f77ea08b9b1f6c16082e57d94bc3a2da.php


示例11: block_body

 public function block_body($context, array $blocks = array())
 {
     $__internal_17222eb900dce41f62f910dde5ea44b63473ad91bd52786d993a214ac501b462 = $this->env->getExtension("native_profiler");
     $__internal_17222eb900dce41f62f910dde5ea44b63473ad91bd52786d993a214ac501b462->enter($__internal_17222eb900dce41f62f910dde5ea44b63473ad91bd52786d993a214ac501b462_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 5
     echo "<div class=\"row\">\n        <div class=\"col-md-3\">\n            <p class=\"lead\">Filters</p>\n            <div class=\"list-group\">\n                <a href=\"#\" class=\"list-group-item\">Category 1</a>\n                <a href=\"#\" class=\"list-group-item\">Category 2</a>\n                <a href=\"#\" class=\"list-group-item\">Category 3</a>\n            </div>\n        </div>\n        <div class=\"col-md-9\">\n            ";
     // line 15
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
     foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
         // line 16
         echo "                <div class=\"col-sm-4 col-lg-4 col-md-4\">\n                    <div class=\"thumbnail\">\n                        <img src=\"http://placehold.it/320x150\" alt=\"\">\n                        <div class=\"caption\">\n                            <h4 class=\"pull-right\">&euro;";
         // line 20
         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["item"], "price", array()), 2, ".", ","), "html", null, true);
         echo "</h4>\n                            <h4><a href=\"";
         // line 21
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clothes_show", array("id" => $this->getAttribute($context["item"], "id", array()))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "name", array()), "html", null, true);
         echo "</a>\n                            </h4>\n                            <p>";
         // line 23
         echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "details", array()), "html", null, true);
         echo "</p>\n                        </div>\n                        <div class=\"ratings\">\n                            <p>\n                                ";
         // line 27
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(range(0, $this->getAttribute($context["item"], "rating", array())));
         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
             // line 28
             echo "                                    <span class=\"glyphicon glyphicon-star\"></span>\n                                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 30
         echo "                            </p>\n                        </div>\n                    </div>\n                </div>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 35
     echo "        </div>\n    </div>\n\n";
     $__internal_17222eb900dce41f62f910dde5ea44b63473ad91bd52786d993a214ac501b462->leave($__internal_17222eb900dce41f62f910dde5ea44b63473ad91bd52786d993a214ac501b462_prof);
 }
开发者ID:Radicis,项目名称:clothing_store_project,代码行数:43,代码来源:e3c530c3e8ea0c277d97a6cb4dc52314e89433a606dbe6fd896a8eb26f333d27.php


示例12: block_body

 public function block_body($context, array $blocks = array())
 {
     $__internal_b7c1c2cc369864722671b6673bbcbeaf1e1f5f5fc4e7bb34c7a4c126ca00bae7 = $this->env->getExtension("native_profiler");
     $__internal_b7c1c2cc369864722671b6673bbcbeaf1e1f5f5fc4e7bb34c7a4c126ca00bae7->enter($__internal_b7c1c2cc369864722671b6673bbcbeaf1e1f5f5fc4e7bb34c7a4c126ca00bae7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 7
     echo "<h1>Clothes</h1>\n\n    <div class=\"container\">\n        <div class=\"row\">\n            <div class=\"col-md-6\">\n                <img class=\"item-image\" />\n            </div>\n            <div class=\"col-md-6\">\n                <h2>";
     // line 15
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["en 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP twig_replace_filter函数代码示例发布时间:2022-05-23
下一篇:
PHP twig_lower_filter函数代码示例发布时间: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