-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreally-simple-featured-audio.php
87 lines (75 loc) · 2.32 KB
/
really-simple-featured-audio.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* Plugin Name: Really Simple Featured Audio
* Plugin URI: https://jetixwp.com/plugins/really-simple-featured-audio
* Description: Adds support for Featured Audio to WordPress posts, pages & WooCommerce products.
* Version: 1.0.3
* Author: JetixWP Plugins
* Author URI: https://jetixwp.com
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: really-simple-featured-audio
* Domain Path: /languages/
*
* @package RSFA
*/
defined( 'ABSPATH' ) || exit;
define( 'RSFA_VERSION', '1.0.3' );
define( 'RSFA_PLUGIN_FILE', __FILE__ );
define( 'RSFA_PLUGIN_URL', plugin_dir_url( RSFA_PLUGIN_FILE ) );
define( 'RSFA_PLUGIN_DIR', plugin_dir_path( RSFA_PLUGIN_FILE ) );
define( 'RSFA_PLUGIN_BASE', plugin_basename( RSFA_PLUGIN_FILE ) );
define( 'RSFA_PLUGIN_PRO_URL', 'https://jetixwp.com/plugins/really-simple-featured-audio' );
// Third party dependencies.
$vendor_file = __DIR__ . '/vendor/autoload.php';
if ( is_readable( $vendor_file ) ) {
require_once $vendor_file;
}
if ( ! function_exists( 'rsfa_fs' ) ) {
/**
* Create a helper function for easy SDK access.
*/
function rsfa_fs() {
global $rsfa_fs;
if ( ! function_exists( 'fs_dynamic_init' ) && file_exists( __DIR__ . '/vendor/freemius/wordpress-sdk/start.php' ) ) {
require_once __DIR__ . '/vendor/freemius/wordpress-sdk/start.php';
}
if ( ! isset( $rsfa_fs ) && function_exists( 'fs_dynamic_init' ) ) {
$rsfa_fs = fs_dynamic_init(
array(
'id' => '15832',
'slug' => 'really-simple-featured-audio',
'type' => 'plugin',
'public_key' => 'pk_966ab730c951fb6730786c41ce9ad',
'is_premium' => false,
'has_addons' => true,
'has_paid_plans' => false,
'menu' => array(
'slug' => 'rsfa-settings',
'first-path' => 'options-general.php?page=rsfa-settings',
'support' => false,
'parent' => array(
'slug' => 'options-general.php',
),
),
)
);
}
return $rsfa_fs;
}
// Init Freemius.
rsfa_fs();
// Signal that SDK was initiated.
do_action( 'rsfa_fs_loaded' );
}
/**
* Fire up plugin instance.
*/
add_action(
'plugins_loaded',
static function () {
require_once RSFA_PLUGIN_DIR . 'includes/class-plugin.php';
// Main instance.
\RSFA\Plugin::get_instance();
}
);