Completed
Push — develop ( 5437c6...400f81 )
by David
06:08
created
src/includes/batch-analysis/class-wordlift-batch-analysis-adapter.php 2 patches
Indentation   +157 added lines, -157 removed lines patch added patch discarded remove patch
@@ -16,178 +16,178 @@
 block discarded – undo
16 16
  */
17 17
 class Wordlift_Batch_Analysis_Adapter {
18 18
 
19
-	/**
20
-	 * A {@link Wordlift_Log_Service} instance.
21
-	 *
22
-	 * @since  3.17.0
23
-	 * @access private
24
-	 * @var \Wordlift_Log_Service $log A {@link Wordlift_Log_Service} instance.
25
-	 */
26
-	private $log;
19
+    /**
20
+     * A {@link Wordlift_Log_Service} instance.
21
+     *
22
+     * @since  3.17.0
23
+     * @access private
24
+     * @var \Wordlift_Log_Service $log A {@link Wordlift_Log_Service} instance.
25
+     */
26
+    private $log;
27 27
 
28
-	/**
29
-	 * The {@link Wordlift_Batch_Analysis_Service} instance.
30
-	 *
31
-	 * @since  3.17.0
32
-	 * @access private
33
-	 * @var \Wordlift_Batch_Analysis_Service $batch_analysis_service The {@link Wordlift_Batch_Analysis_Service} instance.
34
-	 */
35
-	private $batch_analysis_service;
36
-
37
-	/**
38
-	 * Wordlift_Batch_Analysis_Adapter constructor.
39
-	 *
40
-	 * @since 3.14.2
41
-	 *
42
-	 * @param \Wordlift_Batch_Analysis_Service $batch_analysis_service
43
-	 */
44
-	public function __construct( $batch_analysis_service ) {
45
-
46
-		$this->log = Wordlift_Log_Service::get_logger( get_class() );
47
-
48
-		$this->batch_analysis_service = $batch_analysis_service;
49
-
50
-		add_action( 'wp_ajax_wl_batch_analysis_complete', array(
51
-			$this,
52
-			'complete',
53
-		) );
54
-
55
-	}
56
-
57
-	/**
58
-	 * Submit the posts for batch analysis.
59
-	 *
60
-	 * @since 3.14.2
61
-	 */
62
-	public function submit() {
63
-
64
-		// Get the parameters from the $_REQUEST.
65
-		$params = self::create_params_from_request();
66
-
67
-		// Submit the request.
68
-		$count = $this->batch_analysis_service->submit( $params );
69
-
70
-		// Clear any buffer.
71
-		ob_clean();
72
-
73
-		// Send the response.
74
-		wp_send_json_success( array( 'count' => $count ) );
75
-
76
-	}
77
-
78
-	/**
79
-	 * Submit the posts for batch analysis.
80
-	 *
81
-	 * @since 3.14.2
82
-	 */
83
-	public function submit_posts() {
84
-
85
-		$this->log->trace( 'Received Batch Analysis request for posts...' );
86
-
87
-		if ( empty( $_REQUEST['post'] ) ) {
88
-			$this->log->error( 'Batch Analysis request for posts missing the post(s) id.' );
89
-
90
-			wp_send_json_error( 'The `post` parameter is required.' );
91
-		}
92
-
93
-		// Get the parameters from the $_REQUEST.
94
-		$params = self::create_params_from_request();
95
-
96
-		// Submit the request.
97
-		$count = $this->batch_analysis_service->submit_posts( $params );
98
-
99
-		// Clear any buffer.
100
-		ob_clean();
101
-
102
-		// Send the response.
103
-		wp_send_json_success( array( 'count' => $count ) );
104
-
105
-	}
106
-
107
-	public function complete() {
108
-
109
-		$this->batch_analysis_service->complete();
110
-
111
-		wp_send_json_success();
112
-
113
-	}
114
-
115
-
116
-	/**
117
-	 * A helper function to create the parameters from the $_REQUEST.
118
-	 *
119
-	 * @since 3.17.0
120
-	 *
121
-	 * @return array An array or parameters.
122
-	 */
123
-	private static function create_params_from_request() {
28
+    /**
29
+     * The {@link Wordlift_Batch_Analysis_Service} instance.
30
+     *
31
+     * @since  3.17.0
32
+     * @access private
33
+     * @var \Wordlift_Batch_Analysis_Service $batch_analysis_service The {@link Wordlift_Batch_Analysis_Service} instance.
34
+     */
35
+    private $batch_analysis_service;
36
+
37
+    /**
38
+     * Wordlift_Batch_Analysis_Adapter constructor.
39
+     *
40
+     * @since 3.14.2
41
+     *
42
+     * @param \Wordlift_Batch_Analysis_Service $batch_analysis_service
43
+     */
44
+    public function __construct( $batch_analysis_service ) {
45
+
46
+        $this->log = Wordlift_Log_Service::get_logger( get_class() );
47
+
48
+        $this->batch_analysis_service = $batch_analysis_service;
49
+
50
+        add_action( 'wp_ajax_wl_batch_analysis_complete', array(
51
+            $this,
52
+            'complete',
53
+        ) );
54
+
55
+    }
56
+
57
+    /**
58
+     * Submit the posts for batch analysis.
59
+     *
60
+     * @since 3.14.2
61
+     */
62
+    public function submit() {
63
+
64
+        // Get the parameters from the $_REQUEST.
65
+        $params = self::create_params_from_request();
66
+
67
+        // Submit the request.
68
+        $count = $this->batch_analysis_service->submit( $params );
69
+
70
+        // Clear any buffer.
71
+        ob_clean();
72
+
73
+        // Send the response.
74
+        wp_send_json_success( array( 'count' => $count ) );
75
+
76
+    }
77
+
78
+    /**
79
+     * Submit the posts for batch analysis.
80
+     *
81
+     * @since 3.14.2
82
+     */
83
+    public function submit_posts() {
84
+
85
+        $this->log->trace( 'Received Batch Analysis request for posts...' );
86
+
87
+        if ( empty( $_REQUEST['post'] ) ) {
88
+            $this->log->error( 'Batch Analysis request for posts missing the post(s) id.' );
89
+
90
+            wp_send_json_error( 'The `post` parameter is required.' );
91
+        }
92
+
93
+        // Get the parameters from the $_REQUEST.
94
+        $params = self::create_params_from_request();
95
+
96
+        // Submit the request.
97
+        $count = $this->batch_analysis_service->submit_posts( $params );
98
+
99
+        // Clear any buffer.
100
+        ob_clean();
101
+
102
+        // Send the response.
103
+        wp_send_json_success( array( 'count' => $count ) );
104
+
105
+    }
106
+
107
+    public function complete() {
108
+
109
+        $this->batch_analysis_service->complete();
110
+
111
+        wp_send_json_success();
112
+
113
+    }
114
+
115
+
116
+    /**
117
+     * A helper function to create the parameters from the $_REQUEST.
118
+     *
119
+     * @since 3.17.0
120
+     *
121
+     * @return array An array or parameters.
122
+     */
123
+    private static function create_params_from_request() {
124 124
 
125
-		// Build params array and check if param exists.
126
-		// @codingStandardsIgnoreStart, Ignore phpcs indentation errors.
127
-		$params = array(
128
-			// Get the `links` parameter, or use `default` if not provided.
129
-			'links' => isset( $_REQUEST['links'] ) ? $_REQUEST['links'] : 'default',
130
-			// If `include_annotated` is set to `yes`, the set the parameter to true.
131
-			'include_annotated' => isset( $_REQUEST['include_annotated'] ) && 'yes' === $_REQUEST['include_annotated'],
132
-			// Set the minimum amount of occurrences, use `1` by default.
133
-			'min_occurrences' => isset( $_REQUEST['min_occurrences'] ) && is_numeric( $_REQUEST['min_occurrences'] ) ? intval( $_REQUEST['min_occurrences'] ) : 1,
134
-			// Set the `post_type` to `post` if none provided.
135
-			'post_type' => isset( $_REQUEST['post_type'] ) ? (array) $_REQUEST['post_type'] : 'post',
136
-			// Set the exclude array.
137
-			'exclude' => isset( $_REQUEST['exclude'] ) ? (array) $_REQUEST['exclude'] : array(),
138
-			// Set the `from` date, or null if not provided.
139
-			'from' => isset( $_REQUEST['from'] ) ? $_REQUEST['from'] : null,
140
-			// Set the `to` date, or null if not provided.
141
-			'to' => isset( $_REQUEST['to'] ) ? $_REQUEST['to'] : null,
142
-			//
143
-			'ids' => isset( $_REQUEST['post'] ) ? wp_parse_id_list( (array) $_REQUEST['post'] ) : array(),
144
-		);
125
+        // Build params array and check if param exists.
126
+        // @codingStandardsIgnoreStart, Ignore phpcs indentation errors.
127
+        $params = array(
128
+            // Get the `links` parameter, or use `default` if not provided.
129
+            'links' => isset( $_REQUEST['links'] ) ? $_REQUEST['links'] : 'default',
130
+            // If `include_annotated` is set to `yes`, the set the parameter to true.
131
+            'include_annotated' => isset( $_REQUEST['include_annotated'] ) && 'yes' === $_REQUEST['include_annotated'],
132
+            // Set the minimum amount of occurrences, use `1` by default.
133
+            'min_occurrences' => isset( $_REQUEST['min_occurrences'] ) && is_numeric( $_REQUEST['min_occurrences'] ) ? intval( $_REQUEST['min_occurrences'] ) : 1,
134
+            // Set the `post_type` to `post` if none provided.
135
+            'post_type' => isset( $_REQUEST['post_type'] ) ? (array) $_REQUEST['post_type'] : 'post',
136
+            // Set the exclude array.
137
+            'exclude' => isset( $_REQUEST['exclude'] ) ? (array) $_REQUEST['exclude'] : array(),
138
+            // Set the `from` date, or null if not provided.
139
+            'from' => isset( $_REQUEST['from'] ) ? $_REQUEST['from'] : null,
140
+            // Set the `to` date, or null if not provided.
141
+            'to' => isset( $_REQUEST['to'] ) ? $_REQUEST['to'] : null,
142
+            //
143
+            'ids' => isset( $_REQUEST['post'] ) ? wp_parse_id_list( (array) $_REQUEST['post'] ) : array(),
144
+        );
145 145
 
146
-		// @codingStandardsIgnoreEnd
146
+        // @codingStandardsIgnoreEnd
147 147
 
148
-		return $params;
149
-	}
148
+        return $params;
149
+    }
150 150
 
151
-	/**
152
-	 * Cancel the batch analysis for the specified post.
153
-	 *
154
-	 * @since 3.14.0
155
-	 */
156
-	public function cancel() {
151
+    /**
152
+     * Cancel the batch analysis for the specified post.
153
+     *
154
+     * @since 3.14.0
155
+     */
156
+    public function cancel() {
157 157
 
158
-		if ( ! isset( $_REQUEST['post'] ) ) {
159
-			wp_die( 'The `post` parameter is required.' );
160
-		}
158
+        if ( ! isset( $_REQUEST['post'] ) ) {
159
+            wp_die( 'The `post` parameter is required.' );
160
+        }
161 161
 
162
-		$count = $this->batch_analysis_service->cancel( (array) $_REQUEST['post'] );
162
+        $count = $this->batch_analysis_service->cancel( (array) $_REQUEST['post'] );
163 163
 
164
-		// Clear any buffer.
165
-		ob_clean();
164
+        // Clear any buffer.
165
+        ob_clean();
166 166
 
167
-		// Send the response.
168
-		wp_send_json_success( array( 'count' => $count ) );
167
+        // Send the response.
168
+        wp_send_json_success( array( 'count' => $count ) );
169 169
 
170
-	}
170
+    }
171 171
 
172
-	/**
173
-	 * Clear warnings for the specified post.
174
-	 *
175
-	 * @since 3.14.0
176
-	 */
177
-	public function clear_warning() {
172
+    /**
173
+     * Clear warnings for the specified post.
174
+     *
175
+     * @since 3.14.0
176
+     */
177
+    public function clear_warning() {
178 178
 
179
-		if ( ! isset( $_REQUEST['post'] ) ) {
180
-			wp_die( 'The `post` parameter is required.' );
181
-		}
179
+        if ( ! isset( $_REQUEST['post'] ) ) {
180
+            wp_die( 'The `post` parameter is required.' );
181
+        }
182 182
 
183
-		$this->batch_analysis_service->clear_warning( (array) $_REQUEST['post'] );
183
+        $this->batch_analysis_service->clear_warning( (array) $_REQUEST['post'] );
184 184
 
185
-		// Clear any buffer.
186
-		ob_clean();
185
+        // Clear any buffer.
186
+        ob_clean();
187 187
 
188
-		// Send the response.
189
-		wp_send_json_success();
188
+        // Send the response.
189
+        wp_send_json_success();
190 190
 
191
-	}
191
+    }
192 192
 
193 193
 }
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -41,16 +41,16 @@  discard block
 block discarded – undo
41 41
 	 *
42 42
 	 * @param \Wordlift_Batch_Analysis_Service $batch_analysis_service
43 43
 	 */
44
-	public function __construct( $batch_analysis_service ) {
44
+	public function __construct($batch_analysis_service) {
45 45
 
46
-		$this->log = Wordlift_Log_Service::get_logger( get_class() );
46
+		$this->log = Wordlift_Log_Service::get_logger(get_class());
47 47
 
48 48
 		$this->batch_analysis_service = $batch_analysis_service;
49 49
 
50
-		add_action( 'wp_ajax_wl_batch_analysis_complete', array(
50
+		add_action('wp_ajax_wl_batch_analysis_complete', array(
51 51
 			$this,
52 52
 			'complete',
53
-		) );
53
+		));
54 54
 
55 55
 	}
56 56
 
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
 		$params = self::create_params_from_request();
66 66
 
67 67
 		// Submit the request.
68
-		$count = $this->batch_analysis_service->submit( $params );
68
+		$count = $this->batch_analysis_service->submit($params);
69 69
 
70 70
 		// Clear any buffer.
71 71
 		ob_clean();
72 72
 
73 73
 		// Send the response.
74
-		wp_send_json_success( array( 'count' => $count ) );
74
+		wp_send_json_success(array('count' => $count));
75 75
 
76 76
 	}
