'; $html .= '.mailpoet_hp_email_label{display:none;}'; // move honeypot field out of sight $html .= $styles->render($prefix); $html .= ''; return $html; } static function renderHTML($form = []) { if (isset($form['body']) && !empty($form['body'])) { return static::renderBlocks($form['body']); } return ''; } static function getStyles($form = []) { if (isset($form['styles']) && strlen(trim($form['styles'])) > 0) { return strip_tags($form['styles']); } else { return Util\Styles::$default_styles; } } static function renderBlocks($blocks = [], $honeypot_enabled = true) { $settings = SettingsController::getInstance(); // add honeypot for spambots $html = ($honeypot_enabled) ? '' : ''; foreach ($blocks as $key => $block) { if ($block['type'] == 'submit' && $settings->get('captcha.type') === Captcha::TYPE_RECAPTCHA) { $site_key = $settings->get('captcha.recaptcha_site_token'); $html .= '