class-dynamic-block-assets.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SuperbAddons\Gutenberg\BlocksAPI\Controllers; |
| 4 | |
| 5 | defined('ABSPATH') || exit(); |
| 6 | |
| 7 | class DynamicBlockAssets |
| 8 | { |
| 9 | public static function EnqueueAnimatedHeader($attr, $content) |
| 10 | { |
| 11 | wp_enqueue_script( |
| 12 | 'superbaddons-animated-heading', |
| 13 | SUPERBADDONS_ASSETS_PATH . '/js/dynamic-blocks/animated-heading.js', |
| 14 | [], |
| 15 | SUPERBADDONS_VERSION, |
| 16 | true |
| 17 | ); |
| 18 | return $content; |
| 19 | } |
| 20 | |
| 21 | public static function EnqueueRevealButton($attr, $content) |
| 22 | { |
| 23 | wp_enqueue_script( |
| 24 | 'superbaddons-reveal-button', |
| 25 | SUPERBADDONS_ASSETS_PATH . '/js/dynamic-blocks/reveal-button.js', |
| 26 | [], |
| 27 | SUPERBADDONS_VERSION, |
| 28 | true |
| 29 | ); |
| 30 | return $content; |
| 31 | } |
| 32 | } |
| 33 |