/** * 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(); }
/** * 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; }