Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
system
/
storage
/
cache
/
3f
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /* tt_madison1/template/extension/module/category.twig */ class __TwigTemplate_6cf933b82006c968b108a290aaf995ab35a0914c670bfbe952e41cb8fddbf916 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<div class=\"category-module\"> \t<h3>"; // line 2 echo (isset($context["heading_title"]) ? $context["heading_title"] : null); echo "</h3> \t<div class=\"ul list-unstyled\"> \t"; // line 4 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) ? $context["categories"] : null)); foreach ($context['_seq'] as $context["_key"] => $context["category"]) { // line 5 echo "\t\t"; if (($this->getAttribute($context["category"], "category_id", array()) == (isset($context["category_id"]) ? $context["category_id"] : null))) { echo " \t\t\t<div class=\"li\"><a href=\""; // line 6 echo $this->getAttribute($context["category"], "href", array()); echo "\" class=\" active\">"; echo $this->getAttribute($context["category"], "name", array()); echo "</a></div> \t\t\t"; // line 7 if ($this->getAttribute($context["category"], "children", array())) { // line 8 echo "\t\t\t\t<div class=\"list-child\"> \t\t\t\t"; // line 9 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["category"], "children", array())); foreach ($context['_seq'] as $context["_key"] => $context["child"]) { // line 10 echo "\t\t\t\t\t"; if (($this->getAttribute($context["child"], "category_id", array()) == (isset($context["child_id"]) ? $context["child_id"] : null))) { // line 11 echo "\t\t\t\t\t\t<div class=\"li\"><a href=\""; echo $this->getAttribute($context["child"], "href", array()); echo "\" class=\" active\">"; echo $this->getAttribute($context["child"], "name", array()); echo "</a></div> \t\t\t\t\t"; } else { // line 12 echo " \t\t\t\t\t\t<div class=\"li\"><a href=\""; // line 13 echo $this->getAttribute($context["child"], "href", array()); echo "\" class=\"\">"; echo $this->getAttribute($context["child"], "name", array()); echo "</a></div> \t\t\t\t\t"; } // line 15 echo "\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 16 echo "\t\t\t\t</div> \t\t\t"; } // line 18 echo "\t\t"; } else { // line 19 echo "\t\t\t<div class=\"li\"><a href=\""; echo $this->getAttribute($context["category"], "href", array()); echo "\" class=\"\">"; echo $this->getAttribute($context["category"], "name", array()); echo "</a></div> \t\t"; } // line 21 echo "\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 22 echo "\t</div> </div> "; } public function getTemplateName() { return "tt_madison1/template/extension/module/category.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 99 => 22, 93 => 21, 85 => 19, 82 => 18, 78 => 16, 72 => 15, 65 => 13, 62 => 12, 54 => 11, 51 => 10, 47 => 9, 44 => 8, 42 => 7, 36 => 6, 31 => 5, 27 => 4, 22 => 2, 19 => 1,); } } /* <div class="category-module">*/ /* <h3>{{heading_title}}</h3>*/ /* <div class="ul list-unstyled">*/ /* {% for category in categories %}*/ /* {% if category.category_id == category_id %} */ /* <div class="li"><a href="{{ category.href }}" class=" active">{{ category.name }}</a></div>*/ /* {% if category.children %}*/ /* <div class="list-child">*/ /* {% for child in category.children %}*/ /* {% if child.category_id == child_id %}*/ /* <div class="li"><a href="{{ child.href }}" class=" active">{{ child.name }}</a></div>*/ /* {% else %} */ /* <div class="li"><a href="{{ child.href }}" class="">{{ child.name }}</a></div>*/ /* {% endif %}*/ /* {% endfor %}*/ /* </div>*/ /* {% endif %}*/ /* {% else %}*/ /* <div class="li"><a href="{{ category.href }}" class="">{{ category.name }}</a></div>*/ /* {% endif %}*/ /* {% endfor %}*/ /* </div>*/ /* </div>*/ /* */