protected function doDisplay(array $context, array $blocks = array()) { // line 3 echo "<div class=\"block-type-feed-reader item-list\"> <div class=\"attribute-header\"> <h2> "; // line 6 if ((!twig_test_empty($this->getAttribute((isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed")), "link", array())))) { // line 7 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed")), "link", array()), 0, array(), "array"), "href", array()), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, $this->getAttribute((isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed")), "title", array()), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute((isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed")), "title", array()), "html", null, true); echo "</a> "; } else { // line 9 echo " "; echo twig_escape_filter($this->env, $this->getAttribute((isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed")), "title", array()), "html", null, true); echo " "; } // line 11 echo " </h2> </div> <article> <ul> "; // line 16 echo " "; // line 17 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_slice($this->env, $this->getAttribute((isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed")), "item", array()), (isset($context["offset"]) ? $context["offset"] : $this->getContext($context, "offset")), (isset($context["limit"]) ? $context["limit"] : $this->getContext($context, "limit")))); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 18 echo " <li> <a href=\""; // line 19 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["item"], "link", array()), 0, array(), "array"), "href", array()), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "title", array()), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "title", array()), "html", null, true); echo "</a> </li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 22 echo " </ul> </article> </div> "; }
public function block_money_widget($context, array $blocks = array()) { // line 24 echo "<div class=\"input-group\">\n "; // line 25 $context["prepend"] = "{{" == twig_slice($this->env, $this->getContext($context, "money_pattern"), 0, 2); // line 26 echo " "; if (!$this->getContext($context, "prepend")) { // line 27 echo " <span class=\"input-group-addon\">"; echo twig_escape_filter($this->env, strtr($this->getContext($context, "money_pattern"), array("{{ widget }}" => "")), "html", null, true); echo "</span>\n "; } // line 29 $this->displayBlock("form_widget_simple", $context, $blocks); // line 30 if ($this->getContext($context, "prepend")) { // line 31 echo " <span class=\"input-group-addon\">"; echo twig_escape_filter($this->env, strtr($this->getContext($context, "money_pattern"), array("{{ widget }}" => "")), "html", null, true); echo "</span>\n "; } // line 33 echo " </div>"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "require({\n shim: {\n 'oro/routes': {\n deps: ['routing'],\n init: function(routing) {\n "; // line 6 if (!$this->getAttribute(isset($context["app"]) ? $context["app"] : null, "debug", array())) { // line 7 echo " routing.setBaseUrl("; echo twig_jsonencode_filter(twig_slice($this->env, $this->env->getExtension('asset')->getAssetUrl(""), 0, -1)); echo ");\n "; } // line 9 echo " return routing;\n }\n }\n },\n map: {\n '*': {\n 'routing': 'oro/routes'\n },\n 'oro/routes': {\n 'routing': 'routing'\n }\n },\n paths: {\n "; // line 22 if ($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "debug", array())) { // line 23 echo " 'oro/routes': '"; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fos_js_routing_js", array("callback" => "fos.Router.setData")), "js", null, true); echo "'\n "; } else { // line 25 echo " 'oro/routes': '../js/routes'\n "; } // line 27 echo " }\n});\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["FileType"] = twig_slice($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "mime", array()), 0, 5); // line 2 if ((isset($context["FileType"]) ? $context["FileType"] : $this->getContext($context, "FileType")) == "image") { // line 3 echo " "; if ($this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "resized", array())) { // line 4 echo " "; $context["Path"] = $this->env->getExtension('assets')->getAssetUrl("web/attachment/TH_" . $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "name", array())); // line 5 echo " "; } else { // line 6 echo " "; $context["Path"] = $this->env->getExtension('assets')->getAssetUrl("web/attachment/" . $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "name", array())); // line 7 echo " "; } } else { // line 9 echo " "; $context["Path"] = $this->env->getExtension('assets')->getAssetUrl("web/image/attachment-upload-no-photo.png"); } // line 11 $this->loadTemplate("ProshutAttachmentBundle:Default:update.html.twig", "ProshutAttachmentBundle:Default:update.html.twig", 11, "935343275")->display(array_merge($context, array("template" => "ProshutGridBundle:Factory:update.html.twig"))); // line 27 echo "\n"; }
public function block_body($context, array $blocks = array()) { $__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c = $this->env->getExtension("native_profiler"); $__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c->enter($__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body")); // line 3 echo " "; $this->displayBlock('banner', $context, $blocks); // line 26 echo "\n <div class=\"container\">\n <h2 class=\"text-center\">Užsiregistravę meistrai</h2>\n <hr>\n <div class=\"row text-center\">\n "; // line 31 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user")); foreach ($context['_seq'] as $context["_key"] => $context["userInfo"]) { // line 32 echo " <div class=\"col-md-3 col-sm-6 worker-box\">\n <div class=\"thumbnail\">\n "; // line 34 $context["runtimeConfig"] = array("thumbnail" => array("size" => array(0 => 240, 1 => 210))); // line 35 echo " <img class=\"img-responsive img-rounded\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->env->getExtension('asset')->getAssetUrl($this->getAttribute($context["userInfo"], "profilePicturePath", array())), "my_thumb", isset($context["runtimeConfig"]) ? $context["runtimeConfig"] : $this->getContext($context, "runtimeConfig")), "html", null, true); echo "\">\n <div class=\"worker-content\">\n <h2>"; // line 37 echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "name", array()), "html", null, true); echo "</h2>\n <h4>Miestas: "; // line 38 echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "city", array()), "html", null, true); echo "</h4>\n <p>"; // line 39 echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($context["userInfo"], "description", array()), 0, 140), "html", null, true); echo " "; if (twig_length_filter($this->env, $this->getAttribute($context["userInfo"], "description", array())) > 150) { echo "..."; } echo "</p>\n </div>\n <div class=\"rateit\" id=\""; // line 41 echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "id", array()), "html", null, true); echo "\">\n <p>Vertinimas: "; // line 42 echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "Rating", array()), "html", null, true); echo ". Balsavusiųjų "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["userInfo"], "userRatings", array()), "count", array()), "html", null, true); echo "</p>\n Vertinti:\n </div>\n <ul class=\"list-inline\">\n <li><a class=\"btn btn-primary\" href=\""; // line 46 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("worker_info", array("name" => $this->getAttribute($context["userInfo"], "name", array()))), "html", null, true); echo "\" role=\"button\">Registruotis »</a></li>\n <li><a class=\"btn btn-primary messageModal\" href=\"#\" userId=\""; // line 47 echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "id", array()), "html", null, true); echo "\" role=\"button\">Susisiekti »</a></li>\n </ul>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['userInfo'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 52 echo " </div>\n </div>\n <hr>\n\n "; // line 56 $this->displayBlock('modals', $context, $blocks); $__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c->leave($__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<div class=\"communication_list_count\">\n "; // line 2 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : null, "getTotalItemCount", array()), "html", null, true); echo " communication(s) trouvée(s)\n</div>\n\n"; // line 11 echo "\n<div class=\"communication_list_pagination\">\n "; // line 13 echo $this->env->getExtension('knp_pagination')->render(isset($context["pagination"]) ? $context["pagination"] : null); echo "\n</div>\n\n"; // line 16 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["pagination"]) ? $context["pagination"] : null); foreach ($context['_seq'] as $context["_key"] => $context["communication"]) { // line 17 echo " <div class=\"communication_item\" >\n <table>\n <tr>\n <td valign=\"top\">\n\n <div class=\"communication_user_and_date\" >\n <div class=\"communication_user_image\" >\n "; // line 27 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("aet_annuaire_communication_view", array("id" => $this->getAttribute($context["communication"], "id", array()))), "html", null, true); echo "\">\n <img\n src=\""; // line 29 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl($this->getAttribute($this->getAttribute($context["communication"], "image", array()), "webPath", array())), "html", null, true); echo "\"\n alt=\""; // line 30 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["communication"], "image", array()), "alt", array()), "html", null, true); echo "\"\n />\n </a>\n </div>\n <div class=\"communication_user_name\"><i>Par "; // line 34 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute($context["communication"], "user", array()), "firstName", array())), "html", null, true); echo " "; echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($this->getAttribute($context["communication"], "user", array()), "lastName", array())), "html", null, true); echo "</i></div>\n <div class=\"communication_date\"><i>Le "; // line 35 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["communication"], "date", array()), "d/m/Y"), "html", null, true); echo "</i></div>\n </div>\n\n </td>\n <td valign=\"top\">\n <div class=\"communication_title\" >\n <a href=\""; // line 41 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("aet_annuaire_communication_view", array("id" => $this->getAttribute($context["communication"], "id", array()))), "html", null, true); echo "\">"; echo twig_length_filter($this->env, $this->getAttribute($context["communication"], "title", array())) > 80 ? twig_slice($this->env, $this->getAttribute($context["communication"], "title", array()), 0, 80) . "..." : $this->getAttribute($context["communication"], "title", array()); echo "</a>\n </div>\n <div class=\"communication_body\" >\n "; // line 45 echo " "; echo twig_escape_filter($this->env, $this->getAttribute($context["communication"], "shortDesc", array()), "html", null, true); echo "\n </div>\n </td>\n </tr>\n\n\n </table>\n </div>\n"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['communication'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 54 echo "\n"; // line 56 echo "<div class=\"communication_list_pagination\">\n "; // line 57 echo $this->env->getExtension('knp_pagination')->render(isset($context["pagination"]) ? $context["pagination"] : null); echo "\n</div>"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!doctype html>\n<html>\n<head>\n <meta charset=\"utf-8\" />\n <title>"; // line 5 if (isset($context["ezpublish"])) { $_ezpublish_ = $context["ezpublish"]; } else { $_ezpublish_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_slice($this->env, twig_reverse_filter($this->env, $this->getAttribute($this->getAttribute($_ezpublish_, "legacy"), "get", array(0 => "title_path"), "method")), 0, 2)); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["element"]) { // line 6 echo " "; if (isset($context["element"])) { $_element_ = $context["element"]; } else { $_element_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_element_, "text"), "html", null, true); if (isset($context["loop"])) { $_loop_ = $context["loop"]; } else { $_loop_ = null; } if (!$this->getAttribute($_loop_, "last")) { echo " / "; } // line 7 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['element'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; echo "</title>\n</head>\n<body>\n <h1>Default layout</h1>\n <p>\n This is the default layout provided by the EzPublishLegacyBundle. To\n override it, you can use the following configuration:\n </p>\n <pre>\n # for instance in ezpublish.yml\n # The \"default\" scope can be replaced by any available scope\n # https://confluence.ez.no/display/EZP/Configuration#Configuration-Scope\n parameters:\n ezpublish_legacy.default.view_default_layout: YourBundle::pagelayout.html.twig\n </pre>\n\n <h1>The legacy generated content</h1>\n <div class=\"content\">\n "; // line 25 $this->displayBlock('content', $context, $blocks); // line 26 echo " </div>\n</body>\n</html>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_e91b144b90791d9583d01b8ec8827edd1bb45404c5198115d5481307200a63d6 = $this->env->getExtension("native_profiler"); $__internal_e91b144b90791d9583d01b8ec8827edd1bb45404c5198115d5481307200a63d6->enter($__internal_e91b144b90791d9583d01b8ec8827edd1bb45404c5198115d5481307200a63d6_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TRCCoreBundle:Affichage:ddp.html.twig")); // line 1 if ($this->getAttribute(isset($context["profil"]) ? $context["profil"] : $this->getContext($context, "profil"), "ddp", array())) { // line 2 echo " "; if (twig_length_filter($this->env, isset($context["ddps"]) ? $context["ddps"] : $this->getContext($context, "ddps")) > 0) { // line 3 echo " \t\t<table class=\"table table-condensed table-striped\">\n \t\t\t<thead>\n \t\t\t\t<tr>\n \t\t\t\t\t<th>Min</th>\n \t\t\t\t\t<th>Max</th>\n \t\t\t\t\t<th>Crédit(s)</th>\n \t\t\t\t\t<th>Description</th>\n \t\t\t\t</tr>\n \t\t\t</thead>\n \t\t\t<tbody>\n \t\t\t\t"; // line 13 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["ddps"]) ? $context["ddps"] : $this->getContext($context, "ddps")); foreach ($context['_seq'] as $context["_key"] => $context["ddp"]) { // line 14 echo " \t\t\t\t\t<tr>\n \t\t\t\t\t\t<td>"; // line 15 echo twig_escape_filter($this->env, $this->getAttribute($context["ddp"], "min", array()), "html", null, true); echo " </td>\n \t\t\t\t\t\t<td>"; // line 16 echo twig_escape_filter($this->env, $this->getAttribute($context["ddp"], "max", array()), "html", null, true); echo " </td>\n \t\t\t\t\t\t<td>\n \t\t\t\t\t\t\t"; // line 18 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["ddp"], "tdc", array())); foreach ($context['_seq'] as $context["_key"] => $context["tdc"]) { // line 19 echo " \t\t\t\t\t\t\t\t"; echo twig_escape_filter($this->env, $this->getAttribute($context["tdc"], "nom", array()), "html", null, true); echo " |\n \t\t\t\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tdc'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 21 echo " \t\t\t\t\t\t</td>\n \t\t\t\t\t\t<td>"; // line 22 echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($context["ddp"], "description", array()), 0, 60), "html", null, true); echo " </td>\n \t\t\t\t\t</tr>\n\n \t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ddp'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 26 echo " \t\t\t</tbody>\n \t\t</table>\n \t"; } else { // line 29 echo " \t\t<div class=\"alert-info alert text-center\">\n \t\t\t<h3>\n \t\t\t\tAucune DDP\n \t\t\t</h3>\n \t\t</div>\n "; } } else { // line 36 echo " <div class=\"alert text-center\">\n Le profil actuel n'exige pas de DDP\n </div>\n"; } $__internal_e91b144b90791d9583d01b8ec8827edd1bb45404c5198115d5481307200a63d6->leave($__internal_e91b144b90791d9583d01b8ec8827edd1bb45404c5198115d5481307200a63d6_prof); }
public function block_body($context, array $blocks = array()) { // line 4 echo " <div id=\"wrapper\">\n <div id=\"container\">\n <div id=\"welcome\">\n <h1><span>Welcome to</span> Symfony "; // line 7 echo twig_escape_filter($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), "html", null, true); echo "</h1>\n </div>\n\n <div id=\"status\">\n <p>\n <svg id=\"icon-status\" width=\"1792\" height=\"1792\" viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z\" fill=\"#759E1A\"/></svg>\n\n </p>\n </div>\n\n <div id=\"next\">\n <h2>What's next?</h2>\n <p>\n <svg id=\"icon-book\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-12.5 9 64 64\" enable-background=\"new -12.5 9 64 64\" xml:space=\"preserve\">\n <path fill=\"#AAA\" d=\"M6.8,40.8c2.4,0.8,4.5-0.7,4.9-2.5c0.2-1.2-0.3-2.1-1.3-3.2l-0.8-0.8c-0.4-0.5-0.6-1.3-0.2-1.9\n c0.4-0.5,0.9-0.8,1.8-0.5c1.3,0.4,1.9,1.3,2.9,2.2c-0.4,1.4-0.7,2.9-0.9,4.2l-0.2,1c-0.7,4-1.3,6.2-2.7,7.5\n c-0.3,0.3-0.7,0.5-1.3,0.6c-0.3,0-0.4-0.3-0.4-0.3c0-0.3,0.2-0.3,0.3-0.4c0.2-0.1,0.5-0.3,0.4-0.8c0-0.7-0.6-1.3-1.3-1.3\n c-0.6,0-1.4,0.6-1.4,1.7s1,1.9,2.4,1.8c0.8,0,2.5-0.3,4.2-2.5c2-2.5,2.5-5.4,2.9-7.4l0.5-2.8c0.3,0,0.5,0.1,0.8,0.1\n c2.4,0.1,3.7-1.3,3.7-2.3c0-0.6-0.3-1.2-0.9-1.2c-0.4,0-0.8,0.3-1,0.8c-0.1,0.6,0.8,1.1,0.1,1.5c-0.5,0.3-1.4,0.6-2.7,0.4l0.3-1.3\n c0.5-2.6,1-5.7,3.2-5.8c0.2,0,0.8,0,0.8,0.4c0,0.2,0,0.2-0.2,0.5c-0.2,0.3-0.3,0.4-0.2,0.7c0,0.7,0.5,1.1,1.2,1.1\n c0.9,0,1.2-1,1.2-1.4c0-1.2-1.2-1.8-2.6-1.8c-1.5,0.1-2.8,0.9-3.7,2.1c-1.1,1.3-1.8,2.9-2.3,4.5c-0.9-0.8-1.6-1.8-3.1-2.3\n c-1.1-0.7-2.3-0.5-3.4,0.3c-0.5,0.4-0.8,1-1,1.6c-0.4,1.5,0.4,2.9,0.8,3.4l0.9,1c0.2,0.2,0.6,0.8,0.4,1.5c-0.3,0.8-1.2,1.3-2.1,1\n c-0.4-0.2-1-0.5-0.9-0.9c0.1-0.2,0.2-0.3,0.3-0.5s0.1-0.3,0.1-0.3c0.2-0.6-0.1-1.4-0.7-1.6c-0.6-0.2-1.2,0-1.3,0.8\n C4.3,38.4,4.7,40,6.8,40.8z M46.1,20.9c0-4.2-3.2-7.5-7.1-7.5h-3.8C34.8,10.8,32.7,9,30.2,9L-2.3,9.1c-2.8,0.1-4.9,2.4-4.9,5.4\n L-7,58.6c0,4.8,8.1,13.9,11.6,14.1l34.7-0.1c3.9,0,7-3.4,7-7.6L46.1,20.9z M-0.3,36.4c0-8.6,6.5-15.6,14.5-15.6\n c8,0,14.5,7,14.5,15.6S22.1,52,14.2,52C6.1,52-0.3,45-0.3,36.4z M42.1,65.1c0,1.8-1.5,3.1-3.1,3.1H4.6c-0.7,0-3-1.8-4.5-4.4h30.4\n c2.8,0,5-2.4,5-5.4V17.9h3.7c1.6,0,2.9,1.4,2.9,3.1V65.1L42.1,65.1z\"/>\n </svg>\n\n Read Symfony documentation to learn\n <a href=\"http://symfony.com/doc/"; // line 37 echo twig_escape_filter($this->env, twig_slice($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), 0, 3), "html", null, true); echo "/book/page_creation.html\">\n How to create your first page in Symfony\n </a>\n </p>\n </div>\n\n </div>\n </div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<section id=\"news\">\n <div class=\"container-fluid\">\n <div class=\"row\">\n "; // line 4 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_slice($this->env, isset($context["posts"]) ? $context["posts"] : null, 0, 2)); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["post"]) { // line 5 echo " <div class=\"col-md-6\">\n <article class=\"row\">\n <h1>"; // line 7 echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "title", array()), "html", null, true); echo "</h1>\n <div class=\"col-md-6 col-lg-4\">\n "; // line 9 if (twig_length_filter($this->env, $this->getAttribute($context["post"], "featured_images", array())) > 0) { // line 10 echo " <a href=\"#\">\n <img class=\"support-image img-responsive center-block\" src=\""; // line 11 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["post"], "featured_images", array()), 0, array()), "path", array()), "html", null, true); echo "\">\n </a>\n "; } // line 14 echo " </div>\n <div class=\"col-md-6 col-lg-8\">\n <p>"; // line 16 echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "summary", array()), "html", null, true); echo "\n </p>\n <p>\n <time datetime=\""; // line 19 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["post"], "published_at", array()), "Y-m-d"), "html", null, true); echo "\" pubdate><i class=\"fa fa-clock-o\"></i> "; echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["post"], "published_at", array()), "M d, Y"), "html", null, true); echo "</time>\n </p>\n <p><a href=\""; // line 21 echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "url", array()), "html", null, true); echo "\" class=\"btn btn-primary\">Ler Mais</a></p>\n </div>\n </article>\n </div>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 26 echo " <div class=\"container-fluid\">\n <h1 class=\"no-data\"><i class=\"fa fa-info-circle fa-2x\" style=\"vertical-align:middle\"></i> "; // line 27 echo twig_escape_filter($this->env, isset($context["noPostsMessage"]) ? $context["noPostsMessage"] : null, "html", null, true); echo "</h1>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 30 echo " </div>\n </div>\n</section>"; }
public function block_article_content($context, array $blocks = array()) { // line 10 echo "\n <h2>\n <a href=\""; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('slim')->urlFor("article.create"), "html", null, true); echo "\">\n Create new article\n </a>\n </h2>\n\n <hr>\n\n "; // line 19 if (twig_test_empty(isset($context["blog"]) ? $context["blog"] : null)) { // line 20 echo " <h1>\n Nothing to see here\n </h1>\n "; } else { // line 24 echo "\n "; // line 25 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["blog"]) ? $context["blog"] : null); foreach ($context['_seq'] as $context["_key"] => $context["blogs"]) { // line 26 echo "\n <h2>\n "; // line 29 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('slim')->urlFor("article.show", array("id" => $this->getAttribute($context["blogs"], "id", array()))), "html", null, true); echo "\">\n "; // line 30 echo twig_escape_filter($this->env, $this->getAttribute($context["blogs"], "title", array()), "html", null, true); echo "\n </a>\n </h2>\n\n <p>\n "; // line 36 echo " "; echo nl2br(twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($context["blogs"], "content", array()), 0, 30), "html", null, true)); echo " ...\n <a href=\""; // line 37 echo twig_escape_filter($this->env, $this->env->getExtension('slim')->urlFor("article.show", array("id" => $this->getAttribute($context["blogs"], "id", array()))), "html", null, true); echo "\">\n See more\n </a>\n </p>\n\n <p>\n "; // line 44 echo " Created at:\n "; // line 45 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["blogs"], "created_at", array()), "diffForHumans", array(), "method"), "html", null, true); echo "\n </p>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogs'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 48 echo "\n "; } // line 50 echo "\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<div class=\"Menu--dashboard\">\n\n <ul class=\"Menu-tabList\">\n "; // line 4 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["menu"]) ? $context["menu"] : $this->getContext($context, "menu")); foreach ($context['_seq'] as $context["level1"] => $context["level2"]) { // line 5 echo " <li id=\""; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('urlRewriteWithParameters')->getCallable(), array($this->getAttribute(isset($context["level2"]) ? $context["level2"] : $this->getContext($context, "level2"), "_url"))), "html", null, true); echo "\">\n <a href=\"#"; // line 6 echo twig_escape_filter($this->env, twig_slice($this->env, call_user_func_array($this->env->getFilter('urlRewriteWithParameters')->getCallable(), array($this->getAttribute(isset($context["level2"]) ? $context["level2"] : $this->getContext($context, "level2"), "_url"))), 1), "html", null, true); echo "\"\n onclick=\"return piwikMenu.onItemClick(this);\">"; // line 7 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array(isset($context["level1"]) ? $context["level1"] : $this->getContext($context, "level1"))), "html", null, true); echo "</a>\n <ul>\n "; // line 9 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["level2"]) ? $context["level2"] : $this->getContext($context, "level2")); foreach ($context['_seq'] as $context["name"] => $context["urlParameters"]) { // line 10 echo " "; if (twig_slice($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), 0, 1) != "_") { // line 11 echo " <li>\n <a href='#"; // line 12 echo twig_escape_filter($this->env, twig_slice($this->env, call_user_func_array($this->env->getFilter('urlRewriteWithParameters')->getCallable(), array($this->getAttribute(isset($context["urlParameters"]) ? $context["urlParameters"] : $this->getContext($context, "urlParameters"), "_url"))), 1), "html", null, true); echo "'\n onclick='return piwikMenu.onItemClick(this);'>\n "; // line 14 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array(isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"))), "html", null, true); echo "\n </a>\n </li>\n "; } // line 18 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['urlParameters'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 19 echo " </ul>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['level1'], $context['level2'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 22 echo " <li id=\"Searchmenu\">\n <span piwik-quick-access></span>\n </li>\n </ul>\n\n</div>\n<div class=\"nav_sep\"></div>\n"; }
public function block_content($context, array $blocks = array()) { $__internal_67c04cc99c6a0ea55165e0a007911be0e4398f494c91a1900aa07196706e12bf = $this->env->getExtension("native_profiler"); $__internal_67c04cc99c6a0ea55165e0a007911be0e4398f494c91a1900aa07196706e12bf->enter($__internal_67c04cc99c6a0ea55165e0a007911be0e4398f494c91a1900aa07196706e12bf_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "content")); // line 3 echo " <h1 class=\"search_header\">Result searching by \""; echo twig_escape_filter($this->env, isset($context["search_word"]) ? $context["search_word"] : $this->getContext($context, "search_word"), "html", null, true); echo "\":</h1>\n <ul class=\"post_list\">\n "; // line 5 if (array_key_exists("posts", $context)) { // line 6 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["posts"]) ? $context["posts"] : $this->getContext($context, "posts")); foreach ($context['_seq'] as $context["_key"] => $context["post"]) { // line 7 echo " <li>\n <a href=\""; // line 8 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("post_show", array("slug" => $this->getAttribute($context["post"], "slug", array()))), "html", null, true); echo "\">\n <img src=\""; // line 9 echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "img", array()), "html", null, true); echo "\" alt=\""; echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($context["post"], "title", array()), 0, 50), "html", null, true); echo "\">\n <h2>"; // line 10 echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "title", array()), "html", null, true); echo "</h2>\n <div class=\"post_info\">\n <span class=\"publish_date\">"; // line 12 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["post"], "createdAt", array()), "m/d/Y"), "html", null, true); echo "</span>\n <span class=\"rate\">\n </span>\n </div>\n <p>"; // line 16 echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($context["post"], "article", array()), 0, 1000), "html", null, true); echo "</p>\n </a>\n </li>\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 21 echo " "; } else { // line 22 echo " <li class=\"no_results\"><h2>No any results..:(</h2></li>\n "; } // line 24 echo " </ul>\n\n\n"; $__internal_67c04cc99c6a0ea55165e0a007911be0e4398f494c91a1900aa07196706e12bf->leave($__internal_67c04cc99c6a0ea55165e0a007911be0e4398f494c91a1900aa07196706e12bf_prof); }
public function block_body($context, array $blocks = array()) { $__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0 = $this->env->getExtension("native_profiler"); $__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0->enter($__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body")); // line 4 echo " <div id=\"wrapper\">\n <div id=\"container\">\n <div id=\"welcome\">\n <h1><span>Welcome to</span> Symfony "; // line 7 echo twig_escape_filter($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), "html", null, true); echo "</h1>\n </div>\n\n <div id=\"status\">\n <p>\n <svg id=\"icon-status\" width=\"1792\" height=\"1792\" viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z\" fill=\"#759E1A\"/></svg>\n\n Your application is now ready. You can start working on it at:\n <code>"; // line 15 echo twig_escape_filter($this->env, isset($context["base_dir"]) ? $context["base_dir"] : $this->getContext($context, "base_dir"), "html", null, true); echo "</code>\n </p>\n </div>\n\n <div id=\"next\">\n <h2>What's next?</h2>\n <p>\n <svg id=\"icon-book\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-12.5 9 64 64\" enable-background=\"new -12.5 9 64 64\" xml:space=\"preserve\">\n <path fill=\"#AAA\" d=\"M6.8,40.8c2.4,0.8,4.5-0.7,4.9-2.5c0.2-1.2-0.3-2.1-1.3-3.2l-0.8-0.8c-0.4-0.5-0.6-1.3-0.2-1.9\n c0.4-0.5,0.9-0.8,1.8-0.5c1.3,0.4,1.9,1.3,2.9,2.2c-0.4,1.4-0.7,2.9-0.9,4.2l-0.2,1c-0.7,4-1.3,6.2-2.7,7.5\n c-0.3,0.3-0.7,0.5-1.3,0.6c-0.3,0-0.4-0.3-0.4-0.3c0-0.3,0.2-0.3,0.3-0.4c0.2-0.1,0.5-0.3,0.4-0.8c0-0.7-0.6-1.3-1.3-1.3\n c-0.6,0-1.4,0.6-1.4,1.7s1,1.9,2.4,1.8c0.8,0,2.5-0.3,4.2-2.5c2-2.5,2.5-5.4,2.9-7.4l0.5-2.8c0.3,0,0.5,0.1,0.8,0.1\n c2.4,0.1,3.7-1.3,3.7-2.3c0-0.6-0.3-1.2-0.9-1.2c-0.4,0-0.8,0.3-1,0.8c-0.1,0.6,0.8,1.1,0.1,1.5c-0.5,0.3-1.4,0.6-2.7,0.4l0.3-1.3\n c0.5-2.6,1-5.7,3.2-5.8c0.2,0,0.8,0,0.8,0.4c0,0.2,0,0.2-0.2,0.5c-0.2,0.3-0.3,0.4-0.2,0.7c0,0.7,0.5,1.1,1.2,1.1\n c0.9,0,1.2-1,1.2-1.4c0-1.2-1.2-1.8-2.6-1.8c-1.5,0.1-2.8,0.9-3.7,2.1c-1.1,1.3-1.8,2.9-2.3,4.5c-0.9-0.8-1.6-1.8-3.1-2.3\n c-1.1-0.7-2.3-0.5-3.4,0.3c-0.5,0.4-0.8,1-1,1.6c-0.4,1.5,0.4,2.9,0.8,3.4l0.9,1c0.2,0.2,0.6,0.8,0.4,1.5c-0.3,0.8-1.2,1.3-2.1,1\n c-0.4-0.2-1-0.5-0.9-0.9c0.1-0.2,0.2-0.3,0.3-0.5s0.1-0.3,0.1-0.3c0.2-0.6-0.1-1.4-0.7-1.6c-0.6-0.2-1.2,0-1.3,0.8\n C4.3,38.4,4.7,40,6.8,40.8z M46.1,20.9c0-4.2-3.2-7.5-7.1-7.5h-3.8C34.8,10.8,32.7,9,30.2,9L-2.3,9.1c-2.8,0.1-4.9,2.4-4.9,5.4\n L-7,58.6c0,4.8,8.1,13.9,11.6,14.1l34.7-0.1c3.9,0,7-3.4,7-7.6L46.1,20.9z M-0.3,36.4c0-8.6,6.5-15.6,14.5-15.6\n c8,0,14.5,7,14.5,15.6S22.1,52,14.2,52C6.1,52-0.3,45-0.3,36.4z M42.1,65.1c0,1.8-1.5,3.1-3.1,3.1H4.6c-0.7,0-3-1.8-4.5-4.4h30.4\n c2.8,0,5-2.4,5-5.4V17.9h3.7c1.6,0,2.9,1.4,2.9,3.1V65.1L42.1,65.1z\"/>\n </svg>\n\n Read the documentation to learn\n <a href=\"http://symfony.com/doc/"; // line 39 echo twig_escape_filter($this->env, twig_slice($this->env, twig_constant("Symfony\\Component\\HttpKernel\\Kernel::VERSION"), 0, 3), "html", null, true); echo "/book/page_creation.html\">\n How to create your first page in Symfony\n </a>\n </p>\n </div>\n\n </div>\n </div>\n"; $__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0->leave($__internal_904ac88ea4ed5f23329d87969586039f0a16866417774e51f29b3ee5c68dc3f0_prof); }
public function block_content($context, array $blocks = array()) { $__internal_202ec106cd037e593d038c3598df17fb1be9607e9182cc6f12c148c33c566553 = $this->env->getExtension("native_profiler"); $__internal_202ec106cd037e593d038c3598df17fb1be9607e9182cc6f12c148c33c566553->enter($__internal_202ec106cd037e593d038c3598df17fb1be9607e9182cc6f12c148c33c566553_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "content")); // line 3 echo "<ul class=\"post_list\">\n "; // line 4 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["posts"]) ? $context["posts"] : $this->getContext($context, "posts")); foreach ($context['_seq'] as $context["_key"] => $context["post"]) { // line 5 echo " <li>\n <img src=\""; // line 6 echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "img", array()), "html", null, true); echo "\" alt=\""; echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($context["post"], "title", array()), 0, 50), "html", null, true); echo "\">\n <h2>"; // line 7 echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "title", array()), "html", null, true); echo "</h2>\n <div class=\"post_info\">\n <span class=\"publish_date\">"; // line 9 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["post"], "createdAt", array()), "m/d/Y"), "html", null, true); echo "</span>\n <span class=\"rate\">\n "; // line 18 echo " </span>\n </div>\n <p>"; // line 20 echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($context["post"], "article", array()), 0, 1000), "html", null, true); echo "</p>\n <a class=\"read_more\" href=\""; // line 21 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("post_show", array("slug" => $this->getAttribute($context["post"], "slug", array()))), "html", null, true); echo "\">Read more\n </a>\n </li>\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 26 echo "</ul>\n <div>SEE MORE</div>\n\n"; $__internal_202ec106cd037e593d038c3598df17fb1be9607e9182cc6f12c148c33c566553->leave($__internal_202ec106cd037e593d038c3598df17fb1be9607e9182cc6f12c148c33c566553_prof); }
public function block_body($context, array $blocks = array()) { // line 31 echo "\t\t<section id=\"content\">\t\t\n\t\t\t<div class=\"g12 nodrop\">\n\t\t\t\t<h1>Dashboard</h1>\n\t\t\t\t<p>This is a quick overview of some features</p>\n\t\t\t</div>\t\t\t\n\t\t\t<div class=\"g6 widgets\" style=\"width:32%;\">\n\t\t\t\t<div class=\"widget number-widget\" id=\"widget_number\">\n\t\t\t\t\t<h3 class=\"handle\">Overview</h3>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<li><a href=\""; // line 41 echo $this->env->getExtension('routing')->getPath("RAAAdminBundle_airline"); echo "\"><span>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["dashboardDetails"]) ? $context["dashboardDetails"] : $this->getContext($context, "dashboardDetails"), "totalairlines", array()), "html", null, true); echo "</span> Airlines</a></li>\n\t\t\t\t\t\t\t<li><a href=\""; // line 42 echo $this->env->getExtension('routing')->getPath("RAAAdminBundle_reviewer"); echo "\"><span>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["dashboardDetails"]) ? $context["dashboardDetails"] : $this->getContext($context, "dashboardDetails"), "totalReviewers", array()), "html", null, true); echo "</span> Reviewers</a></li>\n\t\t\t\t\t\t\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\n\t\t\t</div>\n\t\t\t\n\t\t\t\t<div class=\"g6 widgets\" style=\"width:64%;\">\t\t\n\t\t\t<div class=\"widget\" id=\"widget_ajax\" data-load=\"widget-content.php\" data-reload=\"10\" data-remove-content=\"false\">\n\t\t\t\t\t<h3 class=\"handle\">Latest Users</h3>\n\t\t\t\t\t<div>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<table class=\"datatable\">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t\n\t\t\t\t\t<th class=\" col-2\" style=\"width: 75px;\" rowspan=\"1\" colspan=\"1\">Name </th>\n\t\t\t\t\t<th class=\" col-2\" style=\"width: 75px;\" rowspan=\"1\" colspan=\"1\">Email </th>\n\t\t\t\n\t\t\t\t\t<th class=\" col-2\" style=\"width: 77px;\" rowspan=\"1\" colspan=\"1\">Phone </th>\n\t\t\t\t\t<th class=\" col-3\" style=\"width: 75px; min-width:3%;\" rowspan=\"1\" colspan=\"1\">Reviews </th>\n\t\t\t\t\t\n\t\t\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<tbody>\t\t\n\t\t\t"; // line 75 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["latestUsers"]) ? $context["latestUsers"] : $this->getContext($context, "latestUsers")); foreach ($context['_seq'] as $context["_key"] => $context["latestUser"]) { // line 76 echo "\t\t\t\t<tr class=\"gradeA odd\">\n\t\t\t\t\n\t\t\t\t<td class=\"txtleft\">"; // line 78 echo twig_escape_filter($this->env, $this->getAttribute($context["latestUser"], "first_name", array()), "html", null, true); echo "</td>\n\t\t\t\t\t\t<td class=\"txtleft\">"; // line 79 echo twig_escape_filter($this->env, $this->getAttribute($context["latestUser"], "email", array()), "html", null, true); echo "</td>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<td class=\"txtleft\">"; // line 81 echo twig_escape_filter($this->env, $this->getAttribute($context["latestUser"], "phone", array()), "html", null, true); echo "</td>\n\t\t\t\t\t\t<td class=\"txtleft\"><a href=\""; // line 82 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("RAAAdminBundle_showRev", array("id" => $this->getAttribute($context["latestUser"], "reviewer_id", array()) ? $this->getAttribute($context["latestUser"], "reviewer_id", array()) : 0)), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["latestUser"], "totalReviews", array()), "html", null, true); echo "</a></td>\n\n\n\t\t\t\t\t\t</tr>\t\t\n\t\t\t\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['latestUser'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 87 echo "\t\t\t\t</table>\n\t\t\t\t\t</tbody>\n\t\t\t</div>\t\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t<div class=\"g6 widgets\" style=\"width:97%;\">\n\t\t\t<div class=\"widget\" id=\"widget_charts\" data-icon=\"graph\">\n\t\t\t\t<h3 class=\"handle\">Latest Reviewes</h3>\n\t\t\t\t<div>\n\t\t\t\t\n\t\t\t\t<table class=\"datatable\">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t\n\t\t\t\t\t<th class=\"col-3\" style=\"width: 109px;min-width:5%;\" rowspan=\"1\" colspan=\"1\">User </th>\n\t\t\t\t\t<!--<th class=\"sorting col-3\" style=\"width: 104px;\" rowspan=\"1\" colspan=\"1\">LastName </th>-->\n\t\t\t\t\t<th class=\" col-2\" rowspan=\"1\" colspan=\"1\">Airline </th>\n\t\t\t\t\t<th class=\" col-2\" style=\"width: 75px;\" rowspan=\"1\" colspan=\"1\">Title </th>\n\t\t\t\t\t<!--<th class=\"sorting col-6\" style=\"width: 240px;\" rowspan=\"1\" colspan=\"1\">Address </th>-->\n\t\t\t\t\t<th class=\" col-2\" style=\"width: 77px;min-width:20%;\" rowspan=\"1\" colspan=\"1\">Review </th>\n\t\t\t\t\t<th class=\" col-3\" style=\"width: 75px;\" rowspan=\"1\" colspan=\"1\">Date </th>\n\t\t\t\t\t<!--<th class=\"sorting col-2\" rowspan=\"1\" colspan=\"1\" style=\"width: 180px;\">Country</th>-->\n\t\t\t\t\t<!--<th class=\"sorting col-3\" style=\"width: 48px;\" rowspan=\"1\" colspan=\"1\">Zip </th>-->\n\t\t\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<tbody>\t\t\n\t\t\t"; // line 129 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["latestReview"]) ? $context["latestReview"] : $this->getContext($context, "latestReview")); foreach ($context['_seq'] as $context["_key"] => $context["latestReviews"]) { // line 130 echo "\t\t\t\t<tr class=\"gradeA odd\">\n\t\t\t\t\n\t\t\t\t<td class=\"txtleft\">"; // line 132 echo twig_escape_filter($this->env, $this->getAttribute($context["latestReviews"], "first_name", array()), "html", null, true); echo "</td>\n\t\t\t\t<td class=\"txtleft\">"; // line 133 echo twig_escape_filter($this->env, $this->getAttribute($context["latestReviews"], "business_name", array()), "html", null, true); echo "</td>\n\t\t\t\t\t\t<td class=\"txtleft\">"; // line 134 echo twig_escape_filter($this->env, $this->getAttribute($context["latestReviews"], "headline", array()), "html", null, true); echo "</td>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<td class=\"txtleft\">"; // line 136 if (twig_length_filter($this->env, $this->getAttribute($context["latestReviews"], "description", array())) > 40) { echo " "; echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($context["latestReviews"], "description", array()), 0, 40) . "...", "html", null, true); echo "<a data-toggle=\"modal\" role=\"button\" href=\"#\" id=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["latestReviews"], "id", array()), "html", null, true); echo "\" onclick=\"detailReview(this.id);\" class=\"big-link\" data-reveal-id=\"myModal\">Readmore</a>"; } else { echo twig_escape_filter($this->env, $this->getAttribute($context["latestReviews"], "description", array()), "html", null, true); } echo "</td>\n\t\t\t\t\t\t\t\t<td class=\"txtleft\">"; // line 137 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["latestReviews"], "creation_timestamp", array()), "F j, Y"), "html", null, true); echo "</td>\n\t\t\t\t\t\n\n\n\t\t\t\t\t\t</tr>\t\t\n\t\t\t\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['latestReviews'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 143 echo "\t\t\t\t</table>\n\t\t\t\t\t</tbody>\n\t\t\t</div>\t\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<!--<div class=\"widget\" id=\"widget_ajax\" data-load=\"widget-content.php\" data-reload=\"10\" data-remove-content=\"false\">\n\t\t\t\t\t<h3 class=\"handle\">Latest Users</h3>\n\t\t\t\t\t<div>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<table class=\"datatable\">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t<th class=\"sorting col-2\" style=\"width: 75px;\" rowspan=\"1\" colspan=\"1\">Email </th>\n\t\t\t\n\t\t\t\t\t<th class=\"sorting col-2\" style=\"width: 77px;\" rowspan=\"1\" colspan=\"1\">Phone </th>\n\t\t\t\t\t<th class=\"sorting col-3\" style=\"width: 75px;\" rowspan=\"1\" colspan=\"1\">Reviewes </th>\n\t\t\t\t\t\n\t\t\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<tbody>\t\t\n\t\t\t"; // line 171 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["latestUsers"]) ? $context["latestUsers"] : $this->getContext($context, "latestUsers")); foreach ($context['_seq'] as $context["_key"] => $context["latestUser"]) { // line 172 echo "\t\t\t\t<tr class=\"gradeA odd\">\n\t\t\t\t\n\t\t\t\t<td class=\"txtleft\">"; // line 174 echo twig_escape_filter($this->env, $this->getAttribute($context["latestUser"], "first_name", array()), "html", null, true); echo "</td>\n\t\t\t\t\t\t<td class=\"txtleft\">"; // line 175 echo twig_escape_filter($this->env, $this->getAttribute($context["latestUser"], "email", array()), "html", null, true); echo "</td>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<td class=\"txtleft\">"; // line 177 echo twig_escape_filter($this->env, $this->getAttribute($context["latestUser"], "phone", array()), "html", null, true); echo "</td>\n\t\t\t\t\t\t<td class=\"txtleft\">"; // line 178 echo twig_escape_filter($this->env, $this->getAttribute($context["latestUser"], "totalReviews", array()), "html", null, true); echo "</td>\n\n\n\t\t\t\t\t\t</tr>\t\t\n\t\t\t\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['latestUser'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 183 echo "\t\t\t\t</table>\n\t\t\t\t\t</tbody>\n\t\t\t</div>\t\n\t\t\t\t</div>-->\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t</div>\n\t\t\t\n\t\t\t "; // line 194 $this->env->loadTemplate("RAAAdminBundle:Dashboard:ratingDetail.html.twig")->display($context); // line 195 echo "\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<table class=\"dashboardlisting\">\n <thead>\n <tr>\n <th>"; // line 4 echo $this->env->getExtension('Bolt')->trans("page.ckeditor-browse-server.files"); echo "</th>\n <th class=\"hidden-xs hidden-sm\">"; // line 5 echo $this->env->getExtension('Bolt')->trans("page.ckeditor-browse-server.size"); echo "</th>\n <th class=\"hidden-xs hidden-sm\">"; // line 6 echo $this->env->getExtension('Bolt')->trans("page.ckeditor-browse-server.modified"); echo "</th>\n <th colspan=\"2\"></th>\n </tr>\n </thead>\n\n <tbody>\n "; // line 12 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "files", array())); foreach ($context['_seq'] as $context["_key"] => $context["file"]) { // line 13 echo " <tr>\n "; // line 15 echo " <td>\n "; // line 16 if (twig_in_filter($this->getAttribute($context["file"], "type", array()), array(0 => "jpeg", 1 => "jpg", 2 => "png", 3 => "gif"))) { // line 17 echo "\n <i class=\"fa fa-fw fa-file-image-o\"></i>\n\n "; // line 20 if ($this->getAttribute($context["file"], "readable", array())) { // line 21 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->thumbnail($this->getAttribute($context["file"], "newpath", array()), 1000, 1000, "r"), "html", null, true); echo "\"\n class=\"magnific\"\n title=\"Image: "; // line 23 echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "filename", array()), "html", null, true); echo "\">\n <b>"; // line 24 echo $this->env->getExtension('Bolt')->shy($this->env->getExtension('Bolt')->excerpt($this->getAttribute($context["file"], "filename", array()), 80)); echo "</b>\n </a>\n "; } else { // line 27 echo " <b>"; echo $this->env->getExtension('Bolt')->shy($this->env->getExtension('Bolt')->excerpt($this->getAttribute($context["file"], "filename", array()), 80)); echo " </b>\n <i class=\"fa fa-lock\"></i>\n "; } // line 30 echo "\n "; } elseif (twig_in_filter($this->getAttribute($context["file"], "type", array()), array(0 => "twig", 1 => "txt", 2 => "html", 3 => "md", 4 => "markdown", 5 => "json", 6 => "htm", 7 => "scss", 8 => "css", 9 => "less", 10 => "js", 11 => "yml"))) { // line 32 echo "\n <i class=\"fa fa-fw fa-file-code-o\"></i>\n\n "; // line 35 if ($this->getAttribute($context["file"], "readable", array())) { // line 36 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fileedit", array("namespace" => $this->getAttribute(isset($context["context"]) ? $context["context"] : null, "namespace", array()), "file" => $this->getAttribute($context["file"], "newpath", array()))), "html", null, true); echo "\">\n <b>"; // line 37 echo $this->env->getExtension('Bolt')->shy($this->env->getExtension('Bolt')->excerpt($this->getAttribute($context["file"], "filename", array()), 80)); echo "</b>\n </a>\n "; } else { // line 40 echo " <b>"; echo $this->env->getExtension('Bolt')->shy($this->env->getExtension('Bolt')->excerpt($this->getAttribute($context["file"], "filename", array()), 80)); echo "</b>\n "; } // line 42 echo "\n "; // line 43 if (!$this->getAttribute($context["file"], "readable", array()) || !$this->getAttribute($context["file"], "writable", array())) { // line 44 echo " <i class=\"fa fa-lock\"></i>\n "; } // line 46 echo "\n "; } else { // line 48 echo "\n <i class=\"fa fa-fw fa-link\"></i>\n\n "; // line 51 if ($this->getAttribute($context["file"], "readable", array())) { // line 52 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "url", array()), "html", null, true); echo "\" target=\"_blank\">\n <b>"; // line 53 echo $this->env->getExtension('Bolt')->shy($this->env->getExtension('Bolt')->excerpt($this->getAttribute($context["file"], "filename", array()), 80)); echo "</b>\n </a>\n "; } else { // line 56 echo " <b>"; echo $this->env->getExtension('Bolt')->shy($this->env->getExtension('Bolt')->excerpt($this->getAttribute($context["file"], "filename", array()), 80)); echo " </b>\n <i class=\"fa fa-lock\"></i>\n "; } // line 59 echo " "; } // line 60 echo " </td>\n "; // line 62 echo " <td style=\"min-width: 120px;\" class=\"hidden-xs hidden-sm\">\n "; // line 63 echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "filesize", array()), "html", null, true); echo ".\n "; // line 64 if ($this->getAttribute($context["file"], "imagesize", array(), "any", true, true)) { // line 65 echo " <br> "; echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "imagesize", array()), "html", null, true); echo " px.\n "; } // line 67 echo " </td>\n "; // line 69 echo " <td style=\"min-width: 140px;\" class=\"hidden-xs hidden-sm\">\n <time class=\"moment\" datetime=\""; // line 70 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["file"], "modified", array()), "c"), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "modified", array()), "html", null, true); echo "\">\n "; // line 71 echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "modified", array()), "html", null, true); echo "\n </time>\n </td>\n "; // line 75 echo " <td class=\"listthumb\">\n "; // line 76 if ($this->getAttribute($context["file"], "imagesize", array(), "any", true, true)) { // line 77 echo " "; $context["thumb"] = $this->env->getExtension('Bolt')->showImage($this->getAttribute($context["file"], "newpath", array()), 54, 40, "c"); // line 78 echo " <img "; echo twig_slice($this->env, isset($context["thumb"]) ? $context["thumb"] : null, 5, twig_length_filter($this->env, isset($context["thumb"]) ? $context["thumb"] : null) - 6); echo " alt=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->trans("Thumbnail"), "html_attr"); echo "\">\n "; } // line 80 echo " </td>\n "; // line 82 echo " <td class=\"actions\" style=\"min-width: 16px;\">\n\n <div class=\"btn-group\">\n\n "; // line 86 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "stackbutton", array(0 => $context["file"]), "method"), "html", null, true); echo "\n\n "; // line 88 if ($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "form", array()) != false) { // line 89 echo " <a class=\"btn dropdown-toggle btn-default btn-sm hidden-xs\" data-toggle=\"dropdown\">\n <i class=\"fa fa-info-circle\"></i>\n "; // line 91 echo $this->env->getExtension('Bolt')->trans("Options"); echo "\n <span class=\"caret\"></span>\n </a>\n\n <ul class=\"dropdown-menu pull-right hidden-xs\">\n <li>\n <a href=\"#\"\n data-action=\"Bolt.files.renameFile('"; // line 98 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["context"]) ? $context["context"] : null, "namespace", array()), "html", null, true); echo "', '"; echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "path", array()), "html", null, true); echo "', '"; echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "filename", array()), "html", null, true); echo "', this);\">\n\n <i class=\"fa fa-keyboard-o\"></i>\n "; // line 101 echo $this->env->getExtension('Bolt')->trans("Rename %foldername%", array("%foldername%" => $this->getAttribute($context["file"], "filename", array()))); echo "\n </a>\n </li>\n <li>\n <a href=\"#\" data-action=\"Bolt.files.deleteFile('"; // line 105 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["context"]) ? $context["context"] : null, "namespace", array()), "html", null, true); echo "', '"; echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "newpath", array()), "html", null, true); echo "', this);\">\n <i class=\"fa fa-ban\"></i>\n "; // line 107 echo $this->env->getExtension('Bolt')->trans("Delete %filename%", array("%filename%" => $this->getAttribute($context["file"], "filename", array()))); echo "\n </a>\n </li>\n <li>\n <a href=\"#\" data-action=\"Bolt.files.duplicateFile('"; // line 111 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["context"]) ? $context["context"] : null, "namespace", array()), "html", null, true); echo "', '"; echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "newpath", array()), "html", null, true); echo "')\">\n <i class=\"fa fa-files-o\"></i>\n "; // line 113 echo $this->env->getExtension('Bolt')->trans("Duplicate %filename%", array("%filename%" => $this->getAttribute($context["file"], "filename", array()))); echo "\n </a>\n </li>\n <li class=\"divider\"></li>\n <li>\n <a class=\"nolink\">\n "; // line 119 echo $this->env->getExtension('Bolt')->trans("Permissions"); echo ":\n <strong><code>"; // line 120 echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "permissions", array()), "html", null, true); echo "</code></strong>\n </a>\n </li>\n </ul>\n "; } // line 125 echo " </div>\n\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 130 echo " </tbody>\n</table>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 if (!(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"))) { // line 2 echo " <div class=\"pk-emptyDataTable\">"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_ThereIsNoDataForThisReport")), "html", null, true); echo "</div>\n"; } else { // line 4 echo "<div class=\"visitor-profile\"\n data-visitor-id=\""; // line 5 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "getFirstRow", array(), "method"), "getColumn", array(0 => "visitorId"), "method"), "html", null, true); echo "\"\n data-next-visitor=\""; // line 6 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "nextVisitorId", array()), "html", null, true); echo "\"\n data-prev-visitor=\""; // line 7 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "previousVisitorId", array()), "html", null, true); echo "\"\n tabindex=\"0\">\n <a href class=\"visitor-profile-close\"></a>\n <div class=\"visitor-profile-info\">\n <div>\n <div class=\"visitor-profile-overview\">\n <div class=\"visitor-profile-avatar\">\n <div>\n <div class=\"visitor-profile-image-frame\">\n <img src=\""; // line 16 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorAvatar", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorAvatar", array()), "plugins/Live/images/unknown_avatar.jpg") : "plugins/Live/images/unknown_avatar.jpg", "html", null, true); echo "\"\n alt=\""; // line 17 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorDescription", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorDescription", array()), "") : "", "html", null, true); echo "\"\n title=\""; // line 18 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorDescription", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "visitorDescription", array()), "") : "", "html", null, true); echo "\" />\n </div>\n <img src=\"plugins/Live/images/paperclip.png\" alt=\"\"/>\n </div>\n <div>\n <div class=\"visitor-profile-header\">\n "; // line 24 if (!twig_test_empty($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "previousVisitorId", array()))) { echo "<a class=\"visitor-profile-prev-visitor\" href=\"#\" title=\""; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_PreviousVisitor")), "html", null, true); echo "\">←</a>"; } // line 25 echo " <h1>"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_VisitorProfile")), "html", null, true); // line 26 if (!twig_test_empty($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "userId", array()))) { echo ": <span title=\""; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_UserId")), "html", null, true); echo ": "; echo $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "userId", array()); echo "\">"; echo $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "userId", array()); echo "</span>"; } // line 27 echo "<img class=\"loadingPiwik\" style=\"display:none;\" src=\"plugins/Morpheus/images/loading-blue.gif\"/>\n </h1>\n <a href=\"http://piwik.org/docs/user-profile/\" class=\"reportDocumentationIcon\" rel=\"noreferrer\" target=\"_blank\" title=\""; // line 29 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ViewDocumentationFor", ucwords(call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_VisitorProfile"))))), "html", null, true); echo "\"></a>\n "; // line 30 if (!twig_test_empty($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "nextVisitorId", array()))) { echo "<a class=\"visitor-profile-next-visitor\" href=\"#\" title=\""; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_NextVisitor")), "html", null, true); echo "\">→</a>"; } // line 31 echo " </div>\n <div class=\"visitor-profile-latest-visit\">\n "; // line 33 $this->env->loadTemplate("@Live/getSingleVisitSummary.twig")->display(array_merge($context, array("visitData" => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "getFirstRow", array(), "method"), "getColumns", array(), "method"), "showLocation" => false))); // line 34 echo " </div>\n </div>\n <p style=\"clear:both; border:none!important;\"></p>\n </div>\n <div class=\"visitor-profile-summary\">\n <h1>"; // line 39 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Summary")), "html", null, true); echo "</h1>\n <div>\n <p>"; // line 41 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_VisitSummary", "<strong>" . $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalVisitDurationPretty", array()) . "</strong>", "", "", "<strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalActions", array()), $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalVisits", array()), "</strong>")); echo "</p>\n <p>"; // line 42 if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalGoalConversions", array())) { echo "<strong>"; } echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_ConvertedNGoals", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalGoalConversions", array()))), "html", null, true); if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalGoalConversions", array())) { echo "</strong>"; } // line 43 if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalGoalConversions", array())) { echo " ("; // line 44 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalConversionsByGoal", 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["idGoal"] => $context["totalConversions"]) { // line 45 $context["idGoal"] = twig_slice($this->env, $context["idGoal"], 7, null); // line 46 if (!$this->getAttribute($context["loop"], "first", array())) { echo ", "; } echo twig_escape_filter($this->env, $context["totalConversions"], "html", null, true); echo " <span class=\"visitor-profile-goal-name\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["goals"]) ? $context["goals"] : $this->getContext($context, "goals"), $context["idGoal"], array(), "array"), "name", array(), "array"), "html", null, true); echo "</span>"; ++$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['idGoal'], $context['totalConversions'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 48 echo ")"; } echo ".</p>\n "; // line 49 if (($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalEcommerceConversions", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalEcommerceConversions", array()), 0) : 0) > 0 || ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalAbandonedCarts", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalAbandonedCarts", array()), 0) : 0) > 0) { // line 50 echo " <p>\n "; // line 51 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Goals_Ecommerce")), "html", null, true); echo ":"; // line 52 if (($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalEcommerceConversions", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalEcommerceConversions", array()), 0) : 0) > 0) { echo " "; echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_EcommerceSummaryConversions", "<strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalEcommerceConversions", array()), call_user_func_array($this->env->getFilter('money')->getCallable(), array($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalEcommerceRevenue", array()), isset($context["idSite"]) ? $context["idSite"] : $this->getContext($context, "idSite"))), "</strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalEcommerceItems", array()))); } // line 54 if (($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalAbandonedCarts", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalAbandonedCarts", array()), 0) : 0) > 0) { echo " "; echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_AbandonedCartSummary", "<strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalAbandonedCarts", array()), "</strong>", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalAbandonedCartsItems", array()), "<strong>", call_user_func_array($this->env->getFilter('money')->getCallable(), array($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalAbandonedCartsRevenue", array()), isset($context["idSite"]) ? $context["idSite"] : $this->getContext($context, "idSite"))), "</strong>")); } // line 55 echo "</p>\n "; } // line 57 echo " "; if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalSearches", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "totalSearches", array()), 0) : 0) { // line 58 echo " <p>\n "; // line 59 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Actions_WidgetSearchKeywords")), "html", null, true); echo ":"; // line 60 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "searches", 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["_key"] => $context["entry"]) { echo " <strong title=\""; if ($this->getAttribute($context["entry"], "searches", array()) == 1) { echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Actions_OneSearch")), "html", null, true); } else { echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountryMap_Searches", $this->getAttribute($context["entry"], "searches", array()))), "html", null, true); } echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "keyword", array()), "html", null, true); echo "</strong>"; if (!$this->getAttribute($context["loop"], "last", array())) { echo ","; } ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 61 echo " </p>\n "; } // line 63 echo " "; if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : null, "averagePageGenerationTime", array(), "any", true, true)) { // line 64 echo " <p title=\""; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_CalculatedOverNPageViews", $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "totalPageViewsWithTiming", array()))), "html", null, true); echo "\">\n "; // line 65 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_AveragePageGenerationTime", "<strong>" . $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "averagePageGenerationTime", array()) . "s</strong>")); echo "\n </p>\n "; } // line 68 echo " </div>\n </div>\n <div class=\"visitor-profile-important-visits\">"; // line 71 $context["keywordNotDefined"] = call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_NotDefined", call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ColumnKeyword")))); // line 72 echo "<div>\n <h1>"; // line 73 if ($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "visitsAggregated", array()) == 100) { echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Visit")), "html", null, true); echo "# 100"; } else { echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_FirstVisit")), "html", null, true); } echo "</h1>\n <div>\n <p><strong>"; // line 75 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "prettyDate", array()), "html", null, true); echo "</strong><span> - "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountryMap_DaysAgo", $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "daysAgo", array()))), "html", null, true); echo "</span></p>\n <p><span>"; // line 76 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_FromReferrer")), "html", null, true); echo ":</span>\n <strong "; // line 77 if ($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "referrerType", array()) == "search" && !twig_in_filter("(", $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "referralSummary", array()))) { echo "title=\""; echo twig_escape_filter($this->env, isset($context["keywordNotDefined"]) ? $context["keywordNotDefined"] : $this->getContext($context, "keywordNotDefined"), "html", null, true); echo "\""; } echo ">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "firstVisit", array()), "referralSummary", array()), "html", null, true); echo "</strong></p>\n </div>\n </div>\n "; // line 80 if ($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "getRowsCount", array(), "method") != 1) { // line 81 echo " <div>\n <h1>"; // line 82 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_LastVisit")), "html", null, true); echo "</h1>\n <div>\n <p><strong>"; // line 84 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "prettyDate", array()), "html", null, true); echo "</strong><span> - "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountryMap_DaysAgo", $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "daysAgo", array()))), "html", null, true); echo "</span></p>\n <p><span>"; // line 85 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_FromReferrer")), "html", null, true); echo ":</span>\n <strong "; // line 86 if ($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "referrerType", array()) == "search" && !twig_in_filter("(", $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "referralSummary", array()))) { echo "title=\""; echo twig_escape_filter($this->env, isset($context["keywordNotDefined"]) ? $context["keywordNotDefined"] : $this->getContext($context, "keywordNotDefined"), "html", null, true); echo "\""; } echo ">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisit", array()), "referralSummary", array()), "html", null, true); echo "</strong></p>\n </div>\n </div>\n "; } // line 90 echo " </div>\n <div>\n <div class=\"visitor-profile-location\">\n <h1>"; // line 93 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_Location")), "html", null, true); echo "</h1>\n <p>"; // line 95 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "countries", 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["_key"] => $context["entry"]) { // line 97 ob_start(); // line 98 if ($this->getAttribute($context["entry"], "cities", array(), "any", true, true) && 1 == twig_length_filter($this->env, $this->getAttribute($context["entry"], "cities", array())) && twig_join_filter($this->getAttribute($context["entry"], "cities", array()))) { // line 99 echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["entry"], "cities", array())), "html", null, true); } elseif ($this->getAttribute($context["entry"], "cities", array(), "any", true, true) && 1 < twig_length_filter($this->env, $this->getAttribute($context["entry"], "cities", array()))) { // line 101 echo "<span title=\""; echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["entry"], "cities", array()), ", "), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_FromDifferentCities")), "html", null, true); echo "</span>"; } $context["entryCity"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 104 echo "\n "; // line 105 ob_start(); // line 106 echo "<strong>\n "; // line 107 if ($this->getAttribute($context["entry"], "nb_visits", array()) == 1) { // line 108 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OneVisit")), "html", null, true); } else { // line 110 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_NVisits", $this->getAttribute($context["entry"], "nb_visits", array()))), "html", null, true); } // line 112 echo "</strong>"; $context["entryVisits"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 114 echo "\n "; // line 115 ob_start(); // line 116 if (isset($context["entryCity"]) ? $context["entryCity"] : $this->getContext($context, "entryCity")) { // line 117 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_CityAndCountry", isset($context["entryCity"]) ? $context["entryCity"] : $this->getContext($context, "entryCity"), $this->getAttribute($context["entry"], "prettyName", array()))); } else { // line 119 echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "prettyName", array()), "html", null, true); } // line 122 echo " <img src=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "flag", array()), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "prettyName", array()), "html", null, true); echo "\"/>"; $context["entryCountry"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 125 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_XFromY", isset($context["entryVisits"]) ? $context["entryVisits"] : $this->getContext($context, "entryVisits"), isset($context["entryCountry"]) ? $context["entryCountry"] : $this->getContext($context, "entryCountry"))); if (!$this->getAttribute($context["loop"], "last", array())) { echo ", "; } ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 127 echo " <a class=\"visitor-profile-show-map\" href=\"#\" "; if (twig_test_empty(array_key_exists("userCountryMapUrl", $context) ? _twig_default_filter(isset($context["userCountryMapUrl"]) ? $context["userCountryMapUrl"] : $this->getContext($context, "userCountryMapUrl"), "") : "")) { echo "style=\"display:none\""; } echo ">("; echo strtr(call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_ShowMap")), array(" " => " ")); echo ")</a> <img class=\"loadingPiwik\" style=\"display:none;\" src=\"plugins/Morpheus/images/loading-blue.gif\"/>\n </p>\n <div class=\"visitor-profile-map\" style=\"display:none\" data-href=\""; // line 129 echo twig_escape_filter($this->env, array_key_exists("userCountryMapUrl", $context) ? _twig_default_filter(isset($context["userCountryMapUrl"]) ? $context["userCountryMapUrl"] : $this->getContext($context, "userCountryMapUrl"), "") : "", "html", null, true); echo "\">\n </div>\n </div>\n </div>\n </div>\n <div class=\"visitor-profile-visits-info\">\n <div class=\"visitor-profile-pages-visited\">\n <h1>"; // line 136 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_VisitedPages")), "html", null, true); echo "</h1>\n </div>\n <div class=\"visitor-profile-visits-container\">\n <ol class=\"visitor-profile-visits\">\n "; // line 140 $this->env->loadTemplate("@Live/getVisitList.twig")->display(array_merge($context, array("visits" => $this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "startCounter" => 1))); // line 141 echo " </ol>\n </div>\n <div class=\"visitor-profile-more-info\">\n "; // line 144 if ($this->getAttribute($this->getAttribute(isset($context["visitorData"]) ? $context["visitorData"] : $this->getContext($context, "visitorData"), "lastVisits", array()), "getRowsCount", array(), "method") >= twig_constant("Piwik\\Plugins\\Live\\VisitorProfile::VISITOR_PROFILE_MAX_VISITS_TO_SHOW")) { // line 145 echo " <a href=\"#\">"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_LoadMoreVisits")), "html", null, true); echo "</a> <img class=\"loadingPiwik\" style=\"display:none;\" src=\"plugins/Morpheus/images/loading-blue.gif\"/>\n "; } else { // line 147 echo " <span class=\"visitor-profile-no-visits\">"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("Live_NoMoreVisits")), "html", null, true); echo "</span>\n "; } // line 149 echo " </div>\n </div>\n </div>\n </div>\n</div>\n<script type=\"text/javascript\">\n\$(function() { require('piwik/UI').VisitorProfileControl.initElements(); });\n</script>\n"; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["scope"] = isset($context["prefix"]) ? $context["prefix"] : null; // line 2 echo "\n"; // line 3 if ($this->getAttribute(isset($context["blueprints"]) ? $context["blueprints"] : null, "type", array())) { // line 4 echo " "; $context["field"] = isset($context["blueprints"]) ? $context["blueprints"] : null; // line 5 echo " "; $context["value"] = isset($context["data"]) ? $context["data"] : null; // line 6 echo " "; $context["default_value"] = isset($context["defaults"]) ? $context["defaults"] : null; // line 7 echo "\n "; // line 8 $this->loadTemplate(array(0 => "forms/fields/" . twig_replace_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "type", array()), ".", "/") . ".html.twig", 1 => "forms/fields/unknown/unknown.html.twig"), "forms/fields.html.twig", 8)->display($context); // line 9 echo "\n"; } else { // line 11 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["blueprints"]) ? $context["blueprints"] : null, "fields", 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["name"] => $context["field"]) { // line 12 echo " "; if (is_string($__internal_4d22873a3c30e06cefd550717bd5accace9796cd30de5c20351d5f19cb7dfa17 = $context["name"]) && is_string($__internal_2daeffae22b1dc7c50e0b74695c18addead105b54c92b263a2b7cd6b91df0cc2 = ".") && ('' === $__internal_2daeffae22b1dc7c50e0b74695c18addead105b54c92b263a2b7cd6b91df0cc2 || 0 === strpos($__internal_4d22873a3c30e06cefd550717bd5accace9796cd30de5c20351d5f19cb7dfa17, $__internal_2daeffae22b1dc7c50e0b74695c18addead105b54c92b263a2b7cd6b91df0cc2))) { // line 13 echo " "; $context["name"] = twig_slice($this->env, $context["name"], 1, null); // line 14 echo " "; } // line 15 echo "\n "; // line 16 if ($this->getAttribute($context["field"], "type", array()) && !twig_in_filter($context["name"], isset($context["skip"]) ? $context["skip"] : null) && !$this->getAttribute($context["field"], "skip", array()) && !((isset($context["ignore_not_overrideable"]) ? $context["ignore_not_overrideable"] : null) && $this->getAttribute($context["field"], "overridable", array()) === false)) { // line 17 echo " "; $context["field"] = $context["field"] + array("name" => $context["name"]); // line 18 echo " "; $context["value"] = $this->env->getExtension('GantryTwig')->nestedFunc(isset($context["data"]) ? $context["data"] : null, (isset($context["scope"]) ? $context["scope"] : null) . $context["name"]); // line 19 echo " "; $context["default_value"] = $this->env->getExtension('GantryTwig')->nestedFunc(isset($context["defaults"]) ? $context["defaults"] : null, (isset($context["scope"]) ? $context["scope"] : null) . $context["name"]); // line 20 echo "\n "; // line 21 $this->loadTemplate(array(0 => "forms/fields/" . twig_replace_filter($this->getAttribute($context["field"], "type", array()), ".", "/") . ".html.twig", 1 => "forms/fields/unknown/unknown.html.twig"), "forms/fields.html.twig", 21)->display($context); // line 22 echo " "; } // line 23 echo " "; ++$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['name'], $context['field'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; } }
/** * Grabs a subset of a loop * * @param \Twig_Environment $env A Twig_Environment instance * @param mixed $item A variable * @param integer $start Start of the subset * @param integer $end End of the subset * @param Boolean $preserveKeys Whether to preserve key or not (when the input is an array) * * @return mixed The sliced variable */ function loop_subset(\Twig_Environment $env, $item, $start, $end = null, $preserveKeys = false) { // We do almost the same thing as Twig's slice (array_slice), except when $end is positive if ($end >= 1) { // When end is > 1, subset will end on the last item in an array with the specified $end // This is different from slice in that it is the number we end on rather than the number // of items to grab (length) // Start must always be the actual starting number for this calculation (not negative) $start = $start < 0 ? sizeof($item) + $start : $start; $end = $end - $start; } // We always include the last element (this was the past design) $end = $end == -1 || $end === null ? null : $end + 1; return twig_slice($env, $item, $start, $end, $preserveKeys); }
public function block_javascripts($context, array $blocks = array()) { // line 39 echo " <script>\n window.SONATA_CONFIG = {\n CONFIRM_EXIT: "; // line 41 if (array_key_exists("admin_pool", $context) && $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "confirm_exit"), "method")) { echo "true"; } else { echo "false"; } echo ",\n USE_SELECT2: "; // line 42 if (array_key_exists("admin_pool", $context) && $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "use_select2"), "method")) { echo "true"; } else { echo "false"; } echo ",\n USE_ICHECK: "; // line 43 if (array_key_exists("admin_pool", $context) && $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "use_icheck"), "method")) { echo "true"; } else { echo "false"; } // line 44 echo " };\n window.SONATA_TRANSLATIONS = {\n CONFIRM_EXIT: '"; // line 46 echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("confirm_exit", array(), "SonataAdminBundle"), "js"), "html", null, true); echo "'\n };\n </script>\n\n "; // line 50 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "javascripts", 1 => array()), "method")); foreach ($context['_seq'] as $context["_key"] => $context["javascript"]) { // line 51 echo " <script src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl($context["javascript"]), "html", null, true); echo "\"></script>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['javascript'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 53 echo "\n "; // line 55 echo " "; if (array_key_exists("admin_pool", $context) && $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "use_select2"), "method")) { // line 56 echo " "; $context["locale"] = $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "locale", array()); // line 57 echo " "; if ((isset($context["locale"]) ? $context["locale"] : $this->getContext($context, "locale")) == "pt") { $context["locale"] = "pt_PT"; } // line 58 echo "\n "; // line 60 echo " "; if (twig_slice($this->env, isset($context["locale"]) ? $context["locale"] : $this->getContext($context, "locale"), 0, 2) != "en") { // line 61 echo " <script src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/sonataadmin/vendor/select2/select2_locale_" . strtr(isset($context["locale"]) ? $context["locale"] : $this->getContext($context, "locale"), array("_" => "-")) . ".js"), "html", null, true); echo "\"></script>\n "; } // line 63 echo " "; } // line 64 echo "\n "; }
public function block_money_widget($context, array $blocks = array()) { // line 23 echo "<div class=\"input-group\">\n "; // line 24 $context["prepend"] = "{{" == twig_slice($this->env, isset($context["money_pattern"]) ? $context["money_pattern"] : null, 0, 2); // line 25 echo " "; if (!(isset($context["prepend"]) ? $context["prepend"] : null)) { // line 26 echo " <span class=\"input-group-addon\">"; echo twig_escape_filter($this->env, twig_replace_filter(isset($context["money_pattern"]) ? $context["money_pattern"] : null, array("{{ widget }}" => "")), "html", null, true); echo "</span>\n "; } // line 28 $this->displayBlock("form_widget_simple", $context, $blocks); // line 29 if (isset($context["prepend"]) ? $context["prepend"] : null) { // line 30 echo " <span class=\"input-group-addon\">"; echo twig_escape_filter($this->env, twig_replace_filter(isset($context["money_pattern"]) ? $context["money_pattern"] : null, array("{{ widget }}" => "")), "html", null, true); echo "</span>\n "; } // line 32 echo " </div>"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<div class=\"entityAddContainer\" style=\"display:none;\">\n <div class='clear'></div>\n <form id='addEditReport'>\n <table class=\"dataTable entityTable\">\n <thead>\n <tr class=\"first\">\n <th colspan=\"2\">"; // line 7 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_CreateAndScheduleReport")), "html", null, true); echo "</th>\n <tr>\n </thead>\n <tbody>\n <tr>\n <td class=\"first\">"; // line 12 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Website")), "html", null, true); echo " </td>\n <td style=\"width:650px;\">\n "; // line 14 echo isset($context["siteName"]) ? $context["siteName"] : $this->getContext($context, "siteName"); echo "\n </td>\n </tr>\n <tr>\n <td class=\"first\">"; // line 18 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Description")), "html", null, true); echo " </td>\n <td>\n <textarea cols=\"30\" rows=\"3\" id=\"report_description\" class=\"inp\"></textarea>\n\n <div class=\"entityInlineHelp\">\n "; // line 23 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_DescriptionOnFirstPage")), "html", null, true); echo "\n </div>\n </td>\n </tr>\n "; // line 27 if (isset($context["segmentEditorActivated"]) ? $context["segmentEditorActivated"] : $this->getContext($context, "segmentEditorActivated")) { // line 28 echo " <tr>\n <td class=\"first\">"; // line 29 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SegmentEditor_ChooseASegment")), "html", null, true); echo " </td>\n <td>\n <select id='report_segment'>\n <option value=\"\">"; // line 32 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SegmentEditor_DefaultAllVisits")), "html", null, true); echo "</option>\n "; // line 33 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["savedSegmentsById"]) ? $context["savedSegmentsById"] : $this->getContext($context, "savedSegmentsById")); foreach ($context['_seq'] as $context["savedSegmentId"] => $context["savedSegmentName"]) { // line 34 echo " <option value=\""; echo twig_escape_filter($this->env, $context["savedSegmentId"], "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_slice($this->env, $context["savedSegmentName"], 0, 50), "html", null, true); echo "</option>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['savedSegmentId'], $context['savedSegmentName'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 36 echo " </select>\n\n <div class=\"entityInlineHelp\">\n "; // line 39 ob_start(); echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SegmentEditor_DefaultAllVisits")), "html", null, true); $context["SegmentEditor_DefaultAllVisits"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 40 echo " "; ob_start(); echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SegmentEditor_AddNewSegment")), "html", null, true); $context["SegmentEditor_AddNewSegment"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 41 echo " "; echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_Segment_Help", "<a href=\"./\" rel=\"noreferrer\" target=\"_blank\">", "</a>", isset($context["SegmentEditor_DefaultAllVisits"]) ? $context["SegmentEditor_DefaultAllVisits"] : $this->getContext($context, "SegmentEditor_DefaultAllVisits"), isset($context["SegmentEditor_AddNewSegment"]) ? $context["SegmentEditor_AddNewSegment"] : $this->getContext($context, "SegmentEditor_AddNewSegment"))); echo "\n </div>\n </td>\n </tr>\n "; } // line 46 echo " <tr>\n <td class=\"first\">"; // line 47 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_EmailSchedule")), "html", null, true); echo "</td>\n <td>\n <select id=\"report_period\" class=\"inp\">\n "; // line 50 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["periods"]) ? $context["periods"] : $this->getContext($context, "periods")); foreach ($context['_seq'] as $context["periodId"] => $context["period"]) { // line 51 echo " <option value=\""; echo twig_escape_filter($this->env, $context["periodId"], "html", null, true); echo "\">\n "; // line 52 echo twig_escape_filter($this->env, $context["period"], "html", null, true); echo "\n </option>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['periodId'], $context['period'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 55 echo " </select>\n\n <div class=\"entityInlineHelp\">\n "; // line 58 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_WeeklyScheduleHelp")), "html", null, true); echo "\n <br/>\n "; // line 60 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_MonthlyScheduleHelp")), "html", null, true); echo "\n <br/>\n "; // line 62 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_ReportHour", "<input type=\"text\" id=\"report_hour\" class=\"inp\" size=\"2\">")); echo "\n </div>\n </td>\n </tr>\n\n <tr "; // line 67 if (twig_length_filter($this->env, isset($context["reportTypes"]) ? $context["reportTypes"] : $this->getContext($context, "reportTypes")) == 1) { echo "style=\"display:none;\""; } echo ">\n <td class=\"first\">\n "; // line 69 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_ReportType")), "html", null, true); echo "\n </td>\n <td>\n <select id=\"report_type\">\n "; // line 73 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["reportTypes"]) ? $context["reportTypes"] : $this->getContext($context, "reportTypes")); foreach ($context['_seq'] as $context["reportType"] => $context["reportTypeIcon"]) { // line 74 echo " <option value=\""; echo twig_escape_filter($this->env, $context["reportType"], "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["reportType"]), "html", null, true); echo "</option>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['reportType'], $context['reportTypeIcon'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 76 echo " </select>\n </td>\n </tr>\n\n <tr>\n <td class=\"first\">\n "; // line 82 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_ReportFormat")), "html", null, true); echo "\n </td>\n\n <td>\n "; // line 86 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["reportFormatsByReportType"]) ? $context["reportFormatsByReportType"] : $this->getContext($context, "reportFormatsByReportType")); foreach ($context['_seq'] as $context["reportType"] => $context["reportFormats"]) { // line 87 echo " <select name='report_format' class='"; echo twig_escape_filter($this->env, $context["reportType"], "html", null, true); echo "'>\n "; // line 88 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($context["reportFormats"]); foreach ($context['_seq'] as $context["reportFormat"] => $context["reportFormatIcon"]) { // line 89 echo " <option value=\""; echo twig_escape_filter($this->env, $context["reportFormat"], "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["reportFormat"]), "html", null, true); echo "</option>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['reportFormat'], $context['reportFormatIcon'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 91 echo " </select>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['reportType'], $context['reportFormats'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 93 echo " </td>\n </tr>\n\n "; // line 96 echo call_user_func_array($this->env->getFunction('postEvent')->getCallable(), array("Template.reportParametersScheduledReports")); echo "\n\n <tr class='email' id=\"row_report_display_options\">\n <td class=\"first\">\n "; // line 101 echo " "; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_AggregateReportsFormat")), "html", null, true); echo "\n </td>\n <td>\n <select id=\"display_format\">\n "; // line 105 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["displayFormats"]) ? $context["displayFormats"] : $this->getContext($context, "displayFormats")); foreach ($context['_seq'] as $context["formatValue"] => $context["formatLabel"]) { // line 106 echo " <option "; if ($context["formatValue"] == 1) { echo "selected"; } echo " value=\""; echo twig_escape_filter($this->env, $context["formatValue"], "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $context["formatLabel"], "html", null, true); echo "</option>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['formatValue'], $context['formatLabel'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 108 echo " </select>\n\n <div class='report_evolution_graph'>\n <br/>\n <input type=\"checkbox\" id=\"report_evolution_graph\"/>\n <label for=\"report_evolution_graph\"><em>"; // line 113 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_EvolutionGraph", 5)), "html", null, true); echo "</em></label>\n </div>\n </td>\n </tr>\n\n <tr>\n <td class=\"first\">"; // line 119 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_ReportsIncluded")), "html", null, true); echo "</td>\n <td>\n "; // line 121 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["reportsByCategoryByReportType"]) ? $context["reportsByCategoryByReportType"] : $this->getContext($context, "reportsByCategoryByReportType")); foreach ($context['_seq'] as $context["reportType"] => $context["reportsByCategory"]) { // line 122 echo " <div name='reportsList' class='"; echo twig_escape_filter($this->env, $context["reportType"], "html", null, true); echo "'>\n\n "; // line 124 if ($this->getAttribute(isset($context["allowMultipleReportsByReportType"]) ? $context["allowMultipleReportsByReportType"] : $this->getContext($context, "allowMultipleReportsByReportType"), $context["reportType"], array(), "array")) { // line 125 echo " "; $context["reportInputType"] = "checkbox"; // line 126 echo " "; } else { // line 127 echo " "; $context["reportInputType"] = "radio"; // line 128 echo " "; } // line 129 echo "\n "; // line 130 $context["countCategory"] = 0; // line 131 echo "\n "; // line 132 $context["newColumnAfter"] = intval(floor((twig_length_filter($this->env, $context["reportsByCategory"]) + 1) / 2)); // line 133 echo "\n <div id='leftcolumn'>\n "; // line 135 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($context["reportsByCategory"]); foreach ($context['_seq'] as $context["category"] => $context["reports"]) { // line 136 echo " "; if ((isset($context["countCategory"]) ? $context["countCategory"] : $this->getContext($context, "countCategory")) >= (isset($context["newColumnAfter"]) ? $context["newColumnAfter"] : $this->getContext($context, "newColumnAfter")) && (isset($context["newColumnAfter"]) ? $context["newColumnAfter"] : $this->getContext($context, "newColumnAfter")) != 0) { // line 137 echo " "; $context["newColumnAfter"] = 0; // line 138 echo " </div>\n <div id='rightcolumn'>\n "; } // line 141 echo " <div class='reportCategory'>"; echo twig_escape_filter($this->env, $context["category"], "html", null, true); echo "</div>\n <ul class='listReports'>\n "; // line 143 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($context["reports"]); foreach ($context['_seq'] as $context["_key"] => $context["report"]) { // line 144 echo " <li>\n <input type='"; // line 145 echo twig_escape_filter($this->env, isset($context["reportInputType"]) ? $context["reportInputType"] : $this->getContext($context, "reportInputType"), "html", null, true); echo "' id=\""; echo twig_escape_filter($this->env, $context["reportType"], "html", null, true); echo twig_escape_filter($this->env, $this->getAttribute($context["report"], "uniqueId", array()), "html", null, true); echo "\" report-unique-id='"; echo twig_escape_filter($this->env, $this->getAttribute($context["report"], "uniqueId", array()), "html", null, true); echo "'\n name='"; // line 146 echo twig_escape_filter($this->env, $context["reportType"], "html", null, true); echo "Reports'/>\n <label for=\""; // line 147 echo twig_escape_filter($this->env, $context["reportType"], "html", null, true); echo twig_escape_filter($this->env, $this->getAttribute($context["report"], "uniqueId", array()), "html", null, true); echo "\">\n "; // line 148 echo $this->getAttribute($context["report"], "name", array()); echo "\n "; // line 149 if ($this->getAttribute($context["report"], "uniqueId", array()) == "MultiSites_getAll") { // line 150 echo " <div class=\"entityInlineHelp\">"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("ScheduledReports_ReportIncludeNWebsites", isset($context["countWebsites"]) ? $context["countWebsites"] : $this->getContext($context, "countWebsites"))), "html", null, true); // line 151 echo "</div>\n "; } // line 153 echo " </label>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['report'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 156 echo " "; $context["countCategory"] = (isset($context["countCategory"]) ? $context["countCategory"] : $this->getContext($context, "countCategory")) + 1; // line 157 echo " </ul>\n <br/>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['category'], $context['reports'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 160 echo " </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['reportType'], $context['reportsByCategory'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 163 echo " </td>\n </tr>\n\n </tbody>\n </table>\n\n <input type=\"hidden\" id=\"report_idreport\" value=\"\">\n <input type=\"submit\" id=\"report_submit\" name=\"submit\" class=\"submit\"/>\n\n </form>\n <div class='entityCancel'>\n "; // line 174 echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_OrCancel", "<a class='entityCancelLink'>", "</a>")); echo "\n </div>\n</div>\n"; }
public function block_panel($context, array $blocks = array()) { // line 90 echo " <h2>Twig Templates</h2>\n <table>\n <tr>\n <th>Template</th>\n <th>Parameters</th>\n </tr>\n "; // line 96 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "templates", array())); foreach ($context['_seq'] as $context["_key"] => $context["template"]) { // line 97 echo " <tr>\n <th>\n "; // line 99 if ($this->getAttribute($context["template"], "path", array(), "any", true, true)) { // line 100 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('code')->getFileLink($this->getAttribute($context["template"], "path", array()), 1), "html", null, true); echo "\">\n "; // line 101 echo twig_escape_filter($this->env, $this->getAttribute($context["template"], "name", array()), "html", null, true); echo "\n </a>\n "; } else { // line 104 echo " "; echo twig_escape_filter($this->env, $context["template"], "html", null, true); echo "\n "; } // line 106 echo " </th>\n <td>\n "; // line 108 if ($this->getAttribute($context["template"], "parameters", array(), "any", true, true)) { // line 109 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["template"], "parameters", 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["parameter"] => $context["metadata"]) { // line 110 echo " "; if ($this->getAttribute($context["metadata"], "type", array()) == "boolean") { // line 111 echo " "; $context["value"] = $this->getAttribute($context["metadata"], "value", array()) ? "true" : "false"; // line 112 echo " "; } elseif ($this->getAttribute($context["metadata"], "type", array()) == "string") { // line 113 echo " "; $context["maxStrLength"] = 40; // line 114 echo " "; $context["value"] = $this->getAttribute($context["metadata"], "value", array()); // line 115 echo " "; if (twig_length_filter($this->env, isset($context["value"]) ? $context["value"] : null) > (isset($context["maxStrLength"]) ? $context["maxStrLength"] : null)) { // line 116 echo " "; $context["value"] = twig_slice($this->env, isset($context["value"]) ? $context["value"] : null, 0, isset($context["maxStrLength"]) ? $context["maxStrLength"] : null) . "…"; // line 117 echo " "; } // line 118 echo " "; $context["value"] = "\"" . (isset($context["value"]) ? $context["value"] : null) . "\""; // line 119 echo " "; } else { // line 120 echo " "; $context["value"] = $this->getAttribute($context["metadata"], "value", array()); // line 121 echo " "; } // line 122 echo " <code>\n "; // line 123 echo twig_escape_filter($this->env, $context["parameter"], "html", null, true); echo ": <em style=\"color: #aaa\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["metadata"], "type", array()), "html", null, true); echo "</em>\n <span style=\"color: #009E00\">"; // line 124 echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : null, "html", null, true); echo "</span>\n </code>\n "; // line 126 if (!$this->getAttribute($context["loop"], "last", array())) { echo "<br />"; } // line 127 echo " "; ++$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['parameter'], $context['metadata'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 128 echo " "; } // line 129 echo " </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['template'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 132 echo " </table>\n <br />\n <h2>Twig Extensions</h2>\n <table>\n <tr>\n <th>Extension</th>\n <th>Class</th>\n </tr>\n "; // line 140 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "extensions", array())); foreach ($context['_seq'] as $context["_key"] => $context["extension"]) { // line 141 echo " <tr>\n <th>"; // line 142 echo twig_escape_filter($this->env, $this->getAttribute($context["extension"], "name", array()), "html", null, true); echo "</th>\n <td><code>"; // line 143 echo twig_escape_filter($this->env, $this->getAttribute($context["extension"], "class", array()), "html", null, true); echo "</code></td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['extension'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 146 echo " </table>\n\n <h2>Twig Tests available</h2>\n <table>\n <tr>\n <th>Test</th>\n <th>Call</th>\n <th>Extension</th>\n </tr>\n "; // line 155 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "tests", array())); foreach ($context['_seq'] as $context["_key"] => $context["test"]) { // line 156 echo " <tr>\n <th>"; // line 157 echo twig_escape_filter($this->env, $this->getAttribute($context["test"], "name", array()), "html", null, true); echo "</th>\n <td><code>"; // line 158 echo twig_escape_filter($this->env, $this->getAttribute($context["test"], "call", array()), "html", null, true); echo "</code></td>\n <td>"; // line 159 echo twig_escape_filter($this->env, $this->getAttribute($context["test"], "extension", array()), "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['test'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 162 echo " </table>\n\n <h2>Twig Filters available</h2>\n <table>\n <tr>\n <th>Filter</th>\n <th>Call</th>\n <th>Extension</th>\n </tr>\n "; // line 171 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "filters", array())); foreach ($context['_seq'] as $context["_key"] => $context["filter"]) { // line 172 echo " <tr>\n <th>"; // line 173 echo twig_escape_filter($this->env, $this->getAttribute($context["filter"], "name", array()), "html", null, true); echo "</th>\n <td><code>"; // line 174 echo twig_escape_filter($this->env, $this->getAttribute($context["filter"], "call", array()), "html", null, true); echo "</code></td>\n <td>"; // line 175 echo twig_escape_filter($this->env, $this->getAttribute($context["filter"], "extension", array()), "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filter'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 178 echo " </table>\n\n <h2>Twig Functions available</h2>\n <table>\n <tr>\n <th>Function</th>\n <th>Call</th>\n <th>Extension</th>\n </tr>\n "; // line 187 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "functions", array())); foreach ($context['_seq'] as $context["_key"] => $context["function"]) { // line 188 echo " <tr>\n <th>"; // line 189 echo twig_escape_filter($this->env, $this->getAttribute($context["function"], "name", array()), "html", null, true); echo "</th>\n <td><code>"; // line 190 echo twig_escape_filter($this->env, $this->getAttribute($context["function"], "call", array()), "html", null, true); echo "</code></td>\n <td>"; // line 191 echo twig_escape_filter($this->env, $this->getAttribute($context["function"], "extension", array()), "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['function'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 194 echo " </table>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 ob_start(); // line 2 $context["tooltipIndex"] = (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) . "_tooltip"; // line 3 if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => isset($context["tooltipIndex"]) ? $context["tooltipIndex"] : $this->getContext($context, "tooltipIndex")), "method")) { echo "<span class=\"cell-tooltip\" data-tooltip=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => isset($context["tooltipIndex"]) ? $context["tooltipIndex"] : $this->getContext($context, "tooltipIndex")), "method"), "html", null, true); echo "\">"; } // line 4 if (!$this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getIdSubDataTable", array(), "method") && (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) == "label" && $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "url"), "method")) { // line 5 echo " <a target=\"_blank\" href='"; if (!twig_in_filter(twig_slice($this->env, $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "url"), "method"), 0, 4), array(0 => "http", 1 => "ftp:"))) { echo "http://"; } echo call_user_func_array($this->env->getFilter('rawSafeDecoded')->getCallable(), array($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "url"), "method"))); echo "'>\n "; // line 6 if (!$this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "logo"), "method")) { // line 7 echo " <img class=\"link\" width=\"10\" height=\"9\" src=\"plugins/Morpheus/images/link.gif\"/>\n "; } } // line 10 if ((isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) == "label") { // line 11 echo " "; $context["piwik"] = $this->env->loadTemplate("macros.twig"); // line 12 echo "\n <span class='label"; // line 13 if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "is_aggregate"), "method")) { echo " highlighted"; } echo "'\n "; // line 14 if (array_key_exists("properties", $context) && !twig_test_empty($this->getAttribute(isset($context["properties"]) ? $context["properties"] : $this->getContext($context, "properties"), "tooltip_metadata_name"))) { echo "title=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => $this->getAttribute(isset($context["properties"]) ? $context["properties"] : $this->getContext($context, "properties"), "tooltip_metadata_name")), "method"), "html", null, true); echo "\""; } echo ">\n "; // line 15 echo $context["piwik"]->getlogoHtml($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(), "method"), $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => "label"), "method")); echo "\n "; // line 16 if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "html_label_prefix"), "method")) { echo "<span class='label-prefix'>"; echo $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "html_label_prefix"), "method"); echo " </span>"; } // line 17 if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "html_label_suffix"), "method")) { echo "<span class='label-suffix'>"; echo $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "html_label_suffix"), "method"); echo "</span>"; } } // line 18 echo "<span class=\"value\">"; if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method")) { echo $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method"); } else { echo "-"; } echo "</span>\n"; // line 19 if ((isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) == "label") { echo "</span>"; } // line 20 if (!$this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getIdSubDataTable", array(), "method") && (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) == "label" && $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "url"), "method")) { // line 21 echo " </a>\n"; } // line 23 if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => isset($context["tooltipIndex"]) ? $context["tooltipIndex"] : $this->getContext($context, "tooltipIndex")), "method")) { echo "</span>"; } // line 24 echo "\n"; // line 25 $context["totals"] = $this->getAttribute(isset($context["dataTable"]) ? $context["dataTable"] : $this->getContext($context, "dataTable"), "getMetadata", array(0 => "totals"), "method"); // line 26 if (twig_in_filter(isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), twig_get_array_keys_filter(isset($context["totals"]) ? $context["totals"] : $this->getContext($context, "totals")))) { // line 27 $context["labelColumn"] = twig_first($this->env, isset($context["columns_to_display"]) ? $context["columns_to_display"] : $this->getContext($context, "columns_to_display")); // line 28 echo " "; $context["reportTotal"] = $this->getAttribute(isset($context["totals"]) ? $context["totals"] : $this->getContext($context, "totals"), isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), array(), "array"); // line 29 echo " "; if (array_key_exists("siteSummary", $context) && !twig_test_empty(isset($context["siteSummary"]) ? $context["siteSummary"] : $this->getContext($context, "siteSummary")) && $this->getAttribute(isset($context["siteSummary"]) ? $context["siteSummary"] : $this->getContext($context, "siteSummary"), "getFirstRow")) { // line 30 echo " "; $context["siteTotal"] = $this->getAttribute($this->getAttribute(isset($context["siteSummary"]) ? $context["siteSummary"] : $this->getContext($context, "siteSummary"), "getFirstRow"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method"); // line 31 echo " "; } else { // line 32 echo " "; $context["siteTotal"] = 0; // line 33 echo " "; } // line 34 echo " "; $context["rowPercentage"] = call_user_func_array($this->env->getFilter('percentage')->getCallable(), array($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method"), isset($context["reportTotal"]) ? $context["reportTotal"] : $this->getContext($context, "reportTotal"), 1)); // line 35 echo " "; $context["metricTitle"] = $this->getAttribute(isset($context["translations"]) ? $context["translations"] : null, isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), array(), "array", true, true) ? _twig_default_filter($this->getAttribute(isset($context["translations"]) ? $context["translations"] : null, isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), array(), "array"), isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) : (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")); // line 36 echo " "; $context["reportLabel"] = call_user_func_array($this->env->getFilter('truncate')->getCallable(), array($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn")), "method"), 40)); // line 37 echo "\n "; // line 38 $context["reportRatioTooltip"] = call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ReportRatioTooltip", isset($context["reportLabel"]) ? $context["reportLabel"] : $this->getContext($context, "reportLabel"), twig_escape_filter($this->env, isset($context["rowPercentage"]) ? $context["rowPercentage"] : $this->getContext($context, "rowPercentage"), "html_attr"), twig_escape_filter($this->env, isset($context["reportTotal"]) ? $context["reportTotal"] : $this->getContext($context, "reportTotal"), "html_attr"), twig_escape_filter($this->env, isset($context["metricTitle"]) ? $context["metricTitle"] : $this->getContext($context, "metricTitle"), "html_attr"), twig_escape_filter($this->env, $this->getAttribute(isset($context["translations"]) ? $context["translations"] : null, isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn"), array(), "array", true, true) ? _twig_default_filter($this->getAttribute(isset($context["translations"]) ? $context["translations"] : null, isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn"), array(), "array"), isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn")) : (isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn")), "html_attr"))); // line 39 echo "\n "; // line 40 if ((isset($context["siteTotal"]) ? $context["siteTotal"] : $this->getContext($context, "siteTotal")) && (isset($context["siteTotal"]) ? $context["siteTotal"] : $this->getContext($context, "siteTotal")) > (isset($context["reportTotal"]) ? $context["reportTotal"] : $this->getContext($context, "reportTotal"))) { // line 41 echo " "; $context["totalPercentage"] = call_user_func_array($this->env->getFilter('percentage')->getCallable(), array($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method"), isset($context["siteTotal"]) ? $context["siteTotal"] : $this->getContext($context, "siteTotal"), 1)); // line 42 echo " "; $context["totalRatioTooltip"] = call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_TotalRatioTooltip", isset($context["totalPercentage"]) ? $context["totalPercentage"] : $this->getContext($context, "totalPercentage"), isset($context["siteTotal"]) ? $context["siteTotal"] : $this->getContext($context, "siteTotal"), isset($context["metricTitle"]) ? $context["metricTitle"] : $this->getContext($context, "metricTitle"))); // line 43 echo " "; } else { // line 44 echo " "; $context["totalRatioTooltip"] = ""; // line 45 echo " "; } // line 46 echo "\n <span class=\"ratio\" title=\""; // line 47 echo isset($context["reportRatioTooltip"]) ? $context["reportRatioTooltip"] : $this->getContext($context, "reportRatioTooltip"); echo " "; echo twig_escape_filter($this->env, isset($context["totalRatioTooltip"]) ? $context["totalRatioTooltip"] : $this->getContext($context, "totalRatioTooltip"), "html_attr"); echo "\"> "; echo twig_escape_filter($this->env, isset($context["rowPercentage"]) ? $context["rowPercentage"] : $this->getContext($context, "rowPercentage"), "html", null, true); echo "</span>"; } echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); }
public function block_javascripts($context, array $blocks = array()) { $__internal_9d89bef533dbc5a46e8da3827ff7eee096acb6ab4091e6ef875db69d51dc3c40 = $this->env->getExtension("native_profiler"); $__internal_9d89bef533dbc5a46e8da3827ff7eee096acb6ab4091e6ef875db69d51dc3c40->enter($__internal_9d89bef533dbc5a46e8da3827ff7eee096acb6ab4091e6ef875db69d51dc3c40_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "javascripts")); // line 47 echo " <script>\n window.SONATA_CONFIG = {\n CONFIRM_EXIT: "; // line 49 if (array_key_exists("admin_pool", $context) && $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "confirm_exit"), "method")) { echo "true"; } else { echo "false"; } echo ",\n USE_SELECT2: "; // line 50 if (array_key_exists("admin_pool", $context) && $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "use_select2"), "method")) { echo "true"; } else { echo "false"; } echo ",\n USE_ICHECK: "; // line 51 if (array_key_exists("admin_pool", $context) && $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "use_icheck"), "method")) { echo "true"; } else { echo "false"; } // line 52 echo " };\n window.SONATA_TRANSLATIONS = {\n CONFIRM_EXIT: '"; // line 54 echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("confirm_exit", array(), "SonataAdminBundle"), "js"), "html", null, true); echo "'\n };\n </script>\n\n "; // line 58 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "javascripts", 1 => array()), "method")); foreach ($context['_seq'] as $context["_key"] => $context["javascript"]) { // line 59 echo " <script src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl($context["javascript"]), "html", null, true); echo "\"></script>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['javascript'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 61 echo "\t\t<script src=\"http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js\"></script>\n\t\t<script src=\""; // line 62 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/jquery-ui-1.10.3.min.js"), "html", null, true); echo "\" type =\"text/javascript\"></script>\n\t\t<script src=\""; // line 63 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/bootstrap.min.js"), "html", null, true); echo "\"></script>\n\t\t<script src=\"//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js\"></script>\n\t\t<script src=\""; // line 65 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/plugins/morris/morris.js"), "html", null, true); echo "\"></script>\n\t\t<script src=\""; // line 66 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/plugins/sparkline/jquery.sparkline.min.js"), "html", null, true); echo "\"></script>\n\t\t<script src=\""; // line 67 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"), "html", null, true); echo "\"></script>\n\t\t<script src=\""; // line 68 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"), "html", null, true); echo "\"></script>\n\t\t<script src=\""; // line 69 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/plugins/fullcalender/fullcalender.min.js"), "html", null, true); echo "\"></script>\n\t\t<script src=\""; // line 70 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/plugins/jqueryKnob/jquery.knob.js"), "html", null, true); echo "\"></script>\n\t\t<script src=\""; // line 71 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/plugins/daterangepicker/daterangepicker.js"), "html", null, true); echo "\"></script>\n\t\t<script src=\""; // line 72 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/plugins/bootstrap-wysihtml5/boostrap3-wysihtml5.all.min.js"), "html", null, true); echo "\"></script>\n\t\t<script src=\""; // line 73 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/plugins/iCheck/icheck.min.js"), "html", null, true); echo "\"></script>\t\n\t\t<script src=\""; // line 74 echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("js/AdminLTE/app.js"), "html", null, true); echo "\"></script>\t\n "; // line 76 echo " "; if (array_key_exists("admin_pool", $context) && $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "use_select2"), "method")) { // line 77 echo " "; $context["locale"] = $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "locale", array()); // line 78 echo " "; if ((isset($context["locale"]) ? $context["locale"] : $this->getContext($context, "locale")) == "pt") { $context["locale"] = "pt_PT"; } // line 79 echo "\n "; // line 81 echo " "; if (twig_slice($this->env, isset($context["locale"]) ? $context["locale"] : $this->getContext($context, "locale"), 0, 2) != "en") { // line 82 echo " <script src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/sonataadmin/vendor/select2/select2_locale_" . twig_replace_filter(isset($context["locale"]) ? $context["locale"] : $this->getContext($context, "locale"), array("_" => "-")) . ".js"), "html", null, true); echo "\"></script>\n "; } // line 84 echo " "; } // line 85 echo "\n "; $__internal_9d89bef533dbc5a46e8da3827ff7eee096acb6ab4091e6ef875db69d51dc3c40->leave($__internal_9d89bef533dbc5a46e8da3827ff7eee096acb6ab4091e6ef875db69d51dc3c40_prof); }
public function block_see($context, array $blocks = array()) { // line 134 echo " <table class=\"table table-condensed\">\n "; // line 135 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), "tags", array(0 => "see"), "method")); foreach ($context['_seq'] as $context["_key"] => $context["tag"]) { // line 136 echo " <tr>\n <td>"; // line 137 echo twig_escape_filter($this->env, $this->getAttribute($context["tag"], 0, array(), "array"), "html", null, true); echo "</td>\n <td>"; // line 138 echo twig_escape_filter($this->env, twig_join_filter(twig_slice($this->env, $context["tag"], 1, null), " "), "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 141 echo " </table>\n"; }
public function block_money_widget($context, array $blocks = array()) { $__internal_a2c401a527ad2d0605e1758b6d2b841e959b660997b92e4a5b2bebde91d07ffc = $this->env->getExtension("native_profiler"); $__internal_a2c401a527ad2d0605e1758b6d2b841e959b660997b92e4a5b2bebde91d07ffc->enter($__internal_a2c401a527ad2d0605e1758b6d2b841e959b660997b92e4a5b2bebde91d07ffc_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "money_widget")); // line 23 echo "<div class=\"input-group\">\n "; // line 24 $context["prepend"] = "{{" == twig_slice($this->env, isset($context["money_pattern"]) ? $context["money_pattern"] : $this->getContext($context, "money_pattern"), 0, 2); // line 25 echo " "; if (!(isset($context["prepend"]) ? $context["prepend"] : $this->getContext($context, "prepend"))) { // line 26 echo " <span class=\"input-group-addon\">"; echo twig_escape_filter($this->env, twig_replace_filter(isset($context["money_pattern"]) ? $context["money_pattern"] : $this->getContext($context, "money_pattern"), array("{{ widget }}" => "")), "html", null, true); echo "</span>\n "; } // line 28 $this->displayBlock("form_widget_simple", $context, $blocks); // line 29 if (isset($context["prepend"]) ? $context["prepend"] : $this->getContext($context, "prepend")) { // line 30 echo " <span class=\"input-group-addon\">"; echo twig_escape_filter($this->env, twig_replace_filter(isset($context["money_pattern"]) ? $context["money_pattern"] : $this->getContext($context, "money_pattern"), array("{{ widget }}" => "")), "html", null, true); echo "</span>\n "; } // line 32 echo " </div>"; $__internal_a2c401a527ad2d0605e1758b6d2b841e959b660997b92e4a5b2bebde91d07ffc->leave($__internal_a2c401a527ad2d0605e1758b6d2b841e959b660997b92e4a5b2bebde91d07ffc_prof); }
/** * Returns the last element of the item. * * @param Twig_Environment $env A Twig_Environment instance * @param mixed $item A variable * * @return mixed The last element of the item */ function twig_last(Twig_Environment $env, $item) { $elements = twig_slice($env, $item, -1, 1, false); return is_string($elements) ? $elements : current($elements); }
public function block_content($context, array $blocks = array()) { // line 38 echo "\n<div class='data_container'>\n <div class='list_view_buttons'>\n "; // line 41 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(array(0 => 10, 1 => 20, 2 => 50, 3 => 100, 4 => 250)); foreach ($context['_seq'] as $context["_key"] => $context["rows"]) { // line 42 echo " "; if ((isset($context["rows"]) ? $context["rows"] : null) == (isset($context["r"]) ? $context["r"] : null)) { // line 43 echo " <span>"; echo twig_escape_filter($this->env, isset($context["rows"]) ? $context["rows"] : null, "html", null, true); echo "</span>\n "; } else { // line 45 echo " <a href='/helpdesk?"; echo twig_escape_filter($this->env, isset($context["get_for_list_view"]) ? $context["get_for_list_view"] : null, "html", null, true); echo "r="; echo twig_escape_filter($this->env, isset($context["rows"]) ? $context["rows"] : null, "html", null, true); echo "'>"; echo twig_escape_filter($this->env, isset($context["rows"]) ? $context["rows"] : null, "html", null, true); echo "</a>\n "; } // line 47 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rows'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 48 echo " "; if ((isset($context["admin_id"]) ? $context["admin_id"] : null) == 164) { // line 49 echo " <span class=\"block_button_show_timeline\">\n <a class=\"button_show_timeline\">+</a>\n </span>\n "; } // line 53 echo " </div>\n <table class='tickets list'>\n <col class='col-status'/>\n <col class='col-weight'/>\n <col class='col-title'/>\n <col class='col-area'/>\n <col class='col-creator'/>\n <col class='col-performers'/>\n <col class='col-created'/>\n <col class='col-changed'/>\n <col class='col-deadline'/>\n <col class='col-rate'/>\n\n <tr>\n "; // line 67 list($context["col"], $context["class"], $context["order_desc"]) = array("status", "", ""); // line 68 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 69 echo " "; $context["class"] = "ordered"; // line 70 echo " "; if ((isset($context["od"]) ? $context["od"] : null) == 1) { echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; echo " "; } else { echo " "; $context["order_desc"] = "&od=1"; echo " "; } // line 71 echo " "; } // line 72 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo " "; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 73 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "' title='Статус'>\n <img class='icon' src='/stat/img/helpdesk/status_"; // line 74 echo twig_escape_filter($this->env, _twig_default_filter(strtr(isset($context["class"]) ? $context["class"] : null, array(" " => "_")), "0"), "html", null, true); echo ".png'>\n </a>\n </th>\n\n "; // line 78 list($context["col"], $context["class"], $context["order_desc"]) = array("weight", "", "&od=1"); // line 79 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 80 echo " "; $context["class"] = "ordered"; // line 81 echo " "; if (!(isset($context["od"]) ? $context["od"] : null) == 1) { echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; echo " "; } else { echo " "; $context["order_desc"] = ""; echo " "; } // line 82 echo " "; } // line 83 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo " "; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 84 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "' title='Вес'>\n <img class='icon' src='/stat/img/helpdesk/type_"; // line 85 echo twig_escape_filter($this->env, _twig_default_filter(strtr(isset($context["class"]) ? $context["class"] : null, array(" " => "_")), "0"), "html", null, true); echo ".png'>\n </a>\n </th>\n\n "; // line 89 list($context["col"], $context["class"], $context["order_desc"]) = array("title", "", ""); // line 90 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 91 echo " "; $context["class"] = "ordered"; // line 92 echo " "; if ((isset($context["od"]) ? $context["od"] : null) == 1) { echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; echo " "; } else { echo " "; $context["order_desc"] = "&od=1"; echo " "; } // line 93 echo " "; } // line 94 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 95 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "'><span>Тема</span></a>\n </th>\n\n "; // line 98 list($context["col"], $context["class"], $context["order_desc"]) = array("area", "", ""); // line 99 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 100 echo " "; $context["class"] = "ordered"; // line 101 echo " "; if ((isset($context["od"]) ? $context["od"] : null) == 1) { // line 102 echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; // line 103 echo " "; } else { // line 104 echo " "; $context["order_desc"] = "&od=1"; // line 105 echo " "; } // line 106 echo " "; } // line 107 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 108 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "'><span>Территория</span></a>\n </th>\n\n "; // line 111 list($context["col"], $context["class"], $context["order_desc"]) = array("creator", "", ""); // line 112 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 113 echo " "; $context["class"] = "ordered"; // line 114 echo " "; if ((isset($context["od"]) ? $context["od"] : null) == 1) { echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; echo " "; } else { echo " "; $context["order_desc"] = "&od=1"; echo " "; } // line 115 echo " "; } // line 116 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo " "; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 117 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "'><span>Постановщик</span></a>\n </th>\n\n "; // line 120 list($context["col"], $context["class"], $context["order_desc"]) = array("performers", "", ""); // line 121 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 122 echo " "; $context["class"] = "ordered"; // line 123 echo " "; if ((isset($context["od"]) ? $context["od"] : null) == 1) { echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; echo " "; } else { echo " "; $context["order_desc"] = "&od=1"; echo " "; } // line 124 echo " "; } // line 125 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 126 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "'><span>Исполнители</span></a>\n </th>\n\n "; // line 129 list($context["col"], $context["class"], $context["order_desc"]) = array("created", "", ""); // line 130 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 131 echo " "; $context["class"] = "ordered"; // line 132 echo " "; if ((isset($context["od"]) ? $context["od"] : null) == 1) { echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; echo " "; } else { echo " "; $context["order_desc"] = "&od=1"; echo " "; } // line 133 echo " "; } // line 134 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 135 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "'><span>Создана</span></a>\n </th>\n\n "; // line 138 list($context["col"], $context["class"], $context["order_desc"]) = array("changed", "", ""); // line 139 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 140 echo " "; $context["class"] = "ordered"; // line 141 echo " "; if ((isset($context["od"]) ? $context["od"] : null) == 1) { echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; echo " "; } else { echo " "; $context["order_desc"] = "&od=1"; echo " "; } // line 142 echo " "; } // line 143 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo " "; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 144 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "'><span>Изменена</span></a>\n </th>\n\n "; // line 147 list($context["col"], $context["class"], $context["order_desc"]) = array("deadline", "", ""); // line 148 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 149 echo " "; $context["class"] = "ordered"; // line 150 echo " "; if ((isset($context["od"]) ? $context["od"] : null) == 1) { echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; echo " "; } else { echo " "; $context["order_desc"] = "&od=1"; echo " "; } // line 151 echo " "; } // line 152 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 153 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "' title=\"Планируемая дата следующих действий по заявке\"><span>Срок</span></a>\n </th>\n\n "; // line 156 list($context["col"], $context["class"], $context["order_desc"]) = array("rate", "", ""); // line 157 echo " "; if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) { // line 158 echo " "; $context["class"] = "ordered"; // line 159 echo " "; if ((isset($context["od"]) ? $context["od"] : null) == 1) { echo " "; $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc"; echo " "; } else { echo " "; $context["order_desc"] = "&od=1"; echo " "; } // line 160 echo " "; } // line 161 echo " <th class=\""; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo " "; echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true); echo " sort\">\n <a href='/helpdesk/?"; // line 162 echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true); echo "ob="; echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true); echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true); echo "' title='Оценка'>\n <img src='/stat/img/helpdesk/rate_"; // line 163 echo twig_escape_filter($this->env, _twig_default_filter(strtr(isset($context["class"]) ? $context["class"] : null, array(" " => "_")), "0"), "html", null, true); echo "_min.png'>\n </a>\n </th>\n </tr>\n "; // line 167 if (isset($context["tickets"]) ? $context["tickets"] : null) { // line 168 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["tickets"]) ? $context["tickets"] : null); foreach ($context['_seq'] as $context["id"] => $context["ticket"]) { // line 169 echo "\n "; // line 170 list($context["unassigned"], $context["burning"]) = array("", ""); // line 171 echo "\n "; // line 172 if (!twig_join_filter($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "performers"), ", ")) { // line 173 echo " "; $context["unassigned"] = "unassigned"; // line 174 echo " "; } // line 175 echo " "; if ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "deadline") > 0 && twig_date_converter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "deadline")) <= twig_date_converter($this->env, "now") && twig_in_filter($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), array(0 => 1, 1 => 2, 2 => 3, 3 => 5, 4 => 7))) { // line 176 echo " "; $context["burning"] = "burning"; // line 177 echo " "; } // line 178 echo "\n <tr class='status_"; // line 179 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), "html", null, true); echo " "; echo twig_escape_filter($this->env, isset($context["unassigned"]) ? $context["unassigned"] : null, "html", null, true); echo " "; echo twig_escape_filter($this->env, isset($context["burning"]) ? $context["burning"] : null, "html", null, true); echo "' data-id='"; echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true); echo "'>\n <td>\n <a id=\"ticket-status_"; // line 181 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true); echo "\" class=\"popup_button noborder\">\n <img class='icon' src='/stat/img/helpdesk/status_"; // line 182 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), "html", null, true); echo ".png' title='"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["statuses"]) ? $context["statuses"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), array(), "array"), "name"), "html", null, true); echo "'>\n </a>\n <div id=\"popup_ticket-status_"; // line 184 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true); echo "\" class=\"popup_menu\">\n <ul>\n "; // line 186 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["statuses"]) ? $context["statuses"] : null); foreach ($context['_seq'] as $context["status_id"] => $context["status"]) { // line 187 echo " "; if ((isset($context["status_id"]) ? $context["status_id"] : null) == $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status")) { // line 188 echo " <li class=\"current\">\n <img class=\"icon\" src='/stat/img/helpdesk/status_"; // line 189 echo twig_escape_filter($this->env, isset($context["status_id"]) ? $context["status_id"] : null, "html", null, true); echo ".png'> "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["status"]) ? $context["status"] : null, "name"), "html", null, true); echo "</li>\n "; } else { // line 191 echo " <li>\n <a href=\"javascript: changeTicketStatus('"; // line 192 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true); echo "','"; echo twig_escape_filter($this->env, isset($context["status_id"]) ? $context["status_id"] : null, "html", null, true); echo "')\">\n <img class=\"icon\" src='/stat/img/helpdesk/status_"; // line 193 echo twig_escape_filter($this->env, isset($context["status_id"]) ? $context["status_id"] : null, "html", null, true); echo ".png'> "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["status"]) ? $context["status"] : null, "name"), "html", null, true); echo "</a>\n </li>\n "; } // line 196 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['status_id'], $context['status'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 197 echo " </ul>\n </div>\n\n </td>\n <td class='weight'><img class='icon' src='/stat/img/helpdesk/weight_"; // line 201 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "weight"), "html", null, true); echo ".png' title='Вес: "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "weight"), "html", null, true); echo "'></td>\n <td class='title'>\n <a href='./?stage=edit&id="; // line 203 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id"), "html", null, true); echo "'><span class=\"ticket_id\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id"), "html", null, true); echo ".</span>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "title"), "html", null, true); echo "</a>\n </td>\n <td>"; // line 205 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["areas"]) ? $context["areas"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "area"), array(), "array"), "html", null, true); echo "</td>\n <td class='creator'>\n <a class=\"ticket_creator\" data-id=\""; // line 207 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), "html", null, true); echo "\">\n "; // line 208 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["users"]) ? $context["users"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), array(), "array"), "lastname"), "html", null, true); echo " "; echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($this->getAttribute(isset($context["users"]) ? $context["users"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), array(), "array"), "firstname"), 0, 1), "html", null, true); echo "."; echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($this->getAttribute(isset($context["users"]) ? $context["users"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), array(), "array"), "middlename"), 0, 1), "html", null, true); echo ".\n </a>\n </td>\n <td>\n "; // line 212 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "performers")); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["p"]) { // line 213 echo " <span>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "lastname"), "html", null, true); echo " "; echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "firstname"), 0, 1), "html", null, true); echo "."; echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "middlename"), 0, 1), "html", null, true); echo "."; echo $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index") != twig_length_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "performers")) ? ", " : ""; echo "</span>\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['_key'], $context['p'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 215 echo " </td>\n\n "; // line 217 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(array(0 => "created", 1 => "changed", 2 => "deadline")); foreach ($context['_seq'] as $context["_key"] => $context["column"]) { // line 218 echo " "; list($context["y"], $context["m"], $context["d"], $context["y0"], $context["m0"], $context["d0"]) = array(twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "Y"), twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "m"), twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "j"), twig_date_format_filter($this->env, "now", "Y"), twig_date_format_filter($this->env, "now", "m"), twig_date_format_filter($this->env, "now", "j")); // line 219 echo " "; if ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array") > 0) { // line 220 echo " "; if ((isset($context["y"]) ? $context["y"] : null) == (isset($context["y0"]) ? $context["y0"] : null)) { // line 221 echo " "; if ((isset($context["m"]) ? $context["m"] : null) == (isset($context["m0"]) ? $context["m0"] : null)) { // line 222 echo " "; if ((isset($context["d"]) ? $context["d"] : null) == (isset($context["d0"]) ? $context["d0"] : null)) { // line 223 echo " "; $context["td"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : "сегодня"; // line 224 echo " "; $context["title"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? "Сегодня в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : ""; // line 225 echo " "; } elseif ((isset($context["d"]) ? $context["d"] : null) == (isset($context["d0"]) ? $context["d0"] : null) - 1) { // line 226 echo " "; $context["td"] = "вчера"; // line 227 echo " "; $context["title"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? "Вчера в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : ""; // line 228 echo " "; } elseif ((isset($context["d"]) ? $context["d"] : null) == (isset($context["d0"]) ? $context["d0"] : null) + 1) { // line 229 echo " "; $context["td"] = "завтра"; // line 230 echo " "; } else { // line 231 echo " "; $context["td"] = (isset($context["d"]) ? $context["d"] : null) . " " . twig_slice($this->env, $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array"), 0, 3); // line 232 echo " "; $context["title"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? (isset($context["d"]) ? $context["d"] : null) . " " . $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array") . " в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : ""; // line 233 echo " "; } // line 234 echo " "; } else { // line 235 echo " "; $context["td"] = (isset($context["d"]) ? $context["d"] : null) . " " . twig_slice($this->env, $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array"), 0, 3); // line 236 echo " "; $context["title"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? (isset($context["d"]) ? $context["d"] : null) . " " . $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array") . " в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : ""; // line 237 echo " "; } // line 238 echo " "; } else { // line 239 echo " "; $context["td"] = (isset($context["d"]) ? $context["d"] : null) . "." . (isset($context["m"]) ? $context["m"] : null) . "." . (isset($context["y"]) ? $context["y"] : null); // line 240 echo " "; $context["title"] = (isset($context["d"]) ? $context["d"] : null) . " " . $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array") . (isset($context["y"]) ? $context["y"] : null) . "г. в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i"); // line 241 echo " "; } // line 242 echo " "; } else { // line 243 echo " "; $context["td"] = "—"; // line 244 echo " "; } // line 245 echo " <td class=\"c-align "; echo twig_escape_filter($this->env, isset($context["column"]) ? $context["column"] : null, "html", null, true); echo " "; echo (isset($context["y"]) ? $context["y"] : null) == (isset($context["y0"]) ? $context["y0"] : null) && (isset($context["m"]) ? $context["m"] : null) == (isset($context["m0"]) ? $context["m0"] : null) && (isset($context["d"]) ? $context["d"] : null) == (isset($context["d0"]) ? $context["d0"] : null) ? "today" : ""; echo "\" title=\""; echo twig_escape_filter($this->env, isset($context["title"]) ? $context["title"] : null, "html", null, true); echo "\" >\n "; // line 246 echo twig_escape_filter($this->env, isset($context["td"]) ? $context["td"] : null, "html", null, true); echo "\n </td>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 249 echo "\n\n "; // line 252 echo " "; // line 253 echo " "; // line 254 echo " "; // line 255 echo " "; // line 256 echo " "; // line 257 echo " "; // line 258 echo " "; // line 259 echo " "; // line 260 echo " "; // line 261 echo " "; // line 262 echo " "; // line 263 echo "\n "; // line 265 echo " "; // line 266 echo " "; // line 267 echo " "; // line 268 echo " "; // line 269 echo " "; // line 270 echo " "; // line 271 echo " "; // line 272 echo " "; // line 273 echo " "; // line 274 echo " "; // line 275 echo "\n <td class=\"c-align rate\">\n <img src=\"/stat/img/helpdesk/rate_"; // line 277 echo twig_escape_filter($this->env, twig_test_empty($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "rate")) ? "0" : $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "rate"), "html", null, true); echo "_min.png\" title=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "rate"), "html", null, true); echo "\">\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['id'], $context['ticket'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 281 echo " "; } else { // line 282 echo " <tr>\n <td colspan='11' class='not_found'>Заявок не найдено.</td>\n </tr>\n "; } // line 286 echo "\n </table>\n <div class='table-footer'>\n <span class='statusbar'>Заявок: "; // line 289 echo twig_escape_filter($this->env, isset($context["row_count"]) ? $context["row_count"] : null, "html", null, true); echo "</span>\n "; // line 290 if ((isset($context["pages"]) ? $context["pages"] : null) > 1) { // line 291 echo " <div class=\"pagenumbers\">\n "; // line 292 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(range(0, (isset($context["pages"]) ? $context["pages"] : null) - 1)); foreach ($context['_seq'] as $context["_key"] => $context["i"]) { // line 293 echo " "; if ((isset($context["i"]) ? $context["i"] : null) == 1 && (isset($context["page"]) ? $context["page"] : null) > 3 || (isset($context["i"]) ? $context["i"] : null) == (isset($context["page"]) ? $context["page"] : null) + 3 && (isset($context["pages"]) ? $context["pages"] : null) - (isset($context["page"]) ? $context["page"] : null) > 4) { // line 294 echo " <span class = 'pagespace'>…</span>\n "; } else { // line 296 echo " "; if ((isset($context["i"]) ? $context["i"] : null) == 0 || (isset($context["i"]) ? $context["i"] : null) > (isset($context["page"]) ? $context["page"] : null) - 3 && (isset($context["i"]) ? $context["i"] : null) < (isset($context["page"]) ? $context["page"] : null) + 4 || (isset($context["i"]) ? $context["i"] : null) == (isset($context["pages"]) ? $context["pages"] : null) - 1) { // line 297 echo " "; if ((isset($context["page"]) ? $context["page"] : null) == (isset($context["i"]) ? $context["i"] : null)) { // line 298 echo " <span class=\"page current\">"; echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null) + 1, "html", null, true); echo "</span>\n "; } else { // line 300 echo " <a class=\"page\" href='/helpdesk?"; echo twig_escape_filter($this->env, isset($context["get_for_pagenumbers"]) ? $context["get_for_pagenumbers"] : null, "html", null, true); echo "page="; echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true); echo "'>"; echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null) + 1, "html", null, true); echo "</a>\n "; } // line 302 echo " "; } // line 303 echo " "; } // line 304 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 305 echo " </div>\n "; } // line 307 echo " </div>\n\n <div class='buttons'>\n <div class='right'>\n <a class='button green' href='./?stage=new'>Новая заявка</a>\n </div>\n </div>\n\n</div>\n <div class='float filter'>\n <div class='header'>Фильтры\n <a class=\"settings\">\n <img id=\"button_filters_settings\" src=\"/stat/img/settings.png\">\n </a>\n </div>\n\n <div class='filters_block'>\n\n "; // line 325 $this->env->loadTemplate("helpdesk/filters_block.twig")->display($context); // line 326 echo "\n </div>\n\n <hr>\n\n "; // line 332 echo " <div class='params_block contractor cut_block cutted'>\n <span class=\"cutter pic\"></span>\n <span class='category_name cutter'>Ответственный</span>\n <span class=\"count\"></span>\n <div class='cut'>\n "; // line 337 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["admins"]) ? $context["admins"] : null); foreach ($context['_seq'] as $context["_key"] => $context["contractor"]) { // line 338 echo "\n "; // line 339 $context["c_id"] = $this->getAttribute(isset($context["contractor"]) ? $context["contractor"] : null, "uid"); // line 340 echo " "; $context["c_fio"] = $this->getAttribute(isset($context["contractor"]) ? $context["contractor"] : null, "lastname") . " " . $this->getAttribute(isset($context["contractor"]) ? $context["contractor"] : null, "firstname"); // line 341 echo " "; if ((isset($context["c_id"]) ? $context["c_id"] : null) == (isset($context["admin_id"]) ? $context["admin_id"] : null)) { echo " "; list($context["its_me"], $context["c_id"], $context["c_fio"]) = array("its_me", 0, "Я"); // line 342 echo " "; } else { echo " "; $context["its_me"] = ""; // line 343 echo " "; } // line 344 echo "\n <div class='param "; // line 345 echo twig_escape_filter($this->env, isset($context["its_me"]) ? $context["its_me"] : null, "html", null, true); echo "'>\n <label><input class=\"filter_checkbox\" type='checkbox' data-contractor='"; // line 346 echo twig_escape_filter($this->env, isset($context["c_id"]) ? $context["c_id"] : null, "html", null, true); echo "'/>"; echo twig_escape_filter($this->env, isset($context["c_fio"]) ? $context["c_fio"] : null, "html", null, true); echo "</label>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contractor'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 349 echo " </div>\n </div>\n\n "; // line 353 echo " <div class='params_block performers cut_block cutted'>\n <span class=\"cutter pic\"></span>\n <span class='category_name cutter'>Исполнители</span>\n <span class=\"count\"></span>\n <div class='cut'>\n "; // line 358 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["admins"]) ? $context["admins"] : null); foreach ($context['_seq'] as $context["_key"] => $context["performer"]) { // line 359 echo "\n "; // line 360 $context["p_id"] = $this->getAttribute(isset($context["performer"]) ? $context["performer"] : null, "uid"); // line 361 echo " "; $context["p_fio"] = $this->getAttribute(isset($context["performer"]) ? $context["performer"] : null, "lastname") . " " . $this->getAttribute(isset($context["performer"]) ? $context["performer"] : null, "firstname"); // line 362 echo " "; if ((isset($context["p_id"]) ? $context["p_id"] : null) == (isset($context["admin_id"]) ? $context["admin_id"] : null)) { echo " "; list($context["its_me"], $context["p_id"], $context["p_fio"]) = array("its_me", 0, "Я"); // line 363 echo " "; } else { echo " "; $context["its_me"] = ""; // line 364 echo " "; } // line 365 echo "\n <div class='param "; // line 366 echo twig_escape_filter($this->env, isset($context["its_me"]) ? $context["its_me"] : null, "html", null, true); echo "'>\n <label><input class=\"filter_checkbox\" type='checkbox' data-performers=\"@"; // line 367 echo twig_escape_filter($this->env, isset($context["p_id"]) ? $context["p_id"] : null, "html", null, true); echo "@\"/>"; echo twig_escape_filter($this->env, isset($context["p_fio"]) ? $context["p_fio"] : null, "html", null, true); echo "</label>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['performer'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 370 echo " </div>\n </div>\n\n "; // line 374 echo " "; if (isset($context["statuses"]) ? $context["statuses"] : null) { // line 375 echo " <div class='params_block status cut_block cutted'>\n <span class=\"cutter pic\"></span>\n <span class='category_name cutter'>Статус</span>\n <span class=\"count\"></span>\n <div class='cut'>\n "; // line 380 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["statuses"]) ? $context["statuses"] : null); foreach ($context['_seq'] as $context["status_id"] => $context["status"]) { // line 381 echo " <div class='param'>\n <label>\n <input class=\"filter_checkbox\" type='checkbox' data-status='"; // line 383 echo twig_escape_filter($this->env, isset($context["status_id"]) ? $context["status_id"] : null, "html", null, true); echo "'/>\n "; // line 385 echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["status"]) ? $context["status"] : null, "name"), "html", null, true); echo "</label>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['status_id'], $context['status'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 388 echo " </div>\n </div>\n "; } // line 391 echo "\n "; // line 393 echo " "; if (isset($context["areas"]) ? $context["areas"] : null) { // line 394 echo " <div class='params_block area cut_block cutted'>\n <span class=\"cutter pic\"></span>\n <span class='category_name cutter'>Территория</span>\n <span class=\"count\"></span>\n <div class='cut'>\n "; // line 399 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["areas"]) ? $context["areas"] : null); foreach ($context['_seq'] as $context["area_id"] => $context["area"]) { // line 400 echo " <div class='param'>\n <label><input class=\"filter_checkbox\" type='checkbox' data-area='"; // line 401 echo twig_escape_filter($this->env, isset($context["area_id"]) ? $context["area_id"] : null, "html", null, true); echo "'/>"; echo twig_escape_filter($this->env, isset($context["area"]) ? $context["area"] : null, "html", null, true); echo "</label>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['area_id'], $context['area'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 404 echo " </div>\n </div>\n "; } // line 407 echo "\n "; // line 409 echo " "; // line 410 echo " "; // line 411 echo " "; // line 412 echo " "; // line 413 echo " "; // line 414 echo " "; // line 415 echo " "; // line 416 echo " "; // line 417 echo " "; // line 418 echo " "; // line 419 echo " "; // line 420 echo " "; // line 421 echo "\n "; // line 423 echo " <div class='params_block rate cut_block cutted'>\n <span class=\"cutter pic\"></span>\n <span class='category_name cutter'>Оценка</span>\n <span class=\"count\"></span>\n <div class='cut'>\n "; // line 428 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(range(5, 1)); foreach ($context['_seq'] as $context["_key"] => $context["rate"]) { // line 429 echo " <div class='param'>\n <label><input class=\"filter_checkbox\" type='checkbox' data-rate='"; // line 430 echo twig_escape_filter($this->env, isset($context["rate"]) ? $context["rate"] : null, "html", null, true); echo "'/>"; echo twig_escape_filter($this->env, isset($context["rate"]) ? $context["rate"] : null, "html", null, true); echo " балл"; echo (isset($context["rate"]) ? $context["rate"] : null) == 5 ? "ов" : ((isset($context["rate"]) ? $context["rate"] : null) > 1 ? "a" : ""); echo "</label>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rate'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 433 echo "\n <div class='param'>\n <label><input class=\"filter_checkbox\" type='checkbox' data-rate='0'/>без оценки</label>\n </div>\n </div>\n </div>\n\n\n <div class='filter_buttons'>\n <a class='apply_filter' onclick=\"applyFilter()\">Показать</a>\n <a class='reset_filter' onclick=\"resetFilter()\">Очистить</a>\n <a class='save_filter' onclick=\"saveFilter()\" >Сохранить</a>\n </div>\n </div>\n"; }