PluginProbe
Audio Player Block – Play Audio Beautifully on Any Page / trunk
Audio Player Block – Play Audio Beautifully on Any Page vtrunk
1.6.2 1.6.1 1.6.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 All 37 releases
audio-player-block / plugin.php

plugin.php in Audio Player Block – Play Audio Beautifully on Any Page trunk, at plugin.php

70 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Audio Player Block – Advanced Block for Embedding Audio Files
5 * Plugin URI: https://bplugins.com/products/audio-player-block/
6 * Description: Listen Music on the Web.
7 * Version: 1.6.2
8 * Requires at least: 6.5
9 * Tested up to: 7.0
10 * Requires PHP: 7.1
11 * Author: bPlugins
12 * Author URI: https://bplugins.com
13 * License: GPLv3
14 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
15 * Text Domain: audio-player-block
16 */
17
18 if (!defined('ABSPATH')) {
19 exit;
20 };
21
22 if (function_exists('bpmp_fs')) {
23 bpmp_fs()->set_basename( true, __FILE__ );
24 } else {
25 define('BPMP_VERSION', isset($_SERVER['HTTP_HOST']) && 'localhost' === $_SERVER['HTTP_HOST'] ? time() : '1.6.2');
26 define('BPMP_DIR_URL', plugin_dir_url(__FILE__));
27 define('BPMP_DIR_PATH', plugin_dir_path(__FILE__));
28
29 if (! function_exists('bpmp_fs')) {
30 function bpmp_fs(){
31 global $bpmp_fs;
32
33 if (! isset($bpmp_fs)) {
34 require_once dirname(__FILE__) . '/vendor/freemius-lite/start.php';
35
36 $bpmp_fs = fs_lite_dynamic_init( array(
37 'id' => '17222',
38 'slug' => 'audio-player-block',
39 'type' => 'plugin',
40 'public_key' => 'pk_44dc77a45966f6bb4960f3efe87d5',
41 'is_premium' => false,
42 'menu' => array(
43 'slug' => 'edit.php?post_type=audio_player_block',
44 'first-path' => 'edit.php?post_type=audio_player_block&page=bpmp_demo_page#/welcome',
45 'support' => false,
46 ),
47 ));
48 }
49
50 return $bpmp_fs;
51 }
52
53 bpmp_fs();
54 do_action('bpmp_fs_loaded');
55 }
56
57 require_once BPMP_DIR_PATH . 'includes/core.php';
58
59 add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'bpmp_add_help_demo_link' );
60
61 function bpmp_add_help_demo_link( $links ) {
62
63 $help_link = '<a href="' . admin_url( 'edit.php?post_type=audio_player_block&page=bpmp_demo_page' ) . '" style="color:#FF7A00;font-weight:bold;">Help & Demos</a>';
64
65 $links[] = $help_link;
66
67 return $links;
68 }
69 }
70