-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathnewspack-sponsors.php
28 lines (25 loc) · 1.06 KB
/
newspack-sponsors.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
<?php
/**
* Plugin Name: Newspack Sponsors
* Plugin URI: https://newspack.com
* Description: Add sponsors and sponsor info to posts. Allows special visual treatment for sponsored content.
* Author: Automattic
* Author URI: https://newspack.com
* Text Domain: newspack-sponsors
* Domain Path: /languages
* Version: 2.0.1
*
* @package Newspack_Sponsors
*/
defined( 'ABSPATH' ) || exit;
// Define NEWSPACK_SPONSORS_PLUGIN_FILE.
if ( ! defined( 'NEWSPACK_SPONSORS_PLUGIN_FILE' ) ) {
define( 'NEWSPACK_SPONSORS_PLUGIN_FILE', plugin_dir_path( __FILE__ ) );
define( 'NEWSPACK_SPONSORS_URL', plugin_dir_url( __FILE__ ) );
}
// Include plugin resources.
require_once NEWSPACK_SPONSORS_PLUGIN_FILE . '/vendor/autoload.php';
require_once NEWSPACK_SPONSORS_PLUGIN_FILE . '/includes/class-core.php';
require_once NEWSPACK_SPONSORS_PLUGIN_FILE . '/includes/class-settings.php';
require_once NEWSPACK_SPONSORS_PLUGIN_FILE . '/includes/class-editor.php';
require_once NEWSPACK_SPONSORS_PLUGIN_FILE . '/includes/theme-helpers.php';