77 77
 
@@ -82,25 +82,25 @@  discard block
 block discarded – undo
82 82
 	 */
83 83
 	public function submit_posts() {
84 84
 
85
-		$this->log->trace( 'Received Batch Analysis request for posts...' );
85
+		$this->log->trace('Received Batch Analysis request for posts...');
86 86
 
87
-		if ( empty( $_REQUEST['post'] ) ) {
88
-			$this->log->error( 'Batch Analysis request for posts missing the post(s) id.' );
87
+		if (empty($_REQUEST['post'])) {
88
+			$this->log->error('Batch Analysis request for posts missing the post(s) id.');
89 89
 
90
-			wp_send_json_error( 'The `post` parameter is required.' );
90
+			wp_send_json_error('The `post` parameter is required.');
91 91
 		}
92 92
 
93 93
 		// Get the parameters from the $_REQUEST.
94 94
 		$params = self::create_params_from_request();
95 95
 
96 96
 		// Submit the request.
97
-		$count = $this->batch_analysis_service->submit_posts( $params );
97
+		$count = $this->batch_analysis_service->submit_posts($params);
98 98
 
99 99
 		// Clear any buffer.
100 100
 		ob_clean();
101 101
 
102 102
 		// Send the response.
103
-		wp_send_json_success( array( 'count' => $count ) );
103
+		wp_send_json_success(array('count' => $count));
104 104
 
105 105
 	}
106 106
 
@@ -126,21 +126,21 @@  discard block
 block discarded – undo
126 126
 		// @codingStandardsIgnoreStart, Ignore phpcs indentation errors.
127 127
 		$params = array(
128 128
 			// Get the `links` parameter, or use `default` if not provided.
129
-			'links' => isset( $_REQUEST['links'] ) ? $_REQUEST['links'] : 'default',
129
+			'links' => isset($_REQUEST['links']) ? $_REQUEST['links'] : 'default',
130 130
 			// If `include_annotated` is set to `yes`, the set the parameter to true.
131
-			'include_annotated' => isset( $_REQUEST['include_annotated'] ) && 'yes' === $_REQUEST['include_annotated'],
131
+			'include_annotated' => isset($_REQUEST['include_annotated']) && 'yes' === $_REQUEST['include_annotated'],
132 132
 			// Set the minimum amount of occurrences, use `1` by default.
133
-			'min_occurrences' => isset( $_REQUEST['min_occurrences'] ) && is_numeric( $_REQUEST['min_occurrences'] ) ? intval( $_REQUEST['min_occurrences'] ) : 1,
133
+			'min_occurrences' => isset($_REQUEST['min_occurrences']) && is_numeric($_REQUEST['min_occurrences']) ? intval($_REQUEST['min_occurrences']) : 1,
134 134
 			// Set the `post_type` to `post` if none provided.
135
-			'post_type' => isset( $_REQUEST['post_type'] ) ? (array) $_REQUEST['post_type'] : 'post',
135
+			'post_type' => isset($_REQUEST['post_type']) ? (array) $_REQUEST['post_type'] : 'post',
136 136
 			// Set the exclude array.
137
-			'exclude' => isset( $_REQUEST['exclude'] ) ? (array) $_REQUEST['exclude'] : array(),
137
+			'exclude' => isset($_REQUEST['exclude']) ? (array) $_REQUEST['exclude'] : array(),
138 138
 			// Set the `from` date, or null if not provided.
139
-			'from' => isset( $_REQUEST['from'] ) ? $_REQUEST['from'] : null,
139
+			'from' => isset($_REQUEST['from']) ? $_REQUEST['from'] : null,
140 140
 			// Set the `to` date, or null if not provided.
141
-			'to' => isset( $_REQUEST['to'] ) ? $_REQUEST['to'] : null,
141
+			'to' => isset($_REQUEST['to']) ? $_REQUEST['to'] : null,
142 142
 			//
143
-			'ids' => isset( $_REQUEST['post'] ) ? wp_parse_id_list( (array) $_REQUEST['post'] ) : array(),
143
+			'ids' => isset($_REQUEST['post']) ? wp_parse_id_list((array) $_REQUEST['post']) : array(),
144 144
 		);
145 145
 
146 146
 		// @codingStandardsIgnoreEnd
@@ -155,17 +155,17 @@  discard block
 block discarded – undo
155 155
 	 */
156 156
 	public function cancel() {
157 157
 
158
-		if ( ! isset( $_REQUEST['post'] ) ) {
159
-			wp_die( 'The `post` parameter is required.' );
158
+		if ( ! isset($_REQUEST['post'])) {
159
+			wp_die('The `post` parameter is required.');
160 160
 		}
161 161
 
162
-		$count = $this->batch_analysis_service->cancel( (array) $_REQUEST['post'] );
162
+		$count = $this->batch_analysis_service->cancel((array) $_REQUEST['post']);
163 163
 
164 164
 		// Clear any buffer.
165 165
 		ob_clean();
166 166
 
167 167
 		// Send the response.
168
-		wp_send_json_success( array( 'count' => $count ) );
168
+		wp_send_json_success(array('count' => $count));
169 169
 
170 170
 	}
171 171
 
@@ -176,11 +176,11 @@  discard block
 block discarded – undo
176 176
 	 */
177 177
 	public function clear_warning() {
178 178
 
179
-		if ( ! isset( $_REQUEST['post'] ) ) {
180
-			wp_die( 'The `post` parameter is required.' );
179
+		if ( ! isset($_REQUEST['post'])) {
180
+			wp_die('The `post` parameter is required.');
181 181
 		}
182 182
 
183
-		$this->batch_analysis_service->clear_warning( (array) $_REQUEST['post'] );
183
+		$this->batch_analysis_service->clear_warning((array) $_REQUEST['post']);
184 184
 
185 185
 		// Clear any buffer.
186 186
 		ob_clean();
Please login to merge, or discard this patch.
src/includes/class-wordlift.php 1 patch
Indentation   +1444 added lines, -1444 removed lines patch added patch discarded remove patch
@@ -28,1489 +28,1489 @@
 block discarded – undo
28 28
  */
29 29
 class Wordlift {
30 30
 
31
-	/**
32
-	 * The loader that's responsible for maintaining and registering all hooks that power
33
-	 * the plugin.
34
-	 *
35
-	 * @since    1.0.0
36
-	 * @access   protected
37
-	 * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
38
-	 */
39
-	protected $loader;
40
-
41
-	/**
42
-	 * The unique identifier of this plugin.
43
-	 *
44
-	 * @since    1.0.0
45
-	 * @access   protected
46
-	 * @var      string $plugin_name The string used to uniquely identify this plugin.
47
-	 */
48
-	protected $plugin_name;
49
-
50
-	/**
51
-	 * The current version of the plugin.
52
-	 *
53
-	 * @since    1.0.0
54
-	 * @access   protected
55
-	 * @var      string $version The current version of the plugin.
56
-	 */
57
-	protected $version;
58
-
59
-	/**
60
-	 * The {@link Wordlift_Tinymce_Adapter} instance.
61
-	 *
62
-	 * @since  3.12.0
63
-	 * @access protected
64
-	 * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
65
-	 */
66
-	protected $tinymce_adapter;
67
-
68
-	/**
69
-	 * The Thumbnail service.
70
-	 *
71
-	 * @since  3.1.5
72
-	 * @access private
73
-	 * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
74
-	 */
75
-	private $thumbnail_service;
76
-
77
-	/**
78
-	 * The UI service.
79
-	 *
80
-	 * @since  3.2.0
81
-	 * @access private
82
-	 * @var \Wordlift_UI_Service $ui_service The UI service.
83
-	 */
84
-	private $ui_service;
85
-
86
-	/**
87
-	 * The Schema service.
88
-	 *
89
-	 * @since  3.3.0
90
-	 * @access protected
91
-	 * @var \Wordlift_Schema_Service $schema_service The Schema service.
92
-	 */
93
-	protected $schema_service;
94
-
95
-	/**
96
-	 * The Entity service.
97
-	 *
98
-	 * @since  3.1.0
99
-	 * @access protected
100
-	 * @var \Wordlift_Entity_Service $entity_service The Entity service.
101
-	 */
102
-	protected $entity_service;
103
-
104
-	/**
105
-	 * The Topic Taxonomy service.
106
-	 *
107
-	 * @since  3.5.0
108
-	 * @access private
109
-	 * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
110
-	 */
111
-	private $topic_taxonomy_service;
112
-
113
-	/**
114
-	 * The User service.
115
-	 *
116
-	 * @since  3.1.7
117
-	 * @access protected
118
-	 * @var \Wordlift_User_Service $user_service The User service.
119
-	 */
120
-	protected $user_service;
121
-
122
-	/**
123
-	 * The Timeline service.
124
-	 *
125
-	 * @since  3.1.0
126
-	 * @access private
127
-	 * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
128
-	 */
129
-	private $timeline_service;
130
-
131
-	/**
132
-	 * The Redirect service.
133
-	 *
134
-	 * @since  3.2.0
135
-	 * @access private
136
-	 * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
137
-	 */
138
-	private $redirect_service;
139
-
140
-	/**
141
-	 * The Notice service.
142
-	 *
143
-	 * @since  3.3.0
144
-	 * @access private
145
-	 * @var \Wordlift_Notice_Service $notice_service The Notice service.
146
-	 */
147
-	private $notice_service;
148
-
149
-	/**
150
-	 * The Entity list customization.
151
-	 *
152
-	 * @since  3.3.0
153
-	 * @access protected
154
-	 * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
155
-	 */
156
-	protected $entity_list_service;
157
-
158
-	/**
159
-	 * The Entity Types Taxonomy Walker.
160
-	 *
161
-	 * @since  3.1.0
162
-	 * @access private
163
-	 * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
164
-	 */
165
-	private $entity_types_taxonomy_walker;
166
-
167
-	/**
168
-	 * The ShareThis service.
169
-	 *
170
-	 * @since  3.2.0
171
-	 * @access private
172
-	 * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
173
-	 */
174
-	private $sharethis_service;
175
-
176
-	/**
177
-	 * The PrimaShop adapter.
178
-	 *
179
-	 * @since  3.2.3
180
-	 * @access private
181
-	 * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
182
-	 */
183
-	private $primashop_adapter;
184
-
185
-	/**
186
-	 * The WordLift Dashboard adapter.
187
-	 *
188
-	 * @since  3.4.0
189
-	 * @access private
190
-	 * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
191
-	 */
192
-	private $dashboard_service;
193
-
194
-	/**
195
-	 * The entity type service.
196
-	 *
197
-	 * @since  3.6.0
198
-	 * @access private
199
-	 * @var \Wordlift_Entity_Post_Type_Service
200
-	 */
201
-	private $entity_post_type_service;
202
-
203
-	/**
204
-	 * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
205
-	 *
206
-	 * @since  3.6.0
207
-	 * @access private
208
-	 * @var \Wordlift_Entity_Link_Service
209
-	 */
210
-	private $entity_link_service;
211
-
212
-	/**
213
-	 * A {@link Wordlift_Sparql_Service} instance.
214
-	 *
215
-	 * @since    3.6.0
216
-	 * @access   protected
217
-	 * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
218
-	 */
219
-	protected $sparql_service;
220
-
221
-	/**
222
-	 * A {@link Wordlift_Import_Service} instance.
223
-	 *
224
-	 * @since  3.6.0
225
-	 * @access private
226
-	 * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
227
-	 */
228
-	private $import_service;
229
-
230
-	/**
231
-	 * A {@link Wordlift_Rebuild_Service} instance.
232
-	 *
233
-	 * @since  3.6.0
234
-	 * @access private
235
-	 * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
236
-	 */
237
-	private $rebuild_service;
238
-
239
-	/**
240
-	 * A {@link Wordlift_Jsonld_Service} instance.
241
-	 *
242
-	 * @since  3.7.0
243
-	 * @access protected
244
-	 * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
245
-	 */
246
-	protected $jsonld_service;
247
-
248
-	/**
249
-	 * A {@link Wordlift_Website_Jsonld_Converter} instance.
250
-	 *
251
-	 * @since  3.14.0
252
-	 * @access protected
253
-	 * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
254
-	 */
255
-	protected $jsonld_website_converter;
256
-
257
-	/**
258
-	 * A {@link Wordlift_Property_Factory} instance.
259
-	 *
260
-	 * @since  3.7.0
261
-	 * @access private
262
-	 * @var \Wordlift_Property_Factory $property_factory
263
-	 */
264
-	private $property_factory;
265
-
266
-	/**
267
-	 * The 'Download Your Data' page.
268
-	 *
269
-	 * @since  3.6.0
270
-	 * @access private
271
-	 * @var \Wordlift_Admin_Download_Your_Data_Page $download_your_data_page The 'Download Your Data' page.
272
-	 */
273
-	private $download_your_data_page;
274
-
275
-	/**
276
-	 * The 'WordLift Settings' page.
277
-	 *
278
-	 * @since  3.11.0
279
-	 * @access protected
280
-	 * @var \Wordlift_Admin_Settings_Page $settings_page The 'WordLift Settings' page.
281
-	 */
282
-	protected $settings_page;
283
-
284
-	/**
285
-	 * The 'WordLift Batch analysis' page.
286
-	 *
287
-	 * @since  3.14.0
288
-	 * @access protected
289
-	 * @var \Wordlift_Batch_Analysis_Page $sbatch_analysis_page The 'WordLift batcch analysis' page.
290
-	 */
291
-	protected $batch_analysis_page;
292
-
293
-	/**
294
-	 * The install wizard page.
295
-	 *
296
-	 * @since  3.9.0
297
-	 * @access private
298
-	 * @var \Wordlift_Admin_Setup $admin_setup The Install wizard.
299
-	 */
300
-	private $admin_setup;
301
-
302
-	/**
303
-	 * The Content Filter Service hooks up to the 'the_content' filter and provides
304
-	 * linking of entities to their pages.
305
-	 *
306
-	 * @since  3.8.0
307
-	 * @access private
308
-	 * @var \Wordlift_Content_Filter_Service $content_filter_service A {@link Wordlift_Content_Filter_Service} instance.
309
-	 */
310
-	private $content_filter_service;
311
-
312
-	/**
313
-	 * A {@link Wordlift_Key_Validation_Service} instance.
314
-	 *
315
-	 * @since  3.9.0
316
-	 * @access private
317
-	 * @var Wordlift_Key_Validation_Service $key_validation_service A {@link Wordlift_Key_Validation_Service} instance.
318
-	 */
319
-	private $key_validation_service;
320
-
321
-	/**
322
-	 * A {@link Wordlift_Rating_Service} instance.
323
-	 *
324
-	 * @since  3.10.0
325
-	 * @access private
326
-	 * @var \Wordlift_Rating_Service $rating_service A {@link Wordlift_Rating_Service} instance.
327
-	 */
328
-	private $rating_service;
329
-
330
-	/**
331
-	 * A {@link Wordlift_Post_To_Jsonld_Converter} instance.
332
-	 *
333
-	 * @since  3.10.0
334
-	 * @access protected
335
-	 * @var \Wordlift_Post_To_Jsonld_Converter $post_to_jsonld_converter A {@link Wordlift_Post_To_Jsonld_Converter} instance.
336
-	 */
337
-	protected $post_to_jsonld_converter;
338
-
339
-	/**
340
-	 * A {@link Wordlift_Configuration_Service} instance.
341
-	 *
342
-	 * @since  3.10.0
343
-	 * @access protected
344
-	 * @var \Wordlift_Configuration_Service $configuration_service A {@link Wordlift_Configuration_Service} instance.
345
-	 */
346
-	protected $configuration_service;
347
-
348
-	/**
349
-	 * A {@link Wordlift_Entity_Type_Service} instance.
350
-	 *
351
-	 * @since  3.10.0
352
-	 * @access protected
353
-	 * @var \Wordlift_Entity_Type_Service $entity_type_service A {@link Wordlift_Entity_Type_Service} instance.
354
-	 */
355
-	protected $entity_type_service;
356
-
357
-	/**
358
-	 * A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
359
-	 *
360
-	 * @since  3.10.0
361
-	 * @access protected
362
-	 * @var \Wordlift_Entity_Post_To_Jsonld_Converter $entity_post_to_jsonld_converter A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
363
-	 */
364
-	protected $entity_post_to_jsonld_converter;
365
-
366
-	/**
367
-	 * A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
368
-	 *
369
-	 * @since  3.10.0
370
-	 * @access protected
371
-	 * @var \Wordlift_Postid_To_Jsonld_Converter $postid_to_jsonld_converter A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
372
-	 */
373
-	protected $postid_to_jsonld_converter;
374
-
375
-	/**
376
-	 * The {@link Wordlift_Admin_Status_Page} class.
377
-	 *
378
-	 * @since  3.9.8
379
-	 * @access private
380
-	 * @var \Wordlift_Admin_Status_Page $status_page The {@link Wordlift_Admin_Status_Page} class.
381
-	 */
382
-	private $status_page;
383
-
384
-	/**
385
-	 * The {@link Wordlift_Category_Taxonomy_Service} instance.
386
-	 *
387
-	 * @since  3.11.0
388
-	 * @access protected
389
-	 * @var \Wordlift_Category_Taxonomy_Service $category_taxonomy_service The {@link Wordlift_Category_Taxonomy_Service} instance.
390
-	 */
391
-	protected $category_taxonomy_service;
392
-
393
-	/**
394
-	 * The {@link Wordlift_Entity_Page_Service} instance.
395
-	 *
396
-	 * @since  3.11.0
397
-	 * @access protected
398
-	 * @var \Wordlift_Entity_Page_Service $entity_page_service The {@link Wordlift_Entity_Page_Service} instance.
399
-	 */
400
-	protected $entity_page_service;
401
-
402
-	/**
403
-	 * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
404
-	 *
405
-	 * @since  3.11.0
406
-	 * @access protected
407
-	 * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
408
-	 */
409
-	protected $settings_page_action_link;
410
-
411
-	/**
412
-	 * The {@link Wordlift_Publisher_Ajax_Adapter} instance.
413
-	 *
414
-	 * @since  3.11.0
415
-	 * @access protected
416
-	 * @var \Wordlift_Publisher_Ajax_Adapter $publisher_ajax_adapter The {@link Wordlift_Publisher_Ajax_Adapter} instance.
417
-	 */
418
-	protected $publisher_ajax_adapter;
419
-
420
-	/**
421
-	 * The {@link Wordlift_Admin_Input_Element} element renderer.
422
-	 *
423
-	 * @since  3.11.0
424
-	 * @access protected
425
-	 * @var \Wordlift_Admin_Input_Element $input_element The {@link Wordlift_Admin_Input_Element} element renderer.
426
-	 */
427
-	protected $input_element;
428
-
429
-	/**
430
-	 * The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
431
-	 *
432
-	 * @since  3.13.0
433
-	 * @access protected
434
-	 * @var \Wordlift_Admin_Radio_Input_Element $radio_input_element The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
435
-	 */
436
-	protected $radio_input_element;
437
-
438
-	/**
439
-	 * The {@link Wordlift_Admin_Language_Select_Element} element renderer.
440
-	 *
441
-	 * @since  3.11.0
442
-	 * @access protected
443
-	 * @var \Wordlift_Admin_Language_Select_Element $language_select_element The {@link Wordlift_Admin_Language_Select_Element} element renderer.
444
-	 */
445
-	protected $language_select_element;
446
-
447
-	/**
448
-	 * The {@link Wordlift_Admin_Publisher_Element} element renderer.
449
-	 *
450
-	 * @since  3.11.0
451
-	 * @access protected
452
-	 * @var \Wordlift_Admin_Publisher_Element $publisher_element The {@link Wordlift_Admin_Publisher_Element} element renderer.
453
-	 */
454
-	protected $publisher_element;
455
-
456
-	/**
457
-	 * The {@link Wordlift_Admin_Select2_Element} element renderer.
458
-	 *
459
-	 * @since  3.11.0
460
-	 * @access protected
461
-	 * @var \Wordlift_Admin_Select2_Element $select2_element The {@link Wordlift_Admin_Select2_Element} element renderer.
462
-	 */
463
-	protected $select2_element;
464
-
465
-	/**
466
-	 * The controller for the entity type list admin page
467
-	 *
468
-	 * @since  3.11.0
469
-	 * @access private
470
-	 * @var \Wordlift_Admin_Entity_Taxonomy_List_Page $entity_type_admin_page The {@link Wordlift_Admin_Entity_Taxonomy_List_Page} class.
471
-	 */
472
-	private $entity_type_admin_page;
473
-
474
-	/**
475
-	 * The controller for the entity type settings admin page
476
-	 *
477
-	 * @since  3.11.0
478
-	 * @access private
479
-	 * @var \Wordlift_Admin_Entity_Type_Settings $entity_type_settings_admin_page The {@link Wordlift_Admin_Entity_Type_Settings} class.
480
-	 */
481
-	private $entity_type_settings_admin_page;
482
-
483
-	/**
484
-	 * The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
485
-	 *
486
-	 * @since  3.11.0
487
-	 * @access protected
488
-	 * @var \Wordlift_Related_Entities_Cloud_Widget $related_entities_cloud_widget The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
489
-	 */
490
-	protected $related_entities_cloud_widget;
491
-
492
-	/**
493
-	 * The {@link Wordlift_Admin_Author_Element} instance.
494
-	 *
495
-	 * @since  3.14.0
496
-	 * @access protected
497
-	 * @var \Wordlift_Admin_Author_Element $author_element The {@link Wordlift_Admin_Author_Element} instance.
498
-	 */
499
-	protected $author_element;
500
-
501
-	/**
502
-	 * The {@link Wordlift_Batch_Analysis_Service} instance.
503
-	 *
504
-	 * @since  3.14.0
505
-	 * @access protected
506
-	 * @var \Wordlift_Batch_Analysis_Service $batch_analysis_service The {@link Wordlift_Batch_Analysis_Service} instance.
507
-	 */
508
-	protected $batch_analysis_service;
509
-
510
-	/**
511
-	 * The {@link Wordlift_Sample_Data_Service} instance.
512
-	 *
513
-	 * @since  3.12.0
514
-	 * @access protected
515
-	 * @var \Wordlift_Sample_Data_Service $sample_data_service The {@link Wordlift_Sample_Data_Service} instance.
516
-	 */
517
-	protected $sample_data_service;
518
-
519
-	/**
520
-	 * The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
521
-	 *
522
-	 * @since  3.12.0
523
-	 * @access protected
524
-	 * @var \Wordlift_Sample_Data_Ajax_Adapter $sample_data_ajax_adapter The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
525
-	 */
526
-	protected $sample_data_ajax_adapter;
527
-
528
-	/**
529
-	 * The {@link Wordlift_Batch_Analysis_Adapter} instance.
530
-	 *
531
-	 * @since  3.14.2
532
-	 * @access protected
533
-	 * @var \Wordlift_Batch_Analysis_Adapter $batch_analysis_adapter The {@link Wordlift_Batch_Analysis_Adapter} instance.
534
-	 */
535
-	private $batch_analysis_adapter;
536
-
537
-	/**
538
-	 * The {@link Wordlift_Relation_Rebuild_Service} instance.
539
-	 *
540
-	 * @since  3.14.3
541
-	 * @access private
542
-	 * @var \Wordlift_Relation_Rebuild_Service $relation_rebuild_service The {@link Wordlift_Relation_Rebuild_Service} instance.
543
-	 */
544
-	private $relation_rebuild_service;
545
-
546
-	/**
547
-	 * The {@link Wordlift_Relation_Rebuild_Adapter} instance.
548
-	 *
549
-	 * @since  3.14.3
550
-	 * @access private
551
-	 * @var \Wordlift_Relation_Rebuild_Adapter $relation_rebuild_adapter The {@link Wordlift_Relation_Rebuild_Adapter} instance.
552
-	 */
553
-	private $relation_rebuild_adapter;
554
-
555
-	/**
556
-	 * The {@link Wordlift_Google_Analytics_Export_Service} instance.
557
-	 *
558
-	 * @since  3.16.0
559
-	 * @access protected
560
-	 * @var \Wordlift_Google_Analytics_Export_Service $google_analytics_export_service The {@link Wordlift_Google_Analytics_Export_Service} instance.
561
-	 */
562
-	protected $google_analytics_export_service;
563
-
564
-	/**
565
-	 * {@link Wordlift}'s singleton instance.
566
-	 *
567
-	 * @since  3.15.0
568
-	 * @access protected
569
-	 * @var \Wordlift_Entity_Type_Adapter $entity_type_adapter The {@link Wordlift_Entity_Type_Adapter} instance.
570
-	 */
571
-	protected $entity_type_adapter;
572
-
573
-	/**
574
-	 * The {@link Wordlift_Linked_Data_Service} instance.
575
-	 *
576
-	 * @since  3.15.0
577
-	 * @access protected
578
-	 * @var \Wordlift_Linked_Data_Service $linked_data_service The {@link Wordlift_Linked_Data_Service} instance.
579
-	 */
580
-	protected $linked_data_service;
581
-
582
-	/**
583
-	 * The {@link Wordlift_Storage_Factory} instance.
584
-	 *
585
-	 * @since  3.15.0
586
-	 * @access protected
587
-	 * @var \Wordlift_Storage_Factory $storage_factory The {@link Wordlift_Storage_Factory} instance.
588
-	 */
589
-	protected $storage_factory;
590
-
591
-	/**
592
-	 * The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
593
-	 *
594
-	 * @since  3.15.0
595
-	 * @access protected
596
-	 * @var \Wordlift_Sparql_Tuple_Rendition_Factory $rendition_factory The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
597
-	 */
598
-	protected $rendition_factory;
599
-
600
-	/**
601
-	 * The {@link Wordlift_Autocomplete_Service} instance.
602
-	 *
603
-	 * @since  3.15.0
604
-	 * @access private
605
-	 * @var \Wordlift_Autocomplete_Service $autocomplete_service The {@link Wordlift_Autocomplete_Service} instance.
606
-	 */
607
-	private $autocomplete_service;
608
-
609
-	/**
610
-	 * The {@link Wordlift_Autocomplete_Adapter} instance.
611
-	 *
612
-	 * @since  3.15.0
613
-	 * @access private
614
-	 * @var \Wordlift_Autocomplete_Adapter $autocomplete_adapter The {@link Wordlift_Autocomplete_Adapter} instance.
615
-	 */
616
-	private $autocomplete_adapter;
617
-
618
-	/**
619
-	 * The {@link Wordlift_Relation_Service} instance.
620
-	 *
621
-	 * @since  3.15.0
622
-	 * @access protected
623
-	 * @var \Wordlift_Relation_Service $relation_service The {@link Wordlift_Relation_Service} instance.
624
-	 */
625
-	protected $relation_service;
626
-
627
-	/**
628
-	 * The {@link Wordlift_Cached_Post_Converter} instance.
629
-	 *
630
-	 * @since  3.16.0
631
-	 * @access protected
632
-	 * @var  \Wordlift_Cached_Post_Converter $cached_postid_to_jsonld_converter The {@link Wordlift_Cached_Post_Converter} instance.
633
-	 *
634
-	 */
635
-	protected $cached_postid_to_jsonld_converter;
636
-
637
-	/**
638
-	 * The {@link Wordlift_File_Cache_Service} instance.
639
-	 *
640
-	 * @since  3.16.0
641
-	 * @access protected
642
-	 * @var \Wordlift_File_Cache_Service $file_cache_service The {@link Wordlift_File_Cache_Service} instance.
643
-	 */
644
-	protected $file_cache_service;
645
-
646
-	/**
647
-	 * The {@link Wordlift_Entity_Uri_Service} instance.
648
-	 *
649
-	 * @since  3.16.3
650
-	 * @access protected
651
-	 * @var \Wordlift_Entity_Uri_Service $entity_uri_service The {@link Wordlift_Entity_Uri_Service} instance.
652
-	 */
653
-	protected $entity_uri_service;
654
-
655
-	/**
656
-	 * {@link Wordlift}'s singleton instance.
657
-	 *
658
-	 * @since  3.11.2
659
-	 * @access private
660
-	 * @var Wordlift $instance {@link Wordlift}'s singleton instance.
661
-	 */
662
-	private static $instance;
663
-
664
-	/**
665
-	 * Define the core functionality of the plugin.
666
-	 *
667
-	 * Set the plugin name and the plugin version that can be used throughout the plugin.
668
-	 * Load the dependencies, define the locale, and set the hooks for the admin area and
669
-	 * the public-facing side of the site.
670
-	 *
671
-	 * @since    1.0.0
672
-	 */
673
-	public function __construct() {
674
-
675
-		$this->plugin_name = 'wordlift';
676
-		$this->version     = '3.18.0-dev';
677
-		$this->load_dependencies();
678
-		$this->set_locale();
679
-		$this->define_admin_hooks();
680
-		$this->define_public_hooks();
681
-
682
-		self::$instance = $this;
683
-
684
-	}
685
-
686
-	/**
687
-	 * Get the singleton instance.
688
-	 *
689
-	 * @since 3.11.2
690
-	 *
691
-	 * @return Wordlift The {@link Wordlift} singleton instance.
692
-	 */
693
-	public static function get_instance() {
694
-
695
-		return self::$instance;
696
-	}
697
-
698
-	/**
699
-	 * Load the required dependencies for this plugin.
700
-	 *
701
-	 * Include the following files that make up the plugin:
702
-	 *
703
-	 * - Wordlift_Loader. Orchestrates the hooks of the plugin.
704
-	 * - Wordlift_i18n. Defines internationalization functionality.
705
-	 * - Wordlift_Admin. Defines all hooks for the admin area.
706
-	 * - Wordlift_Public. Defines all hooks for the public side of the site.
707
-	 *
708
-	 * Create an instance of the loader which will be used to register the hooks
709
-	 * with WordPress.
710
-	 *
711
-	 * @since    1.0.0
712
-	 * @access   private
713
-	 */
714
-	private function load_dependencies() {
715
-
716
-		/**
717
-		 * The class responsible for orchestrating the actions and filters of the
718
-		 * core plugin.
719
-		 */
720
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
721
-
722
-		/**
723
-		 * The class responsible for defining internationalization functionality
724
-		 * of the plugin.
725
-		 */
726
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
727
-
728
-		/**
729
-		 * WordLift's supported languages.
730
-		 */
731
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
732
-
733
-		/**
734
-		 * Provide support functions to sanitize data.
735
-		 */
736
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
737
-
738
-		/** Services. */
739
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
740
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
741
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
742
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
743
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
744
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
745
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
746
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
747
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
748
-
749
-		/**
750
-		 * The Query builder.
751
-		 */
752
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
753
-
754
-		/**
755
-		 * The Schema service.
756
-		 */
757
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
758
-
759
-		/**
760
-		 * The schema:url property service.
761
-		 */
762
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
763
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
764
-
765
-		/**
766
-		 * The UI service.
767
-		 */
768
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
769
-
770
-		/**
771
-		 * The Thumbnail service.
772
-		 */
773
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
774
-
775
-		/**
776
-		 * The Entity Types Taxonomy service.
777
-		 */
778
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-types-taxonomy-service.php';
779
-
780
-		/**
781
-		 * The Entity service.
782
-		 */
783
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
784
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
785
-
786
-		// Add the entity rating service.
787
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
788
-
789
-		/**
790
-		 * The User service.
791
-		 */
792
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
793
-
794
-		/**
795
-		 * The Timeline service.
796
-		 */
797
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
798
-
799
-		/**
800
-		 * The Topic Taxonomy service.
801
-		 */
802
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
803
-
804
-		/**
805
-		 * The SPARQL service.
806
-		 */
807
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
808
-
809
-		/**
810
-		 * The WordLift import service.
811
-		 */
812
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
813
-
814
-		/**
815
-		 * The WordLift URI service.
816
-		 */
817
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
818
-
819
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-listable.php';
820
-
821
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
822
-
823
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
824
-
825
-		/**
826
-		 * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
827
-		 */
828
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rebuild-service.php';
829
-
830
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
831
-
832
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
833
-
834
-		/**
835
-		 * Load the converters.
836
-		 */
837
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
838
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
839
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
840
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
841
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
842
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
843
-
844
-		/**
845
-		 * Load cache-related files.
846
-		 */
847
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
848
-
849
-		/**
850
-		 * Load the content filter.
851
-		 */
852
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
853
-
854
-		/*
31
+    /**
32
+     * The loader that's responsible for maintaining and registering all hooks that power
33
+     * the plugin.
34
+     *
35
+     * @since    1.0.0
36
+     * @access   protected
37
+     * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
38
+     */
39
+    protected $loader;
40
+
41
+    /**
42
+     * The unique identifier of this plugin.
43
+     *
44
+     * @since    1.0.0
45
+     * @access   protected
46
+     * @var      string $plugin_name The string used to uniquely identify this plugin.
47
+     */
48
+    protected $plugin_name;
49
+
50
+    /**
51
+     * The current version of the plugin.
52
+     *
53
+     * @since    1.0.0
54
+     * @access   protected
55
+     * @var      string $version The current version of the plugin.
56
+     */
57
+    protected $version;
58
+
59
+    /**
60
+     * The {@link Wordlift_Tinymce_Adapter} instance.
61
+     *
62
+     * @since  3.12.0
63
+     * @access protected
64
+     * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
65
+     */
66
+    protected $tinymce_adapter;
67
+
68
+    /**
69
+     * The Thumbnail service.
70
+     *
71
+     * @since  3.1.5
72
+     * @access private
73
+     * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
74
+     */
75
+    private $thumbnail_service;
76
+
77
+    /**
78
+     * The UI service.
79
+     *
80
+     * @since  3.2.0
81
+     * @access private
82
+     * @var \Wordlift_UI_Service $ui_service The UI service.
83
+     */
84
+    private $ui_service;
85
+
86
+    /**
87
+     * The Schema service.
88
+     *
89
+     * @since  3.3.0
90
+     * @access protected
91
+     * @var \Wordlift_Schema_Service $schema_service The Schema service.
92
+     */
93
+    protected $schema_service;
94
+
95
+    /**
96
+     * The Entity service.
97
+     *
98
+     * @since  3.1.0
99
+     * @access protected
100
+     * @var \Wordlift_Entity_Service $entity_service The Entity service.
101
+     */
102
+    protected $entity_service;
103
+
104
+    /**
105
+     * The Topic Taxonomy service.
106
+     *
107
+     * @since  3.5.0
108
+     * @access private
109
+     * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
110
+     */
111
+    private $topic_taxonomy_service;
112
+
113
+    /**
114
+     * The User service.
115
+     *
116
+     * @since  3.1.7
117
+     * @access protected
118
+     * @var \Wordlift_User_Service $user_service The User service.
119
+     */
120
+    protected $user_service;
121
+
122
+    /**
123
+     * The Timeline service.
124
+     *
125
+     * @since  3.1.0
126
+     * @access private
127
+     * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
128
+     */
129
+    private $timeline_service;
130
+
131
+    /**
132
+     * The Redirect service.
133
+     *
134
+     * @since  3.2.0
135
+     * @access private
136
+     * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
137
+     */
138
+    private $redirect_service;
139
+
140
+    /**
141
+     * The Notice service.
142
+     *
143
+     * @since  3.3.0
144
+     * @access private
145
+     * @var \Wordlift_Notice_Service $notice_service The Notice service.
146
+     */
147
+    private $notice_service;
148
+
149
+    /**
150
+     * The Entity list customization.
151
+     *
152
+     * @since  3.3.0
153
+     * @access protected
154
+     * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
155
+     */
156
+    protected $entity_list_service;
157
+
158
+    /**
159
+     * The Entity Types Taxonomy Walker.
160
+     *
161
+     * @since  3.1.0
162
+     * @access private
163
+     * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
164
+     */
165
+    private $entity_types_taxonomy_walker;
166
+
167
+    /**
168
+     * The ShareThis service.
169
+     *
170
+     * @since  3.2.0
171
+     * @access private
172
+     * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
173
+     */
174
+    private $sharethis_service;
175
+
176
+    /**
177
+     * The PrimaShop adapter.
178
+     *
179
+     * @since  3.2.3
180
+     * @access private
181
+     * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
182
+     */
183
+    private $primashop_adapter;
184
+
185
+    /**
186
+     * The WordLift Dashboard adapter.
187
+     *
188
+     * @since  3.4.0
189
+     * @access private
190
+     * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
191
+     */
192
+    private $dashboard_service;
193
+
194
+    /**
195
+     * The entity type service.
196
+     *
197
+     * @since  3.6.0
198
+     * @access private
199
+     * @var \Wordlift_Entity_Post_Type_Service
200
+     */
201
+    private $entity_post_type_service;
202
+
203
+    /**
204
+     * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
205
+     *
206
+     * @since  3.6.0
207
+     * @access private
208
+     * @var \Wordlift_Entity_Link_Service
209
+     */
210
+    private $entity_link_service;
211
+
212
+    /**
213
+     * A {@link Wordlift_Sparql_Service} instance.
214
+     *
215
+     * @since    3.6.0
216
+     * @access   protected
217
+     * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
218
+     */
219
+    protected $sparql_service;
220
+
221
+    /**
222
+     * A {@link Wordlift_Import_Service} instance.
223
+     *
224
+     * @since  3.6.0
225
+     * @access private
226
+     * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
227
+     */
228
+    private $import_service;
229
+
230
+    /**
231
+     * A {@link Wordlift_Rebuild_Service} instance.
232
+     *
233
+     * @since  3.6.0
234
+     * @access private
235
+     * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
236
+     */
237
+    private $rebuild_service;
238
+
239
+    /**
240
+     * A {@link Wordlift_Jsonld_Service} instance.
241
+     *
242
+     * @since  3.7.0
243
+     * @access protected
244
+     * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
245
+     */
246
+    protected $jsonld_service;
247
+
248
+    /**
249
+     * A {@link Wordlift_Website_Jsonld_Converter} instance.
250
+     *
251
+     * @since  3.14.0
252
+     * @access protected
253
+     * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
254
+     */
255
+    protected $jsonld_website_converter;
256
+
257
+    /**
258
+     * A {@link Wordlift_Property_Factory} instance.
259
+     *
260
+     * @since  3.7.0
261
+     * @access private
262
+     * @var \Wordlift_Property_Factory $property_factory
263
+     */
264
+    private $property_factory;
265
+
266
+    /**
267
+     * The 'Download Your Data' page.
268
+     *
269
+     * @since  3.6.0
270
+     * @access private
271
+     * @var \Wordlift_Admin_Download_Your_Data_Page $download_your_data_page The 'Download Your Data' page.
272
+     */
273
+    private $download_your_data_page;
274
+
275
+    /**
276
+     * The 'WordLift Settings' page.
277
+     *
278
+     * @since  3.11.0
279
+     * @access protected
280
+     * @var \Wordlift_Admin_Settings_Page $settings_page The 'WordLift Settings' page.
281
+     */
282
+    protected $settings_page;
283
+
284
+    /**
285
+     * The 'WordLift Batch analysis' page.
286
+     *
287
+     * @since  3.14.0
288
+     * @access protected
289
+     * @var \Wordlift_Batch_Analysis_Page $sbatch_analysis_page The 'WordLift batcch analysis' page.
290
+     */
291
+    protected $batch_analysis_page;
292
+
293
+    /**
294
+     * The install wizard page.
295
+     *
296
+     * @since  3.9.0
297
+     * @access private
298
+     * @var \Wordlift_Admin_Setup $admin_setup The Install wizard.
299
+     */
300
+    private $admin_setup;
301
+
302
+    /**
303
+     * The Content Filter Service hooks up to the 'the_content' filter and provides
304
+     * linking of entities to their pages.
305
+     *
306
+     * @since  3.8.0
307
+     * @access private
308
+     * @var \Wordlift_Content_Filter_Service $content_filter_service A {@link Wordlift_Content_Filter_Service} instance.
309
+     */
310
+    private $content_filter_service;
311
+
312
+    /**
313
+     * A {@link Wordlift_Key_Validation_Service} instance.
314
+     *
315
+     * @since  3.9.0
316
+     * @access private
317
+     * @var Wordlift_Key_Validation_Service $key_validation_service A {@link Wordlift_Key_Validation_Service} instance.
318
+     */
319
+    private $key_validation_service;
320
+
321
+    /**
322
+     * A {@link Wordlift_Rating_Service} instance.
323
+     *
324
+     * @since  3.10.0
325
+     * @access private
326
+     * @var \Wordlift_Rating_Service $rating_service A {@link Wordlift_Rating_Service} instance.
327
+     */
328
+    private $rating_service;
329
+
330
+    /**
331
+     * A {@link Wordlift_Post_To_Jsonld_Converter} instance.
332
+     *
333
+     * @since  3.10.0
334
+     * @access protected
335
+     * @var \Wordlift_Post_To_Jsonld_Converter $post_to_jsonld_converter A {@link Wordlift_Post_To_Jsonld_Converter} instance.
336
+     */
337
+    protected $post_to_jsonld_converter;
338
+
339
+    /**
340
+     * A {@link Wordlift_Configuration_Service} instance.
341
+     *
342
+     * @since  3.10.0
343
+     * @access protected
344
+     * @var \Wordlift_Configuration_Service $configuration_service A {@link Wordlift_Configuration_Service} instance.
345
+     */
346
+    protected $configuration_service;
347
+
348
+    /**
349
+     * A {@link Wordlift_Entity_Type_Service} instance.
350
+     *
351
+     * @since  3.10.0
352
+     * @access protected
353
+     * @var \Wordlift_Entity_Type_Service $entity_type_service A {@link Wordlift_Entity_Type_Service} instance.
354
+     */
355
+    protected $entity_type_service;
356
+
357
+    /**
358
+     * A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
359
+     *
360
+     * @since  3.10.0
361
+     * @access protected
362
+     * @var \Wordlift_Entity_Post_To_Jsonld_Converter $entity_post_to_jsonld_converter A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
363
+     */
364
+    protected $entity_post_to_jsonld_converter;
365
+
366
+    /**
367
+     * A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
368
+     *
369
+     * @since  3.10.0
370
+     * @access protected
371
+     * @var \Wordlift_Postid_To_Jsonld_Converter $postid_to_jsonld_converter A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
372
+     */
373
+    protected $postid_to_jsonld_converter;
374
+
375
+    /**
376
+     * The {@link Wordlift_Admin_Status_Page} class.
377
+     *
378
+     * @since  3.9.8
379
+     * @access private
380
+     * @var \Wordlift_Admin_Status_Page $status_page The {@link Wordlift_Admin_Status_Page} class.
381
+     */
382
+    private $status_page;
383
+
384
+    /**
385
+     * The {@link Wordlift_Category_Taxonomy_Service} instance.
386
+     *
387
+     * @since  3.11.0
388
+     * @access protected
389
+     * @var \Wordlift_Category_Taxonomy_Service $category_taxonomy_service The {@link Wordlift_Category_Taxonomy_Service} instance.
390
+     */
391
+    protected $category_taxonomy_service;
392
+
393
+    /**
394
+     * The {@link Wordlift_Entity_Page_Service} instance.
395
+     *
396
+     * @since  3.11.0
397
+     * @access protected
398
+     * @var \Wordlift_Entity_Page_Service $entity_page_service The {@link Wordlift_Entity_Page_Service} instance.
399
+     */
400
+    protected $entity_page_service;
401
+
402
+    /**
403
+     * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
404
+     *
405
+     * @since  3.11.0
406
+     * @access protected
407
+     * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
408
+     */
409
+    protected $settings_page_action_link;
410
+
411
+    /**
412
+     * The {@link Wordlift_Publisher_Ajax_Adapter} instance.
413
+     *
414
+     * @since  3.11.0
415
+     * @access protected
416
+     * @var \Wordlift_Publisher_Ajax_Adapter $publisher_ajax_adapter The {@link Wordlift_Publisher_Ajax_Adapter} instance.
417
+     */
418
+    protected $publisher_ajax_adapter;
419
+
420
+    /**
421
+     * The {@link Wordlift_Admin_Input_Element} element renderer.
422
+     *
423
+     * @since  3.11.0
424
+     * @access protected
425
+     * @var \Wordlift_Admin_Input_Element $input_element The {@link Wordlift_Admin_Input_Element} element renderer.
426
+     */
427
+    protected $input_element;
428
+
429
+    /**
430
+     * The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
431
+     *
432
+     * @since  3.13.0
433
+     * @access protected
434
+     * @var \Wordlift_Admin_Radio_Input_Element $radio_input_element The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
435
+     */
436
+    protected $radio_input_element;
437
+
438
+    /**
439
+     * The {@link Wordlift_Admin_Language_Select_Element} element renderer.
440
+     *
441
+     * @since  3.11.0
442
+     * @access protected
443
+     * @var \Wordlift_Admin_Language_Select_Element $language_select_element The {@link Wordlift_Admin_Language_Select_Element} element renderer.
444
+     */
445
+    protected $language_select_element;
446
+
447
+    /**
448
+     * The {@link Wordlift_Admin_Publisher_Element} element renderer.
449
+     *
450
+     * @since  3.11.0
451
+     * @access protected
452
+     * @var \Wordlift_Admin_Publisher_Element $publisher_element The {@link Wordlift_Admin_Publisher_Element} element renderer.
453
+     */
454
+    protected $publisher_element;
455
+
456
+    /**
457
+     * The {@link Wordlift_Admin_Select2_Element} element renderer.
458
+     *
459
+     * @since  3.11.0
460
+     * @access protected
461
+     * @var \Wordlift_Admin_Select2_Element $select2_element The {@link Wordlift_Admin_Select2_Element} element renderer.
462
+     */
463
+    protected $select2_element;
464
+
465
+    /**
466
+     * The controller for the entity type list admin page
467
+     *
468
+     * @since  3.11.0
469
+     * @access private
470
+     * @var \Wordlift_Admin_Entity_Taxonomy_List_Page $entity_type_admin_page The {@link Wordlift_Admin_Entity_Taxonomy_List_Page} class.
471
+     */
472
+    private $entity_type_admin_page;
473
+
474
+    /**
475
+     * The controller for the entity type settings admin page
476
+     *
477
+     * @since  3.11.0
478
+     * @access private
479
+     * @var \Wordlift_Admin_Entity_Type_Settings $entity_type_settings_admin_page The {@link Wordlift_Admin_Entity_Type_Settings} class.
480
+     */
481
+    private $entity_type_settings_admin_page;
482
+
483
+    /**
484
+     * The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
485
+     *
486
+     * @since  3.11.0
487
+     * @access protected
488
+     * @var \Wordlift_Related_Entities_Cloud_Widget $related_entities_cloud_widget The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
489
+     */
490
+    protected $related_entities_cloud_widget;
491
+
492
+    /**
493
+     * The {@link Wordlift_Admin_Author_Element} instance.
494
+     *
495
+     * @since  3.14.0
496
+     * @access protected
497
+     * @var \Wordlift_Admin_Author_Element $author_element The {@link Wordlift_Admin_Author_Element} instance.
498
+     */
499
+    protected $author_element;
500
+
501
+    /**
502
+     * The {@link Wordlift_Batch_Analysis_Service} instance.
503
+     *
504
+     * @since  3.14.0
505
+     * @access protected
506
+     * @var \Wordlift_Batch_Analysis_Service $batch_analysis_service The {@link Wordlift_Batch_Analysis_Service} instance.
507
+     */
508
+    protected $batch_analysis_service;
509
+
510
+    /**
511
+     * The {@link Wordlift_Sample_Data_Service} instance.
512
+     *
513
+     * @since  3.12.0
514
+     * @access protected
515
+     * @var \Wordlift_Sample_Data_Service $sample_data_service The {@link Wordlift_Sample_Data_Service} instance.
516
+     */
517
+    protected $sample_data_service;
518
+
519
+    /**
520
+     * The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
521
+     *
522
+     * @since  3.12.0
523
+     * @access protected
524
+     * @var \Wordlift_Sample_Data_Ajax_Adapter $sample_data_ajax_adapter The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
525
+     */
526
+    protected $sample_data_ajax_adapter;
527
+
528
+    /**
529
+     * The {@link Wordlift_Batch_Analysis_Adapter} instance.
530
+     *
531
+     * @since  3.14.2
532
+     * @access protected
533
+     * @var \Wordlift_Batch_Analysis_Adapter $batch_analysis_adapter The {@link Wordlift_Batch_Analysis_Adapter} instance.
534
+     */
535
+    private $batch_analysis_adapter;
536
+
537
+    /**
538
+     * The {@link Wordlift_Relation_Rebuild_Service} instance.
539
+     *
540
+     * @since  3.14.3
541
+     * @access private
542
+     * @var \Wordlift_Relation_Rebuild_Service $relation_rebuild_service The {@link Wordlift_Relation_Rebuild_Service} instance.
543
+     */
544
+    private $relation_rebuild_service;
545
+
546
+    /**
547
+     * The {@link Wordlift_Relation_Rebuild_Adapter} instance.
548
+     *
549
+     * @since  3.14.3
550
+     * @access private
551
+     * @var \Wordlift_Relation_Rebuild_Adapter $relation_rebuild_adapter The {@link Wordlift_Relation_Rebuild_Adapter} instance.
552
+     */
553
+    private $relation_rebuild_adapter;
554
+
555
+    /**
556
+     * The {@link Wordlift_Google_Analytics_Export_Service} instance.
557
+     *
558
+     * @since  3.16.0
559
+     * @access protected
560
+     * @var \Wordlift_Google_Analytics_Export_Service $google_analytics_export_service The {@link Wordlift_Google_Analytics_Export_Service} instance.
561
+     */
562
+    protected $google_analytics_export_service;
563
+
564
+    /**
565
+     * {@link Wordlift}'s singleton instance.
566
+     *
567
+     * @since  3.15.0
568
+     * @access protected
569
+     * @var \Wordlift_Entity_Type_Adapter $entity_type_adapter The {@link Wordlift_Entity_Type_Adapter} instance.
570
+     */
571
+    protected $entity_type_adapter;
572
+
573
+    /**
574
+     * The {@link Wordlift_Linked_Data_Service} instance.
575
+     *
576
+     * @since  3.15.0
577
+     * @access protected
578
+     * @var \Wordlift_Linked_Data_Service $linked_data_service The {@link Wordlift_Linked_Data_Service} instance.
579
+     */
580
+    protected $linked_data_service;
581
+
582
+    /**
583
+     * The {@link Wordlift_Storage_Factory} instance.
584
+     *
585
+     * @since  3.15.0
586
+     * @access protected
587
+     * @var \Wordlift_Storage_Factory $storage_factory The {@link Wordlift_Storage_Factory} instance.
588
+     */
589
+    protected $storage_factory;
590
+
591
+    /**
592
+     * The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
593
+     *
594
+     * @since  3.15.0
595
+     * @access protected
596
+     * @var \Wordlift_Sparql_Tuple_Rendition_Factory $rendition_factory The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
597
+     */
598
+    protected $rendition_factory;
599
+
600
+    /**
601
+     * The {@link Wordlift_Autocomplete_Service} instance.
602
+     *
603
+     * @since  3.15.0
604
+     * @access private
605
+     * @var \Wordlift_Autocomplete_Service $autocomplete_service The {@link Wordlift_Autocomplete_Service} instance.
606
+     */
607
+    private $autocomplete_service;
608
+
609
+    /**
610
+     * The {@link Wordlift_Autocomplete_Adapter} instance.
611
+     *
612
+     * @since  3.15.0
613
+     * @access private
614
+     * @var \Wordlift_Autocomplete_Adapter $autocomplete_adapter The {@link Wordlift_Autocomplete_Adapter} instance.
615
+     */
616
+    private $autocomplete_adapter;
617
+
618
+    /**
619
+     * The {@link Wordlift_Relation_Service} instance.
620
+     *
621
+     * @since  3.15.0
622
+     * @access protected
623
+     * @var \Wordlift_Relation_Service $relation_service The {@link Wordlift_Relation_Service} instance.
624
+     */
625
+    protected $relation_service;
626
+
627
+    /**
628
+     * The {@link Wordlift_Cached_Post_Converter} instance.
629
+     *
630
+     * @since  3.16.0
631
+     * @access protected
632
+     * @var  \Wordlift_Cached_Post_Converter $cached_postid_to_jsonld_converter The {@link Wordlift_Cached_Post_Converter} instance.
633
+     *
634
+     */
635
+    protected $cached_postid_to_jsonld_converter;
636
+
637
+    /**
638
+     * The {@link Wordlift_File_Cache_Service} instance.
639
+     *
640
+     * @since  3.16.0
641
+     * @access protected
642
+     * @var \Wordlift_File_Cache_Service $file_cache_service The {@link Wordlift_File_Cache_Service} instance.
643
+     */
644
+    protected $file_cache_service;
645
+
646
+    /**
647
+     * The {@link Wordlift_Entity_Uri_Service} instance.
648
+     *
649
+     * @since  3.16.3
650
+     * @access protected
651
+     * @var \Wordlift_Entity_Uri_Service $entity_uri_service The {@link Wordlift_Entity_Uri_Service} instance.
652
+     */
653
+    protected $entity_uri_service;
654
+
655
+    /**
656
+     * {@link Wordlift}'s singleton instance.
657
+     *
658
+     * @since  3.11.2
659
+     * @access private
660
+     * @var Wordlift $instance {@link Wordlift}'s singleton instance.
661
+     */
662
+    private static $instance;
663
+
664
+    /**
665
+     * Define the core functionality of the plugin.
666
+     *
667
+     * Set the plugin name and the plugin version that can be used throughout the plugin.
668
+     * Load the dependencies, define the locale, and set the hooks for the admin area and
669
+     * the public-facing side of the site.
670
+     *
671
+     * @since    1.0.0
672
+     */
673
+    public function __construct() {
674
+
675
+        $this->plugin_name = 'wordlift';
676
+        $this->version     = '3.18.0-dev';
677
+        $this->load_dependencies();
678
+        $this->set_locale();
679
+        $this->define_admin_hooks();
680
+        $this->define_public_hooks();
681
+
682
+        self::$instance = $this;
683
+
684
+    }
685
+
686
+    /**
687
+     * Get the singleton instance.
688
+     *
689
+     * @since 3.11.2
690
+     *
691
+     * @return Wordlift The {@link Wordlift} singleton instance.
692
+     */
693
+    public static function get_instance() {
694
+
695
+        return self::$instance;
696
+    }
697
+
698
+    /**
699
+     * Load the required dependencies for this plugin.
700
+     *
701
+     * Include the following files that make up the plugin:
702
+     *
703
+     * - Wordlift_Loader. Orchestrates the hooks of the plugin.
704
+     * - Wordlift_i18n. Defines internationalization functionality.
705
+     * - Wordlift_Admin. Defines all hooks for the admin area.
706
+     * - Wordlift_Public. Defines all hooks for the public side of the site.
707
+     *
708
+     * Create an instance of the loader which will be used to register the hooks
709
+     * with WordPress.
710
+     *
711
+     * @since    1.0.0
712
+     * @access   private
713
+     */
714
+    private function load_dependencies() {
715
+
716
+        /**
717
+         * The class responsible for orchestrating the actions and filters of the
718
+         * core plugin.
719
+         */
720
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
721
+
722
+        /**
723
+         * The class responsible for defining internationalization functionality
724
+         * of the plugin.
725
+         */
726
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
727
+
728
+        /**
729
+         * WordLift's supported languages.
730
+         */
731
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
732
+
733
+        /**
734
+         * Provide support functions to sanitize data.
735
+         */
736
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
737
+
738
+        /** Services. */
739
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
740
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
741
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
742
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
743
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
744
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
745
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
746
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
747
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
748
+
749
+        /**
750
+         * The Query builder.
751
+         */
752
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
753
+
754
+        /**
755
+         * The Schema service.
756
+         */
757
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
758
+
759
+        /**
760
+         * The schema:url property service.
761
+         */
762
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
763
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
764
+
765
+        /**
766
+         * The UI service.
767
+         */
768
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
769
+
770
+        /**
771
+         * The Thumbnail service.
772
+         */
773
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
774
+
775
+        /**
776
+         * The Entity Types Taxonomy service.
777
+         */
778
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-types-taxonomy-service.php';
779
+
780
+        /**
781
+         * The Entity service.
782
+         */
783
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
784
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
785
+
786
+        // Add the entity rating service.
787
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
788
+
789
+        /**
790
+         * The User service.
791
+         */
792
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
793
+
794
+        /**
795
+         * The Timeline service.
796
+         */
797
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
798
+
799
+        /**
800
+         * The Topic Taxonomy service.
801
+         */
802
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
803
+
804
+        /**
805
+         * The SPARQL service.
806
+         */
807
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
808
+
809
+        /**
810
+         * The WordLift import service.
811
+         */
812
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
813
+
814
+        /**
815
+         * The WordLift URI service.
816
+         */
817
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
818
+
819
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-listable.php';
820
+
821
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
822
+
823
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
824
+
825
+        /**
826
+         * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
827
+         */
828
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rebuild-service.php';
829
+
830
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
831
+
832
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
833
+
834
+        /**
835
+         * Load the converters.
836
+         */
837
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
838
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
839
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
840
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
841
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
842
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
843
+
844
+        /**
845
+         * Load cache-related files.
846
+         */
847
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
848
+
849
+        /**
850
+         * Load the content filter.
851
+         */
852
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
853
+
854
+        /*
855 855
 		 * Load the excerpt helper.
856 856
 		 */
857
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
858
-
859
-		/**
860
-		 * Load the JSON-LD service to publish entities using JSON-LD.s
861
-		 *
862
-		 * @since 3.8.0
863
-		 */
864
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
865
-
866
-		// The Publisher Service and the AJAX adapter.
867
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
868
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
869
-
870
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
871
-
872
-		/**
873
-		 * Load the WordLift key validation service.
874
-		 */
875
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
876
-
877
-		// Load the `Wordlift_Category_Taxonomy_Service` class definition.
878
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
879
-
880
-		// Load the `Wordlift_Entity_Page_Service` class definition.
881
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
882
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-sql-helper.php';
883
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-service.php';
884
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-rebuild-service.php';
885
-
886
-		/** Linked Data. */
887
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
888
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
889
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
890
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
891
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
892
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
893
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
894
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
895
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
896
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
897
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
898
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition.php';
899
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
900
-
901
-		/** Services. */
902
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
903
-
904
-		/** Adapters. */
905
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
906
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
907
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
908
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
909
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-adapter.php';
910
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-rebuild-adapter.php';
911
-
912
-		/** Async Tasks. */
913
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
914
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
915
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-request-async-task.php';
916
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-complete-async-task.php';
917
-
918
-		/** Async Tasks. */
919
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-service.php';
920
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
921
-
922
-		/**
923
-		 * The class responsible for defining all actions that occur in the admin area.
924
-		 */
925
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
926
-
927
-		/**
928
-		 * The class to customize the entity list admin page.
929
-		 */
930
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
931
-
932
-		/**
933
-		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
934
-		 */
935
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
936
-
937
-		/**
938
-		 * The Notice service.
939
-		 */
940
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
941
-
942
-		/**
943
-		 * The PrimaShop adapter.
944
-		 */
945
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
946
-
947
-		/**
948
-		 * The WordLift Dashboard service.
949
-		 */
950
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
951
-
952
-		/**
953
-		 * The admin 'Install wizard' page.
954
-		 */
955
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
956
-
957
-		/**
958
-		 * The WordLift entity type list admin page controller.
959
-		 */
960
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
961
-
962
-		/**
963
-		 * The WordLift entity type settings admin page controller.
964
-		 */
965
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
966
-
967
-		/**
968
-		 * The admin 'Download Your Data' page.
969
-		 */
970
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
971
-
972
-		/**
973
-		 * The admin 'WordLift Settings' page.
974
-		 */
975
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/intf-wordlift-admin-element.php';
976
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-input-element.php';
977
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-input-radio-element.php';
978
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-select2-element.php';
979
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-language-select-element.php';
980
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-tabs-element.php';
981
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-author-element.php';
982
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-publisher-element.php';
983
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
984
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
985
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-batch-analysis-page.php';
986
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
987
-
988
-		/** Admin Pages */
989
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
990
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
991
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
992
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
993
-
994
-		/**
995
-		 * The class responsible for defining all actions that occur in the public-facing
996
-		 * side of the site.
997
-		 */
998
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
999
-
1000
-		/**
1001
-		 * The shortcode abstract class.
1002
-		 */
1003
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1004
-
1005
-		/**
1006
-		 * The Timeline shortcode.
1007
-		 */
1008
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1009
-
1010
-		/**
1011
-		 * The Navigator shortcode.
1012
-		 */
1013
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1014
-
1015
-		/**
1016
-		 * The chord shortcode.
1017
-		 */
1018
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1019
-
1020
-		/**
1021
-		 * The geomap shortcode.
1022
-		 */
1023
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1024
-
1025
-		/**
1026
-		 * The entity cloud shortcode.
1027
-		 */
1028
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1029
-
1030
-		/**
1031
-		 * The entity glossary shortcode.
1032
-		 */
1033
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1034
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1035
-
1036
-		/**
1037
-		 * The ShareThis service.
1038
-		 */
1039
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1040
-
1041
-		/**
1042
-		 * The SEO service.
1043
-		 */
1044
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1045
-
1046
-		/**
1047
-		 * The AMP service.
1048
-		 */
1049
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1050
-
1051
-		/** Widgets */
1052
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1053
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1054
-
1055
-		$this->loader = new Wordlift_Loader();
1056
-
1057
-		// Instantiate a global logger.
1058
-		global $wl_logger;
1059
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1060
-
1061
-		// Load the `wl-api` end-point.
1062
-		new Wordlift_Http_Api();
1063
-
1064
-		/** Services. */
1065
-		// Create the configuration service.
1066
-		$this->configuration_service = new Wordlift_Configuration_Service();
1067
-
1068
-		// Create an entity type service instance. It'll be later bound to the init action.
1069
-		$this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1070
-
1071
-		// Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1072
-		$this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1073
-
1074
-		// Create an instance of the UI service.
1075
-		$this->ui_service = new Wordlift_UI_Service();
1076
-
1077
-		// Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
1078
-		$this->thumbnail_service = new Wordlift_Thumbnail_Service();
1079
-
1080
-		$this->sparql_service        = new Wordlift_Sparql_Service();
1081
-		$schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1082
-		$this->notice_service        = new Wordlift_Notice_Service();
1083
-		$this->relation_service      = new Wordlift_Relation_Service();
857
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
858
+
859
+        /**
860
+         * Load the JSON-LD service to publish entities using JSON-LD.s
861
+         *
862
+         * @since 3.8.0
863
+         */
864
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
865
+
866
+        // The Publisher Service and the AJAX adapter.
867
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
868
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
869
+
870
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
871
+
872
+        /**
873
+         * Load the WordLift key validation service.
874
+         */
875
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
876
+
877
+        // Load the `Wordlift_Category_Taxonomy_Service` class definition.
878
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
879
+
880
+        // Load the `Wordlift_Entity_Page_Service` class definition.
881
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
882
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-sql-helper.php';
883
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-service.php';
884
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-rebuild-service.php';
885
+
886
+        /** Linked Data. */
887
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
888
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
889
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
890
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
891
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
892
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
893
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
894
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
895
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
896
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
897
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
898
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition.php';
899
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
900
+
901
+        /** Services. */
902
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
903
+
904
+        /** Adapters. */
905
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
906
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
907
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
908
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
909
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-adapter.php';
910
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-rebuild-adapter.php';
911
+
912
+        /** Async Tasks. */
913
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
914
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
915
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-request-async-task.php';
916
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-complete-async-task.php';
917
+
918
+        /** Async Tasks. */
919
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-service.php';
920
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
921
+
922
+        /**
923
+         * The class responsible for defining all actions that occur in the admin area.
924
+         */
925
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
926
+
927
+        /**
928
+         * The class to customize the entity list admin page.
929
+         */
930
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
931
+
932
+        /**
933
+         * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
934
+         */
935
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
936
+
937
+        /**
938
+         * The Notice service.
939
+         */
940
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
941
+
942
+        /**
943
+         * The PrimaShop adapter.
944
+         */
945
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
946
+
947
+        /**
948
+         * The WordLift Dashboard service.
949
+         */
950
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
951
+
952
+        /**
953
+         * The admin 'Install wizard' page.
954
+         */
955
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
956
+
957
+        /**
958
+         * The WordLift entity type list admin page controller.
959
+         */
960
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
961
+
962
+        /**
963
+         * The WordLift entity type settings admin page controller.
964
+         */
965
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
966
+
967
+        /**
968
+         * The admin 'Download Your Data' page.
969
+         */
970
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
971
+
972
+        /**
973
+         * The admin 'WordLift Settings' page.
974
+         */
975
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/intf-wordlift-admin-element.php';
976
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-input-element.php';
977
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-input-radio-element.php';
978
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-select2-element.php';
979
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-language-select-element.php';
980
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-tabs-element.php';
981
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-author-element.php';
982
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-publisher-element.php';
983
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
984
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
985
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-batch-analysis-page.php';
986
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
987
+
988
+        /** Admin Pages */
989
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
990
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
991
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
992
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
993
+
994
+        /**
995
+         * The class responsible for defining all actions that occur in the public-facing
996
+         * side of the site.
997
+         */
998
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
999
+
1000
+        /**
1001
+         * The shortcode abstract class.
1002
+         */
1003
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1004
+
1005
+        /**
1006
+         * The Timeline shortcode.
1007
+         */
1008
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1009
+
1010
+        /**
1011
+         * The Navigator shortcode.
1012
+         */
1013
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1014
+
1015
+        /**
1016
+         * The chord shortcode.
1017
+         */
1018
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1019
+
1020
+        /**
1021
+         * The geomap shortcode.
1022
+         */
1023
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1024
+
1025
+        /**
1026
+         * The entity cloud shortcode.
1027
+         */
1028
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1029
+
1030
+        /**
1031
+         * The entity glossary shortcode.
1032
+         */
1033
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1034
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1035
+
1036
+        /**
1037
+         * The ShareThis service.
1038
+         */
1039
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1040
+
1041
+        /**
1042
+         * The SEO service.
1043
+         */
1044
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1045
+
1046
+        /**
1047
+         * The AMP service.
1048
+         */
1049
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1050
+
1051
+        /** Widgets */
1052
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1053
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1054
+
1055
+        $this->loader = new Wordlift_Loader();
1056
+
1057
+        // Instantiate a global logger.
1058
+        global $wl_logger;
1059
+        $wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1060
+
1061
+        // Load the `wl-api` end-point.
1062
+        new Wordlift_Http_Api();
1063
+
1064
+        /** Services. */
1065
+        // Create the configuration service.
1066
+        $this->configuration_service = new Wordlift_Configuration_Service();
1067
+
1068
+        // Create an entity type service instance. It'll be later bound to the init action.
1069
+        $this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1070
+
1071
+        // Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1072
+        $this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1073
+
1074
+        // Create an instance of the UI service.
1075
+        $this->ui_service = new Wordlift_UI_Service();
1076
+
1077
+        // Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
1078
+        $this->thumbnail_service = new Wordlift_Thumbnail_Service();
1079
+
1080
+        $this->sparql_service        = new Wordlift_Sparql_Service();
1081
+        $schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1082
+        $this->notice_service        = new Wordlift_Notice_Service();
1083
+        $this->relation_service      = new Wordlift_Relation_Service();
1084 1084
 
1085
-		$entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1086
-		$this->file_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'converter/' );
1087
-		$this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1088
-		$this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1089
-		$this->user_service       = new Wordlift_User_Service();
1085
+        $entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1086
+        $this->file_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'converter/' );
1087
+        $this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1088
+        $this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1089
+        $this->user_service       = new Wordlift_User_Service();
1090 1090
 
1091
-		// Instantiate the JSON-LD service.
1092
-		$property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1091
+        // Instantiate the JSON-LD service.
1092
+        $property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1093 1093
 
1094
-		/** Linked Data. */
1095
-		$this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1096
-		$this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1094
+        /** Linked Data. */
1095
+        $this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1096
+        $this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1097 1097
 
1098
-		$this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1098
+        $this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1099 1099
 
1100
-		// Create a new instance of the Redirect service.
1101
-		$this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_service );
1102
-		$this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1103
-		$this->linked_data_service = new Wordlift_Linked_Data_Service( $this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service );
1100
+        // Create a new instance of the Redirect service.
1101
+        $this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_service );
1102
+        $this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1103
+        $this->linked_data_service = new Wordlift_Linked_Data_Service( $this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service );
1104 1104
 
1105
-		// Create a new instance of the Timeline service and Timeline shortcode.
1106
-		$this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1105
+        // Create a new instance of the Timeline service and Timeline shortcode.
1106
+        $this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1107 1107
 
1108
-		$this->batch_analysis_service = new Wordlift_Batch_Analysis_Service( $this, $this->configuration_service, $this->file_cache_service );
1108
+        $this->batch_analysis_service = new Wordlift_Batch_Analysis_Service( $this, $this->configuration_service, $this->file_cache_service );
1109 1109
 
1110
-		$this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1110
+        $this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1111 1111
 
1112
-		$this->topic_taxonomy_service = new Wordlift_Topic_Taxonomy_Service();
1112
+        $this->topic_taxonomy_service = new Wordlift_Topic_Taxonomy_Service();
1113 1113
 
1114
-		// Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
1115
-		$this->sharethis_service = new Wordlift_ShareThis_Service();
1114
+        // Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
1115
+        $this->sharethis_service = new Wordlift_ShareThis_Service();
1116 1116
 
1117
-		// Create an instance of the PrimaShop adapter.
1118
-		$this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1117
+        // Create an instance of the PrimaShop adapter.
1118
+        $this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1119 1119
 
1120
-		// Create an import service instance to hook later to WP's import function.
1121
-		$this->import_service = new Wordlift_Import_Service( $this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri() );
1120
+        // Create an import service instance to hook later to WP's import function.
1121
+        $this->import_service = new Wordlift_Import_Service( $this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri() );
1122 1122
 
1123
-		$uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1123
+        $uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1124 1124
 
1125
-		// Create a Rebuild Service instance, which we'll later bound to an ajax call.
1126
-		$this->rebuild_service = new Wordlift_Rebuild_Service( $this->sparql_service, $uri_service );
1125
+        // Create a Rebuild Service instance, which we'll later bound to an ajax call.
1126
+        $this->rebuild_service = new Wordlift_Rebuild_Service( $this->sparql_service, $uri_service );
1127 1127
 
1128
-		// Create the entity rating service.
1129
-		$this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1128
+        // Create the entity rating service.
1129
+        $this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1130 1130
 
1131
-		// Create entity list customization (wp-admin/edit.php).
1132
-		$this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1131
+        // Create entity list customization (wp-admin/edit.php).
1132
+        $this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1133 1133
 
1134
-		// Create a new instance of the Redirect service.
1135
-		$this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1134
+        // Create a new instance of the Redirect service.
1135
+        $this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1136 1136
 
1137
-		// Create an instance of the Publisher Service and the AJAX Adapter.
1138
-		$publisher_service      = new Wordlift_Publisher_Service();
1139
-		$this->property_factory = new Wordlift_Property_Factory( $schema_url_property_service );
1140
-		$this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1137
+        // Create an instance of the Publisher Service and the AJAX Adapter.
1138
+        $publisher_service      = new Wordlift_Publisher_Service();
1139
+        $this->property_factory = new Wordlift_Property_Factory( $schema_url_property_service );
1140
+        $this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1141 1141
 
1142
-		$attachment_service = new Wordlift_Attachment_Service();
1142
+        $attachment_service = new Wordlift_Attachment_Service();
1143 1143
 
1144
-		// Instantiate the JSON-LD service.
1145
-		$property_getter                         = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1146
-		$this->entity_post_to_jsonld_converter   = new Wordlift_Entity_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter );
1147
-		$this->post_to_jsonld_converter          = new Wordlift_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1148
-		$this->postid_to_jsonld_converter        = new Wordlift_Postid_To_Jsonld_Converter( $this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter );
1149
-		$this->jsonld_website_converter          = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1150
-		$this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->file_cache_service, $this->configuration_service );
1151
-		$this->jsonld_service                    = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter );
1144
+        // Instantiate the JSON-LD service.
1145
+        $property_getter                         = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1146
+        $this->entity_post_to_jsonld_converter   = new Wordlift_Entity_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter );
1147
+        $this->post_to_jsonld_converter          = new Wordlift_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1148
+        $this->postid_to_jsonld_converter        = new Wordlift_Postid_To_Jsonld_Converter( $this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter );
1149
+        $this->jsonld_website_converter          = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1150
+        $this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->file_cache_service, $this->configuration_service );
1151
+        $this->jsonld_service                    = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter );
1152 1152
 
