-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgenesis-ads.php
59 lines (53 loc) · 1.44 KB
/
genesis-ads.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
<?php
/**
* Advanced Ads – Genesis
*
* @package AdvancedAds
* @author Advanced Ads <[email protected]>
* @license GPL-2.0+
* @link https://wpadvancedads.com
* @copyright since 2013 Advanced Ads
*
* @wordpress-plugin
* Plugin Name: Advanced Ads – Genesis
* Version: 2.0.0
* Description: Place ads on various positions within Genesis themes
* Plugin URI: https://wpadvancedads.com/add-ons/genesis/
* Author: Advanced Ads
* Author URI: https://wpadvancedads.com
* Text Domain: advanced-ads-genesis
* Domain Path: /languages
* License: GPL-2.0+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
*
* @requires
* Requires at least: 5.7
* Requires PHP: 7.4
*/
// Early bail!!
if ( ! function_exists( 'add_filter' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
if ( defined( 'AAG_FILE' ) ) {
return;
}
define( 'AAG_FILE', __FILE__ );
define( 'AAG_VERSION', '2.0.0' );
// Load the autoloader.
require_once __DIR__ . '/includes/class-autoloader.php';
\AdvancedAds\Genesis\Autoloader::get()->initialize();
if ( ! function_exists( 'wp_advads_genesis' ) ) {
/**
* Returns the main instance of the plugin.
*
* @since 1.1.0
*
* @return \AdvancedAds\Genesis\Plugin
*/
function wp_advads_genesis() {
return \AdvancedAds\Genesis\Plugin::get();
}
}
\AdvancedAds\Genesis\Bootstrap::get()->start();