-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmp3jplayer.php
54 lines (42 loc) · 1.29 KB
/
mp3jplayer.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
<?php
/*
Plugin Name: MP3-jPlayer
Plugin URI: http://mp3-jplayer.com
Description: Easy, Flexible Audio for WordPress.
Version: 2.7.3
Author: Simon Ward
Author URI: http://www.sjward.org
License: GPL2
Text Domain: mp3-jplayer
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
*/
//prevent direct access
if ( ! function_exists( 'get_bloginfo' ) ) {
die();
}
//constants
define( 'MP3J_PLUGIN_PATH', dirname( __FILE__ ) );
define( 'MP3J_PLUGIN_URL', plugins_url( '', __FILE__ ) );
define( 'MP3J_SETTINGS_NAME', 'mp3FoxAdminOptions' );
//includes
include_once( MP3J_PLUGIN_PATH . '/widget-ui.php' );
include_once( MP3J_PLUGIN_PATH . '/widget-sh.php' );
include_once( MP3J_PLUGIN_PATH . '/template-functions.php' );
include_once( MP3J_PLUGIN_PATH . '/main.php' );
include_once( MP3J_PLUGIN_PATH . '/frontend.php' );
if ( is_admin() ) {
include_once( MP3J_PLUGIN_PATH . '/admin-settings.php');
include_once( MP3J_PLUGIN_PATH . '/admin-colours.php');
}
//create instance and hookup with wp
if ( class_exists( 'MP3j_Front' ) ) {
$MP3JP = new MP3j_Front();
}
if ( isset( $MP3JP ) ) {
$MP3JP->addPrimaryHooks();
$MP3JP->registerShortcodes();
$MP3JP->registerTagCallbacks();
}
?>