41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: Velora Player
|
|
* Plugin URI: https://example.com/modern-audio-player
|
|
* Description: Modern custom audio player with Gutenberg block, shortcode support, themes, and basic analytics.
|
|
* Version: 1.2.0
|
|
* Author: Codex
|
|
* Text Domain: modern-audio-player
|
|
* Domain Path: /languages
|
|
*
|
|
* @package ModernAudioPlayer
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
define( 'MAP_VERSION', '1.2.0' );
|
|
define( 'MAP_PLUGIN_FILE', __FILE__ );
|
|
define( 'MAP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
|
define( 'MAP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
|
define( 'MAP_OPTION_KEY', 'map_settings' );
|
|
|
|
require_once MAP_PLUGIN_DIR . 'includes/class-settings.php';
|
|
require_once MAP_PLUGIN_DIR . 'includes/class-analytics.php';
|
|
require_once MAP_PLUGIN_DIR . 'includes/class-renderer.php';
|
|
require_once MAP_PLUGIN_DIR . 'includes/class-shortcode.php';
|
|
require_once MAP_PLUGIN_DIR . 'includes/class-rest-api.php';
|
|
require_once MAP_PLUGIN_DIR . 'admin/class-admin.php';
|
|
require_once MAP_PLUGIN_DIR . 'includes/class-plugin.php';
|
|
|
|
register_activation_hook(
|
|
__FILE__,
|
|
array( '\ModernAudioPlayer\Plugin', 'activate' )
|
|
);
|
|
|
|
function map_boot_plugin() {
|
|
$plugin = new \ModernAudioPlayer\Plugin();
|
|
$plugin->init();
|
|
}
|
|
|
|
map_boot_plugin();
|