403Webshell
Server IP : 167.179.152.94  /  Your IP : 216.73.216.169
Web Server : Apache/2.4.66 (Debian)
System : Linux 6d8cbb3dc321 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64
User :  ( 1000)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/html5-audio-player/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/html5-audio-player//blocks.php
<?php
if (!defined('ABSPATH')) {
    return;
}

use H5APPlayer\Helper\Functions;

if (!class_exists('H5AP_Block')) {
    class H5AP_Block
    {
        function __construct()
        {
            add_action('init', [$this, 'init']);
            add_action('enqueue_block_assets', [$this, 'enqueue_block_assets']);
            add_action('enqueue_block_editor_assets', [$this, 'enqueue_block_editor_assets']);
        }

        function enqueue_block_editor_assets()
        {
            wp_localize_script('h5ap-audioplayer-editor-script', 'h5apPlayer', [
                'speed' => explode(',', Functions::getSetting('speed', '0.5, 1, 1.5, 2.0, 2.5')),
                'multipleAudio' => (bool) Functions::getSetting('multipleAudio', false),
                'plyrio_js' => H5AP_PRO_PLUGIN_DIR . 'assets/js/plyr-v3.7.2.js',
                'plyr_js' => H5AP_PRO_PLUGIN_DIR . 'build/player.js',
                'isPipe' => h5ap_fs()->can_use_premium_code()
            ]);
        }

        function enqueue_block_assets()
        {
            // plyrio library 
            wp_register_script('bplugins-plyrio', H5AP_PRO_PLUGIN_DIR . 'assets/js/plyr-v3.7.2.js', array(), '3.7.2', false);
            wp_register_style('bplugins-plyrio', H5AP_PRO_PLUGIN_DIR . 'assets/css/plyr-v3.7.2.css', array(), '3.7.2', 'all');
        }

        function init()
        {
            register_block_type(__DIR__ . '/build/blocks/audioplayer');
            if (h5ap_fs()->can_use_premium_code()) {
                register_block_type(__DIR__ . '/build/blocks/audioplaylist');
                register_block_type(__DIR__ . '/build/blocks/playlist-narrow');
                register_block_type(__DIR__ . '/build/blocks/playlist-extensive');
            }
        }
    }

    new H5AP_Block();
}

Youez - 2016 - github.com/yon3zu
LinuXploit