PluginProbe
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management / 0.0.1
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management v0.0.1
1.6.0 1.5.1 1.5.0 1.4.0 1.3.0 trunk 0.0.1 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0
suredonation / inc / assets / register.php

register.php in SureDonation – Donation Forms, Fundraising Campaigns & Donor Management 0.0.1, at inc/assets/register.php

51 lines 843 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Assets Register
4 *
5 * @package SureDonation
6 */
7
8 namespace SureDonation\Inc\Assets;
9
10 use SureDonation\Inc\Traits\Get_Instance;
11
12 // Exit if accessed directly.
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 /**
18 * Register class for frontend assets.
19 *
20 * @since 0.0.1
21 */
22 class Register {
23
24 use Get_Instance;
25
26 /**
27 * Constructor.
28 *
29 * @since 0.0.1
30 */
31 public function __construct() {
32 add_action( 'wp_enqueue_scripts', [ $this, 'register_frontend_assets' ] );
33 }
34
35 /**
36 * Register frontend assets.
37 *
38 * @return void
39 * @since 0.0.1
40 */
41 public function register_frontend_assets() {
42 // Register donation form frontend styles (for custom Gutenberg forms).
43 wp_register_style(
44 'suredonation-donation-form',
45 SUREDONATION_URL . 'assets/build/blocks/donation-form/style-style.css',
46 [],
47 SUREDONATION_VER
48 );
49 }
50 }
51