* @license GPL-2.0+ * @link http://circlewaves.com * @copyright 2014 Circlewaves Team * * @wordpress-plugin * Plugin Name: Ad Music Player Lite * Plugin URI: http://circlewaves.com/products/plugins/ad-music-player/ * Description: Sell and monetize music on your website. Player displays advertisements when the music plays. Lite version. * Version: 1.0.0 * Author: Circlewaves Team * Author URI: http://circlewaves.com * Text Domain: ad-music-player-locale * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Domain Path: /languages */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } /*----------------------------------------------------------------------------* * Public-Facing Functionality *----------------------------------------------------------------------------*/ require_once( plugin_dir_path( __FILE__ ) . 'public/ad-music-player-lite.php' ); /* * Register hooks that are fired when the plugin is activated or deactivated. * When the plugin is deleted, the uninstall.php file is loaded. */ register_activation_hook( __FILE__, array( 'Ad_Music_Player_Lite', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'Ad_Music_Player_Lite', 'deactivate' ) ); add_action( 'plugins_loaded', array( 'Ad_Music_Player_Lite', 'get_instance' ) ); /*----------------------------------------------------------------------------* * Dashboard and Administrative Functionality *----------------------------------------------------------------------------*/ /* * If you want to include Ajax within the dashboard, change the following * conditional to: * * if ( is_admin() ) { * ... * } * * The code below is intended to to give the lightest footprint possible. */ if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { require_once( plugin_dir_path( __FILE__ ) . 'admin/ad-music-player-lite-admin.php' ); add_action( 'plugins_loaded', array( 'Ad_Music_Player_Lite_Admin', 'get_instance' ) ); }