private function MenuLeaf::calculateLeafClass in Taxonomy Facets 7.3
1 call to MenuLeaf::calculateLeafClass()
- MenuLeaf::__construct in classes/
MenuLeaf.php
File
- classes/
MenuLeaf.php, line 51
Class
Namespace
taxonomyFacetsCode
private function calculateLeafClass($numberOfItems, $itemNumber, $leafClass) {
switch ($itemNumber) {
case 1:
$this->leafClass = 'first';
break;
case $numberOfItems:
$this->leafClass = 'last';
break;
}
$this->leafClass .= ' ' . $leafClass;
}