Server IP : 172.67.158.161 / Your IP : 18.191.93.122 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/Form/Block/ |
Upload File : |
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing namespace MailPoet\Form\Block; if (!defined('ABSPATH')) exit; class Html { /** @var BlockRendererHelper */ private $rendererHelper; public function __construct( BlockRendererHelper $rendererHelper ) { $this->rendererHelper = $rendererHelper; } public function render(array $block, array $formSettings): string { $html = ''; $text = ''; if (isset($block['params']['text']) && $block['params']['text']) { $text = html_entity_decode($block['params']['text'], ENT_QUOTES); } if (isset($block['params']['nl2br']) && $block['params']['nl2br']) { $text = nl2br($text); } $classes = isset($block['params']['class_name']) ? " " . $block['params']['class_name'] : ''; $html .= '<div class="mailpoet_paragraph' . $classes . '" ' . $this->rendererHelper->renderFontStyle($formSettings) . '>'; $html .= $text; $html .= '</div>'; return $html; } }