PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.1.1
Post Grid Gutenberg Blocks – PostX v5.1.1
5.1.1 5.1.0 5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 All 240 releases
ultimate-post / includes / notice / views / content.php

content.php in Post Grid Gutenberg Blocks – PostX 5.1.1, at includes/notice/views/content.php

49 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Text and button notice.
4 *
5 * @package ULTP\Notice
6 *
7 * @var \ULTP\Includes\Notice\Content_Notice $notice
8 */
9
10 defined( 'ABSPATH' ) || exit;
11
12 $url = $notice->get_url();
13 ?>
14 <div class="ultp-content-notice-wrapper notice data_collection_notice"
15 style="border-left: 3px solid <?php echo esc_attr( $notice->get( 'border_color' ) ); ?>;"
16 >
17 <?php
18 if ( $notice->get( 'is_discount_logo' ) ) {
19 ?>
20 <div class="ultp-content-notice-discout-icon"> <img src="<?php echo esc_url( $notice->get( 'icon' ) ); ?>"/> </div>
21 <?php
22 } else {
23 ?>
24 <div class="ultp-content-notice-icon"> <img src="<?php echo esc_url( $notice->get( 'icon' ) ); ?>"/> </div>
25 <?php
26 }
27 ?>
28
29 <div class="ultp-notice-content-wrapper">
30 <div class="">
31 <strong><?php echo esc_html( $notice->get( 'content_heading' ) ); ?> </strong>
32 <?php echo $notice->get_subheading_html(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Built from wp_kses_post() and esc_html() in Content_Notice. ?>
33 </div>
34 <div class="ultp-content-notice-buttons">
35 <?php if ( $notice->get( 'is_discount_logo' ) ) : ?>
36 <a class="ultp-content-discount_btn" href="<?php echo esc_url( $url ); ?>" target="_blank">
37 <?php echo esc_html( $notice->get( 'button_text' ) ); ?>
38 </a>
39 <?php else : ?>
40 <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'; ?>;">
41 <?php echo esc_html( $notice->get( 'button_text' ) ); ?>
42
43 </a>
44 <?php endif; ?>
45 </div>
46 </div>
47 <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>
48 </div>
49