|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/relaunch-kmu/wp-content/plugins/wp-gdpr-compliance/Templates/Admin/Elements/ |
Upload File : |
<?php
use WPGDPRC\Utils\Template;
/**
* @var string $type
* @var string $icon
* @var string $title
* @var string $text
* @var string $button (optional)
*/
if ( empty( $type ) ) {
$type = 'notice';
}
if ( $type === 'wizard' || $type === 'upgrade' ) {
$type = 'notice wpgdprc-message--large-icon';
}
?>
<div class="wpgdprc-message wpgdprc-message--<?php echo esc_attr( $type ); ?>">
<div class="wpgdprc-message__container">
<div class="wpgdprc-message__content">
<h3 class="wpgdprc-message__title h3"><?php echo esc_html( $title ); ?></h3>
<p class="wpgdprc-message__text"><?php echo wp_kses_post($text); ?></p>
</div>
<div class="wpgdprc-message__icon">
<?php echo wp_kses($icon, \WPGDPRC\Utils\AdminHelper::getAllowedSvgTags()); ?>
</div>
</div>
<div class="wpgdprc-message__action">
<?php if ( ! empty( $button ) ) : ?>
<button class="wpgdprc-message__button wpgdprc-message__button--close" title="<?php echo esc_attr( $button ); ?>">
<span><?php echo esc_html( $button ); ?></span>
<?php Template::renderIcon( 'times', 'fontawesome-pro-regular' ); ?>
</button>
<?php endif; ?>
</div>
</div>