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