Files
piratepoet/mailpoet/lib/Form/PreviewWidget.php
David Remer 53fc49d1eb Simplify phpcs:disable comments
Additionally this commit contains a conversion from %d to %s in a query

[MAILPOET-4219]
2022-04-04 17:12:33 +02:00

30 lines
599 B
PHP

<?php
namespace MailPoet\Form;
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;
}
}