<?php

namespace SuperbAddons\Gutenberg\BlocksAPI\Controllers;

defined('ABSPATH') || exit();

class DynamicBlockAssets
{
    public static function EnqueueAnimatedHeader($attr, $content)
    {
        wp_enqueue_script(
            'superbaddons-animated-heading',
            SUPERBADDONS_ASSETS_PATH . '/js/dynamic-blocks/animated-heading.js',
            [],
            SUPERBADDONS_VERSION,
            true
        );
        return $content;
    }

    public static function EnqueueRevealButton($attr, $content)
    {
        wp_enqueue_script(
            'superbaddons-reveal-button',
            SUPERBADDONS_ASSETS_PATH . '/js/dynamic-blocks/reveal-button.js',
            [],
            SUPERBADDONS_VERSION,
            true
        );
        return $content;
    }

    public static function EnqueueAccordion($attr, $content)
    {
        wp_enqueue_script(
            'superbaddons-accordion',
            SUPERBADDONS_ASSETS_PATH . '/js/dynamic-blocks/accordion.js',
            [],
            SUPERBADDONS_VERSION,
            true
        );
        return $content;
    }
}
