public function makeLabel(&$element)
 {
     if ($element->type != 'captcha') {
         return $element->label();
     }
     $element->provider->data['description'] = $element->label();
     //for captcha we include the challenge below the label
     $theme = new MulticaptchaTheme();
     return $theme->renderLabel($element->provider->data);
 }
 public function makeLabel(&$element)
 {
     if ($element->type != 'captcha') {
         return '<label for="' . $this->makeId($element) . '" class="control-label">' . $element->label() . '</label>';
     }
     $element->provider->data['description'] = $element->label();
     //for captcha we include the challenge below the label
     $theme = new MulticaptchaTheme();
     return '<label for="' . $this->makeId($element) . '" class="control-label">' . $theme->renderLabel($element->provider->data) . '</label>';
 }
 public function refreshCaptcha(&$element)
 {
     $toolTip = $this->makeTooltip($element);
     $element->provider->data['tooltip'] = $toolTip;
     //$attribTxt = $this->makeAttributes( $element->attributes );
     //$eventsTxt = $this->makeEvents( $element->events );
     $theme = new MulticaptchaTheme();
     if (isset($element->attributes['class'])) {
         $theme->fieldClass = $element->attributes['class'];
     }
     return $theme->refresh($element->provider->data);
 }