forked from Automattic/fb-instant-articles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompat.php
65 lines (56 loc) · 2.29 KB
/
compat.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
60
61
62
63
64
65
<?php
/**
* Facebook Instant Articles for WP.
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
* @package default
*/
// Load compat layer for Co-Authors Plus.
if ( function_exists( 'get_coauthors' ) && ! defined( 'CAP_IA_COMPAT' ) ) {
include( dirname( __FILE__ ) . '/compat/class-instant-articles-co-authors-plus.php' );
$cap = new Instant_Articles_Co_Authors_Plus;
$cap->init();
}
// Load compat layer for Yoast SEO.
if ( defined( 'WPSEO_VERSION' ) && ! defined( 'WPSEO_IA_COMPAT' ) ) {
include( dirname( __FILE__ ) . '/compat/class-instant-articles-yoast-seo.php' );
$yseo = new Instant_Articles_Yoast_SEO;
$yseo->init();
}
// Load support for Google Analytics for WordPress by MonsterInsights.
if ( ( defined( 'GAWP_VERSION' ) || function_exists( 'MonsterInsights' ) ) && ! defined( 'GAWP_IA_COMPAT' ) ) {
include( dirname( __FILE__ ) . '/compat/class-instant-articles-google-analytics-for-wordpress.php' );
$gawp = new Instant_Articles_Google_Analytics_For_WordPress;
$gawp->init();
}
// Load support for Google Tag Manager for WordPress by Duracelltomi.
if ( defined( 'GTM4WP_VERSION' ) ) {
include( dirname( __FILE__ ) . '/compat/class-instant-articles-gtm4wp.php' );
$gtm4wp = new Instant_Articles_Google_Tag_Manager_For_WordPress;
$gtm4wp->init();
}
// Load support for Jetpack
if ( defined( 'JETPACK__VERSION' ) ) {
include( dirname( __FILE__ ) . '/compat/class-instant-articles-jetpack.php' );
$jp = new Instant_Articles_Jetpack;
$jp->init();
}
// Load support for Get The Image plugin
if ( function_exists( 'get_the_image' ) ) {
include( dirname( __FILE__ ) . '/compat/class-instant-articles-get-the-image.php' );
$gti = new Instant_Articles_Get_The_Image;
$gti->init();
}
// Load support for Playbuzz plugin by default #515
include( dirname( __FILE__ ) . '/compat/class-instant-articles-playbuzz.php' );
$playbuzz = new Instant_Articles_Playbuzz;
$playbuzz->init();
// Load support for Apester's plugin Medias
include( dirname( __FILE__ ) . '/compat/class-instant-articles-apester.php' );
$apester = new Instant_Articles_Apester;
$apester->init();
// Load support for Comscore
include( dirname( __FILE__ ) . '/compat/class-instant-articles-comscore.php' );
$comscore = new Instant_Articles_Comscore;
$comscore->init();