1153 1153
 
1154
-		$this->key_validation_service   = new Wordlift_Key_Validation_Service( $this->configuration_service );
1155
-		$this->content_filter_service   = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1156
-		$this->relation_rebuild_service = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1157
-		$this->sample_data_service      = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1158
-		$this->sample_data_ajax_adapter = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1154
+        $this->key_validation_service   = new Wordlift_Key_Validation_Service( $this->configuration_service );
1155
+        $this->content_filter_service   = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1156
+        $this->relation_rebuild_service = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1157
+        $this->sample_data_service      = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1158
+        $this->sample_data_ajax_adapter = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1159 1159
 
1160
-		// Initialize the shortcodes.
1161
-		new Wordlift_Navigator_Shortcode();
1162
-		new Wordlift_Chord_Shortcode();
1163
-		new Wordlift_Geomap_Shortcode();
1164
-		new Wordlift_Timeline_Shortcode();
1165
-		new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service );
1166
-		new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1160
+        // Initialize the shortcodes.
1161
+        new Wordlift_Navigator_Shortcode();
1162
+        new Wordlift_Chord_Shortcode();
1163
+        new Wordlift_Geomap_Shortcode();
1164
+        new Wordlift_Timeline_Shortcode();
1165
+        new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service );
1166
+        new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1167 1167
 
