protected function doDisplay(array $context, array $blocks = array()) { $__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f = $this->env->getExtension("native_profiler"); $__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f->enter($__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "WebProfilerBundle:Profiler:toolbar_item.html.twig")); // line 1 if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) { // line 2 echo " "; ob_start(); // line 3 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "html", null, true); echo "</a>\n "; $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); } // line 6 echo "<div class=\"sf-toolbar-block\">\n <div class=\"sf-toolbar-icon\">"; // line 7 echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true); echo "</div>\n <div class=\"sf-toolbar-info\">"; // line 8 echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true); echo "</div>\n</div>\n"; $__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f->leave($__internal_7088dc18de042b162a99a327c85232e1f7c79938f5c6e62a2f20a47464d52c5f_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee = $this->env->getExtension("native_profiler"); $__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee->enter($__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig")); // line 1 if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) { // line 2 echo " "; ob_start(); // line 3 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "html", null, true); echo "</a>\n "; $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); } // line 6 echo "<div class=\"sf-toolbar-block\">\n <div class=\"sf-toolbar-icon\">"; // line 7 echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true); echo "</div>\n <div class=\"sf-toolbar-info\">"; // line 8 echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true); echo "</div>\n</div>\n"; $__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee->leave($__internal_47e46a679ebe1f6c3fe3890c127d510e112b274d7f29ddc36299a2ef0416fbee_prof); }
public function block_body($context, array $blocks = array()) { // line 4 echo "<h1>Liste des pays</h1>\n\n <table class=\"table table-hover table-striped table-bordered .table-responsive\">\n <thead>\n <tr>\n <th>Pays</th>\n <th>Actions</th>\n </tr>\n </thead>\n <tbody>\n "; // line 14 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : null); foreach ($context['_seq'] as $context["_key"] => $context["entity"]) { // line 15 echo " <tr>\n <td><a href=\""; // line 16 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pays_show", array("id" => $this->getAttribute($context["entity"], "id", array()))), "html", null, true); echo "\">["; echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "id", array()), "html", null, true); echo "] "; echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "pays", array()), "html", null, true); echo "</a></td>\n <td>\n\t\t\t\t\t<div style=\"white-space:nowrap\">\n\t\t\t\t\t\t\t<a href=\""; // line 19 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pays_show", array("id" => $this->getAttribute($context["entity"], "id", array()))), "html", null, true); echo "\" class=\"btn btn-info \"><i class=\"fa fa-eye\"></i></a>\n\t\t\t\t\t\t\t<a href=\""; // line 20 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pays_edit", array("id" => $this->getAttribute($context["entity"], "id", array()))), "html", null, true); echo "\" class=\"btn btn-warning \"><i class=\"fa fa-pencil\"></i></a>\n\t\t\t\t\t</div>\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 25 echo " </tbody>\n </table>\n\n <div class=\"container panel panel-default mypanel\">\n <div class=\"row panel-body\">\n <a href=\""; // line 30 echo $this->env->getExtension('routing')->getPath("pays_new"); echo "\" class=\"btn btn-default\">\n Ajouter un pays\n </a>\n </div>\n </div>\n \n\t\n "; }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_2186f5936d52b36518240845e01658c4a7f88f5b34c8a015e5c9554e7e276997 = $this->env->getExtension("native_profiler"); $__internal_2186f5936d52b36518240845e01658c4a7f88f5b34c8a015e5c9554e7e276997->enter($__internal_2186f5936d52b36518240845e01658c4a7f88f5b34c8a015e5c9554e7e276997_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/layout.html.twig")); // line 1 echo "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\""; // line 4 echo twig_escape_filter($this->env, $this->env->getCharset(), "html", null, true); echo "\" />\n <meta name=\"robots\" content=\"noindex,nofollow\" />\n <title>"; // line 6 $this->displayBlock('title', $context, $blocks); echo "</title>\n <link href=\""; // line 7 echo twig_escape_filter($this->env, $this->env->getExtension('request')->generateAbsoluteUrl($this->env->getExtension('asset')->getAssetUrl("bundles/framework/css/structure.css")), "html", null, true); echo "\" rel=\"stylesheet\" />\n <link href=\""; // line 8 echo twig_escape_filter($this->env, $this->env->getExtension('request')->generateAbsoluteUrl($this->env->getExtension('asset')->getAssetUrl("bundles/framework/css/body.css")), "html", null, true); echo "\" rel=\"stylesheet\" />\n "; // line 9 $this->displayBlock('head', $context, $blocks); // line 10 echo " </head>\n <body>\n <div id=\"content\">\n <div class=\"header clear-fix\">\n <div class=\"header-logo\">\n <img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALYAAAA+CAMAAACxzRGDAAAAUVBMVEX////Ly8yko6WLioxkYmVXVVkwLjLl5eWxsLJKSEzy8vJxcHLY2Ni+vb89Oz9XVVh+fH+Yl5n///+xsbLY2Nlxb3KkpKWXlph+fX+LiYy+vr/IZP61AAAAAXRSTlMAQObYZgAABRBJREFUeNrVmtuWoyAQRS1FEEQSzQU7//+hYxUiXsKQZLJWM+chsUloN+WhCuguYoKyYqzmvGasKqH4HyRKxndipcgcumH8qViTM7TkUclcwaHmf5XM0eWq4km1KjdqXfMXJHVe1J3hL8lk5fCGv6wmT+o0d87U+XNrk0Y9nfv+7LM6ZJH5ZBL6LAbSxQ3Q5FDr22Skr8PQSy4n7isnsQxSX4r6pobhjCHHeDNOKrO3yGmCvZOjV9jmt8ulTdXFKdbKLNh+kOMvBzuVRa4Y7MUsdEUSWQe7xxCfZmcwjHU83LqzFvSbJQOXQvptbPnEFoyZtUUGwTeKuLuTHyT1kaP0P6cR01OKvv448gtl61dqZfmJezQmU/t+1R2fJLtBwXV6uWGwB9SZPrn0fKO2WAvQN1PUhHjTom3xgXYTkvlSKHs19OhslETq6X3HrXbjt8XbGj9b4Gi+lUAnL6XxQj8Pyk9N4Bt1xUrsLVN/3isYMug8rODMdbgOvoHs8uAb2fcANIAzkKCLYy+AXRpSU8sr1r4P67xhLgPp7vM32zlqt7Bhq2fI1Hwp+VgANxok59SsGV3oqdUL0YVDMRY7Yg8QLbVUU4NZNoOq5hJHuxEM28Sh/IyUZ8D3reR+yc58EGvOy2U0HQL6G9V+kWyEWHmzaMx6t4o9RhOm/riUiYrzqij4Ptqkn7AaCXqc+F47m04ahfde7YIz8RHEBN6BdVwdIGRVdNbKqYu1Hc0x0wBY4wqC8+XUgBGnj81SZsQB+0yAS1x/BlI/6ebHHk0lauQLuPDpu6EwAVJ7T0rl2uXa23jcqNyOZekhqYHRz3JOANrF4wCCmEs1f9D1lUe0n4NAATed80Y5e0Q7CO2TezM/BR6wKdgQzKbCF4uOQC3Bk0fKAzbFlyRWg3gksA/gmm7eOjrpaKX7fHlEW2xLbE6GZsPiCiShVzN7RG2xTz2G+OJtEqzdJ7APxy3MrSsV0VukXbKMp9lhs5BN6dr3CN+sySUaoxGwfRUM3I/gdPYONgVU+PLX4vUWm32AvUySarbONvcpV2RQEPKKjEBHFk01kQDGRblnn8ZuE9g+JUl8OWAPbkFK2K6JxhJVvF47FzYYnAN22ttwxKYCoH36rheEB7KG/HF/YUaa2G5JF+55tpyrl7B1WHM39HuP2N2EXPl1UBu8vbj4OjvD+NoTE4ssF+ScARgaJY1N7+u8bY/Y9BSM5PKwJbvMVab32YP5FB5TtcYVrGoASolVLTzI7kVsYVxRtAb5n2JXq1vCdtd47XtYItynrN0835PasLg0y13aOPbmPI+on2Lr9e5tjSHvgkAvclUjL3Fsdaw03IzgTR62yYClk7QMah4IQ0qSsoYYbOix6zJR1ZGDNMOY3Bb6W5S6jiyovep3t7bUPyoq7OkjYumrfESp8zSBc/OLosVf+nTnnKjsqR16++WDwpI8FxJWRFTlI6NKnqYJaL96TqjAbo9Toi5QiWBDcmfdFV+T8dkvFe5bItgstbM2X6QG2mVun+cazfRwOS0eiaeRRJKgLfc3BQAqfnhJyz8lfR6580SF/FXVu83Nz1xrrnFqqXL6Qxl47DNSm4RFflvN5sABDD8peouqLLKQXVdGbnqf+qIpOxON4ZyYdJEJ6sy4zS2c5eRPTT4Jyp46qDE5/ptAWqJOQ9e6yE82FXBbZCk1/tXVoshVoopE3CB0zmraI3nbqCJ/gW3ZMgtbC5nh/QHlOoOZBxQCRgAAAABJRU5ErkJggg==\" alt=\"Symfony\" />\n </div>\n\n <div class=\"search\">\n <form method=\"get\" action=\"https://symfony.com/search\" target=\"_blank\">\n <div class=\"form-row\">\n <label for=\"search-id\">\n <img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAABUElEQVQoz2NgAIJ29iBdD0d7X2cPb+tY2f9MDMjgP2O2hKu7vS8CBlisZUNSMJ3fxRMkXO61wm2ue6I3iB1q8Z8ZriDZFCS03fm/wX+1/xp/TBo8QPxeqf+MUAW+QIFKj/+q/wX/c/3n/i/6Qd/bx943z/Q/K1SBI1D9fKv/AhCn/Wf5L5EHdFGKw39OqAIXoPpOMziX4T9/DFBBnuN/HqhAEtCKCNf/XDA/rZRyAmrpsvrPDVUw3wrkqCiLaewg6TohX1d7X0ffs5r/OaAKfinmgt3t4ulr4+Xg4ANip3j+l/zPArNT4LNOD0pAgWCSOUIBy3+h/+pXbBa5tni0eMx23+/mB1YSYnENroT5Pw/QSOX/mkCo+l/jgo0v2KJA643s8PgAmsMBDCbu/5xALHPB2husxN9uCzsDOgAq5kAoaZVnYMCh5Ky1r88Eh/+iABM8jUk7ClYIAAAAAElFTkSuQmCC\" alt=\"Search on Symfony website\" />\n </label>\n\n <input name=\"q\" id=\"search-id\" type=\"search\" placeholder=\"Search on Symfony website\" />\n\n <button type=\"submit\" class=\"sf-button\">\n <span class=\"border-l\">\n <span class=\"border-r\">\n <span class=\"btn-bg\">OK</span>\n </span>\n </span>\n </button>\n </div>\n </form>\n </div>\n </div>\n\n <div class=\"sf-reset\">\n "; // line 40 $this->displayBlock('body', $context, $blocks); // line 41 echo " </div>\n </div>\n </body>\n</html>\n"; $__internal_2186f5936d52b36518240845e01658c4a7f88f5b34c8a015e5c9554e7e276997->leave($__internal_2186f5936d52b36518240845e01658c4a7f88f5b34c8a015e5c9554e7e276997_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $this->env->loadTemplate("OpportunityBundle:Default:shareUserModal.html.twig")->display($context); // line 2 echo "<div class=\"panel panel-default\">\n <div class=\"panel-body\">\n <div style=\"padding:25px\">\n <div class=\"row\">\n <div class=\"col-lg-12\">\n <div class=\"pull-right\"> \n <span calss=\"pull-right\">\n <a href=\"#\" style=\"color: black;\" data-toggle=\"modal\" data-target=\"#myModal\"><i class=\"fa fa-search\"></i> Filters</a>\n </span>\n "; // line 11 if (!array_key_exists("contactid", $context)) { // line 12 echo " <span calss=\"pull-right\" style=\"margin-left: 10px; border-left: 2px solid #ddd;\">\n <a href=\"javascript:showHideContacts()\" id=\"showHide\" style=\"color: black;margin-left: 5px;\"><i class=\"fa fa-eye-slash\" id=\"showContacttoggle\"></i></a>\n </span>\n "; } // line 16 echo " <span calss=\"pull-right\" style=\"margin-left: 2px;border-right: 2px solid #ddd;border-left: 2px solid #ddd;\">\n <a href=\"javascript:refreshTable()\" style=\"color: black;\"><i class=\"fa fa-refresh fa-lg\" style=\"margin-left: 5px;margin-right: 2px;\"></i></a>\n </span>\n <span calss=\"pull-right\" style=\"margin-left: 10px\">\n <a href=\"javascript:window.print()\" style=\"color: black;\"><i class=\"fa fa-print fa-lg\"></i></a>\n </span>\n "; // line 25 echo " <span calss=\"pull-right\" style=\"margin-left: 10px\">\n <a href=\"javascript:exportTableDataToCSV()\" style=\"color: black;\"><i class=\"fa fa-file-excel-o fa-lg\"></i></a>\n </span>\n <span calss=\"pull-right\" style=\"margin-left: 10px\">\n <a href=\"javascript:exportTableDataToPDF()\" id='pdfexport' style=\"color: black;\"><i class=\"fa fa-file-pdf-o fa-lg\"></i></a>\n </span>\n <span calss=\"pull-right\" style=\"margin-left: 10px\">\n <a href=\"javascript:resetTable()\" style=\"color: black;\"><i class=\"fa fa-times fa-lg\"></i></a>\n </span>\n </div>\n </div>\n </div>\n\n "; // line 38 $this->env->loadTemplate("OpportunityBundle:Default:filterModal.html.twig")->display($context); // line 39 echo " \n <div class=\"row\">\n <div class=\"col-lg-12\" id=\"tableDiv\" style=\"display: none\">\n <div id=\"user-table-div\" class=\"table-responsive\" style=\"min-height: 360px;padding-bottom: 100px\">\n <table id=\"table\"\n data-toggle=\"table\"\n data-detail-view=\"true\"\n data-search=\"true\"\n data-page-size=\""; // line 47 echo twig_escape_filter($this->env, isset($context["manageview"]) ? $context["manageview"] : $this->getContext($context, "manageview"), "html", null, true); echo "\"\n data-page-list=\"[10,25,50]\"\n data-pagination=\"true\"\n data-show-columns=\"true\"\n data-detail-formatter=\"detailFormatter\"\n data-row-style=\"rowStyle\">\n <thead>\n <tr>\n <th data-field=\"state\" data-checkbox=\"true\"></th>\n <th data-field=\"name\" data-sortable=\"true\">Name</th>\n <th data-field=\"company\" data-sortable=\"true\">Company</th>\n <th data-field=\"product_type\" data-sortable=\"true\">Product <br>Type</th>\n <th data-field=\"stage\" data-sortable=\"true\">Stage</th>\n <th data-field=\"weighted_revenue\" data-sortable=\"true\">Weighted<br> Revenue</th>\n <th data-field=\"projected_revenue\" data-sortable=\"true\">Projected<br> Revenue</th>\n <th data-field=\"expected_closed_date\" data-sortable=\"true\">Expected Close<br> Deals</th>\n <th data-field=\"owner\" data-sortable=\"true\">Owner</th>\n <th data-field=\"deal_account_type\" data-sortable=\"true\">account type</th>\n <th data-field=\"deal_source\" data-sortable=\"true\">source</th>\n <th data-field=\"action\">Action</th>\n <th data-field=\"tags\">tags</th>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n</div>\n"; // line 78 $this->env->loadTemplate("OpportunityBundle:Default:opportunityTableScript.html.twig")->display($context); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_820209f0de803f23c5c55988658f5e579064679e98e57a683a7a6b5b5e40ae76 = $this->env->getExtension("native_profiler"); $__internal_820209f0de803f23c5c55988658f5e579064679e98e57a683a7a6b5b5e40ae76->enter($__internal_820209f0de803f23c5c55988658f5e579064679e98e57a683a7a6b5b5e40ae76_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig")); // line 1 echo "<div class=\"sf-toolbar-block sf-toolbar-block-"; echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true); echo " sf-toolbar-status-"; echo twig_escape_filter($this->env, array_key_exists("status", $context) ? _twig_default_filter(isset($context["status"]) ? $context["status"] : $this->getContext($context, "status"), "normal") : "normal", "html", null, true); echo " "; echo twig_escape_filter($this->env, array_key_exists("additional_classes", $context) ? _twig_default_filter(isset($context["additional_classes"]) ? $context["additional_classes"] : $this->getContext($context, "additional_classes"), "") : "", "html", null, true); echo "\">\n "; // line 2 if (array_key_exists("link", $context) ? _twig_default_filter(isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"), true) : true) { echo "<a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true); echo "\">"; } // line 3 echo " <div class=\"sf-toolbar-icon\">"; echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true); echo "</div>\n "; // line 4 if (array_key_exists("link", $context) ? _twig_default_filter(isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"), true) : true) { echo "</a>"; } // line 5 echo " <div class=\"sf-toolbar-info\">"; echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true); echo "</div>\n</div>\n"; $__internal_820209f0de803f23c5c55988658f5e579064679e98e57a683a7a6b5b5e40ae76->leave($__internal_820209f0de803f23c5c55988658f5e579064679e98e57a683a7a6b5b5e40ae76_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["updates"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "platform", array()), "updates", array()); // line 2 if (isset($context["updates"]) ? $context["updates"] : null) { // line 3 $context["version"] = twig_last($this->env, twig_split_filter($this->env, $this->getAttribute(isset($context["updates"]) ? $context["updates"] : null, 0, array()), " ")); // line 4 echo "<div class=\"g-grid\">\n <div class=\"g-block\">\n <div class=\"update-header clearfix\">\n <span class=\"update-text\">"; // line 7 echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_UPDATES_AVAILABLE"), "html", null, true); echo ": "; echo twig_escape_filter($this->env, twig_join_filter(isset($context["updates"]) ? $context["updates"] : null, ", "), "html", null, true); echo "</span>\n <div class=\"update-tools\">\n <a href=\""; // line 9 echo $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "platform", array()), "update", array()); echo "\" class=\"button button-update\"><i class=\"fa fa-refresh\"></i> <span>"; echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_UPDATE"), "html", null, true); echo "</span></a>\n <a href=\"#\" data-changelog=\""; // line 10 echo twig_escape_filter($this->env, isset($context["version"]) ? $context["version"] : null, "html", null, true); echo "\" class=\"button button-update\"><i class=\"fa fa-book\"></i> <span>"; echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_CHANGELOG"), "html", null, true); echo "</span></a>\n <a href=\"#\" class=\"fa fa-close\" data-g-close=\".g-grid\"></a>\n </div>\n </div>\n </div>\n</div>\n"; } }
public function block_content($context, array $blocks = array()) { // line 6 echo " <h1>Hello "; echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true); echo "!</h1>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!-- Map -->\n<div id=\"map-canvas\" class=\"google-map\" style=\"height: "; // line 2 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["__SELF__"]) ? $context["__SELF__"] : null, "property", array(0 => "height"), "method"), "html", null, true); echo "; width: "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["__SELF__"]) ? $context["__SELF__"] : null, "property", array(0 => "width"), "method"), "html", null, true); echo ";\"></div>\n<script src=\"https://maps.googleapis.com/maps/api/js?v=3.exp&key="; // line 3 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["__SELF__"]) ? $context["__SELF__"] : null, "property", array(0 => "apiKey"), "method"), "html", null, true); echo "\"></script> \n<script>\n// This example adds a marker to indicate the position\n// of Bondi Beach in Sydney, Australia\nfunction initialize() {\n var center = new google.maps.LatLng("; // line 8 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["__SELF__"]) ? $context["__SELF__"] : null, "property", array(0 => "latitude"), "method"), "html", null, true); echo ", "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["__SELF__"]) ? $context["__SELF__"] : null, "property", array(0 => "longitude"), "method"), "html", null, true); echo ");\n\n var mapOptions = {\n zoom: "; // line 11 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["__SELF__"]) ? $context["__SELF__"] : null, "property", array(0 => "zoom"), "method"), "html", null, true); echo ",\n center: center,\n scrollwheel: false,\n navigationControl: false,\n mapTypeControl: false,\n scaleControl: false,\n draggable: true,\n zoomControl:false,\n streetViewControl:false,\n overviewMapControl:false,\n rotateControl:false,\n mapTypeId: google.maps.MapTypeId."; // line 22 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["__SELF__"]) ? $context["__SELF__"] : null, "property", array(0 => "mapTypeId"), "method"), "html", null, true); echo "\n }\n\n var map = new google.maps.Map(document.getElementById('map-canvas'),mapOptions);\n var styles = [\n\t{\n\t\tstylers: [\n\t\t\t{ saturation: -100 },\n\t { \"invert_lightness\": false },\n\t { lightness: 30 }\n\t ]\n\t}\n];\n map.setOptions({styles: styles});\n\n "; // line 37 if ($this->getAttribute(isset($context["__SELF__"]) ? $context["__SELF__"] : null, "property", array(0 => "showMarker"), "method")) { // line 38 echo " var beachMarker = new google.maps.Marker({\n map: map,\n icon: {\n path: fontawesome.markers.MAP_MARKER,\n scale: 0.8,\n strokeWeight: 0.2,\n strokeColor: 'white',\n strokeOpacity: 1,\n fillColor: '#ff7043',\n fillOpacity: 1,\n },\n clickable: false,\n position: center\n });\n "; } // line 53 echo "}\n\ngoogle.maps.event.addDomListener(window, 'load', initialize);\n</script>"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<div class=\"col-md-6\">\n <div class=\"check_datxe\">\n <h4>"; // line 3 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Thông tin vé")), "html", null, true); echo "</h4>\n <p style=\"font-size: 18px\">"; // line 4 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Mã vé")), "html", null, true); echo ": 12345</p>\n <p class=\"hightlight\">Hà Nội - Trong thành phố</p>\n <p>"; // line 6 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Giờ đi")), "html", null, true); echo ":</p>\n <p>"; // line 7 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Ngày đi")), "html", null, true); echo ":</p>\n <p>"; // line 8 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Phương tiện")), "html", null, true); echo ":</p>\n <p>"; // line 9 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Hình thức")), "html", null, true); echo ":</p>\n <p>"; // line 10 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Trả khách")), "html", null, true); echo ":</p>\n <p>"; // line 11 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Số lượng")), "html", null, true); echo ":</p>\n <p>"; // line 12 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Hình thức thanh toán")), "html", null, true); echo ":</p>\n <hr/>\n <h3 style=\"float: right\">200.000 VNĐ</h3>\n <div style=\"clear: both\"></div>\n </div>\n </div>"; }
public function block_content($context, array $blocks = array()) { // line 10 echo "<table class=\"records_list table table-hover table-striped table-bordered table-condensed\">\n <thead>\n <tr>\n <th>Id</th>\n <th>Nombre</th>\n <th>Actions</th>\n </tr>\n </thead>\n <tbody>\n "; // line 19 $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["entity"]) { // line 20 echo " <tr>\n <td><a href=\""; // line 21 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clasificadoretapa_show", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"), "html", null, true); echo "</a></td>\n <td>"; // line 22 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "nombre"), "html", null, true); echo "</td>\n <td>\n <ul>\n <li>\n <a href=\""; // line 26 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clasificadoretapa_show", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true); echo "\">show</a>\n </li>\n <li>\n <a href=\""; // line 29 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clasificadoretapa_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true); echo "\">edit</a>\n </li>\n </ul>\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 35 echo " </tbody>\n </table>\n\n <ul>\n <li>\n <a href=\""; // line 40 echo $this->env->getExtension('routing')->getPath("clasificadoretapa_new"); echo "\">\n Create a new entry\n </a>\n </li>\n </ul>\n "; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<div class=\"form-group\">\n <form> \n <input id=\"id_user\" type=\"hidden\" value=\"\" placeholder=\"id\">\n <input id=\"id_login\" type=\"text\" value=\"\" placeholder=\"Login\">\n <input id=\"id_passe\" type=\"text\" value=\"\" placeholder=\"Mote de passe\"> \n <input type=\"button\" onclick=\"UsrValider()\" value=\"Valider\" id=\"btnValUser\">\n <input type=\"button\" onclick=\"userModifier()\" value=\"Modifier\" id=\"btnModUser\" style=\"display: none\"> \n </form>\n</div>\n\n\n<div class=\"panel-body\">\n <div class=\"table-responsive\">\n <table class=\"table table-bordered table-hover table-striped\">\n <thead>\n <tr>\n <th>Id</th>\n <th>Logim</th>\n <th>Mot de Passe</th>\n <th> </th>\n <th> </th>\n </tr>\n </thead>\n <tbody>\n "; // line 25 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["users"]) ? $context["users"] : $this->getContext($context, "users")); foreach ($context['_seq'] as $context["_key"] => $context["u"]) { // line 26 echo " <tr>\n <td>"; // line 27 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "id"), "html", null, true); echo "</td>\n <td>\n <a href='#' onclick=\"UsrAfficher("; // line 29 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "id"), "html", null, true); echo ")\">\n "; // line 30 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "login"), "html", null, true); echo "\n </a>\n </td>\n <td>"; // line 33 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "password"), "html", null, true); echo "</td>\n <td></td>\n <td> <a href=\"#\" onclick=\"supprimer("; // line 35 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "id"), "html", null, true); echo ")\" > Supprimer</a></td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['u'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 38 echo " </tbody>\n </table>\n </div> \n</div>\n</div>\n</div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_023609d92d381e03bd445478c92dce8749d9d9476b3dad6d0720ffef1d0d4875 = $this->env->getExtension("native_profiler"); $__internal_023609d92d381e03bd445478c92dce8749d9d9476b3dad6d0720ffef1d0d4875->enter($__internal_023609d92d381e03bd445478c92dce8749d9d9476b3dad6d0720ffef1d0d4875_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig")); // line 1 if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) { // line 2 echo " "; ob_start(); // line 3 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "html", null, true); echo "</a>\n "; $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); } // line 6 echo "<div class=\"sf-toolbar-block\">\n <div class=\"sf-toolbar-icon\">"; // line 7 echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true); echo "</div>\n <div class=\"sf-toolbar-info\">"; // line 8 echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true); echo "</div>\n</div>\n"; $__internal_023609d92d381e03bd445478c92dce8749d9d9476b3dad6d0720ffef1d0d4875->leave($__internal_023609d92d381e03bd445478c92dce8749d9d9476b3dad6d0720ffef1d0d4875_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "Hello "; echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true); echo "!\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<form action=\""; echo $this->env->getExtension('routing')->getPath("fos_user_security_check"); echo "\" method=\"post\">\n <fieldset>\n <input type=\"hidden\" name=\"_csrf_token\" value=\""; // line 3 echo twig_escape_filter($this->env, isset($context["csrf_token"]) ? $context["csrf_token"] : null, "html", null, true); echo "\" />\n\n <label for=\"username\">"; // line 5 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("security.login.username", array(), "FOSUserBundle"), "html", null, true); echo "</label>\n <input type=\"text\" id=\"username\" name=\"_username\" value=\""; // line 6 echo twig_escape_filter($this->env, isset($context["last_username"]) ? $context["last_username"] : null, "html", null, true); echo "\" />\n\n <p> <label for=\"password\">"; // line 8 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("security.login.password", array(), "FOSUserBundle"), "html", null, true); echo "</label>\n <input type=\"password\" id=\"password\" name=\"_password\" /></p>\n\n <p><input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />\n <label for=\"remember_me\">"; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("security.login.remember_me", array(), "FOSUserBundle"), "html", null, true); echo "</label></p>\n\n <p><input type=\"submit\" id=\"_submit\" name=\"_submit\" value=\""; // line 14 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("security.login.submit", array(), "FOSUserBundle"), "html", null, true); echo "\" /></p>\n </fieldset>\n</form>"; }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549 = $this->env->getExtension("native_profiler"); $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549->enter($__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/base_js.html.twig")); // line 1 echo "<script>/*<![CDATA[*/\n Sfjs = (function() {\n \"use strict\";\n\n var noop = function() {},\n\n collectionToArray = function (collection) {\n var length = collection.length || 0,\n results = new Array(length);\n\n while (length--) {\n results[length] = collection[length];\n }\n\n return results;\n },\n\n profilerStorageKey = 'sf2/profiler/',\n\n request = function(url, onSuccess, onError, payload, options) {\n var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');\n options = options || {};\n options.maxTries = options.maxTries || 0;\n xhr.open(options.method || 'GET', url, true);\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n xhr.onreadystatechange = function(state) {\n if (4 !== xhr.readyState) {\n return null;\n }\n\n if (xhr.status == 404 && options.maxTries > 1) {\n setTimeout(function(){\n options.maxTries--;\n request(url, onSuccess, onError, payload, options);\n }, 500);\n\n return null;\n }\n\n if (200 === xhr.status) {\n (onSuccess || noop)(xhr);\n } else {\n (onError || noop)(xhr);\n }\n };\n xhr.send(payload || '');\n },\n\n hasClass = function(el, klass) {\n return el.className && el.className.match(new RegExp('\\\\b' + klass + '\\\\b'));\n },\n\n removeClass = function(el, klass) {\n if (el.className) {\n el.className = el.className.replace(new RegExp('\\\\b' + klass + '\\\\b'), ' ');\n }\n },\n\n addClass = function(el, klass) {\n if (!hasClass(el, klass)) {\n el.className += \" \" + klass;\n }\n },\n\n getPreference = function(name) {\n if (!window.localStorage) {\n return null;\n }\n\n return localStorage.getItem(profilerStorageKey + name);\n },\n\n setPreference = function(name, value) {\n if (!window.localStorage) {\n return null;\n }\n\n localStorage.setItem(profilerStorageKey + name, value);\n },\n\n requestStack = [],\n\n renderAjaxRequests = function() {\n var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');\n if (!requestCounter.length) {\n return;\n }\n\n var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');\n var state = 'ok';\n if (tbodies.length) {\n var tbody = tbodies[0];\n\n var rows = document.createDocumentFragment();\n\n if (requestStack.length) {\n for (var i = 0; i < requestStack.length; i++) {\n var request = requestStack[i];\n\n var row = document.createElement('tr');\n rows.appendChild(row);\n\n var methodCell = document.createElement('td');\n if (request.error) {\n methodCell.className = 'sf-ajax-request-error';\n }\n methodCell.textContent = request.method;\n row.appendChild(methodCell);\n\n var pathCell = document.createElement('td');\n pathCell.className = 'sf-ajax-request-url';\n if ('GET' === request.method) {\n var pathLink = document.createElement('a');\n pathLink.setAttribute('href', request.url);\n pathLink.textContent = request.url;\n pathCell.appendChild(pathLink);\n } else {\n pathCell.textContent = request.url;\n }\n pathCell.setAttribute('title', request.url);\n row.appendChild(pathCell);\n\n var durationCell = document.createElement('td');\n durationCell.className = 'sf-ajax-request-duration';\n\n if (request.duration) {\n durationCell.textContent = request.duration + \"ms\";\n } else {\n durationCell.textContent = '-';\n }\n row.appendChild(durationCell);\n\n row.appendChild(document.createTextNode(' '));\n var profilerCell = document.createElement('td');\n\n if (request.profilerUrl) {\n var profilerLink = document.createElement('a');\n profilerLink.setAttribute('href', request.profilerUrl);\n profilerLink.textContent = request.profile;\n profilerCell.appendChild(profilerLink);\n } else {\n profilerCell.textContent = 'n/a';\n }\n\n row.appendChild(profilerCell);\n\n var requestState = 'ok';\n if (request.error) {\n requestState = 'error';\n if (state != \"loading\" && i > requestStack.length - 4) {\n state = 'error';\n }\n } else if (request.loading) {\n requestState = 'loading';\n state = 'loading';\n }\n row.className = 'sf-ajax-request sf-ajax-request-' + requestState;\n }\n\n var infoSpan = document.querySelectorAll(\".sf-toolbar-ajax-info\")[0];\n var children = collectionToArray(tbody.children);\n for (var i = 0; i < children.length; i++) {\n tbody.removeChild(children[i]);\n }\n tbody.appendChild(rows);\n\n if (infoSpan) {\n var text = requestStack.length + ' call' + (requestStack.length > 1 ? 's' : '');\n infoSpan.textContent = text;\n }\n } else {\n var cell = document.createElement('td');\n cell.setAttribute('colspan', '4');\n cell.textContent = \"No AJAX requests yet.\";\n var row = document.createElement('tr');\n row.appendChild(cell);\n tbody.appendChild(row);\n }\n }\n\n requestCounter[0].textContent = requestStack.length;\n\n var className = 'sf-toolbar-ajax-requests sf-toolbar-status';\n if (state == 'ok') {\n className += ' sf-toolbar-status-green';\n } else if (state == 'error') {\n className += ' sf-toolbar-status-red';\n } else {\n className += ' sf-ajax-request-loading';\n }\n\n requestCounter[0].className = className;\n };\n\n var addEventListener;\n\n var el = document.createElement('div');\n if (!'addEventListener' in el) {\n addEventListener = function (element, eventName, callback) {\n element.attachEvent('on' + eventName, callback);\n };\n } else {\n addEventListener = function (element, eventName, callback) {\n element.addEventListener(eventName, callback, false);\n };\n }\n\n "; // line 208 if (array_key_exists("excluded_ajax_paths", $context)) { // line 209 echo " if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {\n var proxied = XMLHttpRequest.prototype.open;\n\n XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\n var self = this;\n\n /* prevent logging AJAX calls to static and inline files, like templates */\n var path = url;\n if (url.substr(0, 1) === '/') {\n if (0 === url.indexOf('"; // line 218 echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true); echo "')) {\n path = url.substr("; // line 219 echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true); echo ");\n }\n }\n else if (0 === url.indexOf('"; // line 222 echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true); echo "')) {\n path = url.substr("; // line 223 echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true); echo ");\n }\n\n if (path.substr(0, 1) === '/' && !path.match(new RegExp("; // line 226 echo twig_jsonencode_filter(isset($context["excluded_ajax_paths"]) ? $context["excluded_ajax_paths"] : $this->getContext($context, "excluded_ajax_paths")); echo "))) {\n var stackElement = {\n loading: true,\n error: false,\n url: url,\n method: method,\n start: new Date()\n };\n\n requestStack.push(stackElement);\n\n this.addEventListener('readystatechange', function() {\n if (self.readyState == 4) {\n stackElement.duration = new Date() - stackElement.start;\n stackElement.loading = false;\n stackElement.error = self.status < 200 || self.status >= 400;\n stackElement.profile = self.getResponseHeader(\"X-Debug-Token\");\n stackElement.profilerUrl = self.getResponseHeader(\"X-Debug-Token-Link\");\n\n Sfjs.renderAjaxRequests();\n }\n }, false);\n\n Sfjs.renderAjaxRequests();\n }\n\n proxied.apply(this, Array.prototype.slice.call(arguments));\n };\n }\n "; } // line 256 echo "\n return {\n hasClass: hasClass,\n\n removeClass: removeClass,\n\n addClass: addClass,\n\n getPreference: getPreference,\n\n setPreference: setPreference,\n\n addEventListener: addEventListener,\n\n request: request,\n\n renderAjaxRequests: renderAjaxRequests,\n\n load: function(selector, url, onSuccess, onError, options) {\n var el = document.getElementById(selector);\n\n if (el && el.getAttribute('data-sfurl') !== url) {\n request(\n url,\n function(xhr) {\n el.innerHTML = xhr.responseText;\n el.setAttribute('data-sfurl', url);\n removeClass(el, 'loading');\n (onSuccess || noop)(xhr, el);\n },\n function(xhr) { (onError || noop)(xhr, el); },\n '',\n options\n );\n }\n\n return this;\n },\n\n toggle: function(selector, elOn, elOff) {\n var tmp = elOn.style.display,\n el = document.getElementById(selector);\n\n elOn.style.display = elOff.style.display;\n elOff.style.display = tmp;\n\n if (el) {\n el.style.display = 'none' === tmp ? 'none' : 'block';\n }\n\n return this;\n }\n }\n })();\n/*]]>*/</script>\n"; $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549->leave($__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34 = $this->env->getExtension("native_profiler"); $__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34->enter($__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "WebProfilerBundle:Profiler:base_js.html.twig")); // line 1 echo "<script>/*<![CDATA[*/\n "; // line 5 echo "\n Sfjs = (function() {\n \"use strict\";\n\n var classListIsSupported = 'classList' in document.documentElement;\n\n if (classListIsSupported) {\n var hasClass = function (el, cssClass) { return el.classList.contains(cssClass); };\n var removeClass = function(el, cssClass) { el.classList.remove(cssClass); };\n var addClass = function(el, cssClass) { el.classList.add(cssClass); };\n var toggleClass = function(el, cssClass) { el.classList.toggle(cssClass); };\n } else {\n var hasClass = function (el, cssClass) { return el.className.match(new RegExp('\\\\b' + cssClass + '\\\\b')); };\n var removeClass = function(el, cssClass) { el.className = el.className.replace(new RegExp('\\\\b' + cssClass + '\\\\b'), ' '); };\n var addClass = function(el, cssClass) { if (!hasClass(el, cssClass)) { el.className += \" \" + cssClass; } };\n var toggleClass = function(el, cssClass) { hasClass(el, cssClass) ? removeClass(el, cssClass) : addClass(el, cssClass); };\n }\n\n var noop = function() {},\n\n collectionToArray = function (collection) {\n var length = collection.length || 0,\n results = new Array(length);\n\n while (length--) {\n results[length] = collection[length];\n }\n\n return results;\n },\n\n profilerStorageKey = 'sf2/profiler/',\n\n request = function(url, onSuccess, onError, payload, options) {\n var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');\n options = options || {};\n options.maxTries = options.maxTries || 0;\n xhr.open(options.method || 'GET', url, true);\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n xhr.onreadystatechange = function(state) {\n if (4 !== xhr.readyState) {\n return null;\n }\n\n if (xhr.status == 404 && options.maxTries > 1) {\n setTimeout(function(){\n options.maxTries--;\n request(url, onSuccess, onError, payload, options);\n }, 500);\n\n return null;\n }\n\n if (200 === xhr.status) {\n (onSuccess || noop)(xhr);\n } else {\n (onError || noop)(xhr);\n }\n };\n xhr.send(payload || '');\n },\n\n getPreference = function(name) {\n if (!window.localStorage) {\n return null;\n }\n\n return localStorage.getItem(profilerStorageKey + name);\n },\n\n setPreference = function(name, value) {\n if (!window.localStorage) {\n return null;\n }\n\n localStorage.setItem(profilerStorageKey + name, value);\n },\n\n requestStack = [],\n\n renderAjaxRequests = function() {\n var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');\n if (!requestCounter.length) {\n return;\n }\n\n var ajaxToolbarPanel = document.querySelector('.sf-toolbar-block-ajax');\n var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');\n var state = 'ok';\n if (tbodies.length) {\n var tbody = tbodies[0];\n\n var rows = document.createDocumentFragment();\n\n if (requestStack.length) {\n for (var i = 0; i < requestStack.length; i++) {\n var request = requestStack[i];\n\n var row = document.createElement('tr');\n rows.appendChild(row);\n\n var methodCell = document.createElement('td');\n if (request.error) {\n methodCell.className = 'sf-ajax-request-error';\n }\n methodCell.textContent = request.method;\n row.appendChild(methodCell);\n\n var pathCell = document.createElement('td');\n pathCell.className = 'sf-ajax-request-url';\n if ('GET' === request.method) {\n var pathLink = document.createElement('a');\n pathLink.setAttribute('href', request.url);\n pathLink.textContent = request.url;\n pathCell.appendChild(pathLink);\n } else {\n pathCell.textContent = request.url;\n }\n pathCell.setAttribute('title', request.url);\n row.appendChild(pathCell);\n\n var durationCell = document.createElement('td');\n durationCell.className = 'sf-ajax-request-duration';\n\n if (request.duration) {\n durationCell.textContent = request.duration + \"ms\";\n } else {\n durationCell.textContent = '-';\n }\n row.appendChild(durationCell);\n\n row.appendChild(document.createTextNode(' '));\n var profilerCell = document.createElement('td');\n\n if (request.profilerUrl) {\n var profilerLink = document.createElement('a');\n profilerLink.setAttribute('href', request.profilerUrl);\n profilerLink.textContent = request.profile;\n profilerCell.appendChild(profilerLink);\n } else {\n profilerCell.textContent = 'n/a';\n }\n\n row.appendChild(profilerCell);\n\n var requestState = 'ok';\n if (request.error) {\n requestState = 'error';\n if (state != \"loading\" && i > requestStack.length - 4) {\n state = 'error';\n }\n } else if (request.loading) {\n requestState = 'loading';\n state = 'loading';\n }\n row.className = 'sf-ajax-request sf-ajax-request-' + requestState;\n }\n\n var infoSpan = document.querySelectorAll(\".sf-toolbar-ajax-info\")[0];\n var children = collectionToArray(tbody.children);\n for (var i = 0; i < children.length; i++) {\n tbody.removeChild(children[i]);\n }\n tbody.appendChild(rows);\n\n if (infoSpan) {\n var text = requestStack.length + ' AJAX request' + (requestStack.length > 1 ? 's' : '');\n infoSpan.textContent = text;\n }\n\n ajaxToolbarPanel.style.display = 'block';\n } else {\n ajaxToolbarPanel.style.display = 'none';\n }\n }\n\n requestCounter[0].textContent = requestStack.length;\n\n var className = 'sf-toolbar-ajax-requests sf-toolbar-value';\n requestCounter[0].className = className;\n\n if (state == 'ok') {\n Sfjs.removeClass(ajaxToolbarPanel, 'sf-ajax-request-loading');\n Sfjs.removeClass(ajaxToolbarPanel, 'sf-toolbar-status-red');\n } else if (state == 'error') {\n Sfjs.addClass(ajaxToolbarPanel, 'sf-toolbar-status-red');\n } else {\n Sfjs.addClass(ajaxToolbarPanel, 'sf-ajax-request-loading');\n }\n };\n\n var addEventListener;\n\n var el = document.createElement('div');\n if (!'addEventListener' in el) {\n addEventListener = function (element, eventName, callback) {\n element.attachEvent('on' + eventName, callback);\n };\n } else {\n addEventListener = function (element, eventName, callback) {\n element.addEventListener(eventName, callback, false);\n };\n }\n\n "; // line 209 if (array_key_exists("excluded_ajax_paths", $context)) { // line 210 echo " if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {\n var proxied = XMLHttpRequest.prototype.open;\n\n XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\n var self = this;\n\n /* prevent logging AJAX calls to static and inline files, like templates */\n var path = url;\n if (url.substr(0, 1) === '/') {\n if (0 === url.indexOf('"; // line 219 echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true); echo "')) {\n path = url.substr("; // line 220 echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true); echo ");\n }\n }\n else if (0 === url.indexOf('"; // line 223 echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true); echo "')) {\n path = url.substr("; // line 224 echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true); echo ");\n }\n\n if (path.substr(0, 1) === '/' && !path.match(new RegExp("; // line 227 echo twig_jsonencode_filter(isset($context["excluded_ajax_paths"]) ? $context["excluded_ajax_paths"] : $this->getContext($context, "excluded_ajax_paths")); echo "))) {\n var stackElement = {\n loading: true,\n error: false,\n url: url,\n method: method,\n start: new Date()\n };\n\n requestStack.push(stackElement);\n\n this.addEventListener('readystatechange', function() {\n if (self.readyState == 4) {\n stackElement.duration = new Date() - stackElement.start;\n stackElement.loading = false;\n stackElement.error = self.status < 200 || self.status >= 400;\n stackElement.profile = self.getResponseHeader(\"X-Debug-Token\");\n stackElement.profilerUrl = self.getResponseHeader(\"X-Debug-Token-Link\");\n\n Sfjs.renderAjaxRequests();\n }\n }, false);\n\n Sfjs.renderAjaxRequests();\n }\n\n proxied.apply(this, Array.prototype.slice.call(arguments));\n };\n }\n "; } // line 257 echo "\n return {\n hasClass: hasClass,\n\n removeClass: removeClass,\n\n addClass: addClass,\n\n toggleClass: toggleClass,\n\n getPreference: getPreference,\n\n setPreference: setPreference,\n\n addEventListener: addEventListener,\n\n request: request,\n\n renderAjaxRequests: renderAjaxRequests,\n\n load: function(selector, url, onSuccess, onError, options) {\n var el = document.getElementById(selector);\n\n if (el && el.getAttribute('data-sfurl') !== url) {\n request(\n url,\n function(xhr) {\n el.innerHTML = xhr.responseText;\n el.setAttribute('data-sfurl', url);\n removeClass(el, 'loading');\n (onSuccess || noop)(xhr, el);\n },\n function(xhr) { (onError || noop)(xhr, el); },\n '',\n options\n );\n }\n\n return this;\n },\n\n toggle: function(selector, elOn, elOff) {\n var tmp = elOn.style.display,\n el = document.getElementById(selector);\n\n elOn.style.display = elOff.style.display;\n elOff.style.display = tmp;\n\n if (el) {\n el.style.display = 'none' === tmp ? 'none' : 'block';\n }\n\n return this;\n },\n\n createTabs: function() {\n var tabGroups = document.querySelectorAll('.sf-tabs');\n\n /* create the tab navigation for each group of tabs */\n for (var i = 0; i < tabGroups.length; i++) {\n var tabs = tabGroups[i].querySelectorAll('.tab');\n var tabNavigation = document.createElement('ul');\n tabNavigation.className = 'tab-navigation';\n\n for (var j = 0; j < tabs.length; j++) {\n var tabId = 'tab-' + i + '-' + j;\n var tabTitle = tabs[j].querySelector('.tab-title').innerHTML;\n\n var tabNavigationItem = document.createElement('li');\n tabNavigationItem.setAttribute('data-tab-id', tabId);\n if (j == 0) { Sfjs.addClass(tabNavigationItem, 'active'); }\n if (Sfjs.hasClass(tabs[j], 'disabled')) { Sfjs.addClass(tabNavigationItem, 'disabled'); }\n tabNavigationItem.innerHTML = tabTitle;\n tabNavigation.appendChild(tabNavigationItem);\n\n var tabContent = tabs[j].querySelector('.tab-content');\n tabContent.parentElement.setAttribute('id', tabId);\n }\n\n tabGroups[i].insertBefore(tabNavigation, tabGroups[i].firstChild);\n }\n\n /* display the active tab and add the 'click' event listeners */\n for (i = 0; i < tabGroups.length; i++) {\n tabNavigation = tabGroups[i].querySelectorAll('.tab-navigation li');\n\n for (j = 0; j < tabNavigation.length; j++) {\n tabId = tabNavigation[j].getAttribute('data-tab-id');\n document.getElementById(tabId).querySelector('.tab-title').className = 'hidden';\n\n if (Sfjs.hasClass(tabNavigation[j], 'active')) {\n document.getElementById(tabId).className = 'block';\n } else {\n document.getElementById(tabId).className = 'hidden';\n }\n\n tabNavigation[j].addEventListener('click', function(e) {\n var activeTab = e.target || e.srcElement;\n\n /* needed because when the tab contains HTML contents, user can click */\n /* on any of those elements instead of their parent '<li>' element */\n while (activeTab.tagName.toLowerCase() !== 'li') {\n activeTab = activeTab.parentNode;\n }\n\n /* get the full list of tabs through the parent of the active tab element */\n var tabNavigation = activeTab.parentNode.children;\n for (var k = 0; k < tabNavigation.length; k++) {\n var tabId = tabNavigation[k].getAttribute('data-tab-id');\n document.getElementById(tabId).className = 'hidden';\n Sfjs.removeClass(tabNavigation[k], 'active');\n }\n\n Sfjs.addClass(activeTab, 'active');\n var activeTabId = activeTab.getAttribute('data-tab-id');\n document.getElementById(activeTabId).className = 'block';\n });\n }\n }\n },\n\n createToggles: function() {\n var toggles = document.querySelectorAll('.sf-toggle');\n\n for (var i = 0; i < toggles.length; i++) {\n var elementSelector = toggles[i].getAttribute('data-toggle-selector');\n var element = document.querySelector(elementSelector);\n\n Sfjs.addClass(element, 'sf-toggle-content');\n\n if (toggles[i].hasAttribute('data-toggle-initial') && toggles[i].getAttribute('data-toggle-initial') == 'display') {\n Sfjs.addClass(element, 'sf-toggle-visible');\n } else {\n Sfjs.addClass(element, 'sf-toggle-hidden');\n }\n\n Sfjs.addEventListener(toggles[i], 'click', function(e) {\n e.preventDefault();\n\n var toggle = e.target || e.srcElement;\n\n /* needed because when the toggle contains HTML contents, user can click */\n /* on any of those elements instead of their parent '.sf-toggle' element */\n while (!Sfjs.hasClass(toggle, 'sf-toggle')) {\n toggle = toggle.parentNode;\n }\n\n var element = document.querySelector(toggle.getAttribute('data-toggle-selector'));\n\n Sfjs.toggleClass(element, 'sf-toggle-hidden');\n Sfjs.toggleClass(element, 'sf-toggle-visible');\n\n /* the toggle doesn't change its contents when clicking on it */\n if (!toggle.hasAttribute('data-toggle-alt-content')) {\n return;\n }\n\n if (!toggle.hasAttribute('data-toggle-original-content')) {\n toggle.setAttribute('data-toggle-original-content', toggle.innerHTML);\n }\n\n var currentContent = toggle.innerHTML;\n var originalContent = toggle.getAttribute('data-toggle-original-content');\n var altContent = toggle.getAttribute('data-toggle-alt-content');\n toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;\n });\n }\n }\n };\n })();\n\n Sfjs.addEventListener(window, 'load', function() {\n Sfjs.createTabs();\n Sfjs.createToggles();\n });\n\n/*]]>*/</script>\n"; $__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34->leave($__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<table "; if (array_key_exists("class", $context)) { echo "class='"; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "html", null, true); echo "'"; } echo " >\n <thead>\n <tr>\n <th scope=\"col\">Key</th>\n <th scope=\"col\">Value</th>\n </tr>\n </thead>\n <tbody>\n "; // line 9 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->getAttribute(isset($context["bag"]) ? $context["bag"] : $this->getContext($context, "bag"), "keys", array()))); foreach ($context['_seq'] as $context["_key"] => $context["key"]) { // line 10 echo " <tr>\n <th>"; // line 11 echo twig_escape_filter($this->env, $context["key"], "html", null, true); echo "</th>\n "; // line 13 echo " <td>"; echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["bag"]) ? $context["bag"] : $this->getContext($context, "bag"), "get", array(0 => $context["key"]), "method"), 64 | 256), "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 16 echo " </tbody>\n</table>\n"; }
public function block_scripts($context, array $blocks = array()) { // line 32 echo "<script src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('slim')->baseUrl(), "html", null, true); echo "/app/controllers/registrationController.js\"></script>\n\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!DOCTYPE html>\n<html lang=\"es\">\n <head>\n <meta charset=\"utf-8\">\n\n <title>Starter Template for Bootstrap</title>\n <link href=\""; // line 7 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/demodb/css/bootstrap.min.css"), "html", null, true); echo "\" rel=\"stylesheet\">\n <link href=\""; // line 8 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/demodb/css/starter.css"), "html", null, true); echo "\" rel=\"stylesheet\">\n\n </head>\n\n <body>\n\n <nav class=\"navbar navbar-inverse navbar-fixed-top\">\n <div class=\"container\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#navbar\" aria-expanded=\"false\" aria-controls=\"navbar\">\n <span class=\"sr-only\">Toggle navigation</span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <a class=\"navbar-brand\" href=\"#\">Demo</a>\n </div>\n <div id=\"navbar\" class=\"collapse navbar-collapse\">\n <ul class=\"nav navbar-nav\">\n <li class=\"active\"><a href=\""; // line 27 echo $this->env->getExtension('routing')->getPath("fos_user_security_login"); echo "\">Iniciar Session</a></li>\n <li><a href=\""; // line 28 echo $this->env->getExtension('routing')->getPath("fos_user_registration_register"); echo "\">Nuevo Usuario</a></li>\n <li><a href=\""; // line 29 echo $this->env->getExtension('routing')->getPath("fos_user_resetting_request"); echo "\">Reset de Password</a></li>\n </ul>\n </div><!--/.nav-collapse -->\n </div>\n </nav>\n\n <div class=\"container\">\n <div class=\"starter-template\">\n <br><br>\n <h1>Bootstrap starter template</h1>\n <p class=\"lead\">Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.</p>\n </div>\n\n </div><!-- /.container -->\n\n\n <!-- Bootstrap core JavaScript\n ================================================== -->\n <!-- Placed at the end of the document so the pages load faster -->\n <script src=\""; // line 48 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/demodb/js/jquery.js"), "html", null, true); echo "\"></script>\n <script>window.jQuery || document.write('<script src=\"../../assets/js/vendor/jquery.min.js\"><\\/script>')</script>\n <script src=\""; // line 50 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/demodb/js/bootstrap.min.js"), "html", null, true); echo "\"></script>\n\n </body>\n</html>\n"; }
public function block_field($context, array $blocks = array()) { $__internal_f06995f9443b6311566aea5f7caf40d6241f0d5988b49abf576c62dba2981a80 = $this->env->getExtension("native_profiler"); $__internal_f06995f9443b6311566aea5f7caf40d6241f0d5988b49abf576c62dba2981a80->enter($__internal_f06995f9443b6311566aea5f7caf40d6241f0d5988b49abf576c62dba2981a80_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field")); // line 15 echo " "; if (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")) { // line 16 echo " "; if ($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "hasAssociationAdmin", array()) && $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "associationadmin", array()), "hasRoute", array(0 => "edit"), "method") && $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "associationadmin", array()), "isGranted", array(0 => "EDIT", 1 => isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "method")) { // line 17 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "associationadmin", array()), "generateObjectUrl", array(0 => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "route", array()), "name", array()), 1 => isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), 2 => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "route", array()), "parameters", array())), "method"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->env->getExtension('sonata_admin')->renderRelationElement(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description")), "html", null, true); echo "</a>\n "; } else { // line 19 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('sonata_admin')->renderRelationElement(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description")), "html", null, true); echo "\n "; } // line 21 echo " "; } $__internal_f06995f9443b6311566aea5f7caf40d6241f0d5988b49abf576c62dba2981a80->leave($__internal_f06995f9443b6311566aea5f7caf40d6241f0d5988b49abf576c62dba2981a80_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<ol class=\"traces logs\">\n "; // line 2 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["logs"]) ? $context["logs"] : null); foreach ($context['_seq'] as $context["_key"] => $context["log"]) { // line 3 echo " <li"; if ($this->getAttribute($context["log"], "priority", array()) >= 400) { echo " class=\"error\""; } elseif ($this->getAttribute($context["log"], "priority", array()) >= 300) { echo " class=\"warning\""; } echo ">\n "; // line 4 echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "priorityName", array()), "html", null, true); echo " - "; echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "message", array()), "html", null, true); echo "\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 7 echo "</ol>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"), "firstName", array()), "html", null, true); echo ",\n\n<p>\nYou've made a \$"; // line 4 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "amount", array()) / 100, "html", null, true); echo " payment to "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "getUser", array(), "method"), "getOfficialName", array(), "method"), "html", null, true); echo ".\nThis charge will appear on your credit card statement as "; // line 5 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "appears_on_statement_as", array()), "html", null, true); echo ".\nPlease contact your community leadership if you have any questions or concerns regarding this information.\n</p>\n\n<p>Thank You!</p>\n\n<p>\n----------------------------------------------------------- <br>\n"; // line 13 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "getUser", array(), "method"), "getType", array(), "method")), "html", null, true); echo ": "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "getUser", array(), "method"), "getOfficialName", array(), "method"), "html", null, true); echo " <br>\nCampaign: "; // line 14 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "getTitle", array(), "method"), "html", null, true); echo " <br>\nOrder Number: "; // line 15 echo twig_escape_filter($this->env, isset($context["order_number"]) ? $context["order_number"] : $this->getContext($context, "order_number"), "html", null, true); echo " <br>\nTransaction Number: "; // line 16 echo twig_escape_filter($this->env, isset($context["transaction_number"]) ? $context["transaction_number"] : $this->getContext($context, "transaction_number"), "html", null, true); echo " <br>\nDate: "; // line 17 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>\nAmount: \$"; // line 18 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>"; }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70 = $this->env->getExtension("native_profiler"); $__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70->enter($__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_item.html.twig")); // line 1 if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) { // line 2 echo " "; ob_start(); // line 3 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "panel" => isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "html", null, true); echo "</a>\n "; $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); } // line 6 echo "<div class=\"sf-toolbar-block\">\n <div class=\"sf-toolbar-icon\">"; // line 7 echo twig_escape_filter($this->env, array_key_exists("icon", $context) ? _twig_default_filter(isset($context["icon"]) ? $context["icon"] : $this->getContext($context, "icon"), "") : "", "html", null, true); echo "</div>\n <div class=\"sf-toolbar-info\">"; // line 8 echo twig_escape_filter($this->env, array_key_exists("text", $context) ? _twig_default_filter(isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "") : "", "html", null, true); echo "</div>\n</div>\n"; $__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70->leave($__internal_f6fbb0d538f0cf945a7cc2537fcd6ea50556067234df0d59685d58ab6cd80c70_prof); }
public function block_stylesheets($context, array $blocks = array()) { // line 8 echo " <link rel=\"stylesheet\" href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("css/style.css"), "html", null, true); echo "\">\n "; }
public function block_scripts_header($context, array $blocks = array()) { // line 13 echo " <script type=\"text/javascript\" src=\""; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('asset')->getCallable(), array("asset/three.js/build/three.js")), "html", null, true); echo "\"></script>\n "; }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_cbd5d3561a112b25a932b77d8ec17282b443cb65c2ce2ce9626c0fd514e0f2e9 = $this->env->getExtension("native_profiler"); $__internal_cbd5d3561a112b25a932b77d8ec17282b443cb65c2ce2ce9626c0fd514e0f2e9->enter($__internal_cbd5d3561a112b25a932b77d8ec17282b443cb65c2ce2ce9626c0fd514e0f2e9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/base.html.twig")); // line 1 echo "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\""; // line 4 echo twig_escape_filter($this->env, $this->env->getCharset(), "html", null, true); echo "\" />\n <meta name=\"robots\" content=\"noindex,nofollow\" />\n <title>"; // line 6 $this->displayBlock('title', $context, $blocks); echo "</title>\n <link rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"data:image/ico;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAABMLAAATCwAAAAAAAAAAAAAAAAAAAAAAADIvMQAyLzEIMi8xSzEuMKoyLzHkMi8x/TIvMf0yLzHlMi8xrDIvMU4yLzEJMi8xAAAAAAAAAAAAAAAAADIvMQAyLzEYMS4wkTMwMu45Njj/MS4w/zEuMP8yLzH/Mi8x/zIvMf8yLzHvMi8xlDIvMRkyLzEAAAAAADIvMQAyLzEXMS4wrTk2OPyVk5T7kI6P/nl3ef8+Oz3/MS4w/zIvMf8yLzH/Mi8x/zIvMf4yLzGxMi8xGjIvMQAyLzEGMi8xkDEuMP4/PD79wcDA+oB+gP6Ni4z/paOk/zk2OP8xLjD/Mi8x/zIvMf8yLzH/Mi8x/zIvMZQyLzEIMi8xSTIvMewyLzH/MS4w/z06PP81MjT+TktN/93c3f97eXv/MC0v/zIvMf8yLzH/Mi8x/zIvMf8yLzHuMi8xTzIvMaUyLzH/Mi8x/0lHSf9kYmP/XFpb/zs4Ov/DwsL+ycjI/zs4Ov8xLjD/Mi8x/zIvMf8yLzH/Mi8x/zIvMawyLzHfMC0v/1tYWv+opqf/YV5g/8bFxf96eHn+m5qb/u7u7v9WVFX/MC0v/zIvMf8yLzH/Mi8x/zIvMf8yLzHkMi8x+jAtL/9iYGH/mZiZ/2dlZv/p6On/oJ+g/np4ev/6+vr/dXN1/y0qLP8xLjD/Mi8x/zIvMf8yLzH/Mi8x/DIvMfoyLzH/MzAy/0A+QP7JyMj85eXl/1tYWv9XVVf/8fDx/6qpqv9ZV1j/Q0BC/zIvMf8yLzH/Mi8x/zIvMfwyLzHeMi8x/zEuMP8/PD762dnZ9JWTlP81MjT/ZmRm/+Dg4P/DwsP/YV5g/6Wkpf9BPkD/MS4w/zIvMf8yLzHjMi8xozIvMf8yLzH/Mi8x/nZ0dv2amJn4dXN0+V5bXf+Pjo//0tLS/0hFR/9vbG7/Ozg6/zEuMP8yLzH/Mi8xqTIvMUcyLzHrMi8x/zIvMf8xLjD/Ozg6/Do3OfwwLS//REFD/728vP9nZWb/TktN/4mIif05Nzn/Mi8x7jMwMkwyLzEGMi8xjDIvMf4yLzH/Mi8x/zIvMf8yLzH/Mi8x/zAtL/9XVFb/goGC+Hx6e+6qqanwOzg6/DMwMpJDQEIIMi8xADIvMRUyLzGrMi8x/jIvMf8yLzH/Mi8x/zIvMf8yLzH/MS4w/zg2N/xBPkD3OTY4/DIvMa8yLzEYMi8xAAAAAAAyLzEAMi8xGDIvMY0yLzHqMi8x/zIvMf8yLzH/Mi8x/zIvMf8yLzH/MS4w7DEuMJEyLzEaMi8xAAAAAAAAAAAAAAAAADIvMQAyLzEGMi8xQzIvMZ4yLzHdMi8x+jIvMfoyLzHeMi8xoDIvMUUyLzEGMi8xAAAAAAAAAAAA4AcAAMADAACAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIABAADAAwAA4AcAAA==\">\n <style>\n "; // line 9 $this->loadTemplate("@WebProfiler/Profiler/body.css.twig", "@WebProfiler/Profiler/base.html.twig", 9)->display($context); // line 10 echo " </style>\n "; // line 11 $this->displayBlock('head', $context, $blocks); // line 16 echo " <style>\n "; // line 17 $this->loadTemplate("@WebProfiler/Profiler/toolbar.css.twig", "@WebProfiler/Profiler/base.html.twig", 17)->display(array_merge($context, array("position" => "top", "floatable" => false))); // line 18 echo " </style>\n </head>\n <body>\n "; // line 21 $this->displayBlock('body', $context, $blocks); // line 22 echo " </body>\n</html>\n"; $__internal_cbd5d3561a112b25a932b77d8ec17282b443cb65c2ce2ce9626c0fd514e0f2e9->leave($__internal_cbd5d3561a112b25a932b77d8ec17282b443cb65c2ce2ce9626c0fd514e0f2e9_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_2fff3160042f23d812f76a57f2d794df9c0021a111c64efc06751bf3f7b16428 = $this->env->getExtension("native_profiler"); $__internal_2fff3160042f23d812f76a57f2d794df9c0021a111c64efc06751bf3f7b16428->enter($__internal_2fff3160042f23d812f76a57f2d794df9c0021a111c64efc06751bf3f7b16428_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:traces_text.html.twig")); // line 1 echo "<div class=\"block\">\n <h2>\n Stack Trace (Plain Text) \n "; // line 4 ob_start(); // line 5 echo " <a href=\"#\" onclick=\"toggle('traces-text'); switchIcons('icon-traces-text-open', 'icon-traces-text-close'); return false;\">\n <img class=\"toggle\" id=\"icon-traces-text-close\" alt=\"-\" src=\"data:image/gif;base64,R0lGODlhEgASAMQSANft94TG57Hb8GS44ez1+mC24IvK6ePx+Wa44dXs92+942e54o3L6W2844/M6dnu+P/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAAASABIAQAVCoCQBTBOd6Kk4gJhGBCTPxysJb44K0qD/ER/wlxjmisZkMqBEBW5NHrMZmVKvv9hMVsO+hE0EoNAstEYGxG9heIhCADs=\" style=\"display: none\" />\n <img class=\"toggle\" id=\"icon-traces-text-open\" alt=\"+\" src=\"data:image/gif;base64,R0lGODlhEgASAMQTANft99/v+Ga44bHb8ITG52S44dXs9+z1+uPx+YvK6WC24G+944/M6W28443L6dnu+Ge54v/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABMALAAAAAASABIAQAVS4DQBTiOd6LkwgJgeUSzHSDoNaZ4PU6FLgYBA5/vFID/DbylRGiNIZu74I0h1hNsVxbNuUV4d9SsZM2EzWe1qThVzwWFOAFCQFa1RQq6DJB4iIQA7\" style=\"display: inline\" />\n </a>\n "; echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); // line 10 echo " </h2>\n\n <div id=\"traces-text\" class=\"trace\" style=\"display: none;\">\n<pre>"; // line 13 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "toarray", array())); foreach ($context['_seq'] as $context["i"] => $context["e"]) { // line 14 echo "["; echo twig_escape_filter($this->env, $context["i"] + 1, "html", null, true); echo "] "; echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "class", array()), "html", null, true); echo ": "; echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "message", array()), "html", null, true); echo "\n"; // line 15 $this->loadTemplate("TwigBundle:Exception:traces.txt.twig", "TwigBundle:Exception:traces_text.html.twig", 15)->display(array("exception" => $context["e"])); } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['e'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 16 echo "</pre>\n </div>\n</div>\n"; $__internal_2fff3160042f23d812f76a57f2d794df9c0021a111c64efc06751bf3f7b16428->leave($__internal_2fff3160042f23d812f76a57f2d794df9c0021a111c64efc06751bf3f7b16428_prof); }
public function block_stylesheets($context, array $blocks = array()) { // line 3 echo " <link href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/jazzywebaulasmentoralimentos/css/estilo.css"), "html", null, true); echo "\"\n type=\"text/css\" rel=\"stylesheet\" />\n"; }
public function block_toolbar($context, array $blocks = array()) { // line 4 echo " "; ob_start(); // line 5 echo " <span>\n <img width=\"13\" height=\"28\" alt=\"Memory Usage\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAcBAMAAABITyhxAAAAJ1BMVEXNzc3///////////////////////8/Pz////////////+NjY0/Pz9lMO+OAAAADHRSTlMAABAgMDhAWXCvv9e8JUuyAAAAQ0lEQVQI12MQBAMBBmLpMwoMDAw6BxjOOABpHyCdAKRzsNDp5eXl1KBh5oHBAYY9YHoDQ+cqIFjZwGCaBgSpBrjcCwCZgkUHKKvX+wAAAABJRU5ErkJggg==\" />\n <span>"; // line 7 echo twig_escape_filter($this->env, sprintf("%.1f", $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memory") / 1024 / 1024), "html", null, true); echo " MB</span>\n </span>\n "; $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 10 echo " "; ob_start(); // line 11 echo " <div class=\"sf-toolbar-info-piece\">\n <b>Memory usage</b>\n <span>"; // line 13 echo twig_escape_filter($this->env, sprintf("%.1f", $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memory") / 1024 / 1024), "html", null, true); echo " / "; echo $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memoryLimit") == -1 ? "∞" : twig_escape_filter($this->env, sprintf("%.1f", $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memoryLimit") / 1024 / 1024)); echo " MB</span>\n </div>\n "; $context["text"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 16 echo " "; $this->env->loadTemplate("@WebProfiler/Profiler/toolbar_item.html.twig")->display(array_merge($context, array("link" => false))); }