$configurator=SETemplateConfigurator::make(); $showAnything=true; $showCompare = false; if (!$this->isFlag(SEFilters::FLAG_AVAILABILITY) and !$this->isFlag(SEFilters::FLAG_PRICE) and !$this->isFlag(SEFilters::FLAG_BRAND)) { $showAnything=false; } if ($this->getParamFilters()) { $showAnything=true; } if ($configurator->conf("compare_enable") and !$this->isFlag(SEFilters::FLAG_DISABLE_COMPARE)) { $showAnything = true; $showCompare = true; } $actives=$this->activeFilters(); $activeAvail=$actives[SEFilters::FLAG_AVAILABILITY]; $activePrice=$actives[SEFilters::FLAG_PRICE]; $activeBrand=$actives[SEFilters::FLAG_BRAND]; $activeRady=$actives[SEFilters::FLAG_RADY]; $activeNovinka=$actives[SEFilters::FLAG_NOVINKA]; $activeTop=$actives[SEFilters::FLAG_TOP]; $activeSleva=$actives[SEFilters::FLAG_SLEVA]; $activeAnything=false; foreach($actives as $a) { if ($a) $activeAnything=true; } $showLeftBox = false; if ( $this->isFlag(SEFilters::FLAG_PRICE) or $this->isFlag(SEFilters::FLAG_BRAND) or $this->isFlag(SEFilters::FLAG_NOVINKA) or $this->isFlag(SEFilters::FLAG_TOP) or $this->isFlag(SEFilters::FLAG_SLEVA) or $this->isFlag(SEFilters::FLAG_AVAILABILITY) or $this->isFlag(SEFilters::FLAG_RADY) ) { $showLeftBox = true; } $this->addDirectEditWrapperClassIfPossible(); ?> if ($showAnything): ?>
endif; // $showAnything ?>