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