# ultimate-post/5.1.1/includes/notice/views/content.php

Post Grid Gutenberg Blocks – PostX, version 5.1.1. 49 lines.

- Page: https://pluginprobe.com/plugins/ultimate-post/5.1.1/code/includes/notice/views/content.php
- Raw: https://pluginprobe.com/plugins/ultimate-post/5.1.1/raw/includes/notice/views/content.php
- Modified: 2026-10-06T09:38:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ultimate-post/5.1.1/code/includes/notice/views/content.php#L10-L20`.

```php
<?php
/**
 * Text and button notice.
 *
 * @package ULTP\Notice
 *
 * @var \ULTP\Includes\Notice\Content_Notice $notice
 */

defined( 'ABSPATH' ) || exit;

$url = $notice->get_url();
?>
<div class="ultp-content-notice-wrapper notice data_collection_notice"
style="border-left: 3px solid <?php echo esc_attr( $notice->get( 'border_color' ) ); ?>;"
>
	<?php
	if ( $notice->get( 'is_discount_logo' ) ) {
		?>
		<div class="ultp-content-notice-discout-icon"> <img src="<?php echo esc_url( $notice->get( 'icon' ) ); ?>"/>  </div>
		<?php
	} else {
		?>
		<div class="ultp-content-notice-icon"> <img src="<?php echo esc_url( $notice->get( 'icon' ) ); ?>"/>  </div>
		<?php
	}
	?>

	<div class="ultp-notice-content-wrapper">
		<div class="">
			<strong><?php echo esc_html( $notice->get( 'content_heading' ) ); ?> </strong>
		<?php echo $notice->get_subheading_html(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Built from wp_kses_post() and esc_html() in Content_Notice. ?>
		</div>
		<div class="ultp-content-notice-buttons">
	<?php if ( $notice->get( 'is_discount_logo' ) ) : ?>
				<a class="ultp-content-discount_btn" href="<?php echo esc_url( $url ); ?>" target="_blank">
					<?php echo esc_html( $notice->get( 'button_text' ) ); ?>
				</a>
			<?php else : ?>
				<a class="ultp-content-notice-btn button button-primary" href="<?php echo esc_url( $url ); ?>" target="_blank" style="background-color: <?php echo ! empty( $notice->get( 'background_color' ) ) ? esc_attr( $notice->get( 'background_color' ) ) : '#86a62c'; ?>;">
				<?php echo esc_html( $notice->get( 'button_text' ) ); ?>

				</a>
			<?php endif; ?>
		</div>
	</div>
	<a href="<?php echo esc_url( $notice->get_dismiss_url() ); ?>" class="ultp-content-notice-close"><span class="ultp-content-notice-close-icon dashicons dashicons-dismiss"> </span></a>
</div>

```
