PluginProbe
Advanced Ads – Ad Manager & AdSense / 1.7.2
Advanced Ads – Ad Manager & AdSense v1.7.2
2.0.26 2.0.25 2.0.24 2.0.23 2.0.22 2.0.21 1.38.0 1.39.0 1.39.1 1.39.2 1.39.3 1.39.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.40.0 1.40.1 1.40.2 All 348 releases
advanced-ads / advanced-ads.php
advanced-ads.php
69 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Advanced Ads.
4 *
5 * @package Advanced_Ads
6 * @author Thomas Maier <thomas.maier@webgilde.com>
7 * @license GPL-2.0+
8 * @link http://webgilde.com
9 * @copyright 2013-2015 Thomas Maier, webgilde GmbH
10 *
11 * @wordpress-plugin
12 * Plugin Name: Advanced Ads
13 * Plugin URI: https://wpadvancedads.com
14 * Description: Manage and optimize your ads in WordPress
15 * Version: 1.7.2
16 * Author: Thomas Maier
17 * Author URI: http://webgilde.com
18 * Text Domain: advanced-ads
19 * Domain Path: /languages
20 * License: GPL-2.0+
21 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
22 */
23
24 // If this file is called directly, abort.
25 if ( ! defined( 'WPINC' ) ) {
26 die;
27 }
28
29 // only load if not already existing (maybe included from another plugin)
30 if ( defined( 'ADVADS_BASE_PATH' ) ) {
31 return ;
32 }
33
34 // load basic path to the plugin
35 define( 'ADVADS_BASE', plugin_basename( __FILE__ ) ); // plugin base as used by WordPress to identify it
36 define( 'ADVADS_BASE_PATH', plugin_dir_path( __FILE__ ) );
37 define( 'ADVADS_BASE_URL', plugin_dir_url( __FILE__ ) );
38 define( 'ADVADS_BASE_DIR', dirname( ADVADS_BASE ) ); // directory of the plugin without any paths
39 // general and global slug, e.g. to store options in WP, textdomain
40 define( 'ADVADS_SLUG', 'advanced-ads' );
41 define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
42 define( 'ADVADS_VERSION', '1.7.2' );
43
44 /*----------------------------------------------------------------------------*
45 * Autoloading, modules and functions
46 *----------------------------------------------------------------------------*/
47
48 // load public functions (might be used by modules, other plugins or theme)
49 require_once ADVADS_BASE_PATH . 'includes/functions.php';
50 require_once ADVADS_BASE_PATH . 'includes/load_modules.php';
51 require_once ADVADS_BASE_PATH . 'includes/cap_map.php';
52
53 Advanced_Ads_ModuleLoader::getLoader(); // enable autoloading
54
55 /*----------------------------------------------------------------------------*
56 * Public-Facing and Core Functionality
57 *----------------------------------------------------------------------------*/
58
59 Advanced_Ads::get_instance();
60 Advanced_Ads_ModuleLoader::loadModules( ADVADS_BASE_PATH . 'modules/' ); // enable modules, requires base class
61
62 /*----------------------------------------------------------------------------*
63 * Dashboard and Administrative Functionality
64 *----------------------------------------------------------------------------*/
65
66 if ( is_admin() ) {
67 Advanced_Ads_Admin::get_instance();
68 }
69