| 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/inc/ |
Upload File : |
<?php
namespace H5APPlayer;
class Init
{
public static function get_services()
{
return [
Base\GlobalAction::class,
Base\HelpUsages::class,
// Base\BlackFriday::class,
// Base\Loader::class, // deprecated
Elementor\Widgets\Register::class,
Elementor\Controls\Register::class,
PostType\AudioPlayer::class,
PostType\AudioListPro::class,
Field\AudioPlayer::class,
Field\AudioListPro::class,
Field\SettingsPro::class,
Services\AdminNotice::class,
Services\Shortcode::class,
Services\EnqueueAssets::class,
Model\GlobalChanges::class,
Helper\Functions::class,
];
}
public static function register_services()
{
foreach (self::get_services() as $class) {
$services = self::instantiate($class);
if (method_exists($services, 'register')) {
$services->register();
}
}
}
private static function instantiate($class)
{
if (class_exists($class . "Pro") && h5ap_fs()->can_use_premium_code()) {
$class = $class . "Pro";
}
if (class_exists($class)) {
return new $class();
}
return new \stdClass();
}
}