src/InvisibleReCaptcha.php
public function renderCaptchaHTML()
    {
        $html = '<div id="_g-recaptcha"></div>' . PHP_EOL;
        if ($this->getOption('hideBadge', false)) {
            $html .= '<style>.grecaptcha-badge{display:none;!important}</style>' . PHP_EOL;
        }

        $html .= '<div class="g-recaptcha" data-sitekey="' . $this->siteKey .'" ';
        $html .= 'data-size="invisible" data-callback="_submitForm" data-badge="' . $this->getOption('dataBadge', 'bottomright') . '"></div>';
        return $html;
    }
public function renderCaptchaHTML()
    {
        $html = '<div id="_g-recaptcha"></div>' . PHP_EOL;
        if ($this->getOption('hideBadge', false)) {
            $html .= '<style>.grecaptcha-badge{display:none;!important}</style>' . PHP_EOL;
        }

        $html .= '<div class="g-recaptcha" data-sitekey="' . $this->siteKey .'" ';
        $html .= 'data-size="invisible" data-callback="_submitForm" data-badge="' . $this->getOption('dataBadge', 'bottomright') . '"></div>';
        return $html;
    }
public function renderCaptchaHTML ( ) { $ html = '<div id="_g-recaptcha"></div>' . PHP_EOL ; if ( $ this -> getOption ( 'hideBadge' , false ) ) { $ html .= '<style>.grecaptcha-badge{display:none;!important}</style>' . PHP_EOL ; } $ html .= '<div class="g-recaptcha" data-sitekey="' . $ this -> siteKey . '" ' ; $ html .= 'data-size="invisible" data-callback="_submitForm" data-badge="' . $ this -> getOption ( 'dataBadge' , 'bottomright' ) . '"></div>' ; return $ html ; }
Render the captcha HTML.

@return string
Render the captcha HTML .