1168
-		// Initialize the SEO service.
1169
-		new Wordlift_Seo_Service();
1168
+        // Initialize the SEO service.
1169
+        new Wordlift_Seo_Service();
1170 1170
 
1171
-		// Initialize the AMP service.
1172
-		new Wordlift_AMP_Service();
1171
+        // Initialize the AMP service.
1172
+        new Wordlift_AMP_Service();
1173 1173
 
1174
-		/** Services. */
1175
-		$this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1174
+        /** Services. */
1175
+        $this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1176 1176
 
1177
-		/** Adapters. */
1178
-		$this->entity_type_adapter      = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1179
-		$this->publisher_ajax_adapter   = new Wordlift_Publisher_Ajax_Adapter( $publisher_service );
1180
-		$this->tinymce_adapter          = new Wordlift_Tinymce_Adapter( $this );
1181
-		$this->batch_analysis_adapter   = new Wordlift_Batch_Analysis_Adapter( $this->batch_analysis_service );
1182
-		$this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1177
+        /** Adapters. */
1178
+        $this->entity_type_adapter      = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1179
+        $this->publisher_ajax_adapter   = new Wordlift_Publisher_Ajax_Adapter( $publisher_service );
1180
+        $this->tinymce_adapter          = new Wordlift_Tinymce_Adapter( $this );
1181
+        $this->batch_analysis_adapter   = new Wordlift_Batch_Analysis_Adapter( $this->batch_analysis_service );
1182
+        $this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1183 1183
 
