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 / class-notice-assets.php

class-notice-assets.php in Post Grid Gutenberg Blocks – PostX 5.1.1, at includes/notice/class-notice-assets.php

45 lines 938 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Notice assets.
4 *
5 * @package ULTP\Notice
6 */
7
8 namespace ULTP\Includes\Notice;
9
10 defined( 'ABSPATH' ) || exit;
11
12 /**
13 * The stylesheet and script shared by every notice. Queue them only when a notice will show.
14 */
15 final class Notice_Assets {
16
17 /**
18 * Handle of the stylesheet shared by every notice.
19 */
20 const STYLESHEET = 'ultp-notice';
21
22 /**
23 * Handle of the countdown script.
24 */
25 const COUNTDOWN_SCRIPT = 'ultp-notice-countdown';
26
27 /**
28 * Queue assets/css/ultp-notice.css.
29 *
30 * @return void
31 */
32 public static function enqueue_stylesheet() {
33 wp_enqueue_style( self::STYLESHEET, ULTP_URL . 'assets/css/ultp-notice.css', array(), ULTP_VER );
34 }
35
36 /**
37 * Queue the countdown script in the footer.
38 *
39 * @return void
40 */
41 public static function enqueue_countdown_script() {
42 wp_enqueue_script( self::COUNTDOWN_SCRIPT, ULTP_URL . 'assets/js/ultp-notice-countdown.js', array( 'jquery' ), ULTP_VER, true );
43 }
44 }
45