public function displayHTML($theme_name = NULL, $options = array())
	{
		if ( strlen($this->_publicKey == 0) ) {
			throw new CaptchaException('To use reCAPTCHA you must get a Public API key from https://www.google.com/recaptcha/admin');
		}

	  	// append a Theme
		$captcha_snippet = $this->_theme($theme_name, $options);
		$captcha_snippet .= '<script type="text/javascript" src="'. $this->_buildServerURI() . '"></script>

		<noscript>
		<iframe src="' . $this->_buildServerURI('noscript') . '" height="300" width="500" frameborder="0"></iframe><br>
		<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
		<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
		</noscript>';

		return $captcha_snippet;
	}
public function displayHTML($theme_name = NULL, $options = array())
	{
		if ( strlen($this->_publicKey == 0) ) {
			throw new CaptchaException('To use reCAPTCHA you must get a Public API key from https://www.google.com/recaptcha/admin');
		}

	  	// append a Theme
		$captcha_snippet = $this->_theme($theme_name, $options);
		$captcha_snippet .= '<script type="text/javascript" src="'. $this->_buildServerURI() . '"></script>

		<noscript>
		<iframe src="' . $this->_buildServerURI('noscript') . '" height="300" width="500" frameborder="0"></iframe><br>
		<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
		<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
		</noscript>';

		return $captcha_snippet;
	}
public function displayHTML ( $ theme_name = NULL , $ options = array ( ) ) { if ( strlen ( $ this -> _publicKey == 0 ) ) { throw new CaptchaException ( 'To use reCAPTCHA you must get a Public API key from https://www.google.com/recaptcha/admin' ) ; } // append a Theme $ captcha_snippet = $ this -> _theme ( $ theme_name , $ options ) ; $ captcha_snippet .= '<script type="text/javascript" src="' . $ this -> _buildServerURI ( ) . '"></script>

		<noscript>
		<iframe src="' . $ this -> _buildServerURI ( 'noscript' ) . '" height="300" width="500" frameborder="0"></iframe><br>
		<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
		<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
		</noscript>' ; return $ captcha_snippet ; }
Create embedded widget script HTML called within a form

NOTE: $theme_name is used to set theme name separated instead set
it within array of options available, this is to keep compatibility
for newer version in future.

@param string $theme_name Optional Standard_Theme or custom theme name
@param array $options Optional array of reCAPTCHA options
@throws \ReCaptcha\CaptchaException
@return string The reCAPTCHA widget embed HTML
Create embedded widget script HTML called within a form