/** * Returns an advanced HTML label. * * @param CModel $model The model * @param string $attribute The attribute * @param array $htmlOptions * * @access public * @return string */ public function labelEx($model, $attribute, $htmlOptions = array()) { if ($this->horizontal) { EBootstrap::mergeClass($htmlOptions, array('control-label', $this->controlLabelClass)); } else { EBootstrap::mergeClass($htmlOptions, array('control-label')); } return EBootstrap::activeLabelEx($model, $attribute, $htmlOptions); }