示例#1
0
 /**
  * Generate <div> with ReCaptcha from render.
  *
  * @param boolean $useRecaptcha Boolean of active state, for compact templating
  *
  * @return string $html
  */
 public function html($useRecaptcha = true)
 {
     if (!isset($useRecaptcha) || !$useRecaptcha) {
         return false;
     }
     return $this->recaptcha->getHtml();
 }
示例#2
0
 /**
  * Generate <div> with ReCaptcha from render.
  *
  * @param bool $useRecaptcha Boolean of active state, for compact templating
  * @param bool $wrapHtml     Include prefix and suffix?
  *
  * @return string $html
  */
 public function html($useRecaptcha = true, $wrapHtml = true)
 {
     if (!isset($useRecaptcha) || !$useRecaptcha) {
         return false;
     }
     if (!$wrapHtml) {
         return $this->recaptcha->getHtml();
     }
     return $this->prefixHtml . $this->recaptcha->getHtml() . $this->suffixHtml;
 }