-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathnewspack-ads.php
More file actions
executable file
·46 lines (38 loc) · 1.23 KB
/
newspack-ads.php
File metadata and controls
executable file
·46 lines (38 loc) · 1.23 KB
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
<?php
/**
* Plugin Name: Newspack Ads
* Plugin URI: https://newspack.com
* Description: Ad services integration.
* Author: Automattic
* License: GPL2
* Version: 3.10.1
*
* @package Newspack
*/
namespace Newspack_Ads;
defined( 'ABSPATH' ) || exit;
define( 'NEWSPACK_ADS_VERSION', '3.10.1' );
// Define NEWSPACK_ADS_PLUGIN_FILE.
if ( ! defined( 'NEWSPACK_ADS_PLUGIN_FILE' ) ) {
define( 'NEWSPACK_ADS_PLUGIN_FILE', __FILE__ );
}
define( 'NEWSPACK_ADS_ABSPATH', dirname( NEWSPACK_ADS_PLUGIN_FILE ) . '/' );
define( 'NEWSPACK_ADS_BLOCKS_PATH', NEWSPACK_ADS_ABSPATH . 'src/blocks/' );
/**
* Path to the Composer vendor directory for Newspack Ads.
* Useful when running with a custom autoloader setup.
*
* @constant NEWSPACK_ADS_COMPOSER_ABSPATH
* @type string
* @default Plugin vendor directory
* @status draft
*
* @example define( 'NEWSPACK_ADS_COMPOSER_ABSPATH', '/path/to/vendor/' );
*/
if ( ! defined( 'NEWSPACK_ADS_COMPOSER_ABSPATH' ) ) {
define( 'NEWSPACK_ADS_COMPOSER_ABSPATH', dirname( NEWSPACK_ADS_PLUGIN_FILE ) . '/vendor/' );
}
// Include the main Newspack Ads class.
if ( ! class_exists( 'Newspack_Ads\Core' ) ) {
include_once __DIR__ . '/includes/class-core.php';
}