1184
-		/** Async Tasks. */
1185
-		new Wordlift_Sparql_Query_Async_Task();
1186
-		new Wordlift_Batch_Analysis_Request_Async_Task();
1187
-		new Wordlift_Batch_Analysis_Complete_Async_Task();
1184
+        /** Async Tasks. */
1185
+        new Wordlift_Sparql_Query_Async_Task();
1186
+        new Wordlift_Batch_Analysis_Request_Async_Task();
1187
+        new Wordlift_Batch_Analysis_Complete_Async_Task();
1188 1188
 
1189
-		/** WL Autocomplete. */
1190
-		$this->autocomplete_service = new Wordlift_Autocomplete_Service( $this->configuration_service );
1191
-		$this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $this->autocomplete_service );
1189
+        /** WL Autocomplete. */
1190
+        $this->autocomplete_service = new Wordlift_Autocomplete_Service( $this->configuration_service );
1191
+        $this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $this->autocomplete_service );
1192 1192
 
1193
-		/** WordPress Admin UI. */
1193
+        /** WordPress Admin UI. */
1194 1194
 
1195
-		// UI elements.
1196
-		$this->input_element           = new Wordlift_Admin_Input_Element();
1197
-		$this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1198
-		$this->select2_element         = new Wordlift_Admin_Select2_Element();
1199
-		$this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1200
-		$tabs_element                  = new Wordlift_Admin_Tabs_Element();
1201
-		$this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $publisher_service, $tabs_element, $this->select2_element );
1202
-		$this->author_element          = new Wordlift_Admin_Author_Element( $publisher_service, $this->select2_element );
1195
+        // UI elements.
1196
+        $this->input_element           = new Wordlift_Admin_Input_Element();
1197
+        $this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1198
+        $this->select2_element         = new Wordlift_Admin_Select2_Element();
1199
+        $this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1200
+        $tabs_element                  = new Wordlift_Admin_Tabs_Element();
1201
+        $this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $publisher_service, $tabs_element, $this->select2_element );
1202
+        $this->author_element          = new Wordlift_Admin_Author_Element( $publisher_service, $this->select2_element );
1203 1203
 
1204
-		$this->settings_page             = new Wordlift_Admin_Settings_Page( $this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->publisher_element, $this->radio_input_element );
1205
-		$this->batch_analysis_page       = new Wordlift_Batch_Analysis_Page( $this->batch_analysis_service );
1206
-		$this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1204
+        $this->settings_page             = new Wordlift_Admin_Settings_Page( $this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->publisher_element, $this->radio_input_element );
1205
+        $this->batch_analysis_page       = new Wordlift_Batch_Analysis_Page( $this->batch_analysis_service );
1206
+        $this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1207 1207
 
1208
-		// Pages.
1209
-		new Wordlift_Admin_Post_Edit_Page( $this );
1210
-		new Wordlift_Entity_Type_Admin_Service();
1208
+        // Pages.
1209
+        new Wordlift_Admin_Post_Edit_Page( $this );
1210
+        new Wordlift_Entity_Type_Admin_Service();
1211 1211
 
1212
-		// create an instance of the entity type list admin page controller.
1213
-		$this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1214
-
1215
-		// create an instance of the entity type etting admin page controller.
1216
-		$this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1217
-
1218
-		/** Widgets */
1219
-		$this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1220
-
1221
-		/* WordPress Admin. */
1222
-		$this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1223
-		$this->status_page             = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1224
-
1225
-		// Create an instance of the install wizard.
1226
-		$this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service );
1227
-
1228
-		$this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1229
-
1230
-		// User Profile.
1231
-		new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1232
-
1233
-		$this->entity_page_service = new Wordlift_Entity_Page_Service();
1234
-
1235
-		// Load the debug service if WP is in debug mode.
1236
-		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1237
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1238
-			new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1239
-		}
1240
-
1241
-	}
1242
-
1243
-	/**
1244
-	 * Define the locale for this plugin for internationalization.
1245
-	 *
1246
-	 * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1247
-	 * with WordPress.
1248
-	 *
1249
-	 * @since    1.0.0
1250
-	 * @access   private
1251
-	 */
1252
-	private function set_locale() {
1253
-
1254
-		$plugin_i18n = new Wordlift_i18n();
1255
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
1256
-
1257
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1258
-
1259
-	}
1260
-
1261
-	/**
1262
-	 * Register all of the hooks related to the admin area functionality
1263
-	 * of the plugin.
1264
-	 *
1265
-	 * @since    1.0.0
1266
-	 * @access   private
1267
-	 */
1268
-	private function define_admin_hooks() {
1269
-
1270
-		$plugin_admin = new Wordlift_Admin(
1271
-			$this->get_plugin_name(),
1272
-			$this->get_version(),
1273
-			$this->configuration_service,
1274
-			$this->notice_service,
1275
-			$this->user_service
1276
-		);
1277
-
1278
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1279
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
1280
-
1281
-		// Hook the init action to the Topic Taxonomy service.
1282
-		$this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1283
-
1284
-		// Hook the deleted_post_meta action to the Thumbnail service.
1285
-		$this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1286
-
1287
-		// Hook the added_post_meta action to the Thumbnail service.
1288
-		$this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1289
-
1290
-		// Hook the updated_post_meta action to the Thumbnail service.
1291
-		$this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1292
-
1293
-		// Hook the AJAX wl_timeline action to the Timeline service.
1294
-		$this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1295
-
1296
-		// Register custom allowed redirect hosts.
1297
-		$this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1298
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1299
-		$this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1300
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1301
-		$this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1302
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1303
-		$this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1304
-
1305
-		// Hook save_post to the entity service to update custom fields (such as alternate labels).
1306
-		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
1307
-		$this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1308
-		$this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1309
-
1310
-		$this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1311
-		$this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1312
-
1313
-		// Entity listing customization (wp-admin/edit.php)
1314
-		// Add custom columns.
1315
-		$this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1316
-		// no explicit entity as it prevents handling of other post types.
1317
-		$this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1318
-		// Add 4W selection.
1319
-		$this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1320
-		$this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1321
-		$this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1322
-		$this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1323
-		$this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1324
-
1325
-		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1326
-		// entities.
1327
-		$this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1328
-
1329
-		// Filter imported post meta.
1330
-		$this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1331
-
1332
-		// Notify the import service when an import starts and ends.
1333
-		$this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1334
-		$this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1335
-
1336
-		// Hook the AJAX wl_rebuild action to the Rebuild Service.
1337
-		$this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1338
-
1339
-		// Hook the menu to the Download Your Data page.
1340
-		$this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1341
-		$this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1342
-		$this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1343
-
1344
-		// Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1345
-		$this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1346
-
1347
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1348
-		$this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1349
-
1350
-		// Hook the AJAX wl_validate_key action to the Key Validation service.
1351
-		$this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1352
-
1353
-		// Hook the `admin_init` function to the Admin Setup.
1354
-		$this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1355
-
1356
-		// Hook the admin_init to the settings page.
1357
-		$this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1358
-
1359
-		// Hook the menu creation on the general wordlift menu creation.
1360
-		$this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1361
-		if ( defined( 'WORDLIFT_BATCH' ) && WORDLIFT_BATCH ) {
1362
-			// Add the functionality only if a flag is set in wp-config.php .
1363
-			$this->loader->add_action( 'wl_admin_menu', $this->batch_analysis_page, 'admin_menu', 10, 2 );
1364
-		}
1365
-
1366
-		// Hook key update.
1367
-		$this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1368
-		$this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1369
-
1370
-		// Add additional action links to the WordLift plugin in the plugins page.
1371
-		$this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1372
-
1373
-		// Hook the AJAX `wl_publisher` action name.
1374
-		$this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1375
-
1376
-		// Hook row actions for the entity type list admin.
1377
-		$this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1378
-
1379
-		/** Ajax actions. */
1380
-		$this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1381
-
1382
-		// Hook capabilities manipulation to allow access to entity type admin
1383
-		// page  on WordPress versions before 4.7.
1384
-		global $wp_version;
1385
-		if ( version_compare( $wp_version, '4.7', '<' ) ) {
1386
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1387
-		}
1388
-
1389
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1390
-
1391
-		/** Adapters. */
1392
-		$this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1393
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit', $this->batch_analysis_adapter, 'submit' );
1394
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit_posts', $this->batch_analysis_adapter, 'submit_posts' );
1395
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_cancel', $this->batch_analysis_adapter, 'cancel' );
1396
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_clear_warning', $this->batch_analysis_adapter, 'clear_warning' );
1397
-		$this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1398
-
1399
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1400
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1401
-
1402
-		// Handle the autocomplete request.
1403
-		add_action( 'wp_ajax_wl_autocomplete', array(
1404
-			$this->autocomplete_adapter,
1405
-			'wl_autocomplete',
1406
-		) );
1407
-		add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1408
-			$this->autocomplete_adapter,
1409
-			'wl_autocomplete',
1410
-		) );
1411
-
1412
-		// Hooks to restrict multisite super admin from manipulating entity types.
1413
-		if ( is_multisite() ) {
1414
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1415
-		}
1416
-
1417
-	}
1418
-
1419
-	/**
1420
-	 * Register all of the hooks related to the public-facing functionality
1421
-	 * of the plugin.
1422
-	 *
1423
-	 * @since    1.0.0
1424
-	 * @access   private
1425
-	 */
1426
-	private function define_public_hooks() {
1427
-
1428
-		$plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1429
-
1430
-		// Register the entity post type.
1431
-		$this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1432
-
1433
-		// Bind the link generation and handling hooks to the entity link service.
1434
-		$this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1435
-		$this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1436
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3 );
1437
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4 );
1438
-
1439
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1440
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1441
-
1442
-		// Hook the content filter service to add entity links.
1443
-		if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1444
-			$this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1445
-		}
1446
-
1447
-		// Hook the AJAX wl_timeline action to the Timeline service.
1448
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1449
-
1450
-		// Hook the ShareThis service.
1451
-		$this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1452
-		$this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1453
-
1454
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1455
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1456
-
1457
-		// Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1458
-		// in order to tweak WP's `WP_Query` to include entities in queries related
1459
-		// to categories.
1460
-		$this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1461
-
1462
-		/*
1212
+        // create an instance of the entity type list admin page controller.
1213
+        $this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1214
+
1215
+        // create an instance of the entity type etting admin page controller.
1216
+        $this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1217
+
1218
+        /** Widgets */
1219
+        $this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1220
+
1221
+        /* WordPress Admin. */
1222
+        $this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1223
+        $this->status_page             = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1224
+
1225
+        // Create an instance of the install wizard.
1226
+        $this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service );
1227
+
1228
+        $this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1229
+
1230
+        // User Profile.
1231
+        new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1232
+
1233
+        $this->entity_page_service = new Wordlift_Entity_Page_Service();
1234
+
1235
+        // Load the debug service if WP is in debug mode.
1236
+        if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1237
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1238
+            new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1239
+        }
1240
+
1241
+    }
1242
+
1243
+    /**
1244
+     * Define the locale for this plugin for internationalization.
1245
+     *
1246
+     * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1247
+     * with WordPress.
1248
+     *
1249
+     * @since    1.0.0
1250
+     * @access   private
1251
+     */
1252
+    private function set_locale() {
1253
+
1254
+        $plugin_i18n = new Wordlift_i18n();
1255
+        $plugin_i18n->set_domain( $this->get_plugin_name() );
1256
+
1257
+        $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1258
+
1259
+    }
1260
+
1261
+    /**
1262
+     * Register all of the hooks related to the admin area functionality
1263
+     * of the plugin.
1264
+     *
1265
+     * @since    1.0.0
1266
+     * @access   private
1267
+     */
1268
+    private function define_admin_hooks() {
1269
+
1270
+        $plugin_admin = new Wordlift_Admin(
1271
+            $this->get_plugin_name(),
1272
+            $this->get_version(),
1273
+            $this->configuration_service,
1274
+            $this->notice_service,
1275
+            $this->user_service
1276
+        );
1277
+
1278
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1279
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
1280
+
1281
+        // Hook the init action to the Topic Taxonomy service.
1282
+        $this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1283
+
1284
+        // Hook the deleted_post_meta action to the Thumbnail service.
1285
+        $this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1286
+
1287
+        // Hook the added_post_meta action to the Thumbnail service.
1288
+        $this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1289
+
1290
+        // Hook the updated_post_meta action to the Thumbnail service.
1291
+        $this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1292
+
1293
+        // Hook the AJAX wl_timeline action to the Timeline service.
1294
+        $this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1295
+
1296
+        // Register custom allowed redirect hosts.
1297
+        $this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1298
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1299
+        $this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1300
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1301
+        $this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1302
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1303
+        $this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1304
+
1305
+        // Hook save_post to the entity service to update custom fields (such as alternate labels).
1306
+        // We have a priority of 9 because we want to be executed before data is sent to Redlink.
1307
+        $this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1308
+        $this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1309
+
1310
+        $this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1311
+        $this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1312
+
1313
+        // Entity listing customization (wp-admin/edit.php)
1314
+        // Add custom columns.
1315
+        $this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1316
+        // no explicit entity as it prevents handling of other post types.
1317
+        $this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1318
+        // Add 4W selection.
1319
+        $this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1320
+        $this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1321
+        $this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1322
+        $this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1323
+        $this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1324
+
1325
+        // Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1326
+        // entities.
1327
+        $this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1328
+
1329
+        // Filter imported post meta.
1330
+        $this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1331
+
1332
+        // Notify the import service when an import starts and ends.
1333
+        $this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1334
+        $this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1335
+
1336
+        // Hook the AJAX wl_rebuild action to the Rebuild Service.
1337
+        $this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1338
+
1339
+        // Hook the menu to the Download Your Data page.
1340
+        $this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1341
+        $this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1342
+        $this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1343
+
1344
+        // Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1345
+        $this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1346
+
1347
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1348
+        $this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1349
+
1350
+        // Hook the AJAX wl_validate_key action to the Key Validation service.
1351
+        $this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1352
+
1353
+        // Hook the `admin_init` function to the Admin Setup.
1354
+        $this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1355
+
1356
+        // Hook the admin_init to the settings page.
1357
+        $this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1358
+
1359
+        // Hook the menu creation on the general wordlift menu creation.
1360
+        $this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1361
+        if ( defined( 'WORDLIFT_BATCH' ) && WORDLIFT_BATCH ) {
1362
+            // Add the functionality only if a flag is set in wp-config.php .
1363
+            $this->loader->add_action( 'wl_admin_menu', $this->batch_analysis_page, 'admin_menu', 10, 2 );
1364
+        }
1365
+
1366
+        // Hook key update.
1367
+        $this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1368
+        $this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1369
+
1370
+        // Add additional action links to the WordLift plugin in the plugins page.
1371
+        $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1372
+
1373
+        // Hook the AJAX `wl_publisher` action name.
1374
+        $this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1375
+
1376
+        // Hook row actions for the entity type list admin.
1377
+        $this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1378
+
1379
+        /** Ajax actions. */
1380
+        $this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1381
+
1382
+        // Hook capabilities manipulation to allow access to entity type admin
1383
+        // page  on WordPress versions before 4.7.
1384
+        global $wp_version;
1385
+        if ( version_compare( $wp_version, '4.7', '<' ) ) {
1386
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1387
+        }
1388
+
1389
+        $this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1390
+
1391
+        /** Adapters. */
1392
+        $this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1393
+        $this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit', $this->batch_analysis_adapter, 'submit' );
1394
+        $this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit_posts', $this->batch_analysis_adapter, 'submit_posts' );
1395
+        $this->loader->add_action( 'wp_ajax_wl_batch_analysis_cancel', $this->batch_analysis_adapter, 'cancel' );
1396
+        $this->loader->add_action( 'wp_ajax_wl_batch_analysis_clear_warning', $this->batch_analysis_adapter, 'clear_warning' );
1397
+        $this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1398
+
1399
+        $this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1400
+        $this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1401
+
1402
+        // Handle the autocomplete request.
1403
+        add_action( 'wp_ajax_wl_autocomplete', array(
1404
+            $this->autocomplete_adapter,
1405
+            'wl_autocomplete',
1406
+        ) );
1407
+        add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1408
+            $this->autocomplete_adapter,
1409
+            'wl_autocomplete',
1410
+        ) );
1411
+
1412
+        // Hooks to restrict multisite super admin from manipulating entity types.
1413
+        if ( is_multisite() ) {
1414
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1415
+        }
1416
+
1417
+    }
1418
+
1419
+    /**
1420
+     * Register all of the hooks related to the public-facing functionality
1421
+     * of the plugin.
1422
+     *
1423
+     * @since    1.0.0
1424
+     * @access   private
1425
+     */
1426
+    private function define_public_hooks() {
1427
+
1428
+        $plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1429
+
1430
+        // Register the entity post type.
1431
+        $this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1432
+
1433
+        // Bind the link generation and handling hooks to the entity link service.
1434
+        $this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1435
+        $this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1436
+        $this->loader->add_filter( 'wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3 );
1437
+        $this->loader->add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4 );
1438
+
1439
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1440
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1441
+
1442
+        // Hook the content filter service to add entity links.
1443
+        if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1444
+            $this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1445
+        }
1446
+
1447
+        // Hook the AJAX wl_timeline action to the Timeline service.
1448
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1449
+
1450
+        // Hook the ShareThis service.
1451
+        $this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1452
+        $this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1453
+
1454
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1455
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1456
+
1457
+        // Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1458
+        // in order to tweak WP's `WP_Query` to include entities in queries related
1459
+        // to categories.
1460
+        $this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1461
+
1462
+        /*
1463 1463
 		 * Hook the `pre_get_posts` action to the `Wordlift_Entity_Page_Service`
1464 1464
 		 * in order to tweak WP's `WP_Query` to show event related entities in reverse
1465 1465
 		 * order of start time.
1466 1466
 		 */
1467
-		$this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
1468
-
1469
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1470
-
1471
-		// This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
1472
-		$this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
1473
-
1474
-	}
1475
-
1476
-	/**
1477
-	 * Run the loader to execute all of the hooks with WordPress.
1478
-	 *
1479
-	 * @since    1.0.0
1480
-	 */
1481
-	public function run() {
1482
-		$this->loader->run();
1483
-	}
1484
-
1485
-	/**
1486
-	 * The name of the plugin used to uniquely identify it within the context of
1487
-	 * WordPress and to define internationalization functionality.
1488
-	 *
1489
-	 * @since     1.0.0
1490
-	 * @return    string    The name of the plugin.
1491
-	 */
1492
-	public function get_plugin_name() {
1493
-		return $this->plugin_name;
1494
-	}
1495
-
1496
-	/**
1497
-	 * The reference to the class that orchestrates the hooks with the plugin.
1498
-	 *
1499
-	 * @since     1.0.0
1500
-	 * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
1501
-	 */
1502
-	public function get_loader() {
1503
-		return $this->loader;
1504
-	}
1505
-
1506
-	/**
1507
-	 * Retrieve the version number of the plugin.
1508
-	 *
1509
-	 * @since     1.0.0
1510
-	 * @return    string    The version number of the plugin.
1511
-	 */
1512
-	public function get_version() {
1513
-		return $this->version;
1514
-	}
1467
+        $this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
1468
+
1469
+        $this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1470
+
1471
+        // This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
1472
+        $this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
1473
+
1474
+    }
1475
+
1476
+    /**
1477
+     * Run the loader to execute all of the hooks with WordPress.
1478
+     *
1479
+     * @since    1.0.0
1480
+     */
1481
+    public function run() {
1482
+        $this->loader->run();
1483
+    }
1484
+
1485
+    /**
1486
+     * The name of the plugin used to uniquely identify it within the context of
1487
+     * WordPress and to define internationalization functionality.
1488
+     *
1489
+     * @since     1.0.0
1490
+     * @return    string    The name of the plugin.
1491
+     */
1492
+    public function get_plugin_name() {
1493
+        return $this->plugin_name;
1494
+    }
1495
+
1496
+    /**
1497
+     * The reference to the class that orchestrates the hooks with the plugin.
1498
+     *
1499
+     * @since     1.0.0
1500
+     * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
1501
+     */
1502
+    public function get_loader() {
1503
+        return $this->loader;
1504
+    }
1505
+
1506
+    /**
1507
+     * Retrieve the version number of the plugin.
1508
+     *
1509
+     * @since     1.0.0
1510
+     * @return    string    The version number of the plugin.
1511
+     */
1512
+    public function get_version() {
1513
+        return $this->version;
1514
+    }
1515 1515
 
1516 1516
 }
Please login to merge, or discard this patch.