1 | <?php |
||
18 | class WPSC_Fancy_Notifications { |
||
19 | |||
20 | /** |
||
21 | * Fancy Notifications |
||
22 | * |
||
23 | * Container HTML for fancy notifications. |
||
24 | * |
||
25 | * @since 4.0 |
||
26 | * |
||
27 | * @param boolean $return Return output. |
||
28 | * @return string Output. |
||
29 | */ |
||
30 | public static function fancy_notifications( $return = false ) { |
||
56 | |||
57 | /** |
||
58 | * Fancy Notification Content |
||
59 | * |
||
60 | * @since 4.0 |
||
61 | * |
||
62 | * @param array $cart_messages Cart message. |
||
63 | * @return string Fancy notification content. |
||
64 | */ |
||
65 | public static function fancy_notification_content( $cart_messages ) { |
||
77 | |||
78 | /** |
||
79 | * Add To Cart JSON Response |
||
80 | * |
||
81 | * Adds 'fancy_notification' content to JSON response. |
||
82 | * |
||
83 | * @since 4.0 |
||
84 | * |
||
85 | * @param array $json_response JSON response. |
||
86 | * @return array Updated JSON response. |
||
87 | */ |
||
88 | public static function wpsc_add_to_cart_json_response( $json_response ) { |
||
97 | |||
98 | /** |
||
99 | * Add Fancy Notifications |
||
100 | * |
||
101 | * @since 4.0 |
||
102 | */ |
||
103 | public static function add_fancy_notifications() { |
||
108 | |||
109 | /** |
||
110 | * Enqueue Styles |
||
111 | * |
||
112 | * @since 4.0 |
||
113 | */ |
||
114 | public static function enqueue_styles() { |
||
119 | |||
120 | /** |
||
121 | * Enqueue Scripts |
||
122 | * |
||
123 | * @since 4.0 |
||
124 | */ |
||
125 | public static function enqueue_scripts() { |
||
130 | |||
131 | /** |
||
132 | * Plugin URL |
||
133 | * |
||
134 | * @since 4.0 |
||
135 | * |
||
136 | * @return string URL for fancy notifications directory. |
||
137 | */ |
||
138 | public static function plugin_url() { |
||
143 | |||
144 | } |
||
145 |