-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontextly-linker.php
63 lines (54 loc) · 1.75 KB
/
contextly-linker.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
<?php
/**
* Plugin Name: Contextly
* Plugin URI: https://contextly.com
* Description: Adds the Contextly content recommendation tool to your site. Contextly provides related, trending, evergreen and personalized recommendations to help your readers keep reading. Includes text, video and product recommendations to show off your best content.
* Author: Contextly
* Version: 6.1.3
*
* @package Contextly Related Links
* @link https://contextly.com
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
if ( ! defined( 'CONTEXTLY_MODE' ) ) {
define( 'CONTEXTLY_MODE', 'live' );
}
// Force all live clients to use HTTPS connection.
$is_https = is_ssl();
if ( CONTEXTLY_MODE === 'live' ) {
$is_https = true;
}
define( 'CONTEXTLY_HTTPS', $is_https );
define( 'CONTEXTLY_PLUGIN_FILE', __FILE__ );
define( 'CONTEXTLY_PLUGIN_VERSION', '6.1.3' );
define( 'CONTEXTLY_CDN_VERSION', 'branch' );
if ( ! defined( 'CONTEXTLY_MOD' ) ) {
define( 'CONTEXTLY_MOD', false );
}
if ( ! defined( 'CONTEXTLY_HEAD_SCRIPT_ACTION' ) ) {
define( 'CONTEXTLY_HEAD_SCRIPT_ACTION', 'wp_head' );
}
if ( ! defined( 'CONTEXTLY_HEAD_SCRIPT_WEIGHT' ) ) {
define( 'CONTEXTLY_HEAD_SCRIPT_WEIGHT', 10 );
}
if ( ! defined( 'CONTEXTLY_FOOTER_SCRIPT_ACTION' ) ) {
define( 'CONTEXTLY_FOOTER_SCRIPT_ACTION', 'wp_footer' );
}
if ( ! defined( 'CONTEXTLY_FOOTER_SCRIPT_WEIGHT' ) ) {
define( 'CONTEXTLY_FOOTER_SCRIPT_WEIGHT', 0 );
}
require_once 'kit/server/Kit.php';
ContextlyKit::registerAutoload();
require_once 'class-contextlywpkit.php';
require_once 'class-urls.php';
require_once 'class-contextly.php';
require_once 'class-contextlysettings.php';
if ( is_admin() ) {
$contextly_settings = new ContextlySettings();
$contextly_settings->init();
}
global $contextly;
$contextly = new Contextly();
$contextly->init();