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 / banner.php

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

57 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Countdown banner notice.
4 *
5 * @package ULTP\Notice
6 *
7 * @var \ULTP\Includes\Notice\Banner_Notice $notice
8 */
9
10 defined( 'ABSPATH' ) || exit;
11 ?>
12 <div
13 class="ultp-notice-wrapper ultp-banner-notice notice"
14 style="
15 border-left: 3px solid <?php echo esc_attr( $notice->get( 'brand_color' ) ); ?>;
16 background-image: url('<?php echo esc_attr( $notice->get_image( 'bg' ) ); ?>');
17 ">
18 <a
19 class="wc-dismiss-notice dashicons dashicons-no-alt"
20 style="
21 position: absolute;
22 top: 1px;
23 right: 1px;
24 border-radius: 50%;
25 background-color: black;
26 color: white;
27 font-size: 14px;
28 display: flex;
29 align-items: center;
30 justify-content: center;
31 "
32 aria-label="<?php esc_html_e( 'Close Banner', 'ultimate-post' ); ?>"
33 href="<?php echo esc_url( $notice->get_dismiss_url() ); ?>">
34 </a>
35
36 <a class="ultp-banner-link" target="_blank" href="<?php echo esc_url( $notice->get_url() ); ?>">
37 <div class="ultp-banner-content">
38 <img class="ultp-banner-side-image" loading="lazy" src="<?php echo esc_url( $notice->get_image( 'left' ) ); ?>" />
39 <div class="ultp-banner-main">
40 <span class="ultp-banner-main-text">
41 <?php echo esc_html( $notice->get( 'text' ) ); ?>
42 </span>
43 <div
44 class="ultp-notice-countdown"
45 style="
46 color: <?php echo esc_attr( $notice->get( 'countdown_color' ) ); ?>;
47 "
48 data-notice-key="<?php echo esc_attr( $notice->get_key() . '-countdown' ); ?>"
49 data-duration="<?php echo esc_attr( $notice->get( 'countdown_duration' ) ); ?>">
50 00:00:00:00
51 </div>
52 </div>
53 <img class="ultp-banner-side-image" loading="lazy" src="<?php echo esc_url( $notice->get_image( 'right' ) ); ?>" />
54 </div>
55 </a>
56 </div>
57