File "PreviewWidget.php"
Full Path: /home/warrior1/public_html/plugins/mailpoet/lib/Form/PreviewWidget.php
File size: 632 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace MailPoet\Form;
if (!defined('ABSPATH')) exit;
class PreviewWidget extends \WP_Widget {
/** @var string */
private $formHtml;
public function __construct(
$formHtml
) {
$this->formHtml = $formHtml;
parent::__construct(
'mailpoet_form_preview',
'Dummy form form preview',
[]
);
}
/**
* Output the widget itself.
*/
public function widget($args, $instance = null) {
// We control the html
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, WordPressDotOrg.sniffs.OutputEscaping.UnescapedOutputParameter
echo $this->formHtml;
}
}