Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 127 lines (112 sloc) 5.34 KB
<?php
/*
Plugin Name: Easy Digital Downloads
Plugin URI: http://easydigitaldownloads.com
Description: Serve Digital Downloads Through WordPress
Author: Pippin Williamson
Author URI: http://pippinsplugins.com
Version: 1.1.8
Easy Digital Downloads is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.
Easy Digital Downloads is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Easy Digital Downloads. If not, see <http://www.gnu.org/licenses/>.
*/
/*
|--------------------------------------------------------------------------
| CONSTANTS
|--------------------------------------------------------------------------
*/
// plugin folder url
if(!defined('EDD_PLUGIN_URL')) {
define('EDD_PLUGIN_URL', plugin_dir_url( __FILE__ ));
}
// plugin folder path
if(!defined('EDD_PLUGIN_DIR')) {
define('EDD_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
}
// plugin root file
if(!defined('EDD_PLUGIN_FILE')) {
define('EDD_PLUGIN_FILE', __FILE__);
}
/*
|--------------------------------------------------------------------------
| GLOBALS
|--------------------------------------------------------------------------
*/
global $edd_options;
/*
|--------------------------------------------------------------------------
| INTERNATIONALIZATION
|--------------------------------------------------------------------------
*/
function edd_textdomain() {
// Set filter for plugin's languages directory
$edd_lang_dir = dirname( plugin_basename( EDD_PLUGIN_FILE ) ) . '/languages/';
$edd_lang_dir = apply_filters( 'edd_languages_directory', $edd_lang_dir );
// Load the translations
load_plugin_textdomain( 'edd', false, $edd_lang_dir );
}
add_action('init', 'edd_textdomain');
/*
|--------------------------------------------------------------------------
| INCLUDES
|--------------------------------------------------------------------------
*/
include_once(EDD_PLUGIN_DIR . 'includes/register-settings.php');
$edd_options = edd_get_settings();
include_once(EDD_PLUGIN_DIR . 'includes/install.php');
include_once(EDD_PLUGIN_DIR . 'includes/actions.php');
include_once(EDD_PLUGIN_DIR . 'includes/deprecated-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/template-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/checkout-template.php');
include_once(EDD_PLUGIN_DIR . 'includes/cart-template.php');
include_once(EDD_PLUGIN_DIR . 'includes/cart-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/cart-actions.php');
include_once(EDD_PLUGIN_DIR . 'includes/ajax-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/widgets.php');
include_once(EDD_PLUGIN_DIR . 'includes/mime-types.php');
include_once(EDD_PLUGIN_DIR . 'includes/gateway-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/discount-actions.php');
include_once(EDD_PLUGIN_DIR . 'includes/discount-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/payment-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/payment-actions.php');
include_once(EDD_PLUGIN_DIR . 'includes/misc-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/download-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/scripts.php');
include_once(EDD_PLUGIN_DIR . 'includes/post-types.php');
include_once(EDD_PLUGIN_DIR . 'includes/plugin-compatibility.php');
include_once(EDD_PLUGIN_DIR . 'includes/email-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/email-template.php');
include_once(EDD_PLUGIN_DIR . 'includes/email-actions.php');
include_once(EDD_PLUGIN_DIR . 'includes/error-tracking.php');
include_once(EDD_PLUGIN_DIR . 'includes/user-functions.php');
if(is_admin()) {
include_once(EDD_PLUGIN_DIR . 'includes/admin-actions.php');
include_once(EDD_PLUGIN_DIR . 'includes/metabox.php');
include_once(EDD_PLUGIN_DIR . 'includes/admin-pages.php');
include_once(EDD_PLUGIN_DIR . 'includes/admin-pages/payments-history.php');
include_once(EDD_PLUGIN_DIR . 'includes/admin-pages/settings.php');
include_once(EDD_PLUGIN_DIR . 'includes/admin-pages/discount-codes.php');
include_once(EDD_PLUGIN_DIR . 'includes/admin-pages/reports.php');
include_once(EDD_PLUGIN_DIR . 'includes/admin-pages/add-ons.php');
include_once(EDD_PLUGIN_DIR . 'includes/admin-notices.php');
include_once(EDD_PLUGIN_DIR . 'includes/dashboard-columns.php');
include_once(EDD_PLUGIN_DIR . 'includes/thickbox.php');
include_once(EDD_PLUGIN_DIR . 'includes/graphing.php');
include_once(EDD_PLUGIN_DIR . 'includes/upload-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/export-functions.php');
include_once(EDD_PLUGIN_DIR . 'includes/pdf-reports.php');
} else {
include_once(EDD_PLUGIN_DIR . 'includes/process-purchase.php');
include_once(EDD_PLUGIN_DIR . 'includes/process-download.php');
include_once(EDD_PLUGIN_DIR . 'includes/shortcodes.php');
include_once(EDD_PLUGIN_DIR . 'includes/gateways/paypal-standard.php');
include_once(EDD_PLUGIN_DIR . 'includes/gateways/manual.php');
include_once(EDD_PLUGIN_DIR . 'includes/login-register.php');
}
Something went wrong with that request. Please try again.