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


PHP twig_number_format_filter函数代码示例

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


在下文中一共展示了twig_number_format_filter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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["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'] = (array) $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        <li>\n            <a href=\"";
     // line 36
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clothes_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()))), "html", null, true);
     echo "\">\n                Edit\n            </a>\n        </li>\n        <li>";
     // line 40
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form');
     echo "</li>\n    </ul>\n";
     $__internal_b7c1c2cc369864722671b6673bbcbeaf1e1f5f5fc4e7bb34c7a4c126ca00bae7->leave($__internal_b7c1c2cc369864722671b6673bbcbeaf1e1f5f5fc4e7bb34c7a4c126ca00bae7_prof);
 }
开发者ID:bamper,项目名称:clothing_store_symfony,代码行数:38,代码来源:479969891f47cbdf2d01af558f40597ce140745696a32e0f797fd4151dafb9cc.php

示例13: block_content


//.........这里部分代码省略.........
\t\t\t\t\t\tcolor: inherit;margin: 0px 0px 10px;\"href=\"#\" class=\"list\">
\t\t\t\t\t\t\t         <div style=\"margin-left: -3rem;padding: 10px 10px 10px 0rem;position: relative;display: block;color: inherit;\" 
\t\t\t\t\t\t\t         class=\"list-content\">
\t\t\t\t\t\t\t\t\t\t";
            // line 104
            if (($this->getAttribute($context["product"], "images", array()) == "noImages.jpg")) {
                // line 105
                echo "\t\t\t\t\t\t\t            \t<img style=\"margin-left: 1rem;display: block;width: 56px;height: 56px;font-size: 40px;float: left;margin-right: 10px;\" src=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("images/noImages.jpg"), "html", null, true);
                echo "\" class=\"icon\">
\t\t\t\t\t\t\t\t\t\t";
            } else {
                // line 107
                echo "\t\t\t\t\t\t\t\t\t\t    <img style=\"margin-left: 1rem;display: block;width: 56px;height: 56px;font-size: 40px;float: left;margin-right: 10px;\" src=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("images/ids/"), "html", null, true);
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["ad"]) ? $context["ad"] : $this->getContext($context, "ad")), "id", array()), "html", null, true);
                echo "/";
                echo twig_escape_filter($this->env, $this->getAttribute($context["product"], "images", array()), "html", null, true);
                echo "\" class=\"icon\">
\t\t\t\t\t\t\t\t\t\t";
            }
            // line 109
            echo "\t\t\t\t\t\t\t         <div class=\"data\">
\t\t\t\t\t\t\t         \t<span style=\"font-size: 14px;line-height: 18px;margin: 0px;padding: 0px;display: block;overflow: hidden;text-overflow: ellipsis;\" class=\"list-title\"><b>";
            // line 110
            echo twig_escape_filter($this->env, $this->getAttribute($context["product"], "name", array()), "html", null, true);
            echo "</b></b></span>
\t\t\t\t\t\t\t         \t<span style=\"font-size: 11px;line-height: 14px;margin: 0px;padding: 0px;display: block;overflow: hidden;text-overflow: ellipsis;\" class=\"list-remark\">";
            // line 111
            echo twig_escape_filter($this->env, $this->getAttribute($context["product"], "description", array()), "html", null, true);
            echo "</span>
\t\t\t\t\t\t        \t\t<span style=\"font-size: 11px;line-height: 14px;margin: 0px;padding: 0px;display: block;overflow: hidden;text-overflow: ellipsis;\" class=\"list-remark\">\$ ";
            // line 112
            echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["product"], "price", array()), 0), "html", null, true);
            echo "</span>
\t\t\t\t\t\t\t         </div>
\t\t\t\t\t\t\t        </div>
\t\t\t\t\t\t\t      </div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>\t  
\t\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 118
        echo " 
\t\t        \t</div>
\t\t            <div class=\"frame\" id=\"frame_1_2\" style=\"background-color: rgb(255, 255, 255);\">
\t\t       

\t\t                                  <div class=\"chat-footer\">

\t\t\t\t\t\t\t\t\t\t\t<!-- CHAT TEXTAREA -->


\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"textarea-div\">

\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"typearea\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea placeholder=\"Escribe un Comentario...\" id=\"textarea-expand\" class=\"custom-scroll\"></textarea>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- CHAT REPLY/SEND -->
\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"textarea-controls\">
开发者ID:networksoft,项目名称:seekerplus.com,代码行数:67,代码来源:d355d2a664c70db7c00ca3093828d5695218bfb57a082e4c7ece0a0beefb78fb.php

示例14: block_main

 public function block_main($context, array $blocks = array())
 {
     // line 27
     echo "\n        <div class=\"row\">\n            <div class=\"col-md-6\">\n                <form id=\"form1\" name=\"form1\" action=\"";
     // line 30
     echo $this->env->getExtension('routing')->getUrl("admin_order");
     echo "\" method=\"post\">\n                ";
     // line 31
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["searchOrderForm"]) ? $context["searchOrderForm"] : null, "_token", array()), 'widget');
     echo "\n                <input type=\"hidden\" id=\"admin_search_order_status\" name=\"admin_search_order[status]\" value=\"\">\n                <div class=\"box\" id=\"order_info\">\n                    <div class=\"box-header\">\n                        <h3 class=\"box-title\">受注状況<a href=\"";
     // line 35
     echo $this->env->getExtension('routing')->getUrl("admin_order");
     echo "\" class=\"icon_wrap\"><svg class=\"cb cb-angle-right\"> <use xlink:href=\"#cb-angle-right\" /></svg></a></h3>\n                    </div><!-- /.box-header -->\n                    <div class=\"box-body no-padding no-border\">\n                        <div class=\"link_list\">\n                            <div class=\"tableish\">\n                                ";
     // line 40
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["OrderStatuses"]) ? $context["OrderStatuses"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["OrderStatus"]) {
         // line 41
         echo "                                <a href=\"#\" class=\"item_box tr\" onclick=\"\$('#admin_search_order_status').val(";
         echo twig_escape_filter($this->env, $this->getAttribute($context["OrderStatus"], "id", array()), "html", null, true);
         echo ");document.form1.submit();\">\n                                    <div class=\"td\">";
         // line 42
         echo twig_escape_filter($this->env, $this->getAttribute($context["OrderStatus"], "name", array()), "html", null, true);
         echo "</div>\n                                    <div class=\"item_number text-right td\">";
         // line 43
         echo twig_escape_filter($this->env, !twig_test_empty(isset($context["Orders"]) ? $context["Orders"] : null) && $this->getAttribute(isset($context["Orders"]) ? $context["Orders"] : null, $this->getAttribute($context["OrderStatus"], "id", array()), array(), "array", true, true) ? $this->getAttribute(isset($context["Orders"]) ? $context["Orders"] : null, $this->getAttribute($context["OrderStatus"], "id", array()), array(), "array") : 0, "html", null, true);
         echo "</div>\n                                    <div class=\"icon_link td\">\n                                        <svg class=\"cb cb-angle-right\"> <use xlink:href=\"#cb-angle-right\" /></svg>\n                                    </div>\n                                </a><!-- /.item_box -->\n                                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['OrderStatus'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 49
     echo "                            </div>\n                        </div>\n                    </div><!-- /.box-body -->\n                </div><!-- /.box -->\n                </form>\n            </div><!-- /.col -->\n\n            <div class=\"col-md-6\">\n                <div class=\"box\" id=\"cube_news\">\n                    <div class=\"box-header\">\n                        <h3 class=\"box-title\">お知らせ</h3>\n                    </div><!-- /.box-header -->\n                    <div class=\"box-body no-padding no-border\">\n                        <iframe class=\"link_list_wrap\" src=\"";
     // line 62
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "eccube_info_url", array()), "html", null, true);
     echo "\"></iframe>\n                    </div><!-- /.box-body -->\n\n                </div><!-- /.box -->\n            </div><!-- /.col -->\n        </div>\n\n        <div class=\"row\">\n            <div class=\"col-md-8\">\n                <div class=\"box\" id=\"sale_info\">\n                    <div class=\"box-header\">\n                        <h3 class=\"box-title\">売り上げ状況</h3>\n                    </div><!-- /.box-header -->\n                    <div class=\"box-body no-padding no-border\">\n                        <div class=\"sale_box clearfix\">\n                            <div class=\"monthly_sale\">\n                                <div class=\"item_number\">\n                                    ";
     // line 79
     echo twig_escape_filter($this->env, twig_test_empty(isset($context["salesThisMonth"]) ? $context["salesThisMonth"] : null) ? "¥ 0" : $this->env->getExtension('eccube')->getPriceFilter($this->getAttribute(isset($context["salesThisMonth"]) ? $context["salesThisMonth"] : null, "order_amount", array())), "html", null, true);
     echo " / ";
     echo twig_escape_filter($this->env, twig_test_empty(isset($context["salesThisMonth"]) ? $context["salesThisMonth"] : null) ? 0 : twig_number_format_filter($this->env, $this->getAttribute(isset($context["salesThisMonth"]) ? $context["salesThisMonth"] : null, "order_count", array())), "html", null, true);
     echo " <span>件</span>\n                                    <div class=\"small\">今月の売上高 / 売上件数</div>\n                                </div>\n                            </div>\n                            <div class=\"yesterday_sale\">\n                                <div class=\"item_number\">\n                                    ";
     // line 85
     echo twig_escape_filter($this->env, twig_test_empty(isset($context["salesYesterday"]) ? $context["salesYesterday"] : null) ? "¥ 0" : $this->env->getExtension('eccube')->getPriceFilter($this->getAttribute(isset($context["salesYesterday"]) ? $context["salesYesterday"] : null, "order_amount", array())), "html", null, true);
     echo " / ";
     echo twig_escape_filter($this->env, twig_test_empty(isset($context["salesYesterday"]) ? $context["salesYesterday"] : null) ? 0 : twig_number_format_filter($this->env, $this->getAttribute(isset($context["salesYesterday"]) ? $context["salesYesterday"] : null, "order_count", array())), "html", null, true);
     echo " <span>件</span>\n                                    <div class=\"small\">昨日の売上高 / 売上件数</div>\n                                </div>\n                            </div>\n                            <div class=\"today_sale\">\n                                <div class=\"item_number\">\n                                    ";
     // line 91
     echo twig_escape_filter($this->env, twig_test_empty(isset($context["salesToday"]) ? $context["salesToday"] : null) ? "¥ 0" : $this->env->getExtension('eccube')->getPriceFilter($this->getAttribute(isset($context["salesToday"]) ? $context["salesToday"] : null, "order_amount", array())), "html", null, true);
     echo " / ";
     echo twig_escape_filter($this->env, twig_test_empty(isset($context["salesToday"]) ? $context["salesToday"] : null) ? 0 : twig_number_format_filter($this->env, $this->getAttribute(isset($context["salesToday"]) ? $context["salesToday"] : null, "order_count", array())), "html", null, true);
     echo "  <span>件</span>\n                                    <div class=\"small\">今日の売上高 / 売上件数</div>\n                                </div>\n                            </div>\n                        </div>\n                    </div><!-- /.box-body -->\n                </div><!-- /.box -->\n            </div><!-- /.col -->\n            <div class=\"col-md-4\">\n                <div class=\"box\" id=\"shop_info\">\n                    <div class=\"box-header\">\n                        <h3 class=\"box-title\">ショップ状況</h3>\n                    </div><!-- /.box-header -->\n                    <div class=\"box-body no-padding no-border\">\n                        <form id=\"form2\" name=\"form2\" action=\"";
     // line 105
     echo $this->env->getExtension('routing')->getUrl("admin_homepage_nonstock");
     echo "\" method=\"post\">\n                            ";
     // line 106
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["searchProductForm"]) ? $context["searchProductForm"] : null, "_token", array()), 'widget');
     echo "\n                        </form>\n                        <form id=\"form3\" name=\"form3\" action=\"";
     // line 108
     echo $this->env->getExtension('routing')->getUrl("admin_customer");
     echo "\" method=\"post\">\n                            ";
     // line 109
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["searchCustomerForm"]) ? $context["searchCustomerForm"] : null, "_token", array()), 'widget');
     echo "\n                            <input type=\"hidden\" id=\"admin_search_customer_status_1\" name=\"admin_search_customer[customer_status]\" value=\"2\">\n                        </form>\n                        <div class=\"link_list\">\n                            <div class=\"tableish\">\n                                <a href=\"#\" class=\"item_box tr\" onclick=\"document.form2.submit();\">\n                                    <div class=\"icon td\"><svg class=\"cb cb-tag-slash\"><use xlink:href=\"#cb-tag-slash\" /></svg></div>\n                                    <div class=\"item_number td\">";
     // line 116
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["countNonStockProducts"]) ? $context["countNonStockProducts"] : null), "html", null, true);
     echo "<div class=\"small\">在庫切れ商品</div></div>\n                                    <div class=\"icon_link td\">\n                                        <svg class=\"cb cb-angle-right\"> <use xlink:href=\"#cb-angle-right\" /></svg>\n                                    </div>\n                                </a><!-- /.item_box -->\n                                <a href=\"#\" class=\"item_box tr\" onclick=\"document.form3.submit();\">\n                                    <div class=\"icon td\"><svg class=\"cb cb-users\"><use xlink:href=\"#cb-users\" /></svg></div>\n                                    <div class=\"item_number text-left td\">";
     // line 123
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["countCustomers"]) ? $context["countCustomers"] : null), "html", null, true);
     echo "<div class=\"small\">会員数</div></div>\n                                    <div class=\"icon_link td\">\n                                        <svg class=\"cb cb-angle-right\"> <use xlink:href=\"#cb-angle-right\" /></svg>\n                                    </div>\n                                </a><!-- /.item_box -->\n                            </div>\n                        </div>\n                    </div><!-- /.box-body -->\n                </div><!-- /.box -->\n            </div><!-- /.col -->\n        </div>\n";
 }
开发者ID:kiyosue,项目名称:eccube3_plugin_study,代码行数:70,代码来源:b2452011550c3b87f82105785320d62b20618496ecbace53b2a87c6c090b2cad.php

示例15: block_body

 public function block_body($context, array $blocks = array())
 {
     $__internal_70dd0c3e603b08a7ee289888246413c1e79d8bea882365f91e9582286283718d = $this->env->getExtension("native_profiler");
     $__internal_70dd0c3e603b08a7ee289888246413c1e79d8bea882365f91e9582286283718d->enter($__internal_70dd0c3e603b08a7ee289888246413c1e79d8bea882365f91e9582286283718d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 24
     echo "    <!-- Two columns content -->\n    <section class=\"container content\">\n        <div class=\"row\">\n\n            <!-- On Sale Products -->\n            <section class=\"container content-row\">\n                <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>\n\n                <div class=\"col-md-4\"><h3>Nos meilleurs offres </h3></div>\n                <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></div>\n                <div class=\"clearfix\"></div>\n\n                <!-- Products list -->\n                <div class=\"row\">\n                    <div class=\"product-carousel\">\n                        ";
     // line 39
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["products"]) ? $context["products"] : $this->getContext($context, "products"));
     foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
         // line 40
         echo "\n                            <div class=\"item\">\n                                <div class=\"product-preview\">\n                                    <div class=\"preview animate scale\">\n                                        <a href=\"#\" class=\"preview-image\">\n                                            ";
         // line 45
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "medias", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
             // line 46
             echo "                                                <img class=\"img-responsive animate scale\" src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["media"], "AssertPath", array()), "my_thumb_front_img_naturel"), "html", null, true);
             echo "\" width=\"270\" height=\"328\" alt=\"\">\n                                            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 48
         echo "                                        </a>\n                                        <ul class=\"product-controls-list right\">\n                                            <li><span class=\"label label-sale\">";
         // line 50
         echo twig_escape_filter($this->env, twig_upper_filter($this->env, "solde"), "html", null, true);
         echo "</span></li>\n                                            ";
         // line 51
         $context["percents"] = 0;
         // line 52
         echo "                                            ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "promotions", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["promo"]) {
             // line 53
             echo "                                                ";
             $context["percents"] = $this->getAttribute($context["promo"], "percent", array());
             // line 54
             echo "                                                <li><span class=\"label\">-";
             echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["promo"], "percent", array()), 0), "html", null, true);
             echo "%</span></li>\n                                            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promo'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 56
         echo "                                        </ul>\n                                        <ul class=\"product-controls-list right hide-right\">\n                                            <li class=\"top-out\"></li>\n                                            <li><a href=\"#\" class=\"cart\"><span class=\"icon-basket\"></span></a></li>\n                                        </ul>\n                                    </div>\n                                    <div class=\"bg-shop-write\">\n                                        <h3 class=\"title thumbnail-desc\">\n                                            <a href=\"#\" width=\"150\">";
         // line 64
         echo twig_escape_filter($this->env, twig_truncate_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["product"], "name", array())), 200, true, "..."), "html", null, true);
         echo "</a>\n                                        </h3>\n\n                                   <span class=\"price old\" style=\"display: inline-block\">\n                                       ";
         // line 68
         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["product"], "PriceStandard", array()), 0, ",", "."), "html", null, true);
         echo " FCFA\n                                   </span> <br/>\n                                   <span class=\"price new\" style=\"display: inline-block\">\n                                        ";
         // line 71
         $context["price"] = $this->getAttribute($context["product"], "PriceStandard", array()) - $this->getAttribute($context["product"], "PriceStandard", array()) * ((isset($context["percents"]) ? $context["percents"] : $this->getContext($context, "percents")) / 100);
         // line 72
         echo "                                       ";
         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["price"]) ? $context["price"] : $this->getContext($context, "price"), 0, ",", "."), "html", null, true);
         echo " FCFA\n                                   </span>\n                                        <p>&nbsp;&nbsp;&nbsp;</p>\n                                        <div class=\"thumbnail-sub\">\n                                            <a href=\"#\">";
         // line 76
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["product"], "section", array()), "name", array()), "html", null, true);
         echo "</a><br/>\n                                            ";
         // line 77
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "marks", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["mk"]) {
             // line 78
             echo "                                                <span>-&nbsp;<a href=\"#\">";
             echo twig_escape_filter($this->env, $this->getAttribute($context["mk"], "name", array()), "html", null, true);
             echo "</a></span>\n                                            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mk'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 80
         echo "                                        </div>\n                                        <p>&nbsp;&nbsp;</p>\n                                        <div>\n                                            ";
         // line 83
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "promotions", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["promoEnd"]) {
             // line 84
             echo "                                                <strong>&nbsp;Offre valable jusqu'au :</strong> <span class=\"label label-danger\" style=\"font-weight: bold; color: #fff;\">";
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["promoEnd"], "end", array()), "d-m-Y"), "html", null, true);
             echo "</span>\n                                            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promoEnd'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 86
         echo "                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 92
     echo "\n                    </div>\n                    <!-- product view ajax container -->\n                    <div class=\"product-view-ajax-container\"> </div>\n                    <!-- //end product view ajax container -->\n                </div>\n                <!-- //end Products list -->\n            </section>\n\n            ";
     // line 101
     echo $this->env->getExtension('actions')->renderUri($this->env->getExtension('http_kernel')->controller("LabsFrontBundle:Default:getSidebarInfo"), array());
//.........这里部分代码省略.........
开发者ID:raphydev,项目名称:webcomshop,代码行数:101,代码来源:6330de412516a47845a2212e69dede0c59f7996a8f9360634740d56e0bb15cab.php


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