public function lunrGenerator(Twig_Environment $env, $posts) { $data = array('entries' => array()); foreach ($posts as $post) { $meta = $post->meta(); if (isset($meta['exclude_from_search'])) { continue; } $blocks = $post->blocks(); if (isset($blocks['content'])) { $content = $this->compactFilter(strip_tags($blocks['content'])); } else { $content = ''; } if (isset($meta['description'])) { $description = $meta['description']; } else { $description = twig_truncate_filter($env, $content, 280); } $data['entries'][] = array('title' => $this->compactFilter(strip_tags($post->title())), 'url' => $post->url(), 'date' => date('Y-m-d H:i:s O', $post->date()), 'body' => htmlentities($content, ENT_COMPAT, "UTF-8", $double_encode = false), 'description' => htmlentities($description, ENT_COMPAT, "UTF-8", $double_encode = false)); } $result = json_encode($data, JSON_PRETTY_PRINT, 5); if (false === $result) { $lastError = json_last_error(); switch ($lastError) { case JSON_ERROR_NONE: return 'No error has occurred'; case JSON_ERROR_DEPTH: return 'The maximum stack depth has been exceeded '; case JSON_ERROR_STATE_MISMATCH: return 'Invalid or malformed JSON'; case JSON_ERROR_CTRL_CHAR: return 'Control character error, possibly incorrectly encoded'; case JSON_ERROR_SYNTAX: return 'Syntax error'; case JSON_ERROR_UTF8: return 'Malformed UTF-8 characters, possibly incorrectly encoded'; case JSON_ERROR_RECURSION: return 'One or more recursive references in the value to be encoded'; case JSON_ERROR_INF_OR_NAN: return 'One or more NAN or INF values in the value to be encoded'; case JSON_ERROR_UNSUPPORTED_TYPE: return 'A value of a type that cannot be encoded was given'; default: return "Error #:" . $lastError; } } return $result; }
public function block_title($context, array $blocks = array()) { // line 15 echo " "; if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) { // line 16 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true); echo "\n "; } else { // line 18 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true); echo "\n "; } }
public function block_title($context, array $blocks = array()) { $__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed = $this->env->getExtension("native_profiler"); $__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed->enter($__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title")); // line 15 echo " "; if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) { // line 16 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true); echo "\n "; } else { // line 18 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true); echo "\n "; } $__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed->leave($__internal_a5f5151fd52c0671d5674c1689a3f354aee7b224771fe8da5cf553afcf11ebed_prof); }
public function block_title($context, array $blocks = array()) { $__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8 = $this->env->getExtension("native_profiler"); $__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8->enter($__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title")); // line 15 echo " "; if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) { // line 16 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true); echo "\n "; } else { // line 18 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true); echo "\n "; } $__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8->leave($__internal_b37588a44e5ab0b1fcc8e294a865a4d7bb31c08552be46ce1a1a5af2c00fb0a8_prof); }
public function block_title($context, array $blocks = array()) { $__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0 = $this->env->getExtension("native_profiler"); $__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0->enter($__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title")); // line 15 echo " "; if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) { // line 16 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true); echo "\n "; } else { // line 18 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true); echo "\n "; } $__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0->leave($__internal_446a216b6deb763d53156a548209c8844022eaa6d452341e4c097bb845b33ee0_prof); }
public function block_title($context, array $blocks = array()) { $__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0 = $this->env->getExtension("native_profiler"); $__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0->enter($__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title")); // line 15 echo " "; if (!(null === $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"))) { // line 16 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_edit", array("%name%" => twig_truncate_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "toString", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), 15)), "SonataAdminBundle"), "html", null, true); echo "\n "; } else { // line 18 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("title_create", array(), "SonataAdminBundle"), "html", null, true); echo "\n "; } $__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0->leave($__internal_57d4756491c19f7538b3c1a09b66c14ba01f40c3219fe6d56cf1cb7070fbf3f0_prof); }
public function block_field($context, array $blocks = array()) { $__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9 = $this->env->getExtension("native_profiler"); $__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9->enter($__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field")); // line 4 if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) { // line 5 echo " \n "; } else { // line 7 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) { // line 8 $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array()); // line 9 echo " "; $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30; // line 10 echo " "; $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false; // line 11 echo " "; $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "..."; // line 12 echo " "; echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")); } else { // line 14 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) { // line 15 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")); } // line 17 echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"); echo "\n "; } // line 19 echo " "; } $__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9->leave($__internal_ff8d1d9eadf4a96e30d714c96fe87ba769eef963b1bb06c18166a5f2b7b60fe9_prof); }
public function block_field($context, array $blocks = array()) { $__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0 = $this->env->getExtension("native_profiler"); $__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0->enter($__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field")); // line 4 if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) { // line 5 echo " \n "; } else { // line 7 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) { // line 8 $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array()); // line 9 echo " "; $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30; // line 10 echo " "; $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false; // line 11 echo " "; $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "..."; // line 12 echo " "; echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")); } else { // line 14 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) { // line 15 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")); } // line 17 echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"); echo "\n "; } // line 19 echo " "; } $__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0->leave($__internal_29a8c1a6558cb46031c9953cf664b9d51d04917e738d3f01039696cf93dfd1b0_prof); }
public function block_field($context, array $blocks = array()) { $__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f = $this->env->getExtension("native_profiler"); $__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f->enter($__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field")); // line 4 if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) { // line 5 echo " \n "; } else { // line 7 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) { // line 8 $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array()); // line 9 echo " "; $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30; // line 10 echo " "; $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false; // line 11 echo " "; $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "..."; // line 12 echo " "; echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")); } else { // line 14 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) { // line 15 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")); } // line 17 echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"); echo "\n "; } // line 19 echo " "; } $__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f->leave($__internal_a0da2d8b14531892ccce64a3dfdc7e1daf791043cbceb3240a002f775a4bdc4f_prof); }
public function block_field($context, array $blocks = array()) { $__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336 = $this->env->getExtension("native_profiler"); $__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336->enter($__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "field")); // line 4 if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) { // line 5 echo " \n "; } else { // line 7 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) { // line 8 $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array()); // line 9 echo " "; $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30; // line 10 echo " "; $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false; // line 11 echo " "; $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "..."; // line 12 echo " "; echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")); } else { // line 14 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) { // line 15 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")); } // line 17 echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"); echo "\n "; } // line 19 echo " "; } $__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336->leave($__internal_718aad4dfae1801f3010c473adf08f3798f590c0630b82510d0bf7702325c336_prof); }
public function block_body($context, array $blocks = array()) { // line 11 echo " <div itemscope itemtype=\"http://schema.org/CreativeWork\">\n <h1 id=\"title\" class=\"uppercase\" itemprop=\"headline\">Textes annexes</h1>\n \n <div id=\"contentMiddleFrame\" itemprop=\"text\"> \n "; // line 15 if (!twig_test_empty(isset($context["pagination"]) ? $context["pagination"] : null)) { // line 16 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["pagination"]) ? $context["pagination"] : null); foreach ($context['_seq'] as $context["_key"] => $context["annexText"]) { // line 17 echo " <div itemscope itemtype=\"http://schema.org/Thing\">\n <p class=\"capital underline subtitle bold\" itemprop=\"name\">"; // line 18 echo twig_escape_filter($this->env, $this->getAttribute($context["annexText"], "title", array()), "html", null, true); echo "</p>\n <p itemprop=\"description\">"; // line 19 echo twig_truncate_filter($this->env, strip_tags($this->getAttribute($context["annexText"], "contents", array())), 370, true); echo "</p>\n <a class=\"colorUnderlineLink\" itemprop=\"url\" href=\""; // line 20 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("apa_story_annexText", array("numero" => $this->getAttribute($context["annexText"], "id", array()))), "html", null, true); echo "\">Lire la suite</a>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['annexText'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 23 echo " "; } else { // line 24 echo " Il n'existe pas encore de textes annexes.\n "; } // line 26 echo " </div>\n <div id=\"pagination\" itemprop=\"pagination\">"; // line 27 echo $this->env->getExtension('knp_pagination')->render(isset($context["pagination"]) ? $context["pagination"] : null); echo "</div>\n </div>\n"; }
public function block_field($context, array $blocks = array()) { // line 4 if (twig_test_empty(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))) { // line 5 echo " \n "; } else { // line 7 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "truncate", array(), "any", true, true)) { // line 8 $context["truncate"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "truncate", array()); // line 9 echo " "; $context["length"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "length", array()), 30) : 30; // line 10 echo " "; $context["preserve"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "preserve", array()), false) : false; // line 11 echo " "; $context["separator"] = $this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["truncate"]) ? $context["truncate"] : null, "separator", array()), "...") : "..."; // line 12 echo " "; echo twig_truncate_filter($this->env, strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), isset($context["length"]) ? $context["length"] : $this->getContext($context, "length"), isset($context["preserve"]) ? $context["preserve"] : $this->getContext($context, "preserve"), isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")); } else { // line 14 if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "strip", array(), "any", true, true)) { // line 15 $context["value"] = strip_tags(isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")); } // line 17 echo isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"); echo "\n "; } // line 19 echo " "; } }
public function block_content($context, array $blocks = array()) { // line 18 echo "\n"; // line 19 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } if ($this->getAttribute($_settings_, "showcase_enabled")) { // line 20 echo "<div class=\"hero-unit\">\n <h1>"; // line 21 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_heading"), "html", null, true); echo "</h1>\n <p>"; // line 22 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_text"), "html", null, true); echo "</p>\n <p><a class=\"btn btn-alt btn-primary btn-large\" href=\""; // line 23 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_button_url"), "html", null, true); echo "\">"; if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_button_title"), "html", null, true); echo "</a></p>\n</div>\n"; } // line 26 echo "\n"; // line 27 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($_client_) { // line 28 echo "\n"; // line 29 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["tickets"] = $this->getAttribute($_client_, "support_ticket_get_list", array(0 => array("status" => "on_hold")), "method"); // line 30 if (isset($context["tickets"])) { $_tickets_ = $context["tickets"]; } else { $_tickets_ = null; } if ($this->getAttribute($_tickets_, "total") > 0) { // line 31 echo "<div class=\"row\">\n<article class=\"span12 data-block\">\n<div class=\"data-container\">\n<header>\n <h2>"; // line 35 echo gettext("Tickets waiting your reply"); echo "</h2>\n</header>\n<section id=\"slimScroll1\">\n <table class=\"table table-striped table-bordered table-condensed table-hover\">\n <thead>\n <tr>\n <th>"; // line 41 echo gettext("Id"); echo "</th>\n <th>"; // line 42 echo gettext("Subject"); echo "</th>\n <th>"; // line 43 echo gettext("Help desk"); echo "</th>\n <th>"; // line 44 echo gettext("Status"); echo "</th>\n <th>"; // line 45 echo gettext("Submitted"); echo "</th>\n <th>"; // line 46 echo gettext("Actions"); echo "</th>\n </tr>\n </thead>\n <tbody>\n "; // line 50 if (isset($context["tickets"])) { $_tickets_ = $context["tickets"]; } else { $_tickets_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_tickets_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["ticket"]) { // line 51 echo "\n <tr class=\""; // line 52 if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true); echo "\">\n <td>"; // line 53 if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true); echo "</td>\n <td><a href=\""; // line 54 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support/ticket"); echo "/"; if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true); echo "\">"; if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "subject"), "html", null, true); echo "</a></td>\n <td>"; // line 55 if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_ticket_, "helpdesk"), "name"), "html", null, true); echo "</td>\n <td><span class=\"label\">"; // line 56 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo $_mf_->getstatus_name($this->getAttribute($_ticket_, "status")); echo "</span></td>\n <td>"; // line 57 if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute($_ticket_, "created_at")), "html", null, true); echo "</td>\n <td><a href=\""; // line 58 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support/ticket"); echo "/"; if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true); echo "\" class=\"btn btn-small btn-inverse\">"; echo gettext("Reply"); echo "</a></td>\n </tr>\n\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 62 echo "\n <tr>\n <td colspan=\"5\">"; // line 64 echo gettext("The list is empty"); echo "</td>\n </tr>\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['ticket'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 68 echo "\n </tbody>\n </table>\n</section>\n</div>\n</article>\n</div>\n"; } // line 76 echo "\n<div class=\"row\">\n"; // line 78 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["profile"] = $this->getAttribute($_client_, "client_get"); // line 79 echo "<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 82 echo gettext("Profile"); echo "</h2>\n <ul class=\"data-header-actions\">\n <li>\n <a class=\"btn btn-alt btn-inverse\" href=\""; // line 85 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("client/me"); echo "\">"; echo gettext("Update"); echo "</a>\n </li>\n </ul>\n </header>\n <section>\n <dl class=\"dl-horizontal\">\n <dt>"; // line 91 echo gettext("ID"); echo "</dt>\n <dd>#"; // line 92 if (isset($context["profile"])) { $_profile_ = $context["profile"]; } else { $_profile_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_profile_, "id"), "html", null, true); echo "</dd>\n <dt>"; // line 93 echo gettext("Email"); echo "</dt>\n <dd>"; // line 94 if (isset($context["profile"])) { $_profile_ = $context["profile"]; } else { $_profile_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_profile_, "email"), "html", null, true); echo "</dd>\n <dt>"; // line 95 echo gettext("Balance"); echo "</dt>\n <dd>"; // line 96 if (isset($context["profile"])) { $_profile_ = $context["profile"]; } else { $_profile_ = null; } echo twig_money($this->env, $this->getAttribute($_profile_, "balance"), $this->getAttribute($_profile_, "currency")); echo "</dd>\n </dl>\n </section>\n </div>\n</article>\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 105 echo gettext("Invoices"); echo "</h2>\n <ul class=\"data-header-actions\">\n <li>\n <a class=\"btn btn-alt btn-inverse\" href=\""; // line 108 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice"); echo "\">"; echo gettext("All Invoices"); echo "</a>\n </li>\n </ul>\n </header>\n <section>\n <dl class=\"dl-horizontal\">\n <dt>"; // line 114 echo gettext("Total"); echo "</dt>\n <dd>"; // line 115 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "invoice_get_list", array(), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 116 echo gettext("Paid"); echo "</dt>\n <dd>"; // line 117 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "invoice_get_list", array(0 => array("status" => "paid")), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 118 echo gettext("Unpaid"); echo "</dt>\n <dd>"; // line 119 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "invoice_get_list", array(0 => array("status" => "unpaid")), "method"), "total"), "html", null, true); echo "</dd>\n </dl>\n </section>\n </div>\n</article>\n</div>\n\n<div class=\"row\">\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 131 echo gettext("Orders"); echo "</h2>\n <ul class=\"data-header-actions\">\n <li>\n <a class=\"btn btn-alt btn-info order-button\" href=\""; // line 134 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order"); echo "\">"; echo gettext("New order"); echo "</a>\n <a class=\"btn btn-alt btn-inverse\" href=\""; // line 135 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order/service"); echo "\">"; echo gettext("All orders"); echo "</a>\n </li>\n </ul>\n </header>\n <section>\n <dl class=\"dl-horizontal\">\n <dt>"; // line 141 echo gettext("Total"); echo "</dt>\n <dd>"; // line 142 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("hide_addons" => 1)), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 143 echo gettext("Active"); echo "</dt>\n <dd>"; // line 144 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("hide_addons" => 1, "status" => "active")), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 145 echo gettext("Expiring"); echo "</dt>\n <dd>"; // line 146 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("expiring" => 1)), "method"), "total"), "html", null, true); echo "</dd>\n </dl>\n </section>\n </div>\n</article>\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 155 echo gettext("Tickets"); echo "</h2>\n <ul class=\"data-header-actions\">\n <li>\n <a class=\"btn btn-alt btn-info\" href=\""; // line 158 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support", array("ticket" => 1)); echo "\">"; echo gettext("New ticket"); echo "</a>\n <a class=\"btn btn-alt btn-inverse\" href=\""; // line 159 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support"); echo "\">"; echo gettext("All tickets"); echo "</a>\n </li>\n </ul>\n </header>\n <section>\n <dl class=\"dl-horizontal\">\n <dt>"; // line 165 echo gettext("Total"); echo "</dt>\n <dd>"; // line 166 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "support_ticket_get_list", array(), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 167 echo gettext("Open"); echo "</dt>\n <dd>"; // line 168 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "support_ticket_get_list", array(0 => array("status" => "open")), "method"), "total"), "html", null, true); echo "</dd>\n <dt>"; // line 169 echo gettext("On Hold"); echo "</dt>\n <dd>"; // line 170 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "support_ticket_get_list", array(0 => array("status" => "on_hold")), "method"), "total"), "html", null, true); echo "</dd>\n </dl>\n </section>\n </div>\n</article>\n</div>\n\n<div class=\"row\">\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 182 echo gettext("Recent orders"); echo "</h2>\n </header>\n <section>\n <table class=\"table table-striped table-bordered table-condensed table-hover\">\n <tbody>\n "; // line 187 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("per_page" => 5, "page" => $this->getAttribute($_request_, "page"), "hide_addons" => 1)), "method"), "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["order"]) { // line 188 echo " <tr class=\""; if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true); echo "\">\n <td><a href=\""; // line 189 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order/service/manage"); echo "/"; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_order_, "id"), "html", null, true); echo "\">"; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_order_, "title"), 30), "html", null, true); echo "</a></td>\n <td><span class=\"label "; // line 190 if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } if ($this->getAttribute($_order_, "status") == "active") { echo "label-success"; } elseif ($this->getAttribute($_order_, "status") == "pending_setup") { echo "label-warning"; } echo "\">"; if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo $_mf_->getstatus_name($this->getAttribute($_order_, "status")); echo "</span></td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 193 echo " <tr>\n <td colspan=\"3\">"; // line 194 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['order'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 197 echo " </tbody>\n </table>\n </section>\n </div>\n</article>\n\n<article class=\"span6 data-block decent\">\n <div class=\"data-container\">\n <header>\n <h2>"; // line 206 echo gettext("Recent emails"); echo "</h2>\n </header>\n <section>\n <table class=\"table table-striped table-bordered table-condensed table-hover\">\n <tbody>\n "; // line 211 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_client_, "email_get_list", array(0 => array("per_page" => 5)), "method"), "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["email"]) { // line 212 echo " <tr class=\""; if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true); echo "\">\n <td><a href=\""; // line 213 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("email"); echo "/"; if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_email_, "id"), "html", null, true); echo "\">"; if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_email_, "subject"), 30), "html", null, true); echo "</a></td>\n <td title=\""; // line 214 if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute($_email_, "created_at")), "html", null, true); echo "\">"; if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, twig_timeago_filter($this->getAttribute($_email_, "created_at")), "html", null, true); echo " "; echo gettext("ago"); echo "</td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 217 echo " <tr>\n <td colspan=\"2\">"; // line 218 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['email'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 221 echo " </tbody>\n </table>\n </section>\n </div>\n</article>\n\n</div>\n\n"; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <title>"; // line 5 $this->displayBlock('title', $context, $blocks); echo "</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <meta name=\"description\" content=\"Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.\">\n <meta name=\"author\" content=\"Oueslati Rami\">\n\n <!-- The styles -->\n <link rel=\"stylesheet\" href=\""; // line 11 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/bootstrap.css"), "html", null, true); echo "\" type=\"text/css\" />\n <link rel=\"stylesheet\" href=\""; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/charisma-app.css"), "html", null, true); echo "\" type=\"text/css\" />\n <link rel=\"stylesheet\" href=\""; // line 13 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/bower_components/chosen/chosen.min.css"), "html", null, true); echo "\" type=\"text/css\" />\n <link rel=\"stylesheet\" href=\""; // line 14 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/bower_components/responsive-tables/responsive-tables.css"), "html", null, true); echo "\" type=\"text/css\" />\n <link rel=\"stylesheet\" href=\""; // line 15 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/elfinder.theme.css"), "html", null, true); echo "\" type=\"text/css\" />\n <link rel=\"stylesheet\" href=\""; // line 16 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/jquery.iphone.toggle.css"), "html", null, true); echo "\" type=\"text/css\" />\n <link rel=\"stylesheet\" href=\""; // line 17 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/animate.min.css"), "html", null, true); echo "\" type=\"text/css\" />\n <link rel=\"stylesheet\" href=\""; // line 18 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/datepicker.css"), "html", null, true); echo "\" type=\"text/css\" />\n <link rel=\"stylesheet\" href=\""; // line 19 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/css/flags.css"), "html", null, true); echo "\" type=\"text/css\" />\n\n <!-- The fav icon -->\n <link rel=\"shortcut icon\" href=\""; // line 22 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/img/img/favicon.ico"), "html", null, true); echo "\">\n </head>\n\n <body>\n <!-- topbar starts -->\n <div class=\"navbar navbar-default\" role=\"navigation\">\n <div class=\"navbar-inner\">\n <button type=\"button\" class=\"navbar-toggle pull-left animated flip\">\n <span class=\"sr-only\">Toggle navigation</span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n\n <!--<a class=\"navbar-brand\" href=\"index.html\"> <img alt=\"Charisma Logo\" src=\""; // line 36 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/img/logoAkka.png"), "html", null, true); echo "\" class=\"hidden-xs\"/></a>-->\n\n <div class=\"pull-right\">\n <img src=\""; // line 39 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/img/blank.gif"), "html", null, true); echo "\" class=\"flag flag-fr\" alt=\"Fr\" />\n <img src=\""; // line 40 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/img/blank.gif"), "html", null, true); echo "\" class=\"flag flag-gb\" alt=\"En\" />\n </div>\n\n <!-- user dropdown starts -->\n <div class=\"btn-group pull-right\">\n <button class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\">\n <i class=\"glyphicon glyphicon-user\"></i><span class=\"hidden-sm hidden-xs\"> admin</span>\n <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\">Mon profile</a></li>\n <li class=\"divider\"></li>\n <li><a href=\""; // line 52 echo $this->env->getExtension('routing')->getPath("utilisateur_deconnexion"); echo "\">Déconnexion</a></li>\n </ul>\n </div>\n <!-- user dropdown ends -->\n\n <ul class=\"collapse navbar-collapse nav navbar-nav top-menu\">\n <li><a href=\"#\"><i class=\"glyphicon glyphicon-globe\"></i> Bonjour "; // line 58 if ($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "user", array(), "any", false, true), "firstname", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "user", array(), "any", false, true), "lastname", array(), "any", true, true)) { echo " "; echo twig_escape_filter($this->env, twig_truncate_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "firstname", array())), 20, true, "..."), "html", null, true); echo " - "; echo twig_escape_filter($this->env, twig_truncate_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user", array()), "lastname", array())), 20, true, "..."), "html", null, true); echo " "; } echo "</a></li>\n <li class=\"dropdown\">\n <a href=\"#\" data-toggle=\"dropdown\"><i class=\"glyphicon glyphicon-star\"></i> Dropdown <span class=\"caret\"></span></a>\n <ul class=\"dropdown-menu\" role=\"menu\">\n <li><a href=\"#\">Action</a></li>\n <li><a href=\"#\">Another action</a></li>\n <li><a href=\"#\">Something else here</a></li>\n <li class=\"divider\"></li>\n <li><a href=\"#\">Separated link</a></li>\n <li class=\"divider\"></li>\n <li><a href=\"#\">One more separated link</a></li>\n </ul>\n </li>\n <li>\n <form class=\"navbar-search pull-left\">\n <input placeholder=\"Search\" class=\"search-query form-control col-md-10\" name=\"query\" type=\"text\">\n </form>\n </li>\n </ul>\n\n </div>\n </div>\n <!-- topbar ends -->\n <div class=\"ch-container\">\n <div class=\"row\">\n\n <!-- left menu starts -->\n <div class=\"col-sm-2 col-lg-2\">\n <div class=\"sidebar-nav\">\n <div class=\"nav-canvas\">\n <div class=\"nav-sm nav nav-stacked\">\n\n </div>\n <ul class=\"nav nav-pills nav-stacked main-menu\">\n <li class=\"nav-header\">Main</li>\n <li><a class=\"ajax-link\" href=\"index.html\"><i class=\"glyphicon glyphicon-signal\"></i><span> Tableau de bord</span></a>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 96 echo $this->env->getExtension('routing')->getPath("ro_utilisateur_homepage"); echo "\"><i class=\"glyphicon glyphicon-user\"></i><span> Utilisateurs</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 98 echo $this->env->getExtension('routing')->getPath("ro_utilisateur_add"); echo "\">Ajouter un utilisateur</a></li>\n <li><a href=\""; // line 99 echo $this->env->getExtension('routing')->getPath("ro_utilisateur_homepage"); echo "\">Listing utilisateur</a></li>\n </ul>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 103 echo $this->env->getExtension('routing')->getPath("ro_agence_homepage"); echo "\"><i class=\"glyphicon glyphicon-home\"></i><span> Agence</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 105 echo $this->env->getExtension('routing')->getPath("ro_agence_add"); echo "\">Ajouter une agence</a></li>\n <li><a href=\""; // line 106 echo $this->env->getExtension('routing')->getPath("ro_agence_homepage"); echo "\">Listing agence</a></li>\n </ul>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 110 echo $this->env->getExtension('routing')->getPath("ro_vehicule_homepage"); echo "\"><i class=\"glyphicon glyphicon-road\"></i><span> Véhicule</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 112 echo $this->env->getExtension('routing')->getPath("ro_vehicule_add"); echo "\">Ajouter un véhicule</a></li>\n <li><a href=\""; // line 113 echo $this->env->getExtension('routing')->getPath("ro_vehicule_homepage"); echo "\">Listing véhicule</a></li>\n </ul>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 117 echo $this->env->getExtension('routing')->getPath("ro_equipement_homepage"); echo "\"><i class=\"glyphicon glyphicon-th\"></i><span> Equipement</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 119 echo $this->env->getExtension('routing')->getPath("ro_equipement_add"); echo "\">Ajouter un équipement</a></li>\n <li><a href=\""; // line 120 echo $this->env->getExtension('routing')->getPath("ro_equipement_homepage"); echo "\">Listing équipement</a></li>\n </ul>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 124 echo $this->env->getExtension('routing')->getPath("ro_categorie_homepage"); echo "\"><i class=\"glyphicon glyphicon-th-list\"></i><span> Catégorie</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 126 echo $this->env->getExtension('routing')->getPath("ro_categorie_add"); echo "\">Ajouter une catégorie</a></li>\n <li><a href=\""; // line 127 echo $this->env->getExtension('routing')->getPath("ro_categorie_homepage"); echo "\">Listing catégorie</a></li>\n </ul>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 131 echo $this->env->getExtension('routing')->getPath("ro_marque_homepage"); echo "\"><i class=\"glyphicon glyphicon-book\"></i><span> Marque</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 133 echo $this->env->getExtension('routing')->getPath("ro_marque_add"); echo "\">Ajouter une marque</a></li>\n <li><a href=\""; // line 134 echo $this->env->getExtension('routing')->getPath("ro_marque_homepage"); echo "\">Listing marque</a></li>\n </ul>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 138 echo $this->env->getExtension('routing')->getPath("ro_modele_homepage"); echo "\"><i class=\"glyphicon glyphicon-asterisk\"></i><span> Modéle</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 140 echo $this->env->getExtension('routing')->getPath("ro_modele_add"); echo "\">Ajouter un modéle</a></li>\n <li><a href=\""; // line 141 echo $this->env->getExtension('routing')->getPath("ro_modele_homepage"); echo "\">Listing modéle</a></li>\n </ul>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 145 echo $this->env->getExtension('routing')->getPath("ro_reservation_homepage"); echo "\"><i class=\"glyphicon glyphicon-check\"></i><span> Réservation</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 147 echo $this->env->getExtension('routing')->getPath("ro_reservation_add"); echo "\">Ajouter une réservation</a></li>\n <li><a href=\""; // line 148 echo $this->env->getExtension('routing')->getPath("ro_reservation_homepage"); echo "\">Listing Réservation</a></li>\n </ul>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 152 echo $this->env->getExtension('routing')->getPath("ro_contrat_homepage"); echo "\"><i class=\"glyphicon glyphicon-briefcase\"></i><span> Contrat</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 154 echo $this->env->getExtension('routing')->getPath("ro_contrat_add"); echo "\">Ajouter un contrat</a></li>\n <li><a href=\""; // line 155 echo $this->env->getExtension('routing')->getPath("ro_contrat_homepage"); echo "\">Listing contrat</a></li>\n </ul>\n </li>\n <li class=\"accordion\">\n <a href=\""; // line 159 echo $this->env->getExtension('routing')->getPath("ro_entreprise_homepage"); echo "\"><i class=\"glyphicon glyphicon-flag\"></i><span> Entreprise</span></a>\n <ul class=\"nav nav-pills nav-stacked\">\n <li><a href=\""; // line 161 echo $this->env->getExtension('routing')->getPath("ro_entreprise_add"); echo "\">Ajouter une entreprise</a></li>\n <li><a href=\""; // line 162 echo $this->env->getExtension('routing')->getPath("ro_entreprise_homepage"); echo "\">Listing entreprise</a></li>\n </ul>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <!--/span-->\n <!-- left menu ends -->\n\n <noscript>\n <div class=\"alert alert-block col-md-12\">\n <h4 class=\"alert-heading\">Attention!</h4>\n\n <p>Vous devez avoir <a href=\"http://en.wikipedia.org/wiki/JavaScript\" target=\"_blank\">JavaScript</a> activé sur votre navigateur.</p>\n </div>\n </noscript>\n\n <div id=\"content\" class=\"col-lg-10 col-sm-10\">\n "; // line 181 if (array_key_exists("aff_dashboard", $context) && (isset($context["aff_dashboard"]) ? $context["aff_dashboard"] : $this->getContext($context, "aff_dashboard")) == 1) { // line 182 echo " "; echo twig_include($this->env, $context, "::blocks_dashboard.html.twig"); echo "\n "; } // line 184 echo " <div class=\"row\">\n <div class=\"box col-md-12\">\n <div class=\"box-inner\">\n <div class=\"box-header well\">\n <h2><i class=\"glyphicon glyphicon-info-sign\"></i> "; // line 188 $this->displayBlock("title", $context, $blocks); echo " </h2>\n\n\n <!-- content starts -->\n "; // line 192 $this->displayBlock('buttonAdd', $context, $blocks); // line 194 echo "\n <div class=\"box-icon\">\n <a href=\"#\" class=\"btn btn-setting btn-round btn-default\"><i\n class=\"glyphicon glyphicon-cog\"></i></a>\n <a href=\"#\" class=\"btn btn-minimize btn-round btn-default\"><i\n class=\"glyphicon glyphicon-chevron-up\"></i></a>\n <a href=\"#\" class=\"btn btn-close btn-round btn-default\"><i\n class=\"glyphicon glyphicon-remove\"></i></a>\n </div>\n </div>\n <div class=\"box-content row\">\n <div class=\"col-lg-12 col-md-12\">\n "; // line 206 $this->displayBlock('body', $context, $blocks); // line 208 echo " </div>\n </div> \n\n <footer class=\"row\">\n <p class=\"col-md-9 col-sm-9 col-xs-12 copyright\">© Oueslati Rami</p>\n <p class=\"col-md-3 col-sm-3 col-xs-12 powered-by\">Powered by: Oueslati Rami</p>\n </footer>\n\n <!-- jQuery -->\n <script src=\""; // line 217 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/bower_components/jquery/jquery.min.js"), "html", null, true); echo "\"></script>\n\n <!-- javascript -->\n <script src=\""; // line 220 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/js/bootstrap.js"), "html", null, true); echo "\"></script>\n <!-- library for cookie management -->\n <script src=\""; // line 222 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/js/jquery.cookie.js"), "html", null, true); echo "\">></script>\n <!-- select or dropdown enhancer -->\n <script src=\""; // line 224 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/bower_components/chosen/chosen.jquery.min.js"), "html", null, true); echo "\"></script>\n <!-- library for making tables responsive -->\n <script src=\""; // line 226 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/bower_components/responsive-tables/responsive-tables.js"), "html", null, true); echo "\"></script>\n <!-- for iOS style toggle switch -->\n <script src=\""; // line 228 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/js/jquery.iphone.toggle.js"), "html", null, true); echo "\"></script>\n <!-- autogrowing textarea plugin -->\n <script src=\""; // line 230 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/js/jquery.autogrow-textarea.js"), "html", null, true); echo "\"></script>\n <!-- application script for Charisma demo -->\n <script src=\""; // line 232 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/js/charisma.js"), "html", null, true); echo "\"></script>\n\n <!-- application script for bootstrap datepicker -->\n <script src=\""; // line 235 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/js_datepicker/bootstrap-datepicker.js"), "html", null, true); echo "\"></script>\n <script src=\""; // line 236 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/js_datepicker/bootstrap-datepicker.en.js"), "html", null, true); echo "\" ></script>\n <script src=\""; // line 237 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("backoffice/js_datepicker/conf_datepicker.js"), "html", null, true); echo "\"></script>\n\n <script src=\""; // line 239 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/fosjsrouting/js/router.js"), "html", null, true); echo "\"></script>\n <script src=\""; // line 240 echo $this->env->getExtension('routing')->getPath("fos_js_routing_js", array("callback" => "fos.Router.setData")); echo "\"></script>\n\n "; // line 243 echo " "; $this->displayBlock('javascript', $context, $blocks); // line 244 echo " </div><!--/.fluid-container-->\n </body>\n </html>"; }
public function block_content($context, array $blocks = array()) { // line 113 echo "\n\n<div class=\"widget simpleTabs\">\n <ul class=\"tabs\">\n <li><a href=\"#tab-index\">"; // line 117 echo gettext("Invoices"); echo "</a></li>\n <li><a href=\"#tab-new\">"; // line 118 echo gettext("New Invoice"); echo "</a></li>\n </ul>\n\n <div class=\"tabs_container\">\n <div class=\"fix\"></div>\n <div class=\"tab_content nopadding\" id=\"tab-index\">\n\n "; // line 125 echo $context["mf"]->gettable_search(); echo "\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <td style=\"width: 2%\"><input type=\"checkbox\" class=\"batch-delete-master-checkbox\"/></td>\n <td colspan=\"3\">"; // line 130 echo gettext("Invoice"); echo "</td>\n <td>"; // line 131 echo gettext("Amount"); echo "</td>\n <td>"; // line 132 echo gettext("Issued at"); echo "</td>\n <td>"; // line 133 echo gettext("Paid at"); echo "</td>\n <td>"; // line 134 echo gettext("Status"); echo "</td>\n <td width=\"13%\"> </td>\n </tr>\n </thead>\n <tbody>\n "; // line 139 $context["invoices"] = $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "invoice_get_list", array(0 => twig_array_merge(array("per_page" => 30, "page" => $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "page")), isset($context["request"]) ? $context["request"] : null)), "method"); // line 140 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["invoices"]) ? $context["invoices"] : null, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["invoice"]) { // line 141 echo " <tr>\n <td><input type=\"checkbox\" class=\"batch-delete-checkbox\" data-item-id=\""; // line 142 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id"), "html", null, true); echo "\"/></td>\n <td style=\"width:5%;\"><img src=\""; // line 143 echo twig_escape_filter($this->env, twig_gravatar_filter($this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "buyer"), "email")), "html", null, true); echo "?size=20\" alt=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "buyer"), "email"), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "buyer"), "first_name"), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "buyer"), "last_name"), "html", null, true); echo "\"/></td>\n <td><a href=\""; // line 144 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client"); echo "/manage/"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "client"), "id"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "client"), "first_name"), 1, null, "."), "html", null, true); echo " "; echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "client"), "last_name"), 20), "html", null, true); echo "</a></td>\n <td style=\"width:15%;\" title=\""; // line 145 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "serie_nr"), "html", null, true); echo "</td>\n <td>"; // line 146 echo $context["mf"]->getcurrency_format($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "total"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency")); echo "</td>\n <td>"; // line 147 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "created_at"), "Y-m-d"), "html", null, true); echo "</td>\n <td>"; // line 148 if ($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "paid_at")) { echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "paid_at"), "Y-m-d"), "html", null, true); } else { echo "-"; } echo "</td>\n <td>"; // line 149 echo $context["mf"]->getstatus_name($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "status")); echo "</td>\n <td class=\"actions\">\n <a class=\"bb-button btn14\" href=\""; // line 151 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("/invoice/manage"); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id"), "html", null, true); echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a>\n <a class=\"btn14 bb-rm-tr api-link\" href=\""; // line 152 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/invoice/delete", array("id" => $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id"))); echo "\" data-api-confirm=\"Are you sure?\" data-api-reload=\"1\"><img src=\"images/icons/dark/trash.png\" alt=\"\"></a>\n </td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 156 echo " <tr>\n <td colspan=\"8\">"; // line 157 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['invoice'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 160 echo " </tbody>\n </table>\n\n "; // line 163 $this->env->loadTemplate("partial_batch_delete.phtml")->display(array_merge($context, array("action" => "admin/invoice/batch_delete"))); // line 164 echo " "; $this->env->loadTemplate("partial_pagination.phtml")->display(array_merge($context, array("list" => isset($context["invoices"]) ? $context["invoices"] : null, "url" => "invoice"))); // line 165 echo " </div>\n\n <div class=\"tab_content nopadding\" id=\"tab-new\">\n <form method=\"post\" action=\""; // line 168 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/invoice/prepare"); echo "\" class=\"mainForm api-form\" data-api-jsonp=\"onAfterInvoicePrepared\">\n <fieldset>\n <div class=\"rowElem noborder\">\n <label>"; // line 171 echo gettext("Client"); echo "</label>\n <div class=\"formRight\">\n <input type=\"text\" class=\"client_selector\" placeholder=\""; // line 173 echo gettext("Start typing clients name, email or ID"); echo "\"/>\n <input type=\"hidden\" name=\"client_id\" value=\""; // line 174 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "client_id"), "html", null, true); echo "\" class=\"client_id\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <input type=\"submit\" value=\""; // line 179 echo gettext("Prepare"); echo "\" class=\"greyishBtn submitForm\" />\n </fieldset>\n </form>\n </div>\n </div>\n</div>\n\n"; }
public function block_entityList($context, array $blocks = array()) { // line 39 echo " <div class=\"clearfix\"></div>\n <ul class=\"attachment-row-list\">\n "; // line 41 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getRow", array(), "method")); foreach ($context['_seq'] as $context["key"] => $context["item"]) { // line 42 echo " "; $context["FileType"] = twig_slice($this->env, $this->getAttribute($this->getAttribute($context["item"], "mime", array()), "data", array()), 0, 5); // line 43 echo " "; if ((isset($context["FileType"]) ? $context["FileType"] : $this->getContext($context, "FileType")) == "image") { // line 44 echo " "; if ($this->getAttribute($this->getAttribute($context["item"], "resized", array()), "data", array())) { // line 45 echo " "; $context["Path"] = $this->env->getExtension('assets')->getAssetUrl("web/attachment/LI_" . $this->getAttribute($this->getAttribute($context["item"], "name", array()), "data", array())); // line 46 echo " "; } else { // line 47 echo " "; $context["Path"] = $this->env->getExtension('assets')->getAssetUrl("web/attachment/" . $this->getAttribute($this->getAttribute($context["item"], "name", array()), "data", array())); // line 48 echo " "; } // line 49 echo " "; } else { // line 50 echo " "; $context["Path"] = $this->env->getExtension('assets')->getAssetUrl("web/image/attachment-upload-no-photo.png"); // line 51 echo " "; } // line 52 echo " <li class=\"selectable-rows "; echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($this->getAttribute($context["item"], "title", array()), "class", array()), " "), "html", null, true); echo "\" data-value=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "id", array()), "html", null, true); echo "\">\n <span><img src=\""; // line 53 echo twig_escape_filter($this->env, isset($context["Path"]) ? $context["Path"] : $this->getContext($context, "Path"), "html", null, true); echo "\" class=\"img-responsive\"/></span>\n <ul class=\"attachment-item-info\">\n <li><h3>"; // line 55 echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], "title", array()), "data", array()), 15), "html", null, true); echo "</h3></li>\n <li>"; // line 56 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], "mime", array()), "data", array()), "html", null, true); echo "</li>\n <li>"; // line 57 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], "created", array()), "data", array()), "html", null, true); echo "</li>\n </ul>\n <ul class=\"attachment-item-operation\">\n "; // line 60 if ($this->env->getExtension('access_checker_helper')->isGranted($this->getAttribute(isset($context["routeCollection"]) ? $context["routeCollection"] : $this->getContext($context, "routeCollection"), "get", array(0 => "admin_update_attachment"), "method"), isset($context["currentAccount"]) ? $context["currentAccount"] : $this->getContext($context, "currentAccount"))) { echo "<li> <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("admin_update_attachment", array("id" => $this->getAttribute($context["item"], "id", array()))), "html", null, true); echo "\" class=\"attachment-operation-edit\" title=\""; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("grid.operation.edit"), "html", null, true); echo "\"></a></li>"; } // line 61 echo " </ul>\n \n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 65 echo " </ul>\n "; }
public function block_entityList($context, array $blocks = array()) { // line 64 echo " <table class=\"table table-striped table-hover\">\n <tr>\n <th>"; // line 66 if ($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "config", array(), "any", false, true), "selectable", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : $this->getContext($context, "config"), "config", array()), "selectable", array()) && $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getRow", array(), "method")) { echo "<input type=\"checkbox\" class=\"select-all\" />"; } else { echo "#"; } echo "</th>\n "; // line 67 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getHeader", array(), "method")); $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["item"]) { // line 68 echo " "; $context["headers"] = twig_array_merge(isset($context["headers"]) ? $context["headers"] : $this->getContext($context, "headers"), array($this->getAttribute($context["loop"], "index0", array()) => $context["key"])); echo " \n <th data-key=\""; // line 69 echo twig_escape_filter($this->env, $context["key"], "html", null, true); echo "\" class=\""; if ($this->getAttribute($context["item"], "class", array(), "any", true, true)) { echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["item"], "class", array()), " "), "html", null, true); } if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getQueryAttribute", array(0 => "order"), "method") && $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getQueryAttribute", array(0 => "order"), "method"), 0, array(), "array") == $context["key"]) { echo " current-order-list-"; echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getQueryAttribute", array(0 => "order"), "method"), 1, array(), "array")), "html", null, true); } echo "\">"; if ($context["key"] == "operation") { echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()), "html", null, true); } else { echo "<a href=\""; echo $this->env->getExtension('routing')->getPath($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getRoute", array(), "method")); echo "?order="; echo twig_escape_filter($this->env, $context["key"], "html", null, true); echo "_"; if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getQueryAttribute", array(0 => "order"), "method") && $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getQueryAttribute", array(0 => "order"), "method"), 0, array(), "array") == $context["key"] && $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getQueryAttribute", array(0 => "order"), "method"), 1, array(), "array") == "ASC") { echo "DESC"; } else { echo "ASC"; } echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()), "html", null, true); echo "</a>"; } echo "</th>\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['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 71 echo " </tr>\n "; // line 72 if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getRow", array(), "method")) { // line 73 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getRow", array(), "method")); $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["item"]) { // line 74 echo " <tr "; if ($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "config", array(), "any", false, true), "selectable", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : $this->getContext($context, "config"), "config", array()), "selectable", array())) { echo "class=\"selectable-rows\""; } echo " data-value=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "id", array()), "html", null, true); echo "\" >\n <td>"; // line 75 echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()) + $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getQueryAttribute", array(0 => "first"), "method"), "html", null, true); echo "</td>\n "; // line 76 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["headers"]) ? $context["headers"] : $this->getContext($context, "headers")); foreach ($context['_seq'] as $context["_key"] => $context["header"]) { // line 77 echo " "; $context["CurrentHeader"] = $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "getHeader", array(0 => $context["header"]), "method"); // line 78 echo "\n "; // line 79 if ($this->getAttribute(isset($context["CurrentHeader"]) ? $context["CurrentHeader"] : null, "class", array(), "any", true, true) && twig_in_filter("isOperation", $this->getAttribute(isset($context["CurrentHeader"]) ? $context["CurrentHeader"] : $this->getContext($context, "CurrentHeader"), "class", array()))) { // line 80 echo " <td class=\"operation-cell\">\n "; // line 81 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], $context["header"], array(), "array")); foreach ($context['_seq'] as $context["operator"] => $context["operation"]) { // line 82 echo " "; if ($this->env->getExtension('access_checker_helper')->isGranted($this->getAttribute(isset($context["routeCollection"]) ? $context["routeCollection"] : $this->getContext($context, "routeCollection"), "get", array(0 => $context["operator"]), "method"), isset($context["currentAccount"]) ? $context["currentAccount"] : $this->getContext($context, "currentAccount"))) { echo "<i class=\""; echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["operation"], "class", array()), " "), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["operation"], "title", array()), "html", null, true); echo "\" data-value=\""; echo twig_escape_filter($this->env, $context["operator"], "html", null, true); echo "\" onClick=\"window.location.href = '"; if ($this->getAttribute($context["operation"], "uri", array(), "any", true, true)) { echo twig_escape_filter($this->env, $this->getAttribute($context["operation"], "uri", array()), "html", null, true); } else { echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath($context["operator"], array("field" => $this->getAttribute($context["operation"], "field", array()), "value" => $this->getAttribute($context["operation"], "value", array()))), "html", null, true); } echo "'\"></i>"; } // line 83 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['operator'], $context['operation'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 84 echo " </td>\n "; } else { // line 86 echo " <td "; if ($this->getAttribute($this->getAttribute($context["item"], $context["header"], array(), "array", false, true), "class", array(), "any", true, true)) { echo "class=\""; echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($this->getAttribute($context["item"], $context["header"], array(), "array"), "class", array()), " "), "html", null, true); echo "\""; } echo ">\n <span class=\"orginal-longtext\">"; // line 87 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], $context["header"], array(), "array"), "data", array()), "html", null, true); echo "</span>\n <span class=\"eclipse-longtext\">"; // line 88 echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], $context["header"], array(), "array"), "data", array()), 10), "html", null, true); echo "</span>\n </td>\n "; } // line 91 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['header'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 92 echo " </tr>\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['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 94 echo " "; } else { // line 95 echo "\n "; } // line 97 echo "\n </table>\n "; }
public function block_block($context, array $blocks = array()) { // line 14 echo " <div class=\"sonata-news-block-recent-comment panel panel-default\">\n "; // line 15 if ($this->getAttribute(isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings"), "title", array())) { // line 16 echo " <div class=\"panel-heading\">\n <h3 class=\"panel-title sonata-news-block-recent-comment\"><i class=\"fa fa-comments fa-fw\"></i> "; // line 17 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings"), "title", array()), "html", null, true); echo "</h3>\n </div>\n "; } // line 20 echo "\n <div class=\"panel-body\">\n "; // line 22 echo "<div class='alert alert-default alert-info'>\n <strong>This is the recent posts comments block.</strong>\n <div>This file can be found in <code>{$this->getTemplateName()}</code>.</div>\n</div>"; // line 23 echo "\n <div class=\"sonata-blog-post-container list-group\">\n "; // line 25 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["pager"]) ? $context["pager"] : $this->getContext($context, "pager"), "getResults", array(), "method")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["comment"]) { // line 26 echo " "; if ($this->getAttribute(isset($context["context"]) ? $context["context"] : $this->getContext($context, "context"), "getSetting", array(0 => "mode"), "method") == "admin") { // line 27 echo " <a class=\"list-group-item\" href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl("admin_sonata_news_comment_edit", array("id" => $this->getAttribute($context["comment"], "id", array()))), "html", null, true); echo "\">\n <span class=\"label label-"; // line 28 echo twig_escape_filter($this->env, $this->env->getExtension('sonata_core_status')->statusClass($context["comment"]), "html", null, true); echo "\">\n "; // line 29 if ($this->getAttribute($context["comment"], "status", array()) == twig_constant("Sonata\\NewsBundle\\Model\\CommentInterface::STATUS_INVALID")) { // line 30 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label_comment_invalid", array(), "SonataNewsBundle"), "html", null, true); echo "\n "; } elseif ($this->getAttribute($context["comment"], "status", array()) == twig_constant("Sonata\\NewsBundle\\Model\\CommentInterface::STATUS_VALID")) { // line 32 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label_comment_valid", array(), "SonataNewsBundle"), "html", null, true); echo "\n "; } elseif ($this->getAttribute($context["comment"], "status", array()) == twig_constant("Sonata\\NewsBundle\\Model\\CommentInterface::STATUS_MODERATE")) { // line 34 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label_comment_moderate", array(), "SonataNewsBundle"), "html", null, true); echo "\n "; } else { // line 36 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("label_unknown_status", array(), "SonataNewsBundle"), "html", null, true); echo "\n "; } // line 38 echo " </span> \n\n "; // line 40 echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "name", array()), "html", null, true); echo " - "; echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($context["comment"], "message", array()), 30), "html", null, true); echo "\n </a>\n "; } else { // line 43 echo " <a class=\"list-group-item\" href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getUrl("sonata_news_view", array("permalink" => $this->env->getExtension('sonata_news')->generatePermalink($this->getAttribute($context["comment"], "post", array())))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "name", array()), "html", null, true); echo " - "; echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($context["comment"], "message", array()), 30), "html", null, true); echo "\n </a>\n "; } // line 46 echo " "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 47 echo " <a href=\"#\">"; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("no_comment_found", array(), "SonataNewsBundle"), "html", null, true); echo "</a>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 49 echo " </div>\n\n "; // line 51 if ($this->getAttribute(isset($context["context"]) ? $context["context"] : $this->getContext($context, "context"), "getSetting", array(0 => "mode"), "method") == "admin") { // line 52 echo " <a href=\""; echo $this->env->getExtension('routing')->getUrl("admin_sonata_news_comment_list"); echo "\" class=\"btn btn-primary btn-block\"><i class=\"fa fa-list\"></i> "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("view_all_comments", array(), "SonataNewsBundle"), "html", null, true); echo "</a>\n "; } // line 54 echo " </div>\n </div>\n"; }
public function block_content($context, array $blocks = array()) { // line 108 echo "\n<div class=\"widget simpleTabs\">\n <ul class=\"tabs\">\n <li><a href=\"#tab-index\">"; // line 111 echo gettext("Orders"); echo "</a></li>\n <li><a href=\"#tab-new\">"; // line 112 echo gettext("New order"); echo "</a></li>\n </ul>\n\n <div class=\"tabs_container\">\n <div class=\"fix\"></div>\n <div class=\"tab_content nopadding\" id=\"tab-index\">\n "; // line 118 echo $context["mf"]->gettable_search(); echo "\n <table class=\"tableStatic wide\" style=\"table-layout: fixed\">\n <thead>\n <tr>\n <td style=\"width: 3%\"><input type=\"checkbox\" class=\"batch-delete-master-checkbox\"/></td>\n <td style=\"width: 5%\">"; // line 123 echo gettext("ID"); echo "</td>\n <td width=\"13%\">"; // line 124 echo gettext("Client"); echo "</td>\n <td width=\"45%\">"; // line 125 echo gettext("Title"); echo "</td>\n <td style=\"width: 7%\">"; // line 126 echo gettext("Amount"); echo "</td>\n <td>"; // line 127 echo gettext("Period"); echo "</td>\n <td>"; // line 128 echo gettext("Status"); echo "</td>\n <td style=\"width: 10%\"> </td>\n </tr>\n </thead>\n\n <tbody>\n "; // line 134 $context["orders"] = $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "order_get_list", array(0 => twig_array_merge(array("per_page" => 30, "page" => $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "page")), isset($context["request"]) ? $context["request"] : null)), "method"); // line 135 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["orders"]) ? $context["orders"] : null, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["order"]) { // line 136 echo " <tr>\n <td><input type=\"checkbox\" class=\"batch-delete-checkbox\" data-item-id=\""; // line 137 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["order"]) ? $context["order"] : null, "id"), "html", null, true); echo "\"/></td>\n <td>"; // line 138 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["order"]) ? $context["order"] : null, "id"), "html", null, true); echo "</td>\n <td class=\"truncate\">\n <span style=\"float: left;\">\n <a href=\""; // line 141 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["order"]) ? $context["order"] : null, "client_id"), "html", null, true); echo "\"><img src=\""; echo twig_escape_filter($this->env, twig_gravatar_filter($this->getAttribute($this->getAttribute(isset($context["order"]) ? $context["order"] : null, "client"), "email")), "html", null, true); echo "?size=20\" alt=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["order"]) ? $context["order"] : null, "client"), "email"), "html", null, true); echo "\" /></a>\n </span>\n <span style=\"margin-left: 10px;\">\n <a href=\""; // line 144 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["order"]) ? $context["order"] : null, "client_id"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["order"]) ? $context["order"] : null, "client"), "first_name"), "1", null, "."), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["order"]) ? $context["order"] : null, "client"), "last_name"), "html", null, true); echo "</a>\n </span>\n </td>\n <td class=\"truncate\">"; // line 147 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["order"]) ? $context["order"] : null, "title"), "html", null, true); echo "</td>\n <td>"; // line 148 echo $context["mf"]->getcurrency_format($this->getAttribute(isset($context["order"]) ? $context["order"] : null, "total"), $this->getAttribute(isset($context["order"]) ? $context["order"] : null, "currency")); echo "</td>\n <td>"; // line 149 echo $context["mf"]->getperiod_name($this->getAttribute(isset($context["order"]) ? $context["order"] : null, "period")); echo "</td>\n <td>"; // line 150 echo $context["mf"]->getstatus_name($this->getAttribute(isset($context["order"]) ? $context["order"] : null, "status")); echo "</td>\n <td class=\"actions\">\n <a class=\"bb-button btn14\" href=\""; // line 152 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("/order/manage"); echo "/"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["order"]) ? $context["order"] : null, "id"), "html", null, true); echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a>\n <a class=\"bb-button btn14 bb-rm-tr api-link\" data-api-confirm=\"Are you sure?\" href=\""; // line 153 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/order/delete", array("id" => $this->getAttribute(isset($context["order"]) ? $context["order"] : null, "id"))); echo "\" data-api-redirect=\""; echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order"); echo "\"><img src=\"images/icons/dark/trash.png\" alt=\"\"></a>\n </td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 157 echo " <tr>\n <td colspan=\"8\">"; // line 158 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['order'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 161 echo " </tbody>\n </table>\n "; // line 163 $this->env->loadTemplate("partial_pagination.phtml")->display(array_merge($context, array("list" => isset($context["orders"]) ? $context["orders"] : null, "url" => "order"))); // line 164 echo " "; $this->env->loadTemplate("partial_batch_delete.phtml")->display(array_merge($context, array("action" => "admin/order/batch_delete"))); // line 165 echo " </div>\n </div>\n \n <div class=\"tab_content nopadding\" id=\"tab-new\">\n <form method=\"post\" action=\""; // line 169 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order/new"); echo "\" class=\"mainForm\">\n <fieldset>\n <div class=\"rowElem noborder\">\n <label>"; // line 172 echo gettext("Client"); echo "</label>\n <div class=\"formRight\">\n "; // line 174 if (!$this->getAttribute(isset($context["request"]) ? $context["request"] : null, "client_id")) { // line 175 echo " <input type=\"text\" id=\"client_selector\" placeholder=\""; echo gettext("Start typing clients name, email or ID"); echo "\" required=\"required\"/>\n <input type=\"hidden\" name=\"client_id\" value=\""; // line 176 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "client_id"), "html", null, true); echo "\" id=\"client_id\"/>\n "; } else { // line 178 echo " "; $context["client"] = $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "client_get", array(0 => array("id" => $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "client_id"))), "method"); // line 179 echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["client"]) ? $context["client"] : null, "first_name"), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["client"]) ? $context["client"] : null, "last_name"), "html", null, true); echo "\n "; } // line 181 echo " </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 185 echo gettext("Product"); echo ":</label>\n <div class=\"formRight\">\n "; // line 187 echo $context["mf"]->getselectbox("product_id", $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "product_get_pairs"), $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "product_id"), 1); echo "\n </div>\n <div class=\"fix\"></div>\n </div>\n \n <input type=\"submit\" value=\""; // line 192 echo gettext("Continue"); echo "\" class=\"greyishBtn submitForm\" />\n "; // line 193 if ($this->getAttribute(isset($context["request"]) ? $context["request"] : null, "client_id")) { // line 194 echo " <input type=\"hidden\" name=\"client_id\" value=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "client_id"), "html", null, true); echo "\" />\n "; } // line 196 echo " </fieldset>\n </form>\n </div>\n</div>\n\n"; }
public function block_body($context, array $blocks = array()) { $__internal_4394551a21a2373ba0501d9c794990fec60f4b7df78756f231ca96a8084cdd72 = $this->env->getExtension("native_profiler"); $__internal_4394551a21a2373ba0501d9c794990fec60f4b7df78756f231ca96a8084cdd72->enter($__internal_4394551a21a2373ba0501d9c794990fec60f4b7df78756f231ca96a8084cdd72_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body")); // line 8 echo " <!-- brands market -->\n <!-- Brands -->\n <section class=\"container content-row\">\n <p> </p>\n <!-- On Sale Products -->\n <section class=\"container content-row\">\n <p> </p>\n\n <div class=\"col-md-6\"><h3>"; // line 16 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "ventes flash - Solde du moment"), "html", null, true); echo " </h3></div>\n <div class=\"col-sm-offset-4 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></div>\n <div class=\"clearfix\"></div>\n\n <!-- Products list -->\n <div class=\"row\">\n <div class=\"product-carousel\">\n "; // line 23 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["products"]) ? $context["products"] : $this->getContext($context, "products")); foreach ($context['_seq'] as $context["_key"] => $context["product"]) { // line 24 echo " <div class=\"item\">\n <div class=\"product-preview\">\n <div class=\"preview animate scale\">\n <a href=\"#\" class=\"preview-image\">\n "; // line 28 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "medias", array())); foreach ($context['_seq'] as $context["_key"] => $context["media"]) { // line 29 echo " <img class=\"img-responsive animate scale\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["media"], "AssertPath", array()), "my_thumb_front_img_naturel"), "html", null, true); echo "\" width=\"270\" height=\"328\" alt=\"\">\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 31 echo " </a>\n <ul class=\"product-controls-list right\">\n <li><span class=\"label label-sale\">"; // line 33 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "solde"), "html", null, true); echo "</span></li>\n "; // line 34 $context["percents"] = 0; // line 35 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "promotions", array())); foreach ($context['_seq'] as $context["_key"] => $context["promo"]) { // line 36 echo " "; $context["percents"] = $this->getAttribute($context["promo"], "percent", array()); // line 37 echo " <li><span class=\"label\">-"; echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["promo"], "percent", array()), 0), "html", null, true); echo "%</span></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promo'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 39 echo " </ul>\n <ul class=\"product-controls-list right hide-right\">\n <li class=\"top-out\"></li>\n <li><a href=\"#productPopup\" class=\"cart\" data-toggle=\"modal\" data-whatever=\""; // line 42 echo twig_escape_filter($this->env, $this->getAttribute($context["product"], "id", array()), "html", null, true); echo "\" data-url=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("labs_front_produits_popup", array("id" => $this->getAttribute($context["product"], "id", array()))), "html", null, true); echo "\"><span class=\"quick-views icon-basket\"></span></a></li>\n </ul>\n </div>\n <div class=\"bg-shop-write\">\n <h3 class=\"title thumbnail-desc\">\n <a href=\"#\" width=\"150\">"; // line 47 echo twig_escape_filter($this->env, twig_truncate_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["product"], "name", array())), 200, true, "..."), "html", null, true); echo "</a>\n </h3>\n\n <span class=\"price old\" style=\"display: inline-block\">\n "; // line 51 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["product"], "PriceStandard", array()), 0, ",", "."), "html", null, true); echo " FCFA\n </span> <br/>\n <span class=\"price new\" style=\"display: inline-block\">\n "; // line 54 $context["price"] = $this->getAttribute($context["product"], "PriceStandard", array()) - $this->getAttribute($context["product"], "PriceStandard", array()) * ((isset($context["percents"]) ? $context["percents"] : $this->getContext($context, "percents")) / 100); // line 55 echo " "; echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["price"]) ? $context["price"] : $this->getContext($context, "price"), 0, ",", "."), "html", null, true); echo " FCFA\n </span>\n <p> </p>\n <div class=\"thumbnail-sub\">\n <a href=\"#\">"; // line 59 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["product"], "section", array()), "name", array()), "html", null, true); echo "</a><br/>\n "; // line 60 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "marks", array())); foreach ($context['_seq'] as $context["_key"] => $context["mk"]) { // line 61 echo " <span>- <a href=\"#\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["mk"], "name", array()), "html", null, true); echo "</a></span>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mk'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 63 echo " </div>\n <p> </p>\n <div>\n "; // line 66 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "promotions", array())); foreach ($context['_seq'] as $context["_key"] => $context["promoEnd"]) { // line 67 echo " <strong> Offre valable jusqu'au :</strong> <span class=\"label label-danger\" style=\"font-weight: bold; color: #fff;\">"; echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["promoEnd"], "end", array()), "d-m-Y"), "html", null, true); echo "</span>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promoEnd'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 69 echo " </div>\n </div>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 74 echo "\n </div>\n <!-- product view ajax container -->\n <div class=\"product-view-ajax-container\" id=\"product-view-ajax-container\"></div>\n <div id=\"productPopup\" class=\"modal modal-wide fade\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n </div>\n <div class=\"modal-body\" id=\"product-view\"></div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-mega\" data-dismiss=\"modal\">Fermer</button>\n </div>\n </div><!-- /.modal-content -->\n </div><!-- /.modal-dialog -->\n </div><!-- /.modal -->\n <!-- //end product view ajax container -->\n </div>\n <!-- //end Products list -->\n </section>\n\n <section class=\"container content-row\">\n <!-- brand -->\n <p> </p>\n <div class=\"col-md-4\"><h3> E-shop Market </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></div>\n <div class=\"clearfix\"></div>\n <hr>\n <div class=\"brands carouFredSel row\">\n <div class=\"carouFredSel-controls\">\n <div class=\"carouFredSel-buttons\"><a id=\"brands-carousel-prev\" class=\"prev\" href=\"#\"></a><a id=\"brands-carousel-next\" class=\"next\" href=\"#\"></a></div>\n </div>\n <div class=\"brands-carousel\">\n <ul class=\"slides\">\n "; // line 109 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["markets"]) ? $context["markets"] : $this->getContext($context, "markets")); foreach ($context['_seq'] as $context["_key"] => $context["market"]) { // line 110 echo " <li><a href=\"#\"><img src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["market"], "AssertPath", array()), "my_thumb_out_page"), "html", null, true); echo "\" alt=\"\"></a></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['market'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 112 echo " </ul>\n </div>\n </div>\n <!-- //end Brands -->\n </section>\n <hr>\n <p> </p>\n <section class=\"container content-row\">\n <!-- brand -->\n <div class=\"col-md-6\"><h3> "; // line 121 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["accountbanner"]) ? $context["accountbanner"] : $this->getContext($context, "accountbanner"), "bigcontent", array()), "html", null, true); echo " <br/> <small>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["accountbanner"]) ? $context["accountbanner"] : $this->getContext($context, "accountbanner"), "middlecontent", array()), "html", null, true); echo "</small> </h3></div>\n <div class=\"col-sm-offset-4 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Se connecter</a></div>\n <div class=\"clearfix\"></div>\n <hr>\n <div class=>\n <ul class=\"slides\">\n <li><a href=\"#\"><img src=\""; // line 127 echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute(isset($context["accountbanner"]) ? $context["accountbanner"] : $this->getContext($context, "accountbanner"), "AssertPath", array()), "my_thumb_pub"), "html", null, true); echo "\" alt=\"\"></a></li>\n </ul>\n </div>\n <!-- //end Brands -->\n </section>\n <hr>\n <!-- Brands -->\n <section class=\"container content-row\">\n\n <p> </p>\n <div class=\"col-md-4\"><h3> TOP MARQUES </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></div>\n <div class=\"clearfix\"></div>\n <hr>\n\n <div class=\"mark carouFredSel row\">\n <div class=\"carouFredSel-controls\">\n <div class=\"carouFredSel-buttons\"><a id=\"mark-carousel-prev\" class=\"prev\" href=\"#\"></a><a id=\"mark-carousel-next\" class=\"next\" href=\"#\"></a></div>\n </div>\n <div class=\"mark-carousel\">\n <ul class=\"slides\">\n "; // line 148 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["marks"]) ? $context["marks"] : $this->getContext($context, "marks")); foreach ($context['_seq'] as $context["_key"] => $context["mark"]) { // line 149 echo " <li><a href=\"#\"><img src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["mark"], "AssertPath", array()), "my_thumb_out_page"), "html", null, true); echo "\" alt=\"\"></a></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mark'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 151 echo " </ul>\n </div>\n </div>\n\n </section>\n <hr>\n <!-- //end Brands -->\n </section>\n\n <!-- end parts one -->\n\n\n <!-- Two columns content -->\n <section class=\"container content\">\n <div class=\"row\">\n "; // line 166 echo $this->env->getExtension('actions')->renderUri($this->env->getExtension('http_kernel')->controller("LabsFrontBundle:Default:getSidebarInfo"), array()); // line 167 echo "\n <!-- Right column -->\n <section class=\"col-sm-8 col-md-9 col-lg-9 content-center\">\n <!-- Featured Products -->\n <section>\n <div class=\"col-md-4\"><h3> "; // line 172 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "Bon plan cdjidji"), "html", null, true); echo " </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Afficher Tout </a></div>\n <p> </p>\n <div class=\"clearfix\"></div>\n\n <!-- Products list -->\n <div class=\"row products-list\">\n "; // line 179 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")); foreach ($context['_seq'] as $context["_key"] => $context["cat"]) { // line 180 echo " <div class=\"product-preview owl-items\">\n <div class=\"preview animate scale bg-shop\">\n <a href=\"#\" class=\"preview-image\">\n <img class=\"img-responsive animate scale\" src=\""; // line 183 echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["cat"], "AssertPath", array()), "my_thumb_front_img_naturel"), "html", null, true); echo "\" width=\"270\" height=\"328\" alt=\"\">\n </a>\n <ul class=\"product-controls-list\">\n <li><span class=\"label label-sale\">"; // line 186 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "solde"), "html", null, true); echo "</span></li>\n "; // line 187 $context["percents"] = 0; // line 188 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["cat"], "promotions", array())); foreach ($context['_seq'] as $context["_key"] => $context["promo"]) { // line 189 echo " "; $context["percents"] = $this->getAttribute($context["promo"], "percent", array()); // line 190 echo " <li><span class=\"label\">-"; echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["promo"], "percent", array()), 0), "html", null, true); echo "%</span></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promo'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 192 echo " </ul>\n <div class=\"quick-view visible-xs\"> <span class=\"rating\"> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-empty\"></i> </span></div>\n </div>\n <div class=\"bg-shop-write\">\n <h5 class=\"big-visual-category--title\"><a href=\"#\">"; // line 196 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["cat"], "name", array())), "html", null, true); echo "</a></h5>\n <span class=\"title\">Livraison Gratuite <span class=\"price new\">(*)</span></span><br/>\n <strong>Jusqu'a "; // line 198 echo twig_escape_filter($this->env, isset($context["percents"]) ? $context["percents"] : $this->getContext($context, "percents"), "html", null, true); echo " % de reduction</strong>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 202 echo " </div>\n <!-- //end Products list -->\n\n <!-- Product view compact -->\n <div class=\"product-view-ajax\">\n <div class=\"ajax-loader progress progress-striped active\">\n <div class=\"progress-bar progress-bar-danger\" role=\"progressbar\"></div>\n </div>\n <div class=\"layar\"></div>\n <div class=\"product-view-container\">\n </div>\n </div>\n <!-- //end Product view compact -->\n\n </section>\n <!-- //end On Sale Products -->\n <section >\n <p> </p>\n <section class=\"strate Block-seo Block-seo--trend\">\n <h2 class=\"Block-seoTitle\">"; // line 221 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "Tendances CDJIDJI"), "html", null, true); echo " <small class=\"col-sm-offset-6\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></small></h2>\n <ul class=\"Block-seoList\">\n "; // line 223 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["tendances"]) ? $context["tendances"] : $this->getContext($context, "tendances")); foreach ($context['_seq'] as $context["_key"] => $context["cats"]) { // line 224 echo " <li class=\"Block-seoItem\">\n <dl>\n <dt>"; // line 226 echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($context["cats"], "name", array())), "html", null, true); echo "</dt>\n "; // line 227 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["cats"], "sections", array())); foreach ($context['_seq'] as $context["_key"] => $context["section"]) { // line 228 echo " <dd>\n <a href=\"\">"; // line 229 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["section"], "name", array())), "html", null, true); echo "</a>\n </dd>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 232 echo " </dl>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cats'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 235 echo " </ul>\n </section>\n\n <section>\n <div class=\"col-md-8\">\n <div class=\"blockquote\">\n <div class=\"inside\">\n <h5>Abonnez-vous et suivez nous sur nos medias sociaux</h5>\n <small>Recevez tous les dernières offres de produits</small>\n </div>\n </div>\n </div>\n <div class=\"col-md-4\">\n <a href=\"https://www.facebook.com/cdjidjigroupe\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-facebook-3\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon icon-pinterest-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-twitter-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-youtube-3\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-instagram\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-googleplus-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-linkedin-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-vimeo-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-skype-3\"></span></div></a>\n </div>\n\n </section>\n\n </section>\n <!-- //end Right column -->\n </div>\n </section>\n"; $__internal_4394551a21a2373ba0501d9c794990fec60f4b7df78756f231ca96a8084cdd72->leave($__internal_4394551a21a2373ba0501d9c794990fec60f4b7df78756f231ca96a8084cdd72_prof); }
public function block_content($context, array $blocks = array()) { // line 99 echo "<div class=\"widget simpleTabs\">\n\n <ul class=\"tabs\">\n <li><a href=\"#tab-index\">"; // line 102 echo gettext("Clients"); echo "</a></li>\n <li><a href=\"#tab-new\">"; // line 103 echo gettext("New client"); echo "</a></li>\n <li><a href=\"#tab-groups\">"; // line 104 echo gettext("Groups"); echo "</a></li>\n <li><a href=\"#tab-new-group\">"; // line 105 echo gettext("New group"); echo "</a></li>\n </ul>\n\n <div class=\"tabs_container\">\n\n <div class=\"fix\"></div>\n <div class=\"tab_content nopadding\" id=\"tab-index\">\n "; // line 112 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "table_search"), "html", null, true); echo "\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <td style=\"width: 2%\"><input type=\"checkbox\" class=\"batch-delete-master-checkbox\"/></td>\n <td colspan=\"2\">"; // line 117 echo gettext("Name"); echo "</td>\n <td>"; // line 118 echo gettext("Company"); echo "</td>\n <td width=\"30%\">"; // line 119 echo gettext("Email"); echo "</td>\n <td>"; // line 120 echo gettext("Status"); echo "</td>\n <td>"; // line 121 echo gettext("Date"); echo "</td>\n <td width=\"13%\"> </td>\n </tr>\n </thead>\n\n <tbody>\n "; // line 127 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } $context["clients"] = $this->getAttribute($_admin_, "client_get_list", array(0 => twig_array_merge(array("per_page" => 30, "page" => $this->getAttribute($_request_, "page")), $_request_)), "method"); // line 128 echo " "; if (isset($context["clients"])) { $_clients_ = $context["clients"]; } else { $_clients_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_clients_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["client"]) { // line 129 echo " <tr>\n <td><input type=\"checkbox\" class=\"batch-delete-checkbox\" data-item-id=\""; // line 130 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\"/></td>\n <td>\n <a href=\""; // line 132 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\"><img src=\""; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, twig_gravatar_filter($this->getAttribute($_client_, "email")), "html", null, true); echo "?size=20\" alt=\""; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\" /></a>\n </td>\n <td>\n <span class=\"flag flag-"; // line 135 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "country"), "html", null, true); echo "\" title=\""; if (isset($context["guest"])) { $_guest_ = $context["guest"]; } else { $_guest_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_guest_, "system_countries"), $this->getAttribute($_client_, "country"), array(), "array"), "html", null, true); echo "\"></span>\n <a href=\""; // line 136 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\" title=\""; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "first_name"), "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "last_name"), "html", null, true); echo "\">"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_client_, "first_name"), "1", null, "."), "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_client_, "last_name"), 15), "html", null, true); echo "</a></td>\n <td><a href=\""; // line 137 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\" title=\""; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "company"), "html", null, true); echo "\">"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_client_, "company", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($_client_, "company"), "-") : "-", 30), "html", null, true); echo "</a></td>\n <td><a href=\""; // line 138 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\" title=\""; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "email"), "html", null, true); echo "\">"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_client_, "email"), 30), "html", null, true); echo "</a></td>\n <td>"; // line 139 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "status_name", array(0 => $this->getAttribute($_client_, "status")), "method"), "html", null, true); echo "</td>\n <td>"; // line 140 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_client_, "created_at"), "Y-m-d"), "html", null, true); echo "</td>\n <td>\n <a class=\"btn14 bb-rm-tr api-link\" href=\""; // line 142 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/delete", array("id" => $this->getAttribute($_client_, "id"))); echo "\" data-api-confirm=\"Are you sure?\" data-api-reload=\"1\"><img src=\"images/icons/dark/trash.png\" alt=\"\"></a>\n <a class=\"btn14\" href=\""; // line 143 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a>\n </td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 147 echo " <tr>\n <td colspan=\"7\">"; // line 148 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['client'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 151 echo " </tbody>\n </table>\n\n "; // line 154 $this->env->loadTemplate("partial_batch_delete.phtml")->display(array_merge($context, array("action" => "admin/client/batch_delete"))); // line 155 echo " "; if (isset($context["clients"])) { $_clients_ = $context["clients"]; } else { $_clients_ = null; } $this->env->loadTemplate("partial_pagination.phtml")->display(array_merge($context, array("list" => $_clients_, "url" => "client"))); // line 156 echo " </div>\n\n <div class=\"fix\"></div>\n\n <div class=\"tab_content nopadding\" id=\"tab-new\">\n\n <form method=\"post\" action=\""; // line 162 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/create"); echo "\" class=\"mainForm api-form save\" data-api-redirect=\""; echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client"); echo "\">\n <fieldset>\n <div class=\"rowElem noborder\">\n <label>"; // line 165 echo gettext("Status"); echo ":</label>\n <div class=\"formRight noborder\">\n <input type=\"radio\" name=\"status\" value=\"active\" checked=\"checked\"/><label>"; // line 167 echo gettext("Active"); echo "</label>\n <input type=\"radio\" name=\"status\" value=\"canceled\"/><label>"; // line 168 echo gettext("Canceled"); echo "</label>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 173 echo gettext("Group"); echo ":</label>\n <div class=\"formRight\">\n "; // line 175 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "selectbox", array(0 => "group_id", 1 => $this->getAttribute($_admin_, "client_group_get_pairs"), 2 => $this->getAttribute($_request_, "group_id"), 3 => 0, 4 => "Select group"), "method"), "html", null, true); echo "\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 180 echo gettext("Email"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"email\" value=\""; // line 182 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "email"), "html", null, true); echo "\" required=\"required\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 187 echo gettext("Name"); echo ":</label>\n <div class=\"formRight moreFields\">\n <ul>\n <li style=\"width: 200px\"><input type=\"text\" name=\"first_name\" value=\""; // line 190 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "first_name"), "html", null, true); echo "\" required=\"required\"/></li>\n <li class=\"sep\"></li>\n <li style=\"width: 200px\"><input type=\"text\" name=\"last_name\" value=\""; // line 192 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "last_name"), "html", null, true); echo "\"/></li>\n </ul>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 198 echo gettext("Company"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"company\" value=\""; // line 200 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "company"), "html", null, true); echo "\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 205 echo gettext("Address Line 1"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"address_1\" value=\""; // line 207 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "address_1"), "html", null, true); echo "\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 212 echo gettext("Address Line 2"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"address_2\" value=\""; // line 214 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "address_2"), "html", null, true); echo "\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 219 echo gettext("City"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"city\" value=\""; // line 221 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "city"), "html", null, true); echo "\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 226 echo gettext("State"); echo ":</label>\n <div class=\"formRight\">\n "; // line 229 echo " <input type=\"text\" name=\"state\" value=\""; if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "state"), "html", null, true); echo "\" />\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 234 echo gettext("Country"); echo ":</label>\n <div class=\"formRight\">\n "; // line 236 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["guest"])) { $_guest_ = $context["guest"]; } else { $_guest_ = null; } if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "selectbox", array(0 => "country", 1 => $this->getAttribute($_guest_, "system_countries"), 2 => $this->getAttribute($_request_, "country"), 3 => 0, 4 => "Select country"), "method"), "html", null, true); echo "\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 241 echo gettext("Postcode"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"postcode\" value=\""; // line 243 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "postcode"), "html", null, true); echo "\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 248 echo gettext("Phone"); echo ":</label>\n <div class=\"formRight moreFields\">\n <ul>\n <li><input type=\"text\" name=\"phone_cc\" value=\""; // line 251 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "phone_cc"), "html", null, true); echo "\"/></li>\n <li class=\"sep\"></li>\n <li style=\"width: 200px;\"><input type=\"text\" name=\"phone\" value=\""; // line 253 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "phone"), "html", null, true); echo "\"/></li>\n </ul>\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <div class=\"rowElem\">\n <label>"; // line 260 echo gettext("Currency"); echo ":</label>\n <div class=\"formRight\">\n "; // line 262 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["guest"])) { $_guest_ = $context["guest"]; } else { $_guest_ = null; } if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "selectbox", array(0 => "currency", 1 => $this->getAttribute($_guest_, "currency_get_pairs"), 2 => $this->getAttribute($_request_, "currency"), 3 => 0, 4 => "Select currency"), "method"), "html", null, true); echo "\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <div class=\"rowElem\">\n <label>"; // line 268 echo gettext("Password"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"password\" name=\"password\" value=\"\" required=\"required\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <input type=\"submit\" value=\""; // line 275 echo gettext("Create"); echo "\" class=\"greyishBtn submitForm\" />\n </fieldset>\n </form>\n </div>\n\n <div class=\"tab_content nopadding\" id=\"tab-groups\">\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <td>"; // line 284 echo gettext("Title"); echo "</td>\n <td width=\"13%\">"; // line 285 echo gettext("Actions"); echo "</td>\n </tr>\n </thead>\n\n <tbody>\n "; // line 290 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_admin_, "client_group_get_pairs")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["id"] => $context["group"]) { // line 291 echo " <tr>\n <td>"; // line 292 if (isset($context["group"])) { $_group_ = $context["group"]; } else { $_group_ = null; } echo twig_escape_filter($this->env, $_group_, "html", null, true); echo "</td>\n <td>\n <a class=\"btn14\" href=\""; // line 294 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/group"); echo "/"; if (isset($context["id"])) { $_id_ = $context["id"]; } else { $_id_ = null; } echo twig_escape_filter($this->env, $_id_, "html", null, true); echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a>\n <a class=\"btn14 api-link bb-rm-tr\" data-api-reload=\"1\" data-api-confirm=\"Are you sure?\" href=\""; // line 295 if (isset($context["id"])) { $_id_ = $context["id"]; } else { $_id_ = null; } echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/group_delete", array("id" => $_id_)); echo "\"><img src=\"images/icons/dark/trash.png\" alt=\"\"></a>\n </td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 299 echo " <tr>\n <td colspan=\"2\">"; // line 300 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['id'], $context['group'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 303 echo " </tbody>\n </table>\n </div>\n\n\n <div class=\"tab_content nopadding\" id=\"tab-new-group\">\n\n <form method=\"post\" action=\""; // line 310 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/group_create"); echo "\" class=\"mainForm api-form save\" data-api-redirect=\""; echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client"); echo "\">\n <fieldset>\n <div class=\"rowElem noborder\">\n <label>"; // line 313 echo gettext("Title"); echo ":</label>\n <div class=\"formRight noborder\">\n <input type=\"text\" name=\"title\" value=\""; // line 315 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "title"), "html", null, true); echo "\" required=\"required\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <input type=\"submit\" value=\""; // line 320 echo gettext("Create"); echo "\" class=\"greyishBtn submitForm\" />\n </fieldset>\n </form>\n </div>\n\n </div>\n</div>\n\n"; }
public function block_field($context, array $blocks = array()) { // line 15 echo " <div class=\"col-sm-2 centered\">\n <center>\n "; // line 17 if ($this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "image", array()) && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "isGranted", array(0 => "EDIT", 1 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method") && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "hasRoute", array(0 => "edit"), "method")) { // line 18 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "generateUrl", array(0 => "edit", 1 => array("id" => $this->env->getExtension('sonata_core_template')->getUrlsafeIdentifier(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")))), "method"), "html", null, true); echo "\" style=\"float: left; margin-right: 6px;\">"; echo $this->env->getExtension('sonata_media')->thumbnail($this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "image", array()), "admin", array("width" => 90)); echo "</a>\n "; } else { // line 20 echo " <i class=\"fa fa-chain-broken fa-3x\"></i>\n "; } // line 22 echo " </center>\n </div>\n <div class=\"col-sm-10\">\n <span class=\"badge pull-right\">"; // line 25 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "commentsCount", array()), "html", null, true); echo "</span>\n "; // line 26 if ($this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "isGranted", array(0 => "EDIT", 1 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method") && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "hasRoute", array(0 => "edit"), "method")) { // line 27 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "generateUrl", array(0 => "edit", 1 => array("id" => $this->env->getExtension('sonata_core_template')->getUrlsafeIdentifier(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")))), "method"), "html", null, true); echo "\"><strong>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "title", array()), "html", null, true); echo "</strong></a>\n "; } else { // line 29 echo " <strong>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "title", array()), "html", null, true); echo "</strong>\n "; } // line 31 echo "\n "; // line 32 if ($this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "author", array())) { // line 33 echo " ~ "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "author", array()), "username", array()), "html", null, true); echo "\n "; } // line 35 echo " <br />\n\n "; // line 37 echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "abstract", array()), 150), "html", null, true); echo "\n\n <br />\n "; // line 40 if ($this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "collection", array())) { // line 41 echo " "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "collection", array()), "name", array()), "html", null, true); echo "\n "; } // line 43 echo "\n "; // line 44 if ($this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "collection", array()) && twig_length_filter($this->env, $this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "tags", array())) > 0) { // line 45 echo " ~\n "; } // line 47 echo "\n "; // line 48 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), "tags", 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["tag"]) { // line 49 echo " "; echo twig_escape_filter($this->env, $this->getAttribute($context["tag"], "name", array()), "html", null, true); if (!$this->getAttribute($context["loop"], "last", array())) { echo ", "; } // line 50 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['tag'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 51 echo " </div>\n"; }
public function block_content($context, array $blocks = array()) { // line 10 echo " <div class=\"container-fluid \">\n <div class=\"pull-left\"><h4 class=\"no-margin-padding far-from-bottom\">"; // line 11 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "title", array()), "html", null, true); echo "</h4></div>\n <div class=\"far-from-bottom pull-right\">\n "; // line 13 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["actions"]) ? $context["actions"] : null); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 14 echo " "; if ($this->env->getExtension('access_checker_helper')->isGranted($this->getAttribute(isset($context["routeCollection"]) ? $context["routeCollection"] : null, "get", array(0 => $this->getAttribute($context["item"], "route", array())), "method"), isset($context["currentAccount"]) ? $context["currentAccount"] : null)) { echo "<div class=\"pull-right few-margin-right\"><i class=\""; echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["item"], "class", array()), " "), "html", null, true); echo "\"></i> <a "; if ($this->getAttribute($context["item"], "confirm", array(), "any", true, true) && $this->getAttribute($context["item"], "confirm", array())) { echo " data-toggle=\"modal\" data-target=\"#confirm-area\" data-confirm-header=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], "confirm", array()), "header", array()), "html", null, true); echo "\" data-confirm-body=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], "confirm", array()), "body", array()), "html", null, true); echo "\" data-link=\""; echo $this->env->getExtension('routing')->getPath($this->getAttribute($context["item"], "route", array())); echo "\" href=\"javascript:;\""; } else { echo " href=\""; echo $this->env->getExtension('routing')->getPath($this->getAttribute($context["item"], "route", array())); echo "\" "; } echo ">"; echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()), "html", null, true); echo "</a></div>"; } // line 15 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 16 echo " </div>\n </div>\n "; // line 18 if ($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "breadcrumb", array(), "any", true, true) && $this->getAttribute(isset($context["config"]) ? $context["config"] : null, "breadcrumb", array()) && $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getBreadcrumbs", array(), "method")) { // line 19 echo " <div class=\"breadcrumb page-bar\">\n <div>\n <i class=\"fa fa-home\"></i> <a href=\""; // line 21 echo $this->env->getExtension('routing')->getPath("admin_dashboard"); echo "\">Home</a> \n "; // line 22 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getBreadcrumbs", array(), "method")); foreach ($context['_seq'] as $context["link"] => $context["label"]) { // line 23 echo " "; if ($this->env->getExtension('access_checker_helper')->isGranted($this->getAttribute(isset($context["routeCollection"]) ? $context["routeCollection"] : null, "get", array(0 => $context["link"]), "method"), isset($context["currentAccount"]) ? $context["currentAccount"] : null)) { echo " <i class=\"fa fa-angle-right\"></i> <a href=\""; echo $this->env->getExtension('routing')->getPath($context["link"]); echo "\">"; echo twig_escape_filter($this->env, $context["label"], "html", null, true); echo "</a> "; } // line 24 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['link'], $context['label'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 25 echo " </div>\n </div>\n "; } // line 28 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "session", array()), "flashbag", array()), "all", array(), "method")); foreach ($context['_seq'] as $context["type"] => $context["messages"]) { // line 29 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($context["messages"]); foreach ($context['_seq'] as $context["_key"] => $context["message"]) { // line 30 echo " <div class=\"message-bar message-"; echo twig_escape_filter($this->env, $context["type"], "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $context["message"], "html", null, true); echo "</div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 32 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 33 echo " "; if ($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "search", array(), "any", true, true) && $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getSearch", array(), "method")) { // line 34 echo " "; $context["form"] = $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getSearch", array(), "method"); // line 35 echo " "; $this->env->getExtension('form')->renderer->setTheme(isset($context["form"]) ? $context["form"] : null, array(0 => "ProshutGridBundle:Factory:fields.html.twig")); // line 36 echo " <div class=\"admin-grid-search-box\">\n <div>\n "; // line 38 echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["form"]) ? $context["form"] : null, 'form_start', array("attr" => array("class" => "form-inline"))); echo "\n "; // line 39 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : null, 'widget'); echo "\n "; // line 40 echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["form"]) ? $context["form"] : null, 'form_end'); echo "\n\n </div>\n </div>\n "; } // line 45 echo " <div class=\"row-list-wrapper\">\n <div class=\"pull-right far-from-bottom\">\n <span class=\"badge\">"; // line 47 if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getEntities", array(), "method")) { echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getEntities", array(), "method"), "count", array(), "method"), "html", null, true); } else { echo "0"; } echo "</span> Record(s) founded.\n </div>\n <div class=\"dropdown far-from-bottom pull-left\">\n <button class=\"btn btn-default btn-sm dropdown-toggle\" type=\"button\" id=\"dropdownMenu1\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"true\">\n Display items per page\n <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu1\">\n <li"; // line 55 if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "item"), "method") && $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "item"), "method") == 30) { echo " class=\"active\" "; } echo "><a href=\""; echo $this->env->getExtension('routing')->getPath($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getRoute", array(), "method")); echo "?item=30\">30</a></li>\n <li"; // line 56 if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "item"), "method") && $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "item"), "method") == 50) { echo " class=\"active\" "; } echo "><a href=\""; echo $this->env->getExtension('routing')->getPath($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getRoute", array(), "method")); echo "?item=50\">50</a></li>\n </ul>\n </div>\n "; // line 59 if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getEntities", array(), "method")) { // line 60 echo " <table class=\"table table-striped table-hover\">\n <tr>\n <th>"; // line 62 if ($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "config", array(), "any", false, true), "selectable", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "config", array()), "selectable", array()) && $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getRow", array(), "method")) { echo "<input type=\"checkbox\" class=\"select-all\" />"; } else { echo "#"; } echo "</th>\n "; // line 63 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getHeader", array(), "method")); $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["item"]) { // line 64 echo " "; $context["headers"] = twig_array_merge(isset($context["headers"]) ? $context["headers"] : null, array($this->getAttribute($context["loop"], "index0", array()) => $context["key"])); echo " \n <th data-key=\""; // line 65 echo twig_escape_filter($this->env, $context["key"], "html", null, true); echo "\" class=\""; if ($this->getAttribute($context["item"], "class", array(), "any", true, true)) { echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["item"], "class", array()), " "), "html", null, true); } if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "order"), "method") && $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "order"), "method"), 0, array(), "array") == $context["key"]) { echo " current-order-list-"; echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "order"), "method"), 1, array(), "array")), "html", null, true); } echo "\">"; if ($context["key"] == "operation") { echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()), "html", null, true); } else { echo "<a href=\""; echo $this->env->getExtension('routing')->getPath($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getRoute", array(), "method")); echo "?order="; echo twig_escape_filter($this->env, $context["key"], "html", null, true); echo "_"; if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "order"), "method") && $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "order"), "method"), 0, array(), "array") == $context["key"] && $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "order"), "method"), 1, array(), "array") == "ASC") { echo "DESC"; } else { echo "ASC"; } echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()), "html", null, true); echo "</a>"; } echo "</th>\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['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 67 echo " </tr>\n "; // line 68 if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getRow", array(), "method")) { // line 69 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getRow", array(), "method")); $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["item"]) { // line 70 echo " <tr "; if ($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "config", array(), "any", false, true), "selectable", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "config", array()), "selectable", array())) { echo "class=\"selectable-rows\""; } echo " data-value=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "id", array()), "html", null, true); echo "\" >\n <td>"; // line 71 echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()) + $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "first"), "method"), "html", null, true); echo "</td>\n "; // line 72 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["headers"]) ? $context["headers"] : null); foreach ($context['_seq'] as $context["_key"] => $context["header"]) { // line 73 echo " "; $context["CurrentHeader"] = $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getHeader", array(0 => $context["header"]), "method"); // line 74 echo "\n "; // line 75 if ($this->getAttribute(isset($context["CurrentHeader"]) ? $context["CurrentHeader"] : null, "class", array(), "any", true, true) && twig_in_filter("isOperation", $this->getAttribute(isset($context["CurrentHeader"]) ? $context["CurrentHeader"] : null, "class", array()))) { // line 76 echo " <td class=\"operation-cell\">\n "; // line 77 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], $context["header"], array(), "array")); foreach ($context['_seq'] as $context["operator"] => $context["operation"]) { // line 78 echo " "; if ($this->env->getExtension('access_checker_helper')->isGranted($this->getAttribute(isset($context["routeCollection"]) ? $context["routeCollection"] : null, "get", array(0 => $context["operator"]), "method"), isset($context["currentAccount"]) ? $context["currentAccount"] : null)) { echo "<i class=\""; echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["operation"], "class", array()), " "), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["operation"], "title", array()), "html", null, true); echo "\" data-value=\""; echo twig_escape_filter($this->env, $context["operator"], "html", null, true); echo "\" onClick=\"window.location.href = '"; if ($this->getAttribute($context["operation"], "uri", array(), "any", true, true)) { echo twig_escape_filter($this->env, $this->getAttribute($context["operation"], "uri", array()), "html", null, true); } else { echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath($context["operator"], array("field" => $this->getAttribute($context["operation"], "field", array()), "value" => $this->getAttribute($context["operation"], "value", array()))), "html", null, true); } echo "'\"></i>"; } // line 79 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['operator'], $context['operation'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 80 echo " </td>\n "; } else { // line 82 echo " <td "; if ($this->getAttribute($this->getAttribute($context["item"], $context["header"], array(), "array", false, true), "class", array(), "any", true, true)) { echo "class=\""; echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($this->getAttribute($context["item"], $context["header"], array(), "array"), "class", array()), " "), "html", null, true); echo "\""; } echo ">\n <span class=\"orginal-longtext\">"; // line 83 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], $context["header"], array(), "array"), "data", array()), "html", null, true); echo "</span>\n <span class=\"eclipse-longtext\">"; // line 84 echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], $context["header"], array(), "array"), "data", array()), 10), "html", null, true); echo "</span>\n </td>\n "; } // line 87 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['header'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 88 echo " </tr>\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['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 90 echo " "; } else { // line 91 echo "\n "; } // line 93 echo "\n </table>\n "; // line 95 if (isset($context["operations"]) ? $context["operations"] : null) { // line 96 echo " <ul class=\"row-list-operation\">\n "; // line 97 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["operations"]) ? $context["operations"] : null); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 98 echo " "; if ($this->env->getExtension('access_checker_helper')->isGranted($this->getAttribute(isset($context["routeCollection"]) ? $context["routeCollection"] : null, "get", array(0 => $this->getAttribute($this->getAttribute($context["item"], "action", array()), "route", array())), "method"), isset($context["currentAccount"]) ? $context["currentAccount"] : null)) { echo "<li><button name=\"operation["; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], "action", array()), "route", array()), "html", null, true); echo "]\" data-link=\""; echo $this->env->getExtension('routing')->getPath($this->getAttribute($this->getAttribute($context["item"], "action", array()), "route", array())); echo "\" "; if ($this->getAttribute($this->getAttribute($context["item"], "action", array(), "any", false, true), "confirm", array(), "any", true, true) && $this->getAttribute($this->getAttribute($context["item"], "action", array()), "confirm", array())) { echo " data-toggle=\"modal\" data-target=\"#confirm-area\" data-confirm-header=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["item"], "action", array()), "confirm", array()), "header", array()), "html", null, true); echo "\" data-confirm-body=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["item"], "action", array()), "confirm", array()), "body", array()), "html", null, true); echo "\""; } echo " class=\""; echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute($context["item"], "class", array()), " "), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()), "html", null, true); echo "</button></li>"; } // line 99 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 100 echo " </ul>\n <div class=\"clearfix\"></div>\n "; } // line 103 echo " <div class=\"text-center\">\n "; // line 104 $context["totalPages"] = $this->getAttribute($this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getEntities", array(), "method"), "count", array(), "method") / $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "item"), "method"); // line 105 echo " "; $context["vars"] = array("currentFilters" => $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttr", array(), "method"), "currentPage" => $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getQueryAttribute", array(0 => "page"), "method"), "paginationPath" => $this->getAttribute(isset($context["grid"]) ? $context["grid"] : null, "getRoute", array(), "method"), "showAlwaysFirstAndLast" => true, "lastPage" => $this->env->getExtension('ceil_extension')->ceilFilter(isset($context["totalPages"]) ? $context["totalPages"] : null)); // line 106 echo " "; $this->env->loadTemplate("ProshutGridBundle:Factory:pagination.html.twig")->display(array_merge($context, isset($context["vars"]) ? $context["vars"] : null)); // line 107 echo " </div>\n "; } // line 109 echo " </div>\n <div class=\"modal fade\" id=\"confirm-area\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n <h4 class=\"modal-title\"></h4>\n </div>\n <div class=\"modal-body\"></div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>\n <a class=\"btn btn-danger btn-continue\">Continue</a>\n </div>\n </div>\n </div>\n </div>\n"; }
public function block_content($context, array $blocks = array()) { // line 14 echo "\n<div class=\"widget simpleTabs\">\n\n <ul class=\"tabs\">\n <li><a href=\"#tab-info\">"; // line 18 echo gettext("Profile"); echo "</a></li>\n <li><a href=\"#tab-profile\">"; // line 19 echo gettext("Edit"); echo "</a></li>\n <li><a href=\"#tab-orders\">"; // line 20 echo gettext("Orders"); echo "</a></li>\n <li><a href=\"#tab-invoice\">"; // line 21 echo gettext("Invoices"); echo "</a></li>\n <li><a href=\"#tab-support\">"; // line 22 echo gettext("Tickets"); echo "</a></li>\n <li><a href=\"#tab-balance\">"; // line 23 echo gettext("Payments"); echo "</a></li>\n <li><a href=\"#tab-history\">"; // line 24 echo gettext("Logins"); echo "</a></li>\n <li><a href=\"#tab-emails\">"; // line 25 echo gettext("Emails"); echo "</a></li>\n <li><a href=\"#tab-transactions\">"; // line 26 echo gettext("Transactions"); echo "</a></li>\n </ul>\n\n <div class=\"tabs_container\">\n <div class=\"fix\"></div>\n <div class=\"tab_content nopadding\" id=\"tab-info\">\n\n <div style=\"position: relative;\">\n <img src=\""; // line 34 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, twig_gravatar_filter($this->getAttribute($_client_, "email")), "html", null, true); echo "?size=100\" alt=\""; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "first_name"), "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "last_name"), "html", null, true); echo "\" style=\"right: 0; margin: 15px 15px 0 15px; position: absolute; border: 2px solid white; box-shadow: 0px 0px 10px 0px;\"/>\n </div>\n \n <table class=\"tableStatic wide\">\n <tbody>\n <tr class=\"noborder\">\n <td style=\"width: 15%\">ID:</td>\n <td>"; // line 41 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "</td>\n </tr>\n\n <tr>\n <td>Name:</td>\n <td><strong class=\"red\">"; // line 46 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "first_name"), "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "last_name"), "html", null, true); echo "</strong></td>\n </tr>\n\n <tr>\n <td>Company:</td>\n <td><strong class=\"green\">"; // line 51 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "company", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($_client_, "company"), "-") : "-", "html", null, true); echo "</strong></td>\n </tr>\n <tr>\n <td>Email:</td>\n <td>"; // line 55 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "email"), "html", null, true); echo "</td>\n </tr>\n <tr>\n <td>Status:</td>\n <td>"; // line 59 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "status_name", array(0 => $this->getAttribute($_client_, "status")), "method"), "html", null, true); echo "</td>\n </tr>\n <tr>\n <td>Group:</td>\n <td>"; // line 63 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "group", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($_client_, "group"), "-") : "-", "html", null, true); echo "</td>\n </tr>\n <tr>\n <td>Currency:</td>\n <td>"; // line 67 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "currency", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($_client_, "currency"), "-") : "-", "html", null, true); echo "</td>\n </tr>\n <tr>\n <td>IP:</td>\n <td>"; // line 71 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "ip", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($_client_, "ip"), "-") : "-", "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_ipcountryname_filter($this->getAttribute($_client_, "ip")), "html", null, true); echo "</td>\n </tr>\n <tr>\n <td>API Key:</td>\n <td>"; // line 75 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "api_token", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($_client_, "api_token"), "-") : "-", "html", null, true); echo "</td>\n </tr>\n <tr>\n <td>Address:</td>\n <td>\n <span class=\"flag flag-"; // line 80 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "country"), "html", null, true); echo "\" title=\""; if (isset($context["guest"])) { $_guest_ = $context["guest"]; } else { $_guest_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_guest_, "system_countries"), $this->getAttribute($_client_, "country"), array(), "array"), "html", null, true); echo "\"></span>\n "; // line 81 if (isset($context["guest"])) { $_guest_ = $context["guest"]; } else { $_guest_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_guest_, "system_countries"), $this->getAttribute($_client_, "country"), array(), "array"), "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "state"), "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "address_1"), "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "address_2"), "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "city"), "html", null, true); echo " "; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "postcode"), "html", null, true); echo "\n </td>\n </tr>\n <tr>\n <td>Registered at:</td>\n <td>"; // line 86 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_client_, "created_at"), "M d, Y"), "html", null, true); echo "</td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan=\"2\">\n <a href=\""; // line 92 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/login"); echo "/"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\" class=\"btnIconLeft mr10 mt5\" target=\"_blank\"><img src=\"images/icons/dark/adminUser.png\" alt=\"\" class=\"icon\"><span>Login to client area</span></a>\n <a href=\""; // line 93 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/delete", array("id" => $this->getAttribute($_client_, "id"))); echo "\" data-api-confirm=\"Are you sure?\" data-api-redirect=\""; echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client"); echo "\" class=\"btnIconLeft mr10 mt5 api-link\" ><img src=\"images/icons/dark/trash.png\" alt=\"\" class=\"icon\"><span>Delete</span></a>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n\n <div class=\"tab_content nopadding\" id=\"tab-profile\">\n\n <div class=\"help\">\n <h3>"; // line 103 echo gettext("Client profile details"); echo "</h3>\n </div>\n\n <form method=\"post\" action=\""; // line 106 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/update"); echo "\" class=\"mainForm api-form save\" data-api-msg=\""; echo gettext("Client Profile updated"); echo "\">\n <fieldset>\n <div class=\"rowElem noborder\">\n <label>"; // line 109 echo gettext("Status"); echo ":</label>\n <div class=\"formRight noborder\">\n <input type=\"radio\" name=\"status\" value=\"active\""; // line 111 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($this->getAttribute($_client_, "status") == "active") { echo " checked=\"checked\""; } echo "/><label>"; echo gettext("Active"); echo "</label>\n <input type=\"radio\" name=\"status\" value=\"suspended\""; // line 112 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($this->getAttribute($_client_, "status") == "suspended") { echo " checked=\"checked\""; } echo " /><label>"; echo gettext("Suspended"); echo "</label>\n <input type=\"radio\" name=\"status\" value=\"canceled\""; // line 113 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($this->getAttribute($_client_, "status") == "canceled") { echo " checked=\"checked\""; } echo " /><label>"; echo gettext("Canceled"); echo "</label>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 118 echo gettext("Type"); echo ":</label>\n <div class=\"formRight noborder\">\n <input type=\"radio\" name=\"type\" value=\"individual\""; // line 120 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($this->getAttribute($_client_, "type") == "individual") { echo " checked=\"checked\""; } echo "/><label>"; echo gettext("Individual"); echo "</label>\n <input type=\"radio\" name=\"type\" value=\"company\""; // line 121 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($this->getAttribute($_client_, "type") == "company") { echo " checked=\"checked\""; } echo " /><label>"; echo gettext("Company"); echo "</label>\n <input type=\"radio\" name=\"type\" value=\"\""; // line 122 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if (!$this->getAttribute($_client_, "type")) { echo " checked=\"checked\""; } echo " /><label>"; echo gettext("Other/Unknown"); echo "</label>\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <div class=\"rowElem\">\n <label>"; // line 128 echo gettext("Mail approved"); echo ":</label>\n <div class=\"formRight noborder\">\n <input type=\"radio\" name=\"email_approved\" value=\"1\""; // line 130 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($this->getAttribute($_client_, "email_approved") == 1) { echo " checked=\"checked\""; } echo "/><label>"; echo gettext("Yes"); echo "</label>\n <input type=\"radio\" name=\"email_approved\" value=\"0\""; // line 131 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($this->getAttribute($_client_, "email_approved") != 1) { echo " checked=\"checked\""; } echo " /><label>"; echo gettext("No"); echo "</label>\n </div>\n <div class=\"fix\"></div>\n </div>\n\n\n\n <div class=\"rowElem\">\n <label>"; // line 139 echo gettext("Group"); echo ":</label>\n <div class=\"formRight\">\n "; // line 141 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "selectbox", array(0 => "group_id", 1 => $this->getAttribute($_admin_, "client_group_get_pairs"), 2 => $this->getAttribute($_client_, "group_id"), 3 => 0, 4 => "Select group"), "method"), "html", null, true); echo "\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 146 echo gettext("Email"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"email\" value=\""; // line 148 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "email"), "html", null, true); echo "\" required=\"required\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 153 echo gettext("Name"); echo ":</label>\n <div class=\"formRight moreFields\">\n <ul>\n <li style=\"width: 250px\"><input type=\"text\" name=\"first_name\" value=\""; // line 156 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "first_name"), "html", null, true); echo "\" required=\"required\"/></li>\n <li class=\"sep\"></li>\n <li style=\"width: 245px\"><input type=\"text\" name=\"last_name\" value=\""; // line 158 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "last_name"), "html", null, true); echo "\" /></li>\n </ul>\n </div> \n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 164 echo gettext("Date of birth"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"birthday\" value=\""; // line 166 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "birthday"), "html", null, true); echo "\" />\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\" id=\"company-details\">\n <label>"; // line 171 echo gettext("Company details"); echo ":</label>\n <div class=\"formRight moreFields\">\n <ul>\n <li style=\"width: 170px\"><input type=\"text\" name=\"company\" value=\""; // line 174 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "company"), "html", null, true); echo "\" title=\"Company name\" placeholder=\"Company name\"/></li>\n <li class=\"sep\"></li>\n <li style=\"width: 150px\"><input type=\"text\" name=\"company_vat\" value=\""; // line 176 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "company_vat"), "html", null, true); echo "\" title=\"Company VAT number\" placeholder=\"Company VAT number\"/></li>\n <li class=\"sep\"></li>\n <li style=\"width: 150px\"><input type=\"text\" name=\"company_number\" value=\""; // line 178 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "company_number"), "html", null, true); echo "\" title=\"Company number\" placeholder=\"Company number\"/></li>\n <li class=\"sep\"></li>\n </ul>\n </div> \n <div class=\"fix\"></div>\n </div>\n <input type=\"submit\" value=\""; // line 184 echo gettext("Update"); echo "\" class=\"greyishBtn submitForm\" />\n </fieldset>\n \n <fieldset>\n <legend>"; // line 188 echo gettext("Address and contact details"); echo "</legend>\n <div class=\"rowElem\">\n <label>"; // line 190 echo gettext("Address Line 1"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"address_1\" value=\""; // line 192 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "address_1"), "html", null, true); echo "\" />\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 197 echo gettext("Address Line 2"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"address_2\" value=\""; // line 199 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "address_2"), "html", null, true); echo "\" />\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <div class=\"rowElem\">\n <label>"; // line 205 echo gettext("Country"); echo ":</label>\n <div class=\"formRight\">\n "; // line 207 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["guest"])) { $_guest_ = $context["guest"]; } else { $_guest_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "selectbox", array(0 => "country", 1 => $this->getAttribute($_guest_, "system_countries"), 2 => $this->getAttribute($_client_, "country"), 3 => 0, 4 => "Select country"), "method"), "html", null, true); echo "\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 212 echo gettext("State"); echo ":</label>\n <div class=\"formRight\">\n "; // line 215 echo " <input type=\"text\" name=\"state\" value=\""; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "state"), "html", null, true); echo "\" />\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 220 echo gettext("City"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"city\" value=\""; // line 222 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "city"), "html", null, true); echo "\" />\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 227 echo gettext("Postcode"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"postcode\" value=\""; // line 229 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "postcode"), "html", null, true); echo "\" />\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 234 echo gettext("Phone"); echo ":</label>\n <div class=\"formRight moreFields\">\n <ul>\n <li><input type=\"text\" name=\"phone_cc\" value=\""; // line 237 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "phone_cc"), "html", null, true); echo "\" /></li>\n <li class=\"sep\"></li>\n <li style=\"width: 200px;\"><input type=\"text\" name=\"phone\" value=\""; // line 239 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "phone"), "html", null, true); echo "\" /></li>\n </ul> \n </div> \n <div class=\"fix\"></div> \n </div>\n <div class=\"rowElem\">\n <label>"; // line 245 echo gettext("Passport number"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"document_nr\" value=\""; // line 247 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "document_nr"), "html", null, true); echo "\" />\n </div>\n <div class=\"fix\"></div>\n </div>\n <input type=\"submit\" value=\""; // line 251 echo gettext("Update"); echo "\" class=\"greyishBtn submitForm\" />\n </fieldset>\n \n <fieldset>\n <legend>"; // line 255 echo gettext("Additional settings"); echo "</legend>\n <div class=\"rowElem\">\n <label>"; // line 257 echo gettext("Alternative ID"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"aid\" value=\""; // line 259 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "aid"), "html", null, true); echo "\" placeholder=\""; echo gettext("Used to identify client on foreign system. Usually used by importers"); echo "\"/>\n </div> \n <div class=\"fix\"></div> \n </div>\n \n <div class=\"rowElem\">\n <label>"; // line 265 echo gettext("Currency"); echo ":</label>\n <div class=\"formRight\">\n "; // line 267 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["guest"])) { $_guest_ = $context["guest"]; } else { $_guest_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "selectbox", array(0 => "currency", 1 => $this->getAttribute($_guest_, "currency_get_pairs"), 2 => $this->getAttribute($_client_, "currency"), 3 => 0, 4 => "Select currency"), "method"), "html", null, true); echo "\n </div> \n <div class=\"fix\"></div>\n </div>\n \n <div class=\"rowElem\">\n <label>"; // line 273 echo gettext("Exempt from tax"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"radio\" name=\"tax_exempt\" value=\"1\""; // line 275 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if ($this->getAttribute($_client_, "tax_exempt")) { echo " checked=\"checked\""; } echo "/><label>Yes</label>\n <input type=\"radio\" name=\"tax_exempt\" value=\"0\""; // line 276 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if (!$this->getAttribute($_client_, "tax_exempt")) { echo " checked=\"checked\""; } echo " /><label>No</label>\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 281 echo gettext("Signed up time"); echo ":</label>\n <div class=\"formRight\">\n <input type=\"text\" name=\"created_at\" value=\""; // line 283 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_client_, "created_at"), "Y-m-d"), "html", null, true); echo "\" />\n </div>\n <div class=\"fix\"></div>\n </div>\n <div class=\"rowElem\">\n <label>"; // line 288 echo gettext("Notes"); echo ":</label>\n <div class=\"formRight\">\n <textarea name=\"notes\" cols=\"5\" rows=\"5\">"; // line 290 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "notes"), "html", null, true); echo "</textarea>\n </div>\n <div class=\"fix\"></div>\n </div>\n <input type=\"submit\" value=\""; // line 294 echo gettext("Update profile"); echo "\" class=\"greyishBtn submitForm\" />\n <input type=\"hidden\" name=\"id\" value=\""; // line 295 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\"/>\n </fieldset>\n </form>\n \n <div class=\"help\">\n <h3>"; // line 300 echo gettext("Change password"); echo "</h3>\n </div>\n <form method=\"post\" action=\""; // line 302 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/change_password"); echo "\" class=\"mainForm api-form\" data-api-msg=\""; echo gettext("Password changed"); echo "\">\n <fieldset>\n <div class=\"rowElem noborder\">\n <label>"; // line 305 echo gettext("Password"); echo "</label>\n <div class=\"formRight\">\n <input type=\"password\" name=\"password\" value=\"\" required=\"required\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <div class=\"rowElem\">\n <label>"; // line 313 echo gettext("Password confirm"); echo "</label>\n <div class=\"formRight\">\n <input type=\"password\" name=\"password_confirm\" value=\"\" required=\"required\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <input type=\"submit\" value=\""; // line 320 echo gettext("Change password"); echo "\" class=\"greyishBtn submitForm\" />\n <input type=\"hidden\" name=\"id\" value=\""; // line 321 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\"/>\n </fieldset>\n </form>\n\n <div class=\"help\">\n <h3>"; // line 326 echo gettext("Custom fields"); echo "</h3>\n <p>"; // line 327 echo gettext("Use these fields to define custom client details"); echo "</p>\n </div>\n \n <form method=\"post\" action=\""; // line 330 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/update"); echo "\" class=\"mainForm api-form save\" data-api-msg=\""; echo gettext("Client Profile custom fields updated"); echo "\">\n <fieldset>\n "; // line 332 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(range(1, 10)); $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["i"]) { // line 333 echo " "; if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } $context["fn"] = "custom_" . $_i_; // line 334 echo " <div class=\"rowElem"; if (isset($context["loop"])) { $_loop_ = $context["loop"]; } else { $_loop_ = null; } if ($this->getAttribute($_loop_, "first")) { echo " noborder"; } echo "\">\n <label>"; // line 335 echo gettext("Custom field"); echo " "; if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } echo twig_escape_filter($this->env, $_i_, "html", null, true); echo "</label>\n <div class=\"formRight\">\n <textarea name=\"custom_"; // line 337 if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; } echo twig_escape_filter($this->env, $_i_, "html", null, true); echo "\" cols=\"5\" rows=\"5\">"; if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } if (isset($context["fn"])) { $_fn_ = $context["fn"]; } else { $_fn_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, $_fn_, array(), "array"), "html", null, true); echo "</textarea>\n </div>\n <div class=\"fix\"></div>\n </div>\n "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 342 echo "\n <input type=\"submit\" value=\""; // line 343 echo gettext("Update"); echo "\" class=\"greyishBtn submitForm\" />\n <input type=\"hidden\" name=\"id\" value=\""; // line 344 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\"/>\n </fieldset>\n </form>\n </div>\n\n <div class=\"tab_content nopadding\" id=\"tab-balance\">\n <div class=\"help\">\n <h3>"; // line 351 echo gettext("Client payments history"); echo "</h3>\n </div>\n\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <th style=\"width: 15%\">"; // line 357 echo gettext("Amount"); echo "</th>\n <th>"; // line 358 echo gettext("Description"); echo "</th>\n <th style=\"width: 20%\">"; // line 359 echo gettext("Date"); echo "</th>\n <th style=\"width: 5%\"> </th>\n </tr>\n </thead>\n\n <tbody>\n "; // line 365 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["transactions"] = $this->getAttribute($_admin_, "client_balance_get_list", array(0 => array("per_page" => 20, "client_id" => $this->getAttribute($_client_, "id"))), "method"); // line 366 echo " "; if (isset($context["transactions"])) { $_transactions_ = $context["transactions"]; } else { $_transactions_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_transactions_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["tx"]) { // line 367 echo " <tr>\n <td>"; // line 368 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_tx_, "amount"), 1 => $this->getAttribute($_tx_, "currency")), "method"), "html", null, true); echo "</td>\n <td>"; // line 369 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_tx_, "description"), "html", null, true); echo "</td>\n <td>"; // line 370 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_tx_, "created_at"), "Y-m-d H:i"), "html", null, true); echo "</td>\n <td>\n <a class=\"bb-button btn14 bb-rm-tr api-link\" data-api-confirm=\"Are you sure?\" href=\""; // line 372 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/balance_delete", array("id" => $this->getAttribute($_tx_, "id"))); echo "\"><img src=\"images/icons/dark/trash.png\" alt=\"\"></a>\n </td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 376 echo " <tr>\n <td colspan=\"4\">"; // line 377 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['tx'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 380 echo " </tbody>\n\n <tfoot>\n <tr>\n <th class=\"currency\" colspan=\"4\">"; // line 384 echo gettext("Balance"); echo ": "; if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_client_, "balance"), 1 => $this->getAttribute($_client_, "currency")), "method"), "html", null, true); echo "</th>\n </tr>\n </tfoot>\n </table>\n \n <div class=\"help\">\n <h3>"; // line 390 echo gettext("Add funds for client"); echo "</h3>\n </div>\n\n <form method=\"post\" action=\""; // line 393 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/client/balance_add_funds"); echo "\" class=\"mainForm api-form save\" data-api-msg=\""; echo gettext("Funds added"); echo "\">\n <fieldset>\n <div class=\"rowElem noborder\">\n <label>"; // line 396 echo gettext("Amount"); echo ":</label>\n <div class=\"formRight noborder\">\n <input type=\"text\" name=\"amount\" value=\"\" style=\"width: 100px;\" required=\"required\"/> "; // line 398 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "currency"), "html", null, true); echo "\n </div>\n <div class=\"fix\"></div>\n </div>\n \n <div class=\"rowElem\">\n <label>"; // line 404 echo gettext("Description"); echo ":</label>\n <div class=\"formRight noborder\">\n <input type=\"text\" name=\"description\" value=\"\" required=\"required\"/>\n </div>\n <div class=\"fix\"></div>\n </div>\n\n <input type=\"submit\" value=\""; // line 411 echo gettext("Add funds"); echo "\" class=\"greyishBtn submitForm\" />\n <input type=\"hidden\" name=\"id\" value=\""; // line 412 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_client_, "id"), "html", null, true); echo "\"/>\n </fieldset>\n </form>\n </div>\n\n <div class=\"tab_content nopadding\" id=\"tab-orders\">\n <div class=\"help\">\n <h3>"; // line 419 echo gettext("Client orders"); echo "</h3>\n </div>\n\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <td>ID</td>\n <td width=\"40%\">Title</td>\n <td width=\"20%\">Amount</td>\n <td width=\"20%\">Period</td>\n <td width=\"20%\">Status</td>\n <td> </td>\n </tr>\n </thead>\n <tbody>\n "; // line 434 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["orders"] = $this->getAttribute($_admin_, "order_get_list", array(0 => array("per_page" => "20", "client_id" => $this->getAttribute($_client_, "id"))), "method"); // line 435 echo " "; if (isset($context["orders"])) { $_orders_ = $context["orders"]; } else { $_orders_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_orders_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["order"]) { // line 436 echo " <tr>\n <td>"; // line 437 if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_order_, "id"), "html", null, true); echo "</td>\n <td>"; // line 438 if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_order_, "title"), 30), "html", null, true); echo "</td>\n <td>"; // line 439 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_order_, "total"), 1 => $this->getAttribute($_order_, "currency")), "method"), "html", null, true); echo "</td>\n <td>"; // line 440 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "period_name", array(0 => $this->getAttribute($_order_, "period")), "method"), "html", null, true); echo "</td>\n <td>"; // line 441 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "status_name", array(0 => $this->getAttribute($_order_, "status")), "method"), "html", null, true); echo "</td>\n <td class=\"actions\"><a class=\"bb-button btn14\" href=\""; // line 442 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("/order/manage"); echo "/"; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_order_, "id"), "html", null, true); echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a></td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 445 echo " <tr>\n <td colspan=\"6\">"; // line 446 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['order'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 449 echo " </tbody>\n \n <tfoot>\n <tr>\n <td colspan=\"6\">\n <a href=\""; // line 454 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order", array("client_id" => $this->getAttribute($_client_, "id"))); echo "#tab-new\" class=\"btnIconLeft mr10 mt5\"><img src=\"images/icons/dark/money.png\" alt=\"\" class=\"icon\"><span>New order</span></a>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n\n <div class=\"tab_content nopadding\" id=\"tab-invoice\">\n <div class=\"help\">\n <h3>"; // line 463 echo gettext("Client invoices"); echo "</h3>\n </div>\n\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <td>#</td>\n <td width=\"15%\">Amount</td>\n <td width=\"30%\">Issued at</td>\n <td width=\"30%\">Paid at</td>\n <td width=\"15%\">Status</td>\n <td> </td>\n </tr>\n </thead>\n <tbody>\n "; // line 478 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["invoices"] = $this->getAttribute($_admin_, "invoice_get_list", array(0 => array("per_page" => "100", "client_id" => $this->getAttribute($_client_, "id"))), "method"); // line 479 echo " "; if (isset($context["invoices"])) { $_invoices_ = $context["invoices"]; } else { $_invoices_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_invoices_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["invoice"]) { // line 480 echo " <tr>\n <td>"; // line 481 if (isset($context["invoice"])) { $_invoice_ = $context["invoice"]; } else { $_invoice_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_invoice_, "serie_nr"), "html", null, true); echo "</td>\n <td>"; // line 482 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["invoice"])) { $_invoice_ = $context["invoice"]; } else { $_invoice_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_invoice_, "total"), 1 => $this->getAttribute($_invoice_, "currency")), "method"), "html", null, true); echo "</td>\n <td>"; // line 483 if (isset($context["invoice"])) { $_invoice_ = $context["invoice"]; } else { $_invoice_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_invoice_, "created_at"), "Y-m-d"), "html", null, true); echo "</td>\n <td>"; // line 484 if (isset($context["invoice"])) { $_invoice_ = $context["invoice"]; } else { $_invoice_ = null; } if ($this->getAttribute($_invoice_, "paid_at")) { if (isset($context["invoice"])) { $_invoice_ = $context["invoice"]; } else { $_invoice_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_invoice_, "paid_at"), "Y-m-d"), "html", null, true); } else { echo "-"; } echo "</td>\n <td>"; // line 485 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["invoice"])) { $_invoice_ = $context["invoice"]; } else { $_invoice_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "status_name", array(0 => $this->getAttribute($_invoice_, "status")), "method"), "html", null, true); echo "</td>\n <td class=\"actions\"><a class=\"bb-button btn14\" href=\""; // line 486 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("/invoice/manage"); echo "/"; if (isset($context["invoice"])) { $_invoice_ = $context["invoice"]; } else { $_invoice_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_invoice_, "id"), "html", null, true); echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a></td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 489 echo " <tr>\n <td colspan=\"6\">"; // line 490 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['invoice'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 493 echo " </tbody>\n \n <tfoot>\n <tr>\n <td colspan=\"6\">\n <a href=\""; // line 498 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/invoice/prepare", array("client_id" => $this->getAttribute($_client_, "id"))); echo "\" class=\"btnIconLeft mr10 mt5 api-link\" data-api-jsonp=\"onAfterInvoicePrepared\" ><img src=\"images/icons/dark/money.png\" alt=\"\" class=\"icon\"><span>New invoice</span></a>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n\n <div class=\"tab_content nopadding\" id=\"tab-support\">\n <div class=\"help\">\n <h3>"; // line 507 echo gettext("Client support tickets"); echo "</h3>\n </div>\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <td>ID</td>\n <td width=\"60%\">Subject</td>\n <td width=\"15%\">Help desk</td>\n <td width=\"15%\">Status</td>\n <td> </td>\n </tr>\n </thead>\n \n <tbody>\n "; // line 521 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["tickets"] = $this->getAttribute($_admin_, "support_ticket_get_list", array(0 => array("per_page" => "20", "client_id" => $this->getAttribute($_client_, "id"))), "method"); // line 522 echo " "; if (isset($context["tickets"])) { $_tickets_ = $context["tickets"]; } else { $_tickets_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_tickets_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["ticket"]) { // line 523 echo " <tr>\n <td>"; // line 524 if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true); echo "</td>\n <td>"; // line 525 if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_ticket_, "subject"), 30), "html", null, true); echo "</td>\n <td>"; // line 526 if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_ticket_, "helpdesk"), "name"), "html", null, true); echo "</td>\n <td>"; // line 527 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "status_name", array(0 => $this->getAttribute($_ticket_, "status")), "method"), "html", null, true); echo "</td>\n <td class=\"actions\"><a class=\"bb-button btn14\" href=\""; // line 528 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("/support/ticket"); echo "/"; if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true); echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a></td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 531 echo " <tr>\n <td colspan=\"5\">"; // line 532 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ticket'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 535 echo " </tbody>\n \n <tfoot>\n <tr>\n <td colspan=\"5\">\n <a href=\""; // line 540 if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("support", array("client_id" => $this->getAttribute($_client_, "id"))); echo "#tab-new\" class=\"btnIconLeft mr10 mt5\" ><img src=\"images/icons/dark/help.png\" alt=\"\" class=\"icon\"><span>New support ticket</span></a>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n \n <div class=\"tab_content nopadding\" id=\"tab-history\">\n <div class=\"help\">\n <h3>"; // line 549 echo gettext("Logins history"); echo "</h3>\n </div>\n \n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <th>"; // line 555 echo gettext("IP"); echo "</th>\n <th>"; // line 556 echo gettext("Country"); echo "</th>\n <th>"; // line 557 echo gettext("Date"); echo "</th>\n </tr>\n </thead>\n\n <tbody>\n "; // line 562 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["logins"] = $this->getAttribute($_admin_, "client_login_history_get_list", array(0 => array("per_page" => 10, "page" => $this->getAttribute($_request_, "page"), "client_id" => $this->getAttribute($_client_, "id"))), "method"); // line 563 echo " "; if (isset($context["logins"])) { $_logins_ = $context["logins"]; } else { $_logins_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_logins_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["login"]) { // line 564 echo " <tr>\n <td>"; // line 565 if (isset($context["login"])) { $_login_ = $context["login"]; } else { $_login_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_login_, "ip"), "html", null, true); echo "</td>\n <td>"; // line 566 if (isset($context["login"])) { $_login_ = $context["login"]; } else { $_login_ = null; } echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_ipcountryname_filter($this->getAttribute($_login_, "ip")), "html", null, true); echo "</td>\n <td>"; // line 567 if (isset($context["login"])) { $_login_ = $context["login"]; } else { $_login_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_login_, "created_at"), "l, d F Y"), "html", null, true); echo "</td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 570 echo " <tr>\n <td colspan=\"3\">"; // line 571 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['login'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 574 echo " </tbody>\n </table>\n </div>\n\n <div class=\"tab_content nopadding\" id=\"tab-emails\">\n <div class=\"help\">\n <h3>"; // line 580 echo gettext("Emails sent to client"); echo "</h3>\n </div>\n\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <th>"; // line 586 echo gettext("Email subject"); echo "</th>\n <th>"; // line 587 echo gettext("To"); echo "</th>\n <th>"; // line 588 echo gettext("Date sent"); echo "</th>\n <th style=\"width: 5%\"> </th>\n </tr>\n </thead>\n\n <tbody>\n "; // line 594 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["emails"] = $this->getAttribute($_admin_, "email_email_get_list", array(0 => array("per_page" => "20", "client_id" => $this->getAttribute($_client_, "id"))), "method"); // line 595 echo " "; if (isset($context["emails"])) { $_emails_ = $context["emails"]; } else { $_emails_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_emails_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["email"]) { // line 596 echo " <tr>\n <td>"; // line 597 if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_email_, "subject"), "html", null, true); echo "</td>\n <td>"; // line 598 if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_email_, "recipients"), "html", null, true); echo "</td>\n <td>"; // line 599 if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_email_, "created_at"), "l, d F Y"), "html", null, true); echo "</td>\n <td class=\"actions\"><a class=\"bb-button btn14\" href=\""; // line 600 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("email"); echo "/"; if (isset($context["email"])) { $_email_ = $context["email"]; } else { $_email_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_email_, "id"), "html", null, true); echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a></td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 603 echo " <tr>\n <td colspan=\"4\">"; // line 604 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['email'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 607 echo " </tbody>\n </table>\n "; // line 609 if (isset($context["emails"])) { $_emails_ = $context["emails"]; } else { $_emails_ = null; } $this->env->loadTemplate("partial_pagination.phtml")->display(array_merge($context, array("list" => $_emails_))); // line 610 echo " </div>\n\n <div class=\"tab_content nopadding\" id=\"tab-transactions\">\n <div class=\"help\">\n <h3>"; // line 614 echo gettext("Transactions received"); echo "</h3>\n </div>\n\n "; // line 617 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["client"])) { $_client_ = $context["client"]; } else { $_client_ = null; } $context["transactions"] = $this->getAttribute($this->getAttribute($_admin_, "invoice_transaction_get_list", array(0 => array("client_id" => $this->getAttribute($_client_, "id"), "per_page" => 100)), "method"), "list"); // line 618 echo " <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <th>"; // line 621 echo gettext("ID"); echo "</th>\n <th>"; // line 622 echo gettext("Type"); echo "</th>\n <th>"; // line 623 echo gettext("Gateway"); echo "</th>\n <th>"; // line 624 echo gettext("Amount"); echo "</th>\n <th>"; // line 625 echo gettext("Status"); echo "</th>\n <th>"; // line 626 echo gettext("Date"); echo "</th>\n <th> </th>\n </tr>\n </thead>\n\n <tbody>\n "; // line 632 if (isset($context["transactions"])) { $_transactions_ = $context["transactions"]; } else { $_transactions_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($_transactions_); $context['_iterated'] = false; foreach ($context['_seq'] as $context["i"] => $context["tx"]) { // line 633 echo " <tr>\n <td>"; // line 634 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_tx_, "txn_id"), "html", null, true); echo "</td>\n <td>"; // line 635 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_tx_, "type"), "html", null, true); echo "</td>\n <td>"; // line 636 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_tx_, "gateway"), "html", null, true); echo "</td>\n <td>"; // line 637 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_tx_, "amount"), 1 => $this->getAttribute($_tx_, "currency")), "method"), "html", null, true); echo "</td>\n <td>"; // line 638 if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "status_name", array(0 => $this->getAttribute($_tx_, "status")), "method"), "html", null, true); echo "</td>\n <td>"; // line 639 if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_datetime($this->getAttribute($_tx_, "created_at")), "html", null, true); echo "</td>\n <td style=\"width: 5%\">\n <a class=\"bb-button btn14\" href=\""; // line 641 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("/invoice/transaction"); echo "/"; if (isset($context["tx"])) { $_tx_ = $context["tx"]; } else { $_tx_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_tx_, "id"), "html", null, true); echo "\"><img src=\"images/icons/dark/pencil.png\" alt=\"\"></a>\n </td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 645 echo " <tr>\n <td colspan=\"7\">"; // line 646 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['tx'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 649 echo " </tbody>\n </table>\n </div>\n </div>\n</div>\n\n\n"; // line 733 echo "\n"; }
public function block_body($context, array $blocks = array()) { $__internal_70dd0c3e603b08a7ee289888246413c1e79d8bea882365f91e9582286283718d = $this->env->getExtension("native_profiler"); $__internal_70dd0c3e603b08a7ee289888246413c1e79d8bea882365f91e9582286283718d->enter($__internal_70dd0c3e603b08a7ee289888246413c1e79d8bea882365f91e9582286283718d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body")); // line 24 echo " <!-- Two columns content -->\n <section class=\"container content\">\n <div class=\"row\">\n\n <!-- On Sale Products -->\n <section class=\"container content-row\">\n <p> </p>\n\n <div class=\"col-md-4\"><h3>Nos meilleurs offres </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></div>\n <div class=\"clearfix\"></div>\n\n <!-- Products list -->\n <div class=\"row\">\n <div class=\"product-carousel\">\n "; // line 39 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["products"]) ? $context["products"] : $this->getContext($context, "products")); foreach ($context['_seq'] as $context["_key"] => $context["product"]) { // line 40 echo "\n <div class=\"item\">\n <div class=\"product-preview\">\n <div class=\"preview animate scale\">\n <a href=\"#\" class=\"preview-image\">\n "; // line 45 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "medias", array())); foreach ($context['_seq'] as $context["_key"] => $context["media"]) { // line 46 echo " <img class=\"img-responsive animate scale\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["media"], "AssertPath", array()), "my_thumb_front_img_naturel"), "html", null, true); echo "\" width=\"270\" height=\"328\" alt=\"\">\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 48 echo " </a>\n <ul class=\"product-controls-list right\">\n <li><span class=\"label label-sale\">"; // line 50 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "solde"), "html", null, true); echo "</span></li>\n "; // line 51 $context["percents"] = 0; // line 52 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "promotions", array())); foreach ($context['_seq'] as $context["_key"] => $context["promo"]) { // line 53 echo " "; $context["percents"] = $this->getAttribute($context["promo"], "percent", array()); // line 54 echo " <li><span class=\"label\">-"; echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["promo"], "percent", array()), 0), "html", null, true); echo "%</span></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promo'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 56 echo " </ul>\n <ul class=\"product-controls-list right hide-right\">\n <li class=\"top-out\"></li>\n <li><a href=\"#\" class=\"cart\"><span class=\"icon-basket\"></span></a></li>\n </ul>\n </div>\n <div class=\"bg-shop-write\">\n <h3 class=\"title thumbnail-desc\">\n <a href=\"#\" width=\"150\">"; // line 64 echo twig_escape_filter($this->env, twig_truncate_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["product"], "name", array())), 200, true, "..."), "html", null, true); echo "</a>\n </h3>\n\n <span class=\"price old\" style=\"display: inline-block\">\n "; // line 68 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["product"], "PriceStandard", array()), 0, ",", "."), "html", null, true); echo " FCFA\n </span> <br/>\n <span class=\"price new\" style=\"display: inline-block\">\n "; // line 71 $context["price"] = $this->getAttribute($context["product"], "PriceStandard", array()) - $this->getAttribute($context["product"], "PriceStandard", array()) * ((isset($context["percents"]) ? $context["percents"] : $this->getContext($context, "percents")) / 100); // line 72 echo " "; echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["price"]) ? $context["price"] : $this->getContext($context, "price"), 0, ",", "."), "html", null, true); echo " FCFA\n </span>\n <p> </p>\n <div class=\"thumbnail-sub\">\n <a href=\"#\">"; // line 76 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["product"], "section", array()), "name", array()), "html", null, true); echo "</a><br/>\n "; // line 77 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "marks", array())); foreach ($context['_seq'] as $context["_key"] => $context["mk"]) { // line 78 echo " <span>- <a href=\"#\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["mk"], "name", array()), "html", null, true); echo "</a></span>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mk'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 80 echo " </div>\n <p> </p>\n <div>\n "; // line 83 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "promotions", array())); foreach ($context['_seq'] as $context["_key"] => $context["promoEnd"]) { // line 84 echo " <strong> Offre valable jusqu'au :</strong> <span class=\"label label-danger\" style=\"font-weight: bold; color: #fff;\">"; echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["promoEnd"], "end", array()), "d-m-Y"), "html", null, true); echo "</span>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promoEnd'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 86 echo " </div>\n </div>\n </div>\n </div>\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 92 echo "\n </div>\n <!-- product view ajax container -->\n <div class=\"product-view-ajax-container\"> </div>\n <!-- //end product view ajax container -->\n </div>\n <!-- //end Products list -->\n </section>\n\n "; // line 101 echo $this->env->getExtension('actions')->renderUri($this->env->getExtension('http_kernel')->controller("LabsFrontBundle:Default:getSidebarInfo"), array()); // line 102 echo "\n <!-- Right column -->\n <section class=\"col-sm-8 col-md-9 col-lg-9 content-center\">\n\n <section>\n <div class=\"col-md-4\"><h3> "; // line 107 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "Nouvelles Arrivages"), "html", null, true); echo " </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Afficher Tout </a></div>\n <p> </p>\n <div class=\"clearfix\"></div>\n\n <!-- Products list -->\n <div class=\"row products-list\">\n "; // line 114 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["newsproducts"]) ? $context["newsproducts"] : $this->getContext($context, "newsproducts")); foreach ($context['_seq'] as $context["_key"] => $context["news"]) { // line 115 echo " <div class=\"product-preview owl-item\">\n <div class=\"preview animate scale bg-shop\">\n <a href=\"#\" class=\"preview-image\">\n "; // line 118 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["news"], "medias", array())); foreach ($context['_seq'] as $context["_key"] => $context["media"]) { // line 119 echo " <img class=\"img-responsive animate scale\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["media"], "AssertPath", array()), "my_thumb_front_img_naturel"), "html", null, true); echo "\" width=\"270\" height=\"328\" alt=\"\">\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 121 echo " </a>\n <ul class=\"product-controls-list\">\n <li><span class=\"label label-sale\">"; // line 123 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "new"), "html", null, true); echo "</span></li>\n </ul>\n <ul class=\"product-controls-list right hide-right\">\n <li class=\"top-out\"></li>\n <li><a href=\"#\" class=\"cart\"><span class=\"icon-basket\"></span></a></li>\n </ul>\n <div class=\"quick-view visible-xs\"> <span class=\"rating\"> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-empty\"></i> </span></div>\n </div>\n <div class=\"bg-shop-write\">\n <h5 class=\"small-visual-category--title\"><a href=\"#\">"; // line 132 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["news"], "name", array())), "html", null, true); echo "</a></h5>\n <span class=\"price new\" style=\"display: inline-block\">\n "; // line 134 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["news"], "PriceStandard", array()), 0, ",", "."), "html", null, true); echo " FCFA\n </span><br/>\n <p> </p>\n <div class=\"thumbnail-sub\">\n <a href=\"#\">"; // line 138 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["news"], "section", array()), "name", array()), "html", null, true); echo "</a><br/>\n "; // line 139 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["news"], "marks", array())); foreach ($context['_seq'] as $context["_key"] => $context["mk"]) { // line 140 echo " <span>- <a href=\"#\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["mk"], "name", array()), "html", null, true); echo "</a></span>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mk'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 142 echo " </div>\n <p> </p>\n <strong class=\"title\">Livraison offerte <span class=\"price new\">(*)</span></strong><br/>\n <strong></strong>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['news'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 149 echo " </div>\n <!-- //end Products list -->\n\n <!-- Product view compact -->\n <div class=\"product-view-ajax\">\n <div class=\"ajax-loader progress progress-striped active\">\n <div class=\"progress-bar progress-bar-danger\" role=\"progressbar\"></div>\n </div>\n <div class=\"layar\"></div>\n <div class=\"product-view-container\">\n </div>\n </div>\n <!-- //end Product view compact -->\n\n </section>\n\n <section>\n <p> </p>\n <div class=\"col-md-6\"><h3> "; // line 167 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "par catégorie"), "html", null, true); echo "</h3></div>\n <div class=\"col-sm-offset-4 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Afficher Tout </a></div>\n <p> </p>\n <div class=\"clearfix\"></div>\n\n <!-- Products list -->\n <div class=\"row products-list\">\n "; // line 174 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["cats"]) ? $context["cats"] : $this->getContext($context, "cats")); foreach ($context['_seq'] as $context["_key"] => $context["cat"]) { // line 175 echo " <div class=\"product-preview owl-item\">\n <div class=\"preview animate scale bg-shop\">\n <a href=\"#\" class=\"preview-image\">\n <img class=\"img-responsive animate scale\" src=\""; // line 178 echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["cat"], "AssertPath", array()), "my_thumb_front_img_naturel"), "html", null, true); echo "\" width=\"165\" height=\"140\" alt=\"\">\n </a>\n </div>\n <div class=\"bg-shop-write\">\n <h5 class=\"big-visual-category--title\"><a href=\"#\">"; // line 182 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["cat"], "name", array())), "html", null, true); echo "</a></h5>\n <ul class=\"styled-list arrow\" style=\"text-align: left;\">\n "; // line 184 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["cat"], "sections", array())); foreach ($context['_seq'] as $context["_key"] => $context["section"]) { // line 185 echo " <li><strong><a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("labs_front_listing", array("id" => $this->getAttribute($context["section"], "id", array()), "slug" => $this->getAttribute($context["section"], "slug", array()))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["section"], "name", array()), "html", null, true); echo "</a></strong></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 187 echo " </ul>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 191 echo " </div>\n <!-- //end Products list -->\n\n <!-- Product view compact -->\n <div class=\"product-view-ajax\">\n <div class=\"ajax-loader progress progress-striped active\">\n <div class=\"progress-bar progress-bar-danger\" role=\"progressbar\"></div>\n </div>\n <div class=\"layar\"></div>\n <div class=\"product-view-container\">\n </div>\n </div>\n <!-- //end Product view compact -->\n\n </section>\n\n <!-- Brands -->\n <section>\n\n <p> </p>\n <div class=\"col-md-4\"><h3> "; // line 211 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "nos marques"), "html", null, true); echo " </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></div>\n <div class=\"clearfix\"></div>\n <hr>\n <!-- mark list -->\n <div class=\"row products-list\">\n "; // line 217 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["marks"]) ? $context["marks"] : $this->getContext($context, "marks")); foreach ($context['_seq'] as $context["_key"] => $context["mark"]) { // line 218 echo " <div class=\"product-preview col-sm-3\">\n <div class=\"preview animate scale bg-shop\" style=\"width: 150px; height: 56px;\">\n <a href=\"#\" class=\"preview-image\">\n <img class=\"img-responsive animate scale\" src=\""; // line 221 echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["mark"], "AssertPath", array()), "my_thumb_out_page"), "html", null, true); echo "\" width=\"150\" height=\"56\" alt=\"\">\n </a>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mark'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 226 echo " </div>\n <div class=\"clearfix\"></div>\n <!-- //end mark list -->\n\n </section>\n <hr>\n <!-- //end Brands -->\n\n </section>\n <!-- //end Right column -->\n\n </div>\n </section>\n"; $__internal_70dd0c3e603b08a7ee289888246413c1e79d8bea882365f91e9582286283718d->leave($__internal_70dd0c3e603b08a7ee289888246413c1e79d8bea882365f91e9582286283718d_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 if (isset($context["header"])) { $_header_ = $context["header"]; } else { $_header_ = null; } if ($_header_) { // line 2 echo "<div class=\"help\">\n <h5>"; // line 3 if (isset($context["header"])) { $_header_ = $context["header"]; } else { $_header_ = null; } echo twig_escape_filter($this->env, $_header_, "html", null, true); echo "</h5>\n</div>\n"; } // line 6 echo "<table class=\"tableStatic wide\">\n <thead>\n <tr>\n <td> </td>\n <td style=\"width: 30%\">Extension</td>\n <td>Description</td>\n <td width=\"18%\"> </td>\n </tr>\n </thead>\n\n <tbody>\n "; // line 17 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if (isset($context["type"])) { $_type_ = $context["type"]; } else { $_type_ = null; } $context["extensions"] = $this->getAttribute($_admin_, "extension_get_latest", array(0 => array("type" => $_type_)), "method"); // line 18 echo " "; if (isset($context["extensions"])) { $_extensions_ = $context["extensions"]; } else { $_extensions_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($_extensions_); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["extension"]) { // line 19 echo " <tr>\n <td><img src=\""; // line 20 if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "icon_url"), "html", null, true); echo "\" alt=\""; if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "name"), "html", null, true); echo "\" style=\"width: 32px; height: 32px;\"/></td>\n <td>\n <a class=\"bb-button\" href=\""; // line 22 if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "project_url"), "html", null, true); echo "\" target=\"_blank\" title=\"View extension details\">"; if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_extension_, "name"), 40), "html", null, true); echo " "; if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "version"), "html", null, true); echo "</a>\n <br/>by <a href=\""; // line 23 if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "author_url"), "html", null, true); echo "\" target=\"_blank\">"; if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "author"), "html", null, true); echo "</a>\n </td>\n <td>"; // line 25 if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_extension_, "description"), 150), "html", null, true); echo "</td>\n <td class=\"actions\">\n <a class=\"bb-button btn14 api-link\" data-api-confirm=\"By installing '"; // line 27 if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "name"), "html", null, true); echo "' you agree with terms and conditions. Install only extensions you trust. Continue?\" data-api-reload=\"1\" href=\""; if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/admin/extension/install", array("type" => $this->getAttribute($_extension_, "type"), "id" => $this->getAttribute($_extension_, "id"))); echo "\" title=\"Install extension\"><img src=\"images/icons/dark/cog.png\" alt=\"\"></a>\n <a class=\"bb-button btn14\" href=\""; // line 28 if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "project_url"), "html", null, true); echo "\" target=\"_blank\" title=\"Details\"><img src=\"images/icons/dark/globe.png\" alt=\"\"></a>\n <a class=\"bb-button btn14\" href=\""; // line 29 if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "download_url"), "html", null, true); echo "\" title=\"Download "; if (isset($context["extension"])) { $_extension_ = $context["extension"]; } else { $_extension_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_extension_, "name"), "html", null, true); echo "\"><img src=\"images/icons/dark/download.png\" alt=\"\"></a>\n </td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 33 echo " <tr>\n <td colspan=\"4\" class=\"aligncenter\"><a href=\"http://extensions.boxbilling.com/\" target=\"_blank\">Explore BoxBilling extensions</a></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 37 echo " </tbody>\n <tfoot>\n <tr>\n <td colspan=\"4\"></td>\n </tr>\n </tfoot>\n\n</table>"; }
public function block_content($context, array $blocks = array()) { // line 6 echo "\n"; // line 7 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_admin_, "system_messages", array(0 => array("type" => "info")), "method")); $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["msg"]) { // line 8 echo "<div class=\"nNote nInformation hideit "; if (isset($context["loop"])) { $_loop_ = $context["loop"]; } else { $_loop_ = null; } if ($this->getAttribute($_loop_, "first")) { echo "first"; } echo "\">\n <p><strong>"; // line 9 echo gettext("INFORMATION"); echo ": </strong>"; if (isset($context["msg"])) { $_msg_ = $context["msg"]; } else { $_msg_ = null; } echo twig_escape_filter($this->env, $_msg_, "html", null, true); echo "</p>\n</div>\n"; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['msg'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 12 echo "\n"; // line 13 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if ($this->getAttribute($_admin_, "system_is_allowed", array(0 => array("mod" => "stats")), "method")) { // line 14 echo "<div class=\"widget\">\n <div class=\"head\"><h5><i class=\"dark-sprite-icon sprite-chart8\" style=\"margin: 0 15px 0 -15px\"></i>"; // line 15 if (isset($context["guest"])) { $_guest_ = $context["guest"]; } else { $_guest_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_guest_, "system_company"), "name"), "html", null, true); echo " "; echo gettext("Statistics"); echo "</h5></div>\n "; // line 16 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } $context["stats"] = $this->getAttribute($_admin_, "stats_get_summary"); // line 17 echo " "; if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } $context["income"] = $this->getAttribute($_admin_, "stats_get_summary_income"); // line 18 echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"tableStatic\">\n <thead>\n <tr>\n <td width=\"10%\">"; // line 21 echo gettext("Metric"); echo "</td>\n <td>"; // line 22 echo gettext("Today"); echo "</td>\n <td>"; // line 23 echo gettext("Yesterday"); echo "</td>\n <td>"; // line 24 echo gettext("This month so far"); echo "</td>\n <td>"; // line 25 echo gettext("Last month"); echo "</td>\n <td>"; // line 26 echo gettext("Total"); echo "</td>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td>"; // line 32 echo gettext("Income"); echo "</td>\n <td align=\"center\"><a href=\""; // line 33 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice", array("paid_at" => twig_date_format_filter($this->env, "now", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["income"])) { $_income_ = $context["income"]; } else { $_income_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_income_, "today")), "method"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 34 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice", array("paid_at" => twig_date_format_filter($this->env, "yesterday", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["income"])) { $_income_ = $context["income"]; } else { $_income_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_income_, "yesterday")), "method"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 35 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["income"])) { $_income_ = $context["income"]; } else { $_income_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_income_, "this_month")), "method"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 36 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["income"])) { $_income_ = $context["income"]; } else { $_income_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_income_, "last_month")), "method"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 37 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["mf"])) { $_mf_ = $context["mf"]; } else { $_mf_ = null; } if (isset($context["income"])) { $_income_ = $context["income"]; } else { $_income_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_mf_, "currency_format", array(0 => $this->getAttribute($_income_, "total")), "method"), "html", null, true); echo "</a></td>\n </tr>\n <tr>\n <td>"; // line 40 echo gettext("Clients"); echo "</td>\n <td align=\"center\"><a href=\""; // line 41 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client", array("created_at" => twig_date_format_filter($this->env, "now", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "clients_today"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 42 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client", array("created_at" => twig_date_format_filter($this->env, "yesterday", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "clients_yesterday"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 43 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "clients_this_month"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 44 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "clients_last_month"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 45 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "clients_total"), "html", null, true); echo "</a></td>\n </tr>\n <tr>\n <td>"; // line 48 echo gettext("Orders"); echo "</td>\n <td align=\"center\"><a href=\""; // line 49 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order", array("created_at" => twig_date_format_filter($this->env, "now", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "orders_today"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 50 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order", array("created_at" => twig_date_format_filter($this->env, "yesterday", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "orders_yesterday"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 51 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "orders_this_month"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 52 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "orders_last_month"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 53 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "orders_total"), "html", null, true); echo "</a></td>\n </tr>\n <tr>\n <td>"; // line 56 echo gettext("Invoices"); echo "</td>\n <td align=\"center\"><a href=\""; // line 57 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice", array("created_at" => twig_date_format_filter($this->env, "now", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "invoices_today"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 58 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice", array("created_at" => twig_date_format_filter($this->env, "yesterday", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "invoices_yesterday"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 59 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "invoices_this_month"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 60 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "invoices_last_month"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 61 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("invoice"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "invoices_total"), "html", null, true); echo "</a></td>\n </tr>\n <tr>\n <td>"; // line 64 echo gettext("Tickets"); echo "</td>\n <td align=\"center\"><a href=\""; // line 65 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("support", array("created_at" => twig_date_format_filter($this->env, "now", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "tickets_today"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 66 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("support", array("created_at" => twig_date_format_filter($this->env, "yesterday", "Y-m-d"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "tickets_yesterday"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 67 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("support"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "tickets_this_month"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 68 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("support"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "tickets_last_month"), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 69 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("support"); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["stats"])) { $_stats_ = $context["stats"]; } else { $_stats_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_stats_, "tickets_total"), "html", null, true); echo "</a></td>\n </tr>\n </tbody>\n </table>\n</div>\n"; } // line 75 echo "\n"; // line 76 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } $context["orders"] = $this->getAttribute($_admin_, "order_get_list", array(0 => array("per_page" => "5", "status" => "active")), "method"); // line 77 if (isset($context["orders"])) { $_orders_ = $context["orders"]; } else { $_orders_ = null; } if (twig_length_filter($this->env, $this->getAttribute($_orders_, "list")) > 0) { // line 78 echo "<div class=\"widgets\">\n <div class=\"left\">\n <div class=\"widget\">\n <div class=\"head\">\n <h5 class=\"iMoney\">"; // line 82 echo gettext("Latest orders"); echo "</h5>\n <div class=\"num\"><a href=\""; // line 83 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order"); echo "\" class=\"greenNum\">+"; if (isset($context["orders"])) { $_orders_ = $context["orders"]; } else { $_orders_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_orders_, "total"), "html", null, true); echo "</a></div>\n </div>\n <div style=\"height: 221px; overflow: auto;\">\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <td>"; // line 89 echo gettext("Order"); echo "</td>\n <td>"; // line 90 echo gettext("Client"); echo "</td>\n </tr>\n </thead>\n <tbody>\n "; // line 94 if (isset($context["orders"])) { $_orders_ = $context["orders"]; } else { $_orders_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_orders_, "list")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["order"]) { // line 95 echo " <tr title=\""; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, twig_timeago_filter($this->getAttribute($_order_, "created_at")), "html", null, true); echo " ago\">\n <td><a href=\""; // line 96 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order/manage"); echo "/"; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_order_, "id"), "html", null, true); echo "\">"; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_order_, "title"), 35), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 97 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_order_, "client_id"), "html", null, true); echo "\" title=\"\">"; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute($_order_, "client"), "first_name"), 1, null, "."), "html", null, true); echo " "; if (isset($context["order"])) { $_order_ = $context["order"]; } else { $_order_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_order_, "client"), "last_name"), "html", null, true); echo "</a></td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 100 echo " <tr>\n <td colspan=\"2\" align=\"center\">"; // line 101 echo gettext("The list is empty"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['order'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 104 echo " </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div class=\"right\">\n <div class=\"widget\">\n <div class=\"head\">\n <h5 class=\"iGraph\">"; // line 113 echo gettext("Product sales"); echo "</h5>\n </div>\n <div style=\"height: 221px; overflow: auto;\">\n <table class=\"tableStatic wide\">\n <thead>\n <tr>\n <td>"; // line 119 echo gettext("Product/Service"); echo "</td>\n <td>"; // line 120 echo gettext("Orders"); echo "</td>\n </tr>\n </thead>\n <tbody>\n "; // line 124 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_admin_, "stats_get_product_summary")); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["p"]) { // line 125 echo " <tr>\n <td><a href=\""; // line 126 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("product/manage"); echo "/"; if (isset($context["p"])) { $_p_ = $context["p"]; } else { $_p_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_p_, "id"), "html", null, true); echo "\" title=\""; if (isset($context["p"])) { $_p_ = $context["p"]; } else { $_p_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_p_, "title"), "html", null, true); echo "\">"; if (isset($context["p"])) { $_p_ = $context["p"]; } else { $_p_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_p_, "title"), 35), "html", null, true); echo "</a></td>\n <td align=\"center\"><a href=\""; // line 127 if (isset($context["p"])) { $_p_ = $context["p"]; } else { $_p_ = null; } echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("order", array("product_id" => $this->getAttribute($_p_, "id"))); echo "\" title=\"\" class=\"webStatsLink\">"; if (isset($context["p"])) { $_p_ = $context["p"]; } else { $_p_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_p_, "orders"), "html", null, true); echo "</a></td>\n </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 130 echo " <tr>\n <td colspan=\"2\" align=\"center\">"; // line 131 echo gettext("No active orders available"); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 134 echo " </tbody>\n </table>\n </div>\n </div>\n </div>\n <div class=\"fix\"></div>\n</div>\n"; } // line 142 echo "\n"; // line 143 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if ($this->getAttribute($_admin_, "system_is_allowed", array(0 => array("mod" => "stats")), "method")) { // line 144 echo "<div class=\"widget\">\n <div class=\"head\">\n <h5><i class=\"dark-sprite-icon sprite-dropper\" style=\"margin: 0 15px 0 -15px\"></i>"; // line 146 echo gettext("Define date interval for graphs"); echo "</h5>\n </div>\n <form method=\"get\" action=\"\" class=\"mainForm\">\n <input type=\"hidden\" name=\"_url\" value=\""; // line 149 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_request_, "_url"), "html", null, true); echo "\" />\n <fieldset>\n <div class=\"rowElem noborder\">\n <div class=\"moreFields\">\n <ul>\n <li style=\"width: 100px\"><input type=\"text\" name=\"date_from\" value=\""; // line 154 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } if ($this->getAttribute($_request_, "date_from")) { if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_request_, "date_from"), "Y-m-d"), "html", null, true); } echo "\" placeholder=\""; if (isset($context["now"])) { $_now_ = $context["now"]; } else { $_now_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $_now_, "Y-m-d"), "html", null, true); echo "\" class=\"datepicker\"/></li>\n <li class=\"sep\">-</li>\n <li style=\"width: 100px\"><input type=\"text\" name=\"date_to\" value=\""; // line 156 if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } if ($this->getAttribute($_request_, "date_to")) { if (isset($context["request"])) { $_request_ = $context["request"]; } else { $_request_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($_request_, "date_to"), "Y-m-d"), "html", null, true); } echo "\" placeholder=\""; if (isset($context["now"])) { $_now_ = $context["now"]; } else { $_now_ = null; } echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $_now_, "Y-m-d"), "html", null, true); echo "\" class=\"datepicker\"/></li>\n <li class=\"sep\" style=\"padding-top: 0px\"><input type=\"submit\" value=\""; // line 157 echo gettext("Update graphs"); echo "\" class=\"greyishBtn\" /></li>\n </ul>\n </div>\n <div class=\"fix\"></div>\n </div>\n </fieldset>\n </form>\n</div>\n\n<div class=\"widget\">\n <div class=\"head\">\n <h5><i class=\"dark-sprite-icon sprite-graph\" style=\"margin: 0 15px 0 -15px\"></i>"; // line 168 echo gettext("Income"); echo "</h5>\n </div>\n <div class=\"body\">\n <div id=\"graph-income\" style=\"width: 100%; height: 200px;\"></div>\n </div>\n</div>\n\n<div class=\"widget\">\n <div class=\"head\">\n <h5><i class=\"dark-sprite-icon sprite-graph\" style=\"margin: 0 15px 0 -15px\"></i>"; // line 177 echo gettext("Orders"); echo "</h5>\n </div>\n <div class=\"body\">\n <div id=\"graph-orders\" style=\"width: 100%; height: 200px;\"></div>\n </div>\n</div>\n\n<div class=\"widget\">\n <div class=\"head\">\n <h5><i class=\"dark-sprite-icon sprite-graph\" style=\"margin: 0 15px 0 -15px\"></i>"; // line 186 echo gettext("Invoices"); echo "</h5>\n </div>\n <div class=\"body\">\n <div id=\"graph-invoice\" style=\"width: 100%; height: 200px;\"></div>\n </div>\n</div>\n\n<div class=\"widget\">\n <div class=\"head\">\n <h5><i class=\"dark-sprite-icon sprite-graph\" style=\"margin: 0 15px 0 -15px\"></i>"; // line 195 echo gettext("Clients"); echo "</h5>\n </div>\n <div class=\"body\">\n <div id=\"graph-clients\" style=\"width: 100%; height: 200px;\"></div>\n </div>\n</div>\n\n<div class=\"widget\">\n <div class=\"head\">\n <h5><i class=\"dark-sprite-icon sprite-graph\" style=\"margin: 0 15px 0 -15px\"></i>"; // line 204 echo gettext("Support tickets"); echo "</h5>\n </div>\n <div class=\"body\">\n <div id=\"graph-tickets\" style=\"width: 100%; height: 200px;\"></div>\n </div>\n</div>\n"; } // line 211 echo "\n"; // line 212 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } if ($this->getAttribute($_admin_, "system_is_allowed", array(0 => array("mod" => "activity")), "method")) { // line 213 echo "<div class=\"widget simpleTabs\">\n <ul class=\"tabs\">\n <li><a href=\"#tab-index\">"; // line 215 echo gettext("Recent clients activity"); echo "</a></li>\n <li><a href=\"#tab-staff\">"; // line 216 echo gettext("Recent staff activity"); echo "</a></li>\n </ul>\n\n <div class=\"tabs_container\">\n <div class=\"fix\"></div>\n\n <div class=\"tab_content nopadding\" id=\"tab-index\">\n <table class=\"tableStatic wide\">\n <tbody>\n "; // line 225 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } $context["events"] = $this->getAttribute($_admin_, "activity_log_get_list", array(0 => array("per_page" => 10, "only_clients" => 1)), "method"); // line 226 echo " "; if (isset($context["events"])) { $_events_ = $context["events"]; } else { $_events_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_events_, "list")); $context['_iterated'] = false; $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["i"] => $context["event"]) { // line 227 echo " <tr "; if (isset($context["loop"])) { $_loop_ = $context["loop"]; } else { $_loop_ = null; } if ($this->getAttribute($_loop_, "first")) { echo "class=\"noborder\""; } echo ">\n <td style=\"width: 5%\"><a href=\""; // line 228 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "client"), "id"), "html", null, true); echo "\" title=\""; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "client"), "name"), "html", null, true); echo "\"><img src=\""; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, twig_gravatar_filter($this->getAttribute($this->getAttribute($_event_, "client"), "email")), "html", null, true); echo "?size=20\" alt=\""; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "client"), "name"), "html", null, true); echo "\" /></a></td>\n <td>"; // line 229 if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "client"), "name"), 40), "html", null, true); echo "</td>\n <td><a href=\""; // line 230 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("client/manage"); echo "/"; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "client"), "id"), "html", null, true); echo "\">"; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_event_, "message"), 50), "html", null, true); echo "</a></td>\n <td>"; // line 231 if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, twig_timeago_filter($this->getAttribute($_event_, "created_at")), "html", null, true); echo " ago</td>\n </tr>\n </tbody>\n\n "; $context['_iterated'] = true; ++$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']; } } if (!$context['_iterated']) { // line 236 echo " <tbody>\n <tr class=\"noborder\">\n <td colspan=\"4\">\n "; // line 239 echo gettext("The list is empty"); // line 240 echo " </td>\n </tr>\n </tbody>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['event'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 244 echo " </table>\n </div>\n \n <div class=\"tab_content nopadding\" id=\"tab-staff\">\n <table class=\"tableStatic wide\">\n <tbody>\n "; // line 250 if (isset($context["admin"])) { $_admin_ = $context["admin"]; } else { $_admin_ = null; } $context["events"] = $this->getAttribute($_admin_, "activity_log_get_list", array(0 => array("per_page" => 10, "only_staff" => 1)), "method"); // line 251 echo " "; if (isset($context["events"])) { $_events_ = $context["events"]; } else { $_events_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($_events_, "list")); $context['_iterated'] = false; $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["i"] => $context["event"]) { // line 252 echo " <tr "; if (isset($context["loop"])) { $_loop_ = $context["loop"]; } else { $_loop_ = null; } if ($this->getAttribute($_loop_, "first")) { echo "class=\"noborder\""; } echo ">\n <td style=\"width: 5%\"><a href=\""; // line 253 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("staff/manage"); echo "/"; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "staff"), "id"), "html", null, true); echo "\" title=\""; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "staff"), "name"), "html", null, true); echo "\"><img src=\""; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, twig_gravatar_filter($this->getAttribute($this->getAttribute($_event_, "staff"), "email")), "html", null, true); echo "?size=20\" alt=\""; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "staff"), "name"), "html", null, true); echo "\" /></a></td>\n <td>"; // line 254 if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "staff"), "name"), "html", null, true); echo "</td>\n <td><a href=\""; // line 255 echo $this->env->getExtension('bb')->twig_bb_admin_link_filter("staff/manage"); echo "/"; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_event_, "staff"), "id"), "html", null, true); echo "\">"; if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_event_, "message"), 50), "html", null, true); echo "</a></td>\n <td>"; // line 256 if (isset($context["event"])) { $_event_ = $context["event"]; } else { $_event_ = null; } echo twig_escape_filter($this->env, twig_timeago_filter($this->getAttribute($_event_, "created_at")), "html", null, true); echo " ago</td>\n </tr>\n </tbody>\n\n "; $context['_iterated'] = true; ++$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']; } } if (!$context['_iterated']) { // line 261 echo " <tbody>\n <tr class=\"noborder\">\n <td colspan=\"4\">\n "; // line 264 echo gettext("The list is empty"); // line 265 echo " </td>\n </tr>\n </tbody>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['event'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 269 echo " </table>\n </div>\n\n </div>\n \n <div class=\"fix\"></div>\n</div>\n"; } // line 277 echo "\n"; }
public function block_body($context, array $blocks = array()) { $__internal_ac8318d350a253de078f1914998a729dc90df41f4ab38af764665768b650924a = $this->env->getExtension("native_profiler"); $__internal_ac8318d350a253de078f1914998a729dc90df41f4ab38af764665768b650924a->enter($__internal_ac8318d350a253de078f1914998a729dc90df41f4ab38af764665768b650924a_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body")); // line 4 echo " <section class=\"container\">\n <nav class=\"breadcrumbs\">\n <a href=\""; // line 6 echo $this->env->getExtension('routing')->getPath("labs_front_homepage"); echo "\">Accueil</a>\n <span class=\"divider\">›</span>\n <a href=\""; // line 8 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("labs_front_pages", array("id" => $this->getAttribute(isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : $this->getContext($context, "breadcrumbs"), "GenreId", array()), "slug" => $this->getAttribute(isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : $this->getContext($context, "breadcrumbs"), "GenreSlug", array()))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : $this->getContext($context, "breadcrumbs"), "GenreName", array())), "html", null, true); echo "</a>\n <span class=\"divider\">›</span>\n <a href=\""; // line 10 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("labs_front_cat", array("id" => $this->getAttribute(isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : $this->getContext($context, "breadcrumbs"), "catId", array()), "slug" => $this->getAttribute(isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : $this->getContext($context, "breadcrumbs"), "catSlug", array()))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : $this->getContext($context, "breadcrumbs"), "catName", array())), "html", null, true); echo " </a>\n <span class=\"divider\">›</span>\n "; // line 12 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : $this->getContext($context, "breadcrumbs"), "secName", array())), "html", null, true); echo "\n </nav>\n </section>\n <!-- Two columns content -->\n <section class=\"container\">\n <div class=\"row\">\n\n <!-- Left column -->\n <aside class=\"col-sm-4 col-md-3 col-lg-3 content-aside\">\n\n <!-- Shop by categories -->\n <section>\n <h3>"; // line 24 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "Nos catégories"), "html", null, true); echo "</h3>\n\n <ul class=\"expander-list\">\n "; // line 27 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["sidebar"]) ? $context["sidebar"] : $this->getContext($context, "sidebar")); foreach ($context['_seq'] as $context["_key"] => $context["genre"]) { // line 28 echo " <li> <span class=\"name\"> <span class=\"expander\">-</span> <a href=\"#\"></a>"; echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["genre"], "nameview", array())), "html", null, true); echo " </span>\n <ul>\n "; // line 30 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["genre"], "categories", array())); foreach ($context['_seq'] as $context["_key"] => $context["cat"]) { // line 31 echo " <li> <span class=\"name\"> <span class=\"expander\">-</span> <a href=\"#\">"; echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["cat"], "name", array())), "html", null, true); echo "</a> </span>\n <ul>\n "; // line 33 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["cat"], "sections", array())); foreach ($context['_seq'] as $context["_key"] => $context["sec"]) { // line 34 echo " <li><span class=\"name\"><a href=\"#\">"; echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["sec"], "name", array())), "html", null, true); echo "</a></span></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sec'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 36 echo " </ul>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 39 echo " </ul>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['genre'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 42 echo "\n <li> <span class=\"name\"> <span class=\"expander\">-</span> <a href=\"#\">E-shop Market</a> </span>\n <ul>\n "; // line 45 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["markets"]) ? $context["markets"] : $this->getContext($context, "markets")); foreach ($context['_seq'] as $context["_key"] => $context["market"]) { // line 46 echo " <li><span class=\"name\"> <a href=\"#\">"; echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["market"], "name", array())), "html", null, true); echo "</a> </span> </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['market'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 48 echo " </ul>\n </li>\n <li> <span class=\"name\"> <span class=\"expander\">-</span> <a href=\"#\">"; // line 50 echo "Bon plan CDJIDJI"; echo "</a> </span>\n <ul>\n "; // line 52 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["solde"]) ? $context["solde"] : $this->getContext($context, "solde")); foreach ($context['_seq'] as $context["_key"] => $context["categ"]) { // line 53 echo " <li>\n <span class=\"name\">\n "; // line 55 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["categ"], "promotions", array())); foreach ($context['_seq'] as $context["_key"] => $context["percent"]) { // line 56 echo " <span class=\"label label-mega\"> -"; echo twig_escape_filter($this->env, $this->getAttribute($context["percent"], "percent", array()), "html", null, true); echo "%</span>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['percent'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 58 echo " <a href=\"#\">"; echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["categ"], "name", array())), "html", null, true); echo "</a><br/>\n </span>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categ'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 62 echo " </ul>\n </li>\n\n </ul>\n </section>\n <!-- //end Shop by categories -->\n\n <!-- Shop by -->\n <section>\n <h3>SHOP BY</h3>\n <p><strong>Category</strong></p>\n <ul class=\"simple-list\">\n <li><span class=\"m-icon m-icon-dress\"></span> <a href=\"listing.html\">Dresses (17)</a></li>\n <li><span class=\"m-icon m-icon-shirts\"></span> <a href=\"listing.html\">Shirts (6)</a></li>\n <li><span class=\"m-icon m-icon-coats\"></span> <a href=\"listing.html\">Coats (6)</a></li>\n <li><span class=\"m-icon m-icon-jackets\"></span> <a href=\"listing.html\">Jackets (6)</a></li>\n <li><span class=\"m-icon m-icon-shorts\"></span> <a href=\"listing.html\">Shorts (6)</a></li>\n <li><span class=\"m-icon m-icon-jeans\"></span> <a href=\"listing.html\">Jeans (6)</a></li>\n <li><span class=\"m-icon m-icon-skirts\"></span> <a href=\"listing.html\">Skirts (6)</a></li>\n <li><span class=\"m-icon m-icon-lingerie\"></span> <a href=\"listing.html\">Lingerie (6)</a></li>\n <li><span class=\"m-icon m-icon-tops\"></span> <a href=\"listing.html\">Tops (5)</a></li>\n </ul>\n <br>\n <p><strong>Color</strong></p>\n <ul class=\"simple-list\">\n <li><span class=\"icon-color icon-color-black\"></span> <a href=\"listing.html\">Black (1)</a></li>\n <li><span class=\"icon-color icon-color-blue\"></span> <a href=\"listing.html\">Blue (6)</a></li>\n <li><span class=\"icon-color icon-color-brown\"></span> <a href=\"listing.html\">Brown (2)</a></li>\n <li><span class=\"icon-color icon-color-gray\"></span> <a href=\"listing.html\">Gray (1)</a></li>\n <li><span class=\"icon-color icon-color-green\"></span> <a href=\"listing.html\">Green (5)</a></li>\n <li><span class=\"icon-color icon-color-magneta\"></span> <a href=\"listing.html\">Magneta (2)</a></li>\n <li><span class=\"icon-color icon-color-pink\"></span> <a href=\"listing.html\">Pink (5)</a></li>\n <li><span class=\"icon-color icon-color-red\"></span> <a href=\"listing.html\">Red (3)</a></li>\n <li><span class=\"icon-color icon-color-silver\"></span> <a href=\"listing.html\">Silver (1)</a></li>\n <li><span class=\"icon-color icon-color-white\"></span> <a href=\"listing.html\">White (2)</a></li>\n </ul>\n <br>\n <p><strong>Size</strong></p>\n <ul class=\"simple-list\">\n <li>– <a href=\"listing.html\">39 (2)</a></li>\n <li>– <a href=\"listing.html\">40 (1)</a></li>\n <li>– <a href=\"listing.html\">41 (8)</a></li>\n <li>– <a href=\"listing.html\">42 (3)</a></li>\n <li>– <a href=\"listing.html\">43 (7)</a></li>\n <li>– <a href=\"listing.html\">44 (12)</a></li>\n <li>– <a href=\"listing.html\">45 (6)</a></li>\n <li>– <a href=\"listing.html\">46 (2)</a></li>\n </ul>\n </section>\n <!-- //end Shop by -->\n\n <div class=\"section-divider\"></div>\n\n <!-- Popular tags -->\n <section class=\"cloud-tags\">\n <h3>POPULAR TAGS</h3>\n <a href=\"listing.html\" class=\"font-xs\">Camera</a> <a href=\"listing.html\" class=\"font-xxl\">Coats</a> <a href=\"listing.html\" class=\"font-lg\">Jackets</a> <a href=\"listing.html\" class=\"font-lg\">Jeans</a> <a href=\"listing.html\" class=\"font-lg\">Lingerie</a> <a href=\"listing.html\" class=\"font-lg\">Shirts</a> <a href=\"listing.html\" class=\"font-lg\">Shorts</a> <a href=\"listing.html\" class=\"font-lg\">Skirts</a> <a href=\"listing.html\" class=\"fonf-xl\">Tops</a> <a href=\"listing.html\" class=\"font-xxs\">Apple</a> <a href=\"listing.html\" class=\"font-md\">Awesome</a> <a href=\"listing.html\" class=\"font-xs\">Cool t-shirt</a> <a href=\"listing.html\" class=\"font-xs\">Dresses</a> <a href=\"listing.html\" class=\"font-xs\">Good laptop</a> <a href=\"listing.html\" class=\"font-xs\">Mobile</a> <a href=\"listing.html\" class=\"font-xs\">Nice notebook</a> <a href=\"listing.html\" class=\"font-xs\">Phone</a> </section>\n <!-- //end Popular tags -->\n\n <div class=\"section-divider\"></div>\n\n <!-- Compare products -->\n <section>\n <h3>COMPARE PRODUCTS</h3>\n <p>You have no items to compare.</p>\n </section>\n <!-- //end Compare products -->\n\n <div class=\"section-divider\"></div>\n\n <!-- Price -->\n <section>\n <h3>PRICE</h3>\n <div class=\"slider-range\">\n <div class=\"control\"></div>\n <div class=\"min\">\$<span class=\"value\">19</span></div>\n <div class=\"max\">\$<span class=\"value\">3000</span></div>\n </div>\n </section>\n <!-- //end Price -->\n\n <div class=\"section-divider\"></div>\n\n <!-- Community poll -->\n <section>\n <h3>COMMUNITY POLL</h3>\n <form role=\"form\">\n <p><strong>WHAT IS YOUR FAVORITE MAGENTO FEATURE?</strong></p>\n <div class=\"radio\">\n <label>\n <input type=\"radio\" name=\"optionsRadios\" id=\"optionsRadios1\" value=\"option1\" checked>\n Layered Navigation </label>\n </div>\n <div class=\"radio\">\n <label>\n <input type=\"radio\" name=\"optionsRadios\" id=\"optionsRadios2\" value=\"option2\">\n Price Rules </label>\n </div>\n <div class=\"radio\">\n <label>\n <input type=\"radio\" name=\"optionsRadios\" id=\"optionsRadios3\" value=\"option3\">\n Category Management </label>\n </div>\n <div class=\"radio\">\n <label>\n <input type=\"radio\" name=\"optionsRadios\" id=\"optionsRadios4\" value=\"option4\">\n Compare Products </label>\n </div>\n <button class=\"btn btn-mega\">Vote</button>\n </form>\n </section>\n <!-- //end Community poll -->\n\n </aside>\n <!-- //end Left column -->\n\n <!-- Right column -->\n <section class=\"col-sm-8 col-md-9 col-lg-9 content-center\">\n\n <!-- Slider -->\n <section class=\"owl-slider-outer slider-listing hidden-xs\" style=\"height:208px;\">\n <div class=\"owl-slider\" style=\"height:208px;\">\n "; // line 184 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["banner"]) ? $context["banner"] : $this->getContext($context, "banner")); foreach ($context['_seq'] as $context["_key"] => $context["ban"]) { // line 185 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["ban"], "banners", array())); foreach ($context['_seq'] as $context["_key"] => $context["media"]) { // line 186 echo " <div class=\"item\" style=\"height:208px;\">\n <img src=\""; // line 187 echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["media"], "AssertPath", array()), "thumb_section_banner"), "html", null, true); echo "\" alt=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["ban"], "name", array()), "html", null, true); echo "\" width=\"848\" height=\"208\">\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 190 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ban'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 191 echo " </div>\n </section>\n\n <!-- //end Slider -->\n\n <!-- Description -->\n <h3>"; // line 197 echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : $this->getContext($context, "breadcrumbs"), "secName", array())), "html", null, true); echo "</h3>\n <!-- //end Description -->\n\n\n <!-- Filters -->\n <div class=\"filters-panel\">\n <div class=\"row\">\n <div class=\"col-sm-6 col-md-4 col-lg-4\"> <!--Trier par-->\n <!--<div class=\"btn-group btn-select sort-select\"> <a href=\"#\" class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\"> <span class=\"value\">Position</span> <span class=\"caret min\"></span> </a>\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\" data-value=\"position\">Position</a></li>\n <li><a href=\"#\" data-value=\"rating\">Rating</a></li>\n <li><a href=\"#\" data-value=\"price\">Price</a></li>\n <li><a href=\"#\" data-value=\"dateAdded\">Date added</a></li>\n </ul>\n </div>-->\n <a href=\"#\" class=\"sort-select-arrow up\">\n <span class=\"up icon-arrow-up-3\"></span>\n <span class=\"down icon-arrow-down-3\"></span>\n </a>\n </div>\n <div class=\"col-md-4 col-lg-4 hidden-sm hidden-xs\">\n <div class=\"view-mode\">\n <a href=\"#\" class=\"view-grid\">\n <span class=\"icon-th\"></span>\n </a> <a href=\"#\" class=\"view-list\">\n <span class=\"icon-th-list\"></span>\n </a>\n </div>\n </div>\n <!--<div class=\"col-sm-6 col-md-4 col-lg-4 hidden-xs\">\n <div class=\"pull-right\"> Show\n <div class=\"btn-group btn-select perpage-select\"> <a href=\"#\" class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\"> <span class=\"value\">15</span> <span class=\"caret min\"></span> </a>\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\">30</a></li>\n <li><a href=\"#\">50</a></li>\n <li><a href=\"#\">100</a></li>\n <li><a href=\"#\">All</a></li>\n </ul>\n </div>\n per page </div>\n </div>-->\n </div>\n <div class=\"divider\"></div>\n <div class=\"pull-left hidden-xs\">Total Produits : "; // line 241 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["products"]) ? $context["products"] : $this->getContext($context, "products"), "getTotalItemCount", array()), "html", null, true); echo " </div>\n\n <div class=\"pull-right hidden-xs\">\n <div class=\"navigation\">\n "; // line 245 echo $this->env->getExtension('knp_pagination')->render($this->env, isset($context["products"]) ? $context["products"] : $this->getContext($context, "products")); echo "\n </div>\n </div>\n <div class=\"clearfix\"></div>\n </div>\n <!-- //end Filters -->\n\n\n <!-- Listing products -->\n <div class=\"products-list products-list-small row\">\n\n "; // line 256 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["products"]) ? $context["products"] : $this->getContext($context, "products")); foreach ($context['_seq'] as $context["_key"] => $context["prod"]) { // line 257 echo " <div class=\"product-preview\">\n <div class=\"preview animate scale\">\n <a href=\""; // line 259 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("labs_front_produits", array("id" => $this->getAttribute($context["prod"], "id", array()), "slug" => $this->getAttribute($context["prod"], "slug", array()))), "html", null, true); echo "\" class=\"preview-image\">\n "; // line 260 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["prod"], "medias", array())); foreach ($context['_seq'] as $context["_key"] => $context["media"]) { // line 261 echo " <img class=\"img-responsive animate scale\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["media"], "AssertPath", array()), "my_thumb_front_img_naturel"), "html", null, true); echo "\" width=\"270\" height=\"328\" alt=\"\">\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 263 echo " </a>\n <ul class=\"product-controls-list right hide-right\">\n <li class=\"top-out-small\"></li>\n <li><a href=\"#\" class=\"cart\"><span class=\"icon-basket\"></span></a></li>\n </ul>\n </div>\n <div class=\"bg-shop-write\">\n <h3 class=\"title thumbnail-desc\">\n <a href=\""; // line 271 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("labs_front_produits", array("id" => $this->getAttribute($context["prod"], "id", array()), "slug" => $this->getAttribute($context["prod"], "slug", array()))), "html", null, true); echo "\" class=\"preview-image\">"; echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($context["prod"], "name", array()), 50, true, " ")), "html", null, true); echo "</a>\n </h3>\n <span class=\"price\">"; // line 273 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["prod"], "PriceStandard", array()), 0, ",", "."), "html", null, true); echo " FCFA</span>\n <!--rating-->\n <div class=\"list_rating\"><span class=\"rating\"> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-empty\"></i> </span></div>\n <!--description-->\n <div class=\"list_description\"> "; // line 277 echo strip_tags(twig_truncate_filter($this->env, $this->getAttribute($context["prod"], "description", array()), 100, true, "...")); echo "</div>\n <!--buttons-->\n <div class=\"list_buttons\"> <a class=\"btn btn-mega pull-left\" href=\"#\">Ajouter au panier</a>\n <div class=\"add-to-links\">\n <ul>\n <li> <a href=\"#\"><i class=\"icon-heart\"></i></a> <a href=\"#\">Ajouter au favoris</a> </li>\n <!--<li> <a href=\"#\"><i class=\"icon-justice\"></i></a> <a href=\"#\">Add to Compare</a> </li>-->\n </ul>\n </div>\n </div>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['prod'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 290 echo "\n </div>\n <!-- //end Listing products -->\n\n <!-- Filters -->\n <div class=\"filters-panel hidden-xs\">\n <div class=\"row\">\n <div class=\"col-sm-6 col-md-4 col-lg-4\"> <!--Trier par-->\n <!-- <div class=\"btn-group btn-select sort-select\"> <a href=\"#\" class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\"> <span class=\"value\">Position</span> <span class=\"caret min\"></span> </a>\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\" data-value=\"position\">Position</a></li>\n <li><a href=\"#\" data-value=\"rating\">Rating</a></li>\n <li><a href=\"#\" data-value=\"price\">Price</a></li>\n <li><a href=\"#\" data-value=\"dateAdded\">Date added</a></li>\n </ul>\n </div>-->\n <a href=\"#\" class=\"sort-select-arrow up\"><span class=\"up icon-arrow-up-3\"></span><span class=\"down icon-arrow-down-3\"></span></a> </div>\n <div class=\"col-md-4 col-lg-4 hidden-sm hidden-xs\">\n <!-- <div class=\"view-mode\">\n <a href=\"#\" class=\"view-grid\">\n <span class=\"icon-th\"></span>\n </a> <a href=\"#\" class=\"view-list\">\n <span class=\"icon-th-list\"></span>\n </a>\n </div>-->\n </div>\n <div class=\"col-sm-6 col-md-4 col-lg-4 hidden-xs\">\n <!--<div class=\"pull-right\"> Show\n <div class=\"btn-group btn-select perpage-select\"> <a href=\"#\" class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\"> <span class=\"value\">15</span> <span class=\"caret min\"></span> </a>\n <ul class=\"dropdown-menu\">\n <li><a href=\"#\">30</a></li>\n <li><a href=\"#\">50</a></li>\n <li><a href=\"#\">100</a></li>\n <li><a href=\"#\">All</a></li>\n </ul>\n </div>\n per page </div>-->\n </div>\n </div>\n <div class=\"divider\"></div>\n <div class=\"pull-left hidden-xs\">Total Produits : "; // line 330 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["products"]) ? $context["products"] : $this->getContext($context, "products"), "getTotalItemCount", array()), "html", null, true); echo " </div>\n <div class=\"pull-right hidden-xs\">\n <div class=\"navigation\">\n "; // line 333 echo $this->env->getExtension('knp_pagination')->render($this->env, isset($context["products"]) ? $context["products"] : $this->getContext($context, "products")); echo "\n </div>\n </div>\n <div class=\"clearfix\"></div>\n </div>\n <!-- //end Filters -->\n\n </section>\n <!-- //end Right column -->\n\n </div>\n </section>\n <!-- //end Two columns content -->\n"; $__internal_ac8318d350a253de078f1914998a729dc90df41f4ab38af764665768b650924a->leave($__internal_ac8318d350a253de078f1914998a729dc90df41f4ab38af764665768b650924a_prof); }
/** * @dataProvider getTruncateTestData */ public function testTruncate($input, $length, $preserve, $separator, $expectedOutput) { $output = twig_truncate_filter($this->env, $input, $length, $preserve, $separator); $this->assertEquals($expectedOutput, $output); }
public function block_body($context, array $blocks = array()) { $__internal_bde41a0a8eac938d35318f876a58732d66062c53383cd52b2f2e6f0ea63d641e = $this->env->getExtension("native_profiler"); $__internal_bde41a0a8eac938d35318f876a58732d66062c53383cd52b2f2e6f0ea63d641e->enter($__internal_bde41a0a8eac938d35318f876a58732d66062c53383cd52b2f2e6f0ea63d641e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body")); // line 8 echo " <!-- brands market -->\n <!-- Brands -->\n <section class=\"container content-row\">\n <p> </p>\n <!-- On Sale Products -->\n <section class=\"container content-row\">\n <p> </p>\n\n <div class=\"col-md-4\"><h3>PROMOS : JUSQU' À - 30 % </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></div>\n <div class=\"clearfix\"></div>\n\n <!-- Products list -->\n <div class=\"row\">\n <div class=\"product-carousel\">\n "; // line 23 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["products"]) ? $context["products"] : $this->getContext($context, "products")); foreach ($context['_seq'] as $context["_key"] => $context["product"]) { // line 24 echo "\n <div class=\"item\">\n <div class=\"product-preview\">\n <div class=\"preview animate scale\">\n <a href=\"#\" class=\"preview-image\">\n "; // line 29 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "medias", array())); foreach ($context['_seq'] as $context["_key"] => $context["media"]) { // line 30 echo " <img class=\"img-responsive animate scale\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["media"], "AssertPath", array()), "my_thumb_front_img_naturel"), "html", null, true); echo "\" width=\"270\" height=\"328\" alt=\"\">\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 32 echo " </a>\n <ul class=\"product-controls-list right\">\n <li><span class=\"label label-sale\">"; // line 34 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "solde"), "html", null, true); echo "</span></li>\n "; // line 35 $context["percents"] = 0; // line 36 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "promotions", array())); foreach ($context['_seq'] as $context["_key"] => $context["promo"]) { // line 37 echo " "; $context["percents"] = $this->getAttribute($context["promo"], "percent", array()); // line 38 echo " <li><span class=\"label\">-"; echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["promo"], "percent", array()), 0), "html", null, true); echo "%</span></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promo'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 40 echo " </ul>\n <ul class=\"product-controls-list right hide-right\">\n <li class=\"top-out\"></li>\n <li><a href=\"#\" class=\"circle\"><span class=\"icon-heart\"></span></a></li>\n <li><a href=\"#\" class=\"circle\"><span class=\"icon-justice\"></span></a></li>\n <li><a href=\"#\" class=\"cart\"><span class=\"icon-basket\"></span></a></li>\n </ul>\n <a href=\"_ajax_view-product.html\" class=\"quick-view hidden-xs\"> <!--<span class=\"rating\"> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-empty\"></i> </span> --> <span class=\"icon-zoom-in-2\"></span> Aperçu </a>\n <!--<div class=\"quick-view visible-xs\"> <span class=\"rating\"> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-empty\"></i> </span></div>-->\n </div>\n <div class=\"bg-shop-write\">\n <h3 class=\"title\">\n <a href=\"#\" width=\"150\">"; // line 52 echo twig_escape_filter($this->env, twig_truncate_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["product"], "name", array())), 200, true, "..."), "html", null, true); echo "</a>\n </h3>\n\n <span class=\"price old\" style=\"display: inline-block\">\n "; // line 56 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["product"], "PriceStandard", array()), 0, ",", "."), "html", null, true); echo " FCFA\n </span> <br/>\n <span class=\"price new\" style=\"display: inline-block\">\n "; // line 59 $context["price"] = $this->getAttribute($context["product"], "PriceStandard", array()) - $this->getAttribute($context["product"], "PriceStandard", array()) * ((isset($context["percents"]) ? $context["percents"] : $this->getContext($context, "percents")) / 100); // line 60 echo " "; echo twig_escape_filter($this->env, twig_number_format_filter($this->env, isset($context["price"]) ? $context["price"] : $this->getContext($context, "price"), 0, ",", "."), "html", null, true); echo " FCFA\n </span>\n </div>\n </div>\n </div>\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 67 echo "\n </div>\n <!-- product view ajax container -->\n <div class=\"product-view-ajax-container\"> </div>\n <!-- //end product view ajax container -->\n </div>\n <!-- //end Products list -->\n </section>\n\n <section class=\"container content-row\">\n <!-- brand -->\n <p> </p>\n <div class=\"col-md-4\"><h3> E-shop Market </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></div>\n <div class=\"clearfix\"></div>\n <hr>\n <div class=\"brands carouFredSel row\">\n <div class=\"carouFredSel-controls\">\n <div class=\"carouFredSel-buttons\"><a id=\"brands-carousel-prev\" class=\"prev\" href=\"#\"></a><a id=\"brands-carousel-next\" class=\"next\" href=\"#\"></a></div>\n </div>\n <div class=\"brands-carousel\">\n <ul class=\"slides\">\n "; // line 89 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["markets"]) ? $context["markets"] : $this->getContext($context, "markets")); foreach ($context['_seq'] as $context["_key"] => $context["market"]) { // line 90 echo " <li><a href=\"#\"><img src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["market"], "AssertPath", array()), "my_thumb_out_page"), "html", null, true); echo "\" alt=\"\"></a></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['market'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 92 echo " </ul>\n </div>\n </div>\n <!-- //end Brands -->\n </section>\n <hr>\n <p> </p>\n <section class=\"container content-row\">\n <!-- brand -->\n <div class=\"col-md-6\"><h3> "; // line 101 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["accountbanner"]) ? $context["accountbanner"] : $this->getContext($context, "accountbanner"), "bigcontent", array()), "html", null, true); echo " <br/> <small>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["accountbanner"]) ? $context["accountbanner"] : $this->getContext($context, "accountbanner"), "middlecontent", array()), "html", null, true); echo "</small> </h3></div>\n <div class=\"col-sm-offset-4 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Se connecter</a></div>\n <div class=\"clearfix\"></div>\n <hr>\n <div class=>\n <ul class=\"slides\">\n <li><a href=\"#\"><img src=\""; // line 107 echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute(isset($context["accountbanner"]) ? $context["accountbanner"] : $this->getContext($context, "accountbanner"), "AssertPath", array()), "my_thumb_pub"), "html", null, true); echo "\" alt=\"\"></a></li>\n </ul>\n </div>\n <!-- //end Brands -->\n </section>\n <hr>\n <!-- Brands -->\n <section class=\"container content-row\">\n\n <p> </p>\n <div class=\"col-md-4\"><h3> TOP MARQUES </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></div>\n <div class=\"clearfix\"></div>\n <hr>\n\n <div class=\"mark carouFredSel row\">\n <div class=\"carouFredSel-controls\">\n <div class=\"carouFredSel-buttons\"><a id=\"mark-carousel-prev\" class=\"prev\" href=\"#\"></a><a id=\"mark-carousel-next\" class=\"next\" href=\"#\"></a></div>\n </div>\n <div class=\"mark-carousel\">\n <ul class=\"slides\">\n "; // line 128 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["marks"]) ? $context["marks"] : $this->getContext($context, "marks")); foreach ($context['_seq'] as $context["_key"] => $context["mark"]) { // line 129 echo " <li><a href=\"#\"><img src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["mark"], "AssertPath", array()), "my_thumb_out_page"), "html", null, true); echo "\" alt=\"\"></a></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mark'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 131 echo " </ul>\n </div>\n </div>\n\n </section>\n <hr>\n <!-- //end Brands -->\n </section>\n\n <!-- end parts one -->\n\n\n <!-- Two columns content -->\n <section class=\"container content\">\n <div class=\"row\">\n "; // line 146 echo $this->env->getExtension('actions')->renderUri($this->env->getExtension('http_kernel')->controller("LabsFrontBundle:Default:getSidebarInfo"), array()); // line 147 echo "\n <!-- Right column -->\n <section class=\"col-sm-8 col-md-9 col-lg-9 content-center\">\n <!-- Featured Products -->\n <section>\n <div class=\"col-md-4\"><h3> "; // line 152 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "Bon plan cdjidji"), "html", null, true); echo " </h3></div>\n <div class=\"col-sm-offset-6 col-md-2\"><a href=\"#\" class=\"btn btn-mega\">Afficher Tout </a></div>\n <p> </p>\n <div class=\"clearfix\"></div>\n\n <!-- Products list -->\n <div class=\"row products-list\">\n "; // line 159 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")); foreach ($context['_seq'] as $context["_key"] => $context["cat"]) { // line 160 echo " <div class=\"product-preview owl-item\">\n <div class=\"preview animate scale bg-shop\">\n <a href=\"#\" class=\"preview-image\">\n <img class=\"img-responsive animate scale\" src=\""; // line 163 echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->getAttribute($context["cat"], "AssertPath", array()), "my_thumb_front_img_naturel"), "html", null, true); echo "\" width=\"270\" height=\"328\" alt=\"\">\n </a>\n <ul class=\"product-controls-list\">\n <li><span class=\"label label-sale\">"; // line 166 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "solde"), "html", null, true); echo "</span></li>\n "; // line 167 $context["percents"] = 0; // line 168 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["cat"], "promotions", array())); foreach ($context['_seq'] as $context["_key"] => $context["promo"]) { // line 169 echo " "; $context["percents"] = $this->getAttribute($context["promo"], "percent", array()); // line 170 echo " <li><span class=\"label\">-"; echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($context["promo"], "percent", array()), 0), "html", null, true); echo "%</span></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promo'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 172 echo " </ul>\n <div class=\"quick-view visible-xs\"> <span class=\"rating\"> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-3\"></i> <i class=\"icon-star-empty\"></i> </span></div>\n </div>\n <div class=\"bg-shop-write\">\n <h5 class=\"big-visual-category--title\"><a href=\"#\">"; // line 176 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["cat"], "name", array())), "html", null, true); echo "</a></h5>\n <span class=\"title\">Livraison Gratuite <span class=\"price new\">(*)</span></span><br/>\n <strong>Jusqu'a "; // line 178 echo twig_escape_filter($this->env, isset($context["percents"]) ? $context["percents"] : $this->getContext($context, "percents"), "html", null, true); echo " % </strong>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 182 echo " </div>\n <!-- //end Products list -->\n\n <!-- Product view compact -->\n <div class=\"product-view-ajax\">\n <div class=\"ajax-loader progress progress-striped active\">\n <div class=\"progress-bar progress-bar-danger\" role=\"progressbar\"></div>\n </div>\n <div class=\"layar\"></div>\n <div class=\"product-view-container\">\n </div>\n </div>\n <!-- //end Product view compact -->\n\n </section>\n <!-- //end On Sale Products -->\n <section >\n <p> </p>\n <section class=\"strate Block-seo Block-seo--trend\">\n <h2 class=\"Block-seoTitle\">"; // line 201 echo twig_escape_filter($this->env, twig_upper_filter($this->env, "Tendances CDJIDJI"), "html", null, true); echo " <small class=\"col-sm-offset-6\"><a href=\"#\" class=\"btn btn-mega\">Voir Tout</a></small></h2>\n <ul class=\"Block-seoList\">\n "; // line 203 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["tendances"]) ? $context["tendances"] : $this->getContext($context, "tendances")); foreach ($context['_seq'] as $context["_key"] => $context["cats"]) { // line 204 echo " <li class=\"Block-seoItem\">\n <dl>\n <dt>"; // line 206 echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($context["cats"], "name", array())), "html", null, true); echo "</dt>\n "; // line 207 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["cats"], "sections", array())); foreach ($context['_seq'] as $context["_key"] => $context["section"]) { // line 208 echo " <dd>\n <a href=\"\">"; // line 209 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($context["section"], "name", array())), "html", null, true); echo "</a>\n </dd>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 212 echo " </dl>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cats'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 215 echo " </ul>\n </section>\n\n <section>\n <div class=\"col-md-8\">\n <div class=\"blockquote\">\n <div class=\"inside\">\n <h5>Abonnez-vous et suivez nous sur nos medias sociaux</h5>\n <small>Recevez tous les dernières offres de produits</small>\n </div>\n </div>\n </div>\n <div class=\"col-md-4\">\n <a href=\"https://www.facebook.com/cdjidjigroupe\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-facebook-3\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon icon-pinterest-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-twitter-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-youtube-3\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-instagram\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-googleplus-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-linkedin-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-vimeo-2\"></span></div></a>\n <a href=\"\"><div class=\"icon-circle-xs active\"><span class=\"icon icon-skype-3\"></span></div></a>\n </div>\n\n </section>\n\n </section>\n <!-- //end Right column -->\n </div>\n </section>\n"; $__internal_bde41a0a8eac938d35318f876a58732d66062c53383cd52b2f2e6f0ea63d641e->leave($__internal_bde41a0a8eac938d35318f876a58732d66062c53383cd52b2f2e6f0ea63d641e_prof); }