private function setClasses(array $classes)
    {
        if (!empty($classes)) {
            $this->vars['attr']['class'] = ' ' . trim(implode(' ', $classes));
        } else {
            unset($this->vars['attr']['class']);
        }
    }
private function setClasses(array $classes)
    {
        if (!empty($classes)) {
            $this->vars['attr']['class'] = ' ' . trim(implode(' ', $classes));
        } else {
            unset($this->vars['attr']['class']);
        }
    }
private function setClasses ( array $ classes ) { if ( ! empty ( $ classes ) ) { $ this -> vars [ 'attr' ] [ 'class' ] = ' ' . trim ( implode ( ' ' , $ classes ) ) ; } else { unset ( $ this -> vars [ 'attr' ] [ 'class' ] ) ; } }
Sets the css classes.

@param array $classes
Sets the css classes .