Completed
Push — develop ( 20b0b9...ef062c )
by David
02:53
created
src/includes/class-wordlift.php 1 patch
Indentation   +1172 added lines, -1172 removed lines patch added patch discarded remove patch
@@ -29,1275 +29,1275 @@
 block discarded – undo
29 29
  */
30 30
 class Wordlift {
31 31
 
32
-	/**
33
-	 * The loader that's responsible for maintaining and registering all hooks that power
34
-	 * the plugin.
35
-	 *
36
-	 * @since    1.0.0
37
-	 * @access   protected
38
-	 * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
39
-	 */
40
-	protected $loader;
41
-
42
-	/**
43
-	 * The unique identifier of this plugin.
44
-	 *
45
-	 * @since    1.0.0
46
-	 * @access   protected
47
-	 * @var      string $plugin_name The string used to uniquely identify this plugin.
48
-	 */
49
-	protected $plugin_name;
50
-
51
-	/**
52
-	 * The current version of the plugin.
53
-	 *
54
-	 * @since    1.0.0
55
-	 * @access   protected
56
-	 * @var      string $version The current version of the plugin.
57
-	 */
58
-	protected $version;
59
-
60
-	/**
61
-	 * The {@link Wordlift_Tinymce_Adapter} instance.
62
-	 *
63
-	 * @since  3.12.0
64
-	 * @access protected
65
-	 * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
66
-	 */
67
-	protected $tinymce_adapter;
68
-
69
-	/**
70
-	 * The Thumbnail service.
71
-	 *
72
-	 * @since  3.1.5
73
-	 * @access private
74
-	 * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
75
-	 */
76
-	private $thumbnail_service;
77
-
78
-	/**
79
-	 * The UI service.
80
-	 *
81
-	 * @since  3.2.0
82
-	 * @access private
83
-	 * @var \Wordlift_UI_Service $ui_service The UI service.
84
-	 */
85
-	private $ui_service;
86
-
87
-	/**
88
-	 * The Schema service.
89
-	 *
90
-	 * @since  3.3.0
91
-	 * @access private
92
-	 * @var \Wordlift_Schema_Service $schema_service The Schema service.
93
-	 */
94
-	private $schema_service;
95
-
96
-	/**
97
-	 * The Entity service.
98
-	 *
99
-	 * @since  3.1.0
100
-	 * @access protected
101
-	 * @var \Wordlift_Entity_Service $entity_service The Entity service.
102
-	 */
103
-	protected $entity_service;
104
-
105
-	/**
106
-	 * The Topic Taxonomy service.
107
-	 *
108
-	 * @since  3.5.0
109
-	 * @access private
110
-	 * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
111
-	 */
112
-	private $topic_taxonomy_service;
113
-
114
-	/**
115
-	 * The User service.
116
-	 *
117
-	 * @since  3.1.7
118
-	 * @access protected
119
-	 * @var \Wordlift_User_Service $user_service The User service.
120
-	 */
121
-	protected $user_service;
122
-
123
-	/**
124
-	 * The Timeline service.
125
-	 *
126
-	 * @since  3.1.0
127
-	 * @access private
128
-	 * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
129
-	 */
130
-	private $timeline_service;
131
-
132
-	/**
133
-	 * The Redirect service.
134
-	 *
135
-	 * @since  3.2.0
136
-	 * @access private
137
-	 * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
138
-	 */
139
-	private $redirect_service;
140
-
141
-	/**
142
-	 * The Notice service.
143
-	 *
144
-	 * @since  3.3.0
145
-	 * @access private
146
-	 * @var \Wordlift_Notice_Service $notice_service The Notice service.
147
-	 */
148
-	private $notice_service;
149
-
150
-	/**
151
-	 * The Entity list customization.
152
-	 *
153
-	 * @since  3.3.0
154
-	 * @access private
155
-	 * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
156
-	 */
157
-	private $entity_list_service;
158
-
159
-	/**
160
-	 * The Entity Types Taxonomy Walker.
161
-	 *
162
-	 * @since  3.1.0
163
-	 * @access private
164
-	 * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
165
-	 */
166
-	private $entity_types_taxonomy_walker;
167
-
168
-	/**
169
-	 * The ShareThis service.
170
-	 *
171
-	 * @since  3.2.0
172
-	 * @access private
173
-	 * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
174
-	 */
175
-	private $sharethis_service;
176
-
177
-	/**
178
-	 * The PrimaShop adapter.
179
-	 *
180
-	 * @since  3.2.3
181
-	 * @access private
182
-	 * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
183
-	 */
184
-	private $primashop_adapter;
185
-
186
-	/**
187
-	 * The WordLift Dashboard adapter.
188
-	 *
189
-	 * @since  3.4.0
190
-	 * @access private
191
-	 * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
192
-	 */
193
-	private $dashboard_service;
194
-
195
-	/**
196
-	 * The entity type service.
197
-	 *
198
-	 * @since  3.6.0
199
-	 * @access private
200
-	 * @var \Wordlift_Entity_Post_Type_Service
201
-	 */
202
-	private $entity_post_type_service;
203
-
204
-	/**
205
-	 * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
206
-	 *
207
-	 * @since  3.6.0
208
-	 * @access private
209
-	 * @var \Wordlift_Entity_Link_Service
210
-	 */
211
-	private $entity_link_service;
212
-
213
-	/**
214
-	 * A {@link Wordlift_Sparql_Service} instance.
215
-	 *
216
-	 * @var    3.6.0
217
-	 * @access protected
218
-	 * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
219
-	 */
220
-	protected $sparql_service;
221
-
222
-	/**
223
-	 * A {@link Wordlift_Import_Service} instance.
224
-	 *
225
-	 * @since  3.6.0
226
-	 * @access private
227
-	 * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
228
-	 */
229
-	private $import_service;
230
-
231
-	/**
232
-	 * A {@link Wordlift_Rebuild_Service} instance.
233
-	 *
234
-	 * @since  3.6.0
235
-	 * @access private
236
-	 * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
237
-	 */
238
-	private $rebuild_service;
239
-
240
-	/**
241
-	 * A {@link Wordlift_Jsonld_Service} instance.
242
-	 *
243
-	 * @since  3.7.0
244
-	 * @access protected
245
-	 * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
246
-	 */
247
-	protected $jsonld_service;
248
-
249
-	/**
250
-	 * A {@link Wordlift_Website_Jsonld_Converter} instance.
251
-	 *
252
-	 * @since  3.14.0
253
-	 * @access protected
254
-	 * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
255
-	 */
256
-	protected $jsonld_website_converter;
257
-
258
-	/**
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_Event_Entity_Page_Service} instance.
395
-	 *
396
-	 * @since  3.11.0
397
-	 * @access protected
398
-	 * @var \Wordlift_Event_Entity_Page_Service $event_entity_page_service The {@link Wordlift_Event_Entity_Page_Service} instance.
399
-	 */
400
-	protected $event_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
-	 * {@link Wordlift}'s singleton instance.
512
-	 *
513
-	 * @since  3.11.2
514
-	 *
515
-	 * @since  3.11.2
516
-	 * @access private
517
-	 * @var Wordlift $instance {@link Wordlift}'s singleton instance.
518
-	 */
519
-	private static $instance;
520
-
521
-	/**
522
-	 * Define the core functionality of the plugin.
523
-	 *
524
-	 * Set the plugin name and the plugin version that can be used throughout the plugin.
525
-	 * Load the dependencies, define the locale, and set the hooks for the admin area and
526
-	 * the public-facing side of the site.
527
-	 *
528
-	 * @since    1.0.0
529
-	 */
530
-	public function __construct() {
531
-
532
-		$this->plugin_name = 'wordlift';
533
-		$this->version     = '3.15.0-dev';
534
-		$this->load_dependencies();
535
-		$this->set_locale();
536
-		$this->define_admin_hooks();
537
-		$this->define_public_hooks();
538
-
539
-		self::$instance = $this;
540
-
541
-	}
542
-
543
-	/**
544
-	 * Get the singleton instance.
545
-	 *
546
-	 * @since 3.11.2
547
-	 *
548
-	 * @return Wordlift The {@link Wordlift} singleton instance.
549
-	 */
550
-	public static function get_instance() {
551
-
552
-		return self::$instance;
553
-	}
554
-
555
-	/**
556
-	 * Load the required dependencies for this plugin.
557
-	 *
558
-	 * Include the following files that make up the plugin:
559
-	 *
560
-	 * - Wordlift_Loader. Orchestrates the hooks of the plugin.
561
-	 * - Wordlift_i18n. Defines internationalization functionality.
562
-	 * - Wordlift_Admin. Defines all hooks for the admin area.
563
-	 * - Wordlift_Public. Defines all hooks for the public side of the site.
564
-	 *
565
-	 * Create an instance of the loader which will be used to register the hooks
566
-	 * with WordPress.
567
-	 *
568
-	 * @since    1.0.0
569
-	 * @access   private
570
-	 */
571
-	private function load_dependencies() {
572
-
573
-		/**
574
-		 * The class responsible for orchestrating the actions and filters of the
575
-		 * core plugin.
576
-		 */
577
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
578
-
579
-		/**
580
-		 * The class responsible for defining internationalization functionality
581
-		 * of the plugin.
582
-		 */
583
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
584
-
585
-		/**
586
-		 * WordLift's supported languages.
587
-		 */
588
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
589
-
590
-		/**
591
-		 * Provide support functions to sanitize data.
592
-		 */
593
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
594
-
595
-		/**
596
-		 * The Redirect service.
597
-		 */
598
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
599
-
600
-		/**
601
-		 * The Log service.
602
-		 */
603
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
604
-
605
-		/**
606
-		 * The configuration service.
607
-		 */
608
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
609
-
610
-		/**
611
-		 * The entity post type service (this is the WordPress post type, not the entity schema type).
612
-		 */
613
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
614
-
615
-		/**
616
-		 * The entity type service (i.e. the schema type).
617
-		 */
618
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
619
-
620
-		/**
621
-		 * The entity link service.
622
-		 */
623
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
624
-
625
-		/**
626
-		 * The Query builder.
627
-		 */
628
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
629
-
630
-		/**
631
-		 * The Schema service.
632
-		 */
633
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
634
-
635
-		/**
636
-		 * The schema:url property service.
637
-		 */
638
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
639
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
640
-
641
-		/**
642
-		 * The UI service.
643
-		 */
644
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
645
-
646
-		/**
647
-		 * The Thumbnail service.
648
-		 */
649
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
650
-
651
-		/**
652
-		 * The Entity Types Taxonomy service.
653
-		 */
654
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-types-taxonomy-service.php';
655
-
656
-		/**
657
-		 * The Entity service.
658
-		 */
659
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
660
-
661
-		// Add the entity rating service.
662
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
663
-
664
-		/**
665
-		 * The User service.
666
-		 */
667
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
668
-
669
-		/**
670
-		 * The Timeline service.
671
-		 */
672
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
673
-
674
-		/**
675
-		 * The Topic Taxonomy service.
676
-		 */
677
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
678
-
679
-		/**
680
-		 * The SPARQL service.
681
-		 */
682
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
683
-
684
-		/**
685
-		 * The WordLift import service.
686
-		 */
687
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
688
-
689
-		/**
690
-		 * The WordLift URI service.
691
-		 */
692
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
693
-
694
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-listable.php';
695
-
696
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
697
-
698
-		/**
699
-		 * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
700
-		 */
701
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rebuild-service.php';
702
-
703
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
704
-
705
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
706
-
707
-		/**
708
-		 * Load the converters.
709
-		 */
710
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
711
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
712
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
713
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
714
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
715
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
716
-
717
-		/**
718
-		 * Load the content filter.
719
-		 */
720
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
721
-
722
-		/*
32
+    /**
33
+     * The loader that's responsible for maintaining and registering all hooks that power
34
+     * the plugin.
35
+     *
36
+     * @since    1.0.0
37
+     * @access   protected
38
+     * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
39
+     */
40
+    protected $loader;
41
+
42
+    /**
43
+     * The unique identifier of this plugin.
44
+     *
45
+     * @since    1.0.0
46
+     * @access   protected
47
+     * @var      string $plugin_name The string used to uniquely identify this plugin.
48
+     */
49
+    protected $plugin_name;
50
+
51
+    /**
52
+     * The current version of the plugin.
53
+     *
54
+     * @since    1.0.0
55
+     * @access   protected
56
+     * @var      string $version The current version of the plugin.
57
+     */
58
+    protected $version;
59
+
60
+    /**
61
+     * The {@link Wordlift_Tinymce_Adapter} instance.
62
+     *
63
+     * @since  3.12.0
64
+     * @access protected
65
+     * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
66
+     */
67
+    protected $tinymce_adapter;
68
+
69
+    /**
70
+     * The Thumbnail service.
71
+     *
72
+     * @since  3.1.5
73
+     * @access private
74
+     * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
75
+     */
76
+    private $thumbnail_service;
77
+
78
+    /**
79
+     * The UI service.
80
+     *
81
+     * @since  3.2.0
82
+     * @access private
83
+     * @var \Wordlift_UI_Service $ui_service The UI service.
84
+     */
85
+    private $ui_service;
86
+
87
+    /**
88
+     * The Schema service.
89
+     *
90
+     * @since  3.3.0
91
+     * @access private
92
+     * @var \Wordlift_Schema_Service $schema_service The Schema service.
93
+     */
94
+    private $schema_service;
95
+
96
+    /**
97
+     * The Entity service.
98
+     *
99
+     * @since  3.1.0
100
+     * @access protected
101
+     * @var \Wordlift_Entity_Service $entity_service The Entity service.
102
+     */
103
+    protected $entity_service;
104
+
105
+    /**
106
+     * The Topic Taxonomy service.
107
+     *
108
+     * @since  3.5.0
109
+     * @access private
110
+     * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
111
+     */
112
+    private $topic_taxonomy_service;
113
+
114
+    /**
115
+     * The User service.
116
+     *
117
+     * @since  3.1.7
118
+     * @access protected
119
+     * @var \Wordlift_User_Service $user_service The User service.
120
+     */
121
+    protected $user_service;
122
+
123
+    /**
124
+     * The Timeline service.
125
+     *
126
+     * @since  3.1.0
127
+     * @access private
128
+     * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
129
+     */
130
+    private $timeline_service;
131
+
132
+    /**
133
+     * The Redirect service.
134
+     *
135
+     * @since  3.2.0
136
+     * @access private
137
+     * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
138
+     */
139
+    private $redirect_service;
140
+
141
+    /**
142
+     * The Notice service.
143
+     *
144
+     * @since  3.3.0
145
+     * @access private
146
+     * @var \Wordlift_Notice_Service $notice_service The Notice service.
147
+     */
148
+    private $notice_service;
149
+
150
+    /**
151
+     * The Entity list customization.
152
+     *
153
+     * @since  3.3.0
154
+     * @access private
155
+     * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
156
+     */
157
+    private $entity_list_service;
158
+
159
+    /**
160
+     * The Entity Types Taxonomy Walker.
161
+     *
162
+     * @since  3.1.0
163
+     * @access private
164
+     * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
165
+     */
166
+    private $entity_types_taxonomy_walker;
167
+
168
+    /**
169
+     * The ShareThis service.
170
+     *
171
+     * @since  3.2.0
172
+     * @access private
173
+     * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
174
+     */
175
+    private $sharethis_service;
176
+
177
+    /**
178
+     * The PrimaShop adapter.
179
+     *
180
+     * @since  3.2.3
181
+     * @access private
182
+     * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
183
+     */
184
+    private $primashop_adapter;
185
+
186
+    /**
187
+     * The WordLift Dashboard adapter.
188
+     *
189
+     * @since  3.4.0
190
+     * @access private
191
+     * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
192
+     */
193
+    private $dashboard_service;
194
+
195
+    /**
196
+     * The entity type service.
197
+     *
198
+     * @since  3.6.0
199
+     * @access private
200
+     * @var \Wordlift_Entity_Post_Type_Service
201
+     */
202
+    private $entity_post_type_service;
203
+
204
+    /**
205
+     * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
206
+     *
207
+     * @since  3.6.0
208
+     * @access private
209
+     * @var \Wordlift_Entity_Link_Service
210
+     */
211
+    private $entity_link_service;
212
+
213
+    /**
214
+     * A {@link Wordlift_Sparql_Service} instance.
215
+     *
216
+     * @var    3.6.0
217
+     * @access protected
218
+     * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
219
+     */
220
+    protected $sparql_service;
221
+
222
+    /**
223
+     * A {@link Wordlift_Import_Service} instance.
224
+     *
225
+     * @since  3.6.0
226
+     * @access private
227
+     * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
228
+     */
229
+    private $import_service;
230
+
231
+    /**
232
+     * A {@link Wordlift_Rebuild_Service} instance.
233
+     *
234
+     * @since  3.6.0
235
+     * @access private
236
+     * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
237
+     */
238
+    private $rebuild_service;
239
+
240
+    /**
241
+     * A {@link Wordlift_Jsonld_Service} instance.
242
+     *
243
+     * @since  3.7.0
244
+     * @access protected
245
+     * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
246
+     */
247
+    protected $jsonld_service;
248
+
249
+    /**
250
+     * A {@link Wordlift_Website_Jsonld_Converter} instance.
251
+     *
252
+     * @since  3.14.0
253
+     * @access protected
254
+     * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
255
+     */
256
+    protected $jsonld_website_converter;
257
+
258
+    /**
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_Event_Entity_Page_Service} instance.
395
+     *
396
+     * @since  3.11.0
397
+     * @access protected
398
+     * @var \Wordlift_Event_Entity_Page_Service $event_entity_page_service The {@link Wordlift_Event_Entity_Page_Service} instance.
399
+     */
400
+    protected $event_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
+     * {@link Wordlift}'s singleton instance.
512
+     *
513
+     * @since  3.11.2
514
+     *
515
+     * @since  3.11.2
516
+     * @access private
517
+     * @var Wordlift $instance {@link Wordlift}'s singleton instance.
518
+     */
519
+    private static $instance;
520
+
521
+    /**
522
+     * Define the core functionality of the plugin.
523
+     *
524
+     * Set the plugin name and the plugin version that can be used throughout the plugin.
525
+     * Load the dependencies, define the locale, and set the hooks for the admin area and
526
+     * the public-facing side of the site.
527
+     *
528
+     * @since    1.0.0
529
+     */
530
+    public function __construct() {
531
+
532
+        $this->plugin_name = 'wordlift';
533
+        $this->version     = '3.15.0-dev';
534
+        $this->load_dependencies();
535
+        $this->set_locale();
536
+        $this->define_admin_hooks();
537
+        $this->define_public_hooks();
538
+
539
+        self::$instance = $this;
540
+
541
+    }
542
+
543
+    /**
544
+     * Get the singleton instance.
545
+     *
546
+     * @since 3.11.2
547
+     *
548
+     * @return Wordlift The {@link Wordlift} singleton instance.
549
+     */
550
+    public static function get_instance() {
551
+
552
+        return self::$instance;
553
+    }
554
+
555
+    /**
556
+     * Load the required dependencies for this plugin.
557
+     *
558
+     * Include the following files that make up the plugin:
559
+     *
560
+     * - Wordlift_Loader. Orchestrates the hooks of the plugin.
561
+     * - Wordlift_i18n. Defines internationalization functionality.
562
+     * - Wordlift_Admin. Defines all hooks for the admin area.
563
+     * - Wordlift_Public. Defines all hooks for the public side of the site.
564
+     *
565
+     * Create an instance of the loader which will be used to register the hooks
566
+     * with WordPress.
567
+     *
568
+     * @since    1.0.0
569
+     * @access   private
570
+     */
571
+    private function load_dependencies() {
572
+
573
+        /**
574
+         * The class responsible for orchestrating the actions and filters of the
575
+         * core plugin.
576
+         */
577
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
578
+
579
+        /**
580
+         * The class responsible for defining internationalization functionality
581
+         * of the plugin.
582
+         */
583
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
584
+
585
+        /**
586
+         * WordLift's supported languages.
587
+         */
588
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
589
+
590
+        /**
591
+         * Provide support functions to sanitize data.
592
+         */
593
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
594
+
595
+        /**
596
+         * The Redirect service.
597
+         */
598
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
599
+
600
+        /**
601
+         * The Log service.
602
+         */
603
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
604
+
605
+        /**
606
+         * The configuration service.
607
+         */
608
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
609
+
610
+        /**
611
+         * The entity post type service (this is the WordPress post type, not the entity schema type).
612
+         */
613
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
614
+
615
+        /**
616
+         * The entity type service (i.e. the schema type).
617
+         */
618
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
619
+
620
+        /**
621
+         * The entity link service.
622
+         */
623
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
624
+
625
+        /**
626
+         * The Query builder.
627
+         */
628
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
629
+
630
+        /**
631
+         * The Schema service.
632
+         */
633
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
634
+
635
+        /**
636
+         * The schema:url property service.
637
+         */
638
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
639
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
640
+
641
+        /**
642
+         * The UI service.
643
+         */
644
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
645
+
646
+        /**
647
+         * The Thumbnail service.
648
+         */
649
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
650
+
651
+        /**
652
+         * The Entity Types Taxonomy service.
653
+         */
654
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-types-taxonomy-service.php';
655
+
656
+        /**
657
+         * The Entity service.
658
+         */
659
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
660
+
661
+        // Add the entity rating service.
662
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
663
+
664
+        /**
665
+         * The User service.
666
+         */
667
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
668
+
669
+        /**
670
+         * The Timeline service.
671
+         */
672
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
673
+
674
+        /**
675
+         * The Topic Taxonomy service.
676
+         */
677
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
678
+
679
+        /**
680
+         * The SPARQL service.
681
+         */
682
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
683
+
684
+        /**
685
+         * The WordLift import service.
686
+         */
687
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
688
+
689
+        /**
690
+         * The WordLift URI service.
691
+         */
692
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
693
+
694
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-listable.php';
695
+
696
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
697
+
698
+        /**
699
+         * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
700
+         */
701
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rebuild-service.php';
702
+
703
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
704
+
705
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
706
+
707
+        /**
708
+         * Load the converters.
709
+         */
710
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
711
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
712
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
713
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
714
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
715
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
716
+
717
+        /**
718
+         * Load the content filter.
719
+         */
720
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
721
+
722
+        /*
723 723
 		 * Load the excerpt helper.
724 724
 		 */
725
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
726
-
727
-		/**
728
-		 * Load the JSON-LD service to publish entities using JSON-LD.s
729
-		 *
730
-		 * @since 3.8.0
731
-		 */
732
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
733
-
734
-		// The Publisher Service and the AJAX adapter.
735
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
736
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
737
-
738
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
739
-
740
-		/**
741
-		 * Load the WordLift key validation service.
742
-		 */
743
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
744
-
745
-		// Load the `Wordlift_Category_Taxonomy_Service` class definition.
746
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
747
-
748
-		// Load the `Wordlift_Event_Entity_Page_Service` class definition.
749
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-event-entity-page-service.php';
750
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-analysis-service.php';
751
-
752
-		/** Adapters. */
753
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
754
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
755
-
756
-		/** Async Tasks. */
757
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/wp-async-task.php';
758
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
759
-
760
-		/**
761
-		 * The class responsible for defining all actions that occur in the admin area.
762
-		 */
763
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
725
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
726
+
727
+        /**
728
+         * Load the JSON-LD service to publish entities using JSON-LD.s
729
+         *
730
+         * @since 3.8.0
731
+         */
732
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
733
+
734
+        // The Publisher Service and the AJAX adapter.
735
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
736
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
737
+
738
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
739
+
740
+        /**
741
+         * Load the WordLift key validation service.
742
+         */
743
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
744
+
745
+        // Load the `Wordlift_Category_Taxonomy_Service` class definition.
746
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
747
+
748
+        // Load the `Wordlift_Event_Entity_Page_Service` class definition.
749
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-event-entity-page-service.php';
750
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-analysis-service.php';
751
+
752
+        /** Adapters. */
753
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
754
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
755
+
756
+        /** Async Tasks. */
757
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/wp-async-task.php';
758
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
759
+
760
+        /**
761
+         * The class responsible for defining all actions that occur in the admin area.
762
+         */
763
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
764
+
765
+        /**
766
+         * The class to customize the entity list admin page.
767
+         */
768
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
769
+
770
+        /**
771
+         * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
772
+         */
773
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
774
+
775
+        /**
776
+         * The Notice service.
777
+         */
778
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
779
+
780
+        /**
781
+         * The PrimaShop adapter.
782
+         */
783
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
784
+
785
+        /**
786
+         * The WordLift Dashboard service.
787
+         */
788
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
789
+
790
+        /**
791
+         * The admin 'Install wizard' page.
792
+         */
793
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
794
+
795
+        /**
796
+         * The WordLift entity type list admin page controller.
797
+         */
798
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
799
+
800
+        /**
801
+         * The WordLift entity type settings admin page controller.
802
+         */
803
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
804
+
805
+        /**
806
+         * The admin 'Download Your Data' page.
807
+         */
808
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
809
+
810
+        /**
811
+         * The admin 'Download Your Data' page.
812
+         */
813
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
814
+
815
+        /**
816
+         * The admin 'WordLift Settings' page.
817
+         */
818
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/intf-wordlift-admin-element.php';
819
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-input-element.php';
820
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-input-radio-element.php';
821
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-select2-element.php';
822
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-language-select-element.php';
823
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-tabs-element.php';
824
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-author-element.php';
825
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-publisher-element.php';
826
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
827
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
828
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-batch-analysis-page.php';
829
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
830
+
831
+        /** Admin Pages */
832
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
833
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
834
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
835
+
836
+        /**
837
+         * The class responsible for defining all actions that occur in the public-facing
838
+         * side of the site.
839
+         */
840
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
841
+
842
+        /**
843
+         * The shortcode abstract class.
844
+         */
845
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
846
+
847
+        /**
848
+         * The Timeline shortcode.
849
+         */
850
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
851
+
852
+        /**
853
+         * The Navigator shortcode.
854
+         */
855
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
856
+
857
+        /**
858
+         * The chord shortcode.
859
+         */
860
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
861
+
862
+        /**
863
+         * The geomap shortcode.
864
+         */
865
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
866
+
867
+        /**
868
+         * The entity cloud shortcode.
869
+         */
870
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
871
+
872
+        /**
873
+         * The ShareThis service.
874
+         */
875
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
764 876
 
765
-		/**
766
-		 * The class to customize the entity list admin page.
767
-		 */
768
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
769
-
770
-		/**
771
-		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
772
-		 */
773
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
774
-
775
-		/**
776
-		 * The Notice service.
777
-		 */
778
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
779
-
780
-		/**
781
-		 * The PrimaShop adapter.
782
-		 */
783
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
784
-
785
-		/**
786
-		 * The WordLift Dashboard service.
787
-		 */
788
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
789
-
790
-		/**
791
-		 * The admin 'Install wizard' page.
792
-		 */
793
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
794
-
795
-		/**
796
-		 * The WordLift entity type list admin page controller.
797
-		 */
798
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
877
+        /**
878
+         * The SEO service.
879
+         */
880
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
799 881
 
800
-		/**
801
-		 * The WordLift entity type settings admin page controller.
802
-		 */
803
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
804
-
805
-		/**
806
-		 * The admin 'Download Your Data' page.
807
-		 */
808
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
809
-
810
-		/**
811
-		 * The admin 'Download Your Data' page.
812
-		 */
813
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
814
-
815
-		/**
816
-		 * The admin 'WordLift Settings' page.
817
-		 */
818
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/intf-wordlift-admin-element.php';
819
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-input-element.php';
820
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-input-radio-element.php';
821
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-select2-element.php';
822
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-language-select-element.php';
823
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-tabs-element.php';
824
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-author-element.php';
825
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-publisher-element.php';
826
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
827
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
828
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-batch-analysis-page.php';
829
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
830
-
831
-		/** Admin Pages */
832
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
833
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
834
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
835
-
836
-		/**
837
-		 * The class responsible for defining all actions that occur in the public-facing
838
-		 * side of the site.
839
-		 */
840
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
841
-
842
-		/**
843
-		 * The shortcode abstract class.
844
-		 */
845
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
846
-
847
-		/**
848
-		 * The Timeline shortcode.
849
-		 */
850
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
851
-
852
-		/**
853
-		 * The Navigator shortcode.
854
-		 */
855
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
856
-
857
-		/**
858
-		 * The chord shortcode.
859
-		 */
860
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
861
-
862
-		/**
863
-		 * The geomap shortcode.
864
-		 */
865
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
866
-
867
-		/**
868
-		 * The entity cloud shortcode.
869
-		 */
870
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
871
-
872
-		/**
873
-		 * The ShareThis service.
874
-		 */
875
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
876
-
877
-		/**
878
-		 * The SEO service.
879
-		 */
880
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
881
-
882
-		/**
883
-		 * The AMP service.
884
-		 */
885
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
882
+        /**
883
+         * The AMP service.
884
+         */
885
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
886 886
 
887
-		/** Widgets */
888
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
889
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
887
+        /** Widgets */
888
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
889
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
890 890
 
891
-		$this->loader = new Wordlift_Loader();
891
+        $this->loader = new Wordlift_Loader();
892 892
 
893
-		// Instantiate a global logger.
894
-		global $wl_logger;
895
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
893
+        // Instantiate a global logger.
894
+        global $wl_logger;
895
+        $wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
896 896
 
897
-		// Create the configuration service.
898
-		$this->configuration_service = new Wordlift_Configuration_Service();
897
+        // Create the configuration service.
898
+        $this->configuration_service = new Wordlift_Configuration_Service();
899 899
 
900
-		// Create an entity type service instance. It'll be later bound to the init action.
901
-		$this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
900
+        // Create an entity type service instance. It'll be later bound to the init action.
901
+        $this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
902 902
 
903
-		// Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
904
-		$this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
903
+        // Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
904
+        $this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
905 905
 
906
-		// Create an instance of the UI service.
907
-		$this->ui_service = new Wordlift_UI_Service();
906
+        // Create an instance of the UI service.
907
+        $this->ui_service = new Wordlift_UI_Service();
908 908
 
909
-		// Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
910
-		$this->thumbnail_service = new Wordlift_Thumbnail_Service();
909
+        // Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
910
+        $this->thumbnail_service = new Wordlift_Thumbnail_Service();
911 911
 
912
-		$this->sparql_service = new Wordlift_Sparql_Service();
912
+        $this->sparql_service = new Wordlift_Sparql_Service();
913 913
 
914
-		// Create an instance of the Schema service.
915
-		$schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
916
-		$this->schema_service        = new Wordlift_Schema_Service();
914
+        // Create an instance of the Schema service.
915
+        $schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
916
+        $this->schema_service        = new Wordlift_Schema_Service();
917 917
 
918
-		// Create an instance of the Notice service.
919
-		$this->notice_service = new Wordlift_Notice_Service();
918
+        // Create an instance of the Notice service.
919
+        $this->notice_service = new Wordlift_Notice_Service();
920 920
 
921
-		// Create an instance of the Entity service, passing the UI service to draw parts of the Entity admin page.
922
-		$this->entity_service = new Wordlift_Entity_Service( $this->ui_service );
921
+        // Create an instance of the Entity service, passing the UI service to draw parts of the Entity admin page.
922
+        $this->entity_service = new Wordlift_Entity_Service( $this->ui_service );
923 923
 
924
-		// Create an instance of the User service.
925
-		$this->user_service = new Wordlift_User_Service();
924
+        // Create an instance of the User service.
925
+        $this->user_service = new Wordlift_User_Service();
926 926
 
927
-		// Create a new instance of the Timeline service and Timeline shortcode.
928
-		$this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service );
927
+        // Create a new instance of the Timeline service and Timeline shortcode.
928
+        $this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service );
929 929
 
930
-		// Create a new instance of the Redirect service.
931
-		$this->redirect_service = new Wordlift_Redirect_Service( $this->entity_service );
930
+        // Create a new instance of the Redirect service.
931
+        $this->redirect_service = new Wordlift_Redirect_Service( $this->entity_service );
932 932
 
933
-		// Initialize the shortcodes.
934
-		new Wordlift_Navigator_Shortcode();
935
-		new Wordlift_Chord_Shortcode();
936
-		new Wordlift_Geomap_Shortcode();
937
-		new Wordlift_Timeline_Shortcode();
938
-		new Wordlift_Related_Entities_Cloud_Shortcode();
933
+        // Initialize the shortcodes.
934
+        new Wordlift_Navigator_Shortcode();
935
+        new Wordlift_Chord_Shortcode();
936
+        new Wordlift_Geomap_Shortcode();
937
+        new Wordlift_Timeline_Shortcode();
938
+        new Wordlift_Related_Entities_Cloud_Shortcode();
939 939
 
940
-		// Initialize the SEO service.
941
-		new Wordlift_Seo_Service();
940
+        // Initialize the SEO service.
941
+        new Wordlift_Seo_Service();
942 942
 
943
-		// Initialize the AMP service.
944
-		new Wordlift_AMP_Service();
943
+        // Initialize the AMP service.
944
+        new Wordlift_AMP_Service();
945 945
 
946
-		$this->batch_analysis_service = new Wordlift_Batch_Analysis_Service( $this, $this->configuration_service );
946
+        $this->batch_analysis_service = new Wordlift_Batch_Analysis_Service( $this, $this->configuration_service );
947 947
 
948
-		$this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
948
+        $this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
949 949
 
950
-		$this->topic_taxonomy_service = new Wordlift_Topic_Taxonomy_Service();
950
+        $this->topic_taxonomy_service = new Wordlift_Topic_Taxonomy_Service();
951 951
 
952
-		// Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
953
-		$this->sharethis_service = new Wordlift_ShareThis_Service();
952
+        // Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
953
+        $this->sharethis_service = new Wordlift_ShareThis_Service();
954 954
 
955
-		// Create an instance of the PrimaShop adapter.
956
-		$this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
955
+        // Create an instance of the PrimaShop adapter.
956
+        $this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
957 957
 
958
-		// Create an import service instance to hook later to WP's import function.
959
-		$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() );
958
+        // Create an import service instance to hook later to WP's import function.
959
+        $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() );
960 960
 
961
-		$uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
961
+        $uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
962 962
 
963
-		// Create a Rebuild Service instance, which we'll later bound to an ajax call.
964
-		$this->rebuild_service = new Wordlift_Rebuild_Service( $this->sparql_service, $uri_service );
963
+        // Create a Rebuild Service instance, which we'll later bound to an ajax call.
964
+        $this->rebuild_service = new Wordlift_Rebuild_Service( $this->sparql_service, $uri_service );
965 965
 
966
-		$this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
966
+        $this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
967 967
 
968
-		// Create the entity rating service.
969
-		$this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
968
+        // Create the entity rating service.
969
+        $this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
970 970
 
971
-		// Create entity list customization (wp-admin/edit.php)
972
-		$this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
971
+        // Create entity list customization (wp-admin/edit.php)
972
+        $this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
973 973
 
974
-		// Create a new instance of the Redirect service.
975
-		$this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service );
974
+        // Create a new instance of the Redirect service.
975
+        $this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service );
976 976
 
977
-		$this->property_factory = new Wordlift_Property_Factory( $schema_url_property_service );
978
-		$this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
977
+        $this->property_factory = new Wordlift_Property_Factory( $schema_url_property_service );
978
+        $this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
979 979
 
980
-		$attachment_service = new Wordlift_Attachment_Service();
980
+        $attachment_service = new Wordlift_Attachment_Service();
981 981
 
982
-		// Instantiate the JSON-LD service.
983
-		$property_getter                       = Wordlift_Property_Getter_Factory::create( $this->entity_service );
984
-		$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 );
985
-		$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, $this->entity_post_to_jsonld_converter );
986
-		$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 );
987
-		$this->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service, $this->entity_post_to_jsonld_converter );
988
-		$this->jsonld_service                  = new Wordlift_Jsonld_Service( $this->entity_service, $this->postid_to_jsonld_converter, $this->jsonld_website_converter );
982
+        // Instantiate the JSON-LD service.
983
+        $property_getter                       = Wordlift_Property_Getter_Factory::create( $this->entity_service );
984
+        $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 );
985
+        $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, $this->entity_post_to_jsonld_converter );
986
+        $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 );
987
+        $this->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service, $this->entity_post_to_jsonld_converter );
988
+        $this->jsonld_service                  = new Wordlift_Jsonld_Service( $this->entity_service, $this->postid_to_jsonld_converter, $this->jsonld_website_converter );
989 989
 
990
-		// Create an instance of the Key Validation service. This service is later hooked to provide an AJAX call (only for admins).
991
-		$this->key_validation_service = new Wordlift_Key_Validation_Service( $this->configuration_service );
990
+        // Create an instance of the Key Validation service. This service is later hooked to provide an AJAX call (only for admins).
991
+        $this->key_validation_service = new Wordlift_Key_Validation_Service( $this->configuration_service );
992 992
 
993
-		// Create an instance of the Publisher Service and the AJAX Adapter.
994
-		$publisher_service            = new Wordlift_Publisher_Service();
995
-		$this->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter( $publisher_service );
993
+        // Create an instance of the Publisher Service and the AJAX Adapter.
994
+        $publisher_service            = new Wordlift_Publisher_Service();
995
+        $this->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter( $publisher_service );
996 996
 
997
-		/** Adapters. */
998
-		$this->tinymce_adapter = new Wordlift_Tinymce_Adapter( $this );
997
+        /** Adapters. */
998
+        $this->tinymce_adapter = new Wordlift_Tinymce_Adapter( $this );
999 999
 
1000
-		/** Async Tasks. */
1001
-		new Wordlift_Sparql_Query_Async_Task();
1000
+        /** Async Tasks. */
1001
+        new Wordlift_Sparql_Query_Async_Task();
1002 1002
 
1003
-		/** WordPress Admin UI. */
1003
+        /** WordPress Admin UI. */
1004 1004
 
1005
-		// UI elements.
1006
-		$this->input_element           = new Wordlift_Admin_Input_Element();
1007
-		$this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1008
-		$this->select2_element         = new Wordlift_Admin_Select2_Element();
1009
-		$this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1010
-		$tabs_element                  = new Wordlift_Admin_Tabs_Element();
1011
-		$this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $publisher_service, $tabs_element, $this->select2_element );
1012
-		$this->author_element          = new Wordlift_Admin_Author_Element( $publisher_service, $this->select2_element );
1005
+        // UI elements.
1006
+        $this->input_element           = new Wordlift_Admin_Input_Element();
1007
+        $this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1008
+        $this->select2_element         = new Wordlift_Admin_Select2_Element();
1009
+        $this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1010
+        $tabs_element                  = new Wordlift_Admin_Tabs_Element();
1011
+        $this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $publisher_service, $tabs_element, $this->select2_element );
1012
+        $this->author_element          = new Wordlift_Admin_Author_Element( $publisher_service, $this->select2_element );
1013 1013
 
1014
-		$this->download_your_data_page   = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1015
-		$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 );
1016
-		$this->batch_analysis_page       = new Wordlift_Batch_Analysis_Page( $this->batch_analysis_service );
1017
-		$this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1014
+        $this->download_your_data_page   = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1015
+        $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 );
1016
+        $this->batch_analysis_page       = new Wordlift_Batch_Analysis_Page( $this->batch_analysis_service );
1017
+        $this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1018 1018
 
1019
-		// Pages.
1020
-		new Wordlift_Admin_Post_Edit_Page( $this );
1019
+        // Pages.
1020
+        new Wordlift_Admin_Post_Edit_Page( $this );
1021 1021
 
1022
-		// create an instance of the entity type list admin page controller.
1023
-		$this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1022
+        // create an instance of the entity type list admin page controller.
1023
+        $this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1024 1024
 
1025
-		// create an instance of the entity type etting admin page controller.
1026
-		$this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1025
+        // create an instance of the entity type etting admin page controller.
1026
+        $this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1027 1027
 
1028
-		/** Widgets */
1029
-		$this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1028
+        /** Widgets */
1029
+        $this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1030 1030
 
1031
-		//** WordPress Admin */
1032
-		$this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1033
-		$this->status_page             = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1031
+        //** WordPress Admin */
1032
+        $this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1033
+        $this->status_page             = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1034 1034
 
1035
-		// Create an instance of the install wizard.
1036
-		$this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service );
1035
+        // Create an instance of the install wizard.
1036
+        $this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service );
1037 1037
 
1038
-		// Create an instance of the content filter service.
1039
-		$this->content_filter_service = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service );
1038
+        // Create an instance of the content filter service.
1039
+        $this->content_filter_service = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service );
1040 1040
 
1041
-		$this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1041
+        $this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1042 1042
 
1043
-		// User Profile.
1044
-		new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1043
+        // User Profile.
1044
+        new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1045 1045
 
1046
-		$this->event_entity_page_service = new Wordlift_Event_Entity_Page_Service();
1046
+        $this->event_entity_page_service = new Wordlift_Event_Entity_Page_Service();
1047 1047
 
1048
-		// Load the debug service if WP is in debug mode.
1049
-		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1050
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1051
-			new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1052
-		}
1048
+        // Load the debug service if WP is in debug mode.
1049
+        if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1050
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1051
+            new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1052
+        }
1053 1053
 
1054
-	}
1054
+    }
1055 1055
 
1056
-	/**
1057
-	 * Define the locale for this plugin for internationalization.
1058
-	 *
1059
-	 * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1060
-	 * with WordPress.
1061
-	 *
1062
-	 * @since    1.0.0
1063
-	 * @access   private
1064
-	 */
1065
-	private function set_locale() {
1056
+    /**
1057
+     * Define the locale for this plugin for internationalization.
1058
+     *
1059
+     * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1060
+     * with WordPress.
1061
+     *
1062
+     * @since    1.0.0
1063
+     * @access   private
1064
+     */
1065
+    private function set_locale() {
1066 1066
 
1067
-		$plugin_i18n = new Wordlift_i18n();
1068
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
1067
+        $plugin_i18n = new Wordlift_i18n();
1068
+        $plugin_i18n->set_domain( $this->get_plugin_name() );
1069 1069
 
1070
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1070
+        $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1071 1071
 
1072
-	}
1072
+    }
1073 1073
 
1074
-	/**
1075
-	 * Register all of the hooks related to the admin area functionality
1076
-	 * of the plugin.
1077
-	 *
1078
-	 * @since    1.0.0
1079
-	 * @access   private
1080
-	 */
1081
-	private function define_admin_hooks() {
1082
-
1083
-		$plugin_admin = new Wordlift_Admin(
1084
-			$this->get_plugin_name(),
1085
-			$this->get_version(),
1086
-			$this->configuration_service,
1087
-			$this->notice_service,
1088
-			$this->user_service
1089
-		);
1074
+    /**
1075
+     * Register all of the hooks related to the admin area functionality
1076
+     * of the plugin.
1077
+     *
1078
+     * @since    1.0.0
1079
+     * @access   private
1080
+     */
1081
+    private function define_admin_hooks() {
1082
+
1083
+        $plugin_admin = new Wordlift_Admin(
1084
+            $this->get_plugin_name(),
1085
+            $this->get_version(),
1086
+            $this->configuration_service,
1087
+            $this->notice_service,
1088
+            $this->user_service
1089
+        );
1090 1090
 
1091
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1092
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
1091
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1092
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
1093 1093
 
1094
-		// Hook the init action to the Topic Taxonomy service.
1095
-		$this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1094
+        // Hook the init action to the Topic Taxonomy service.
1095
+        $this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1096 1096
 
1097
-		// Hook the deleted_post_meta action to the Thumbnail service.
1098
-		$this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1097
+        // Hook the deleted_post_meta action to the Thumbnail service.
1098
+        $this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1099 1099
 
1100
-		// Hook the added_post_meta action to the Thumbnail service.
1101
-		$this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1100
+        // Hook the added_post_meta action to the Thumbnail service.
1101
+        $this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1102 1102
 
1103
-		// Hook the updated_post_meta action to the Thumbnail service.
1104
-		$this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1103
+        // Hook the updated_post_meta action to the Thumbnail service.
1104
+        $this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1105 1105
 
1106
-		// Hook posts inserts (or updates) to the user service.
1107
-		$this->loader->add_action( 'wp_insert_post', $this->user_service, 'wp_insert_post', 10, 3 );
1106
+        // Hook posts inserts (or updates) to the user service.
1107
+        $this->loader->add_action( 'wp_insert_post', $this->user_service, 'wp_insert_post', 10, 3 );
1108 1108
 
1109
-		// Hook the AJAX wl_timeline action to the Timeline service.
1110
-		$this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1109
+        // Hook the AJAX wl_timeline action to the Timeline service.
1110
+        $this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1111 1111
 
1112
-		// Register custom allowed redirect hosts.
1113
-		$this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1114
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1115
-		$this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1116
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1117
-		$this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1118
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1119
-		$this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1112
+        // Register custom allowed redirect hosts.
1113
+        $this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1114
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1115
+        $this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1116
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1117
+        $this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1118
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1119
+        $this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1120 1120
 
1121
-		// Hook save_post to the entity service to update custom fields (such as alternate labels).
1122
-		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
1123
-		$this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1124
-		$this->loader->add_action( 'save_post_entity', $this->rating_service, 'set_rating_for', 10, 1 );
1121
+        // Hook save_post to the entity service to update custom fields (such as alternate labels).
1122
+        // We have a priority of 9 because we want to be executed before data is sent to Redlink.
1123
+        $this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1124
+        $this->loader->add_action( 'save_post_entity', $this->rating_service, 'set_rating_for', 10, 1 );
1125 1125
 
1126
-		$this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1127
-		$this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1128
-
1129
-		// Entity listing customization (wp-admin/edit.php)
1130
-		// Add custom columns
1131
-		$this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1132
-		$this->loader->add_filter( 'manage_entity_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1133
-		// Add 4W selection
1134
-		$this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1135
-		$this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1126
+        $this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1127
+        $this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1128
+
1129
+        // Entity listing customization (wp-admin/edit.php)
1130
+        // Add custom columns
1131
+        $this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1132
+        $this->loader->add_filter( 'manage_entity_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1133
+        // Add 4W selection
1134
+        $this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1135
+        $this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1136 1136
 
1137
-		$this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1138
-
1139
-		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1140
-		// entities.
1141
-		$this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1142
-
1143
-		// Filter imported post meta.
1144
-		$this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1145
-
1146
-		// Notify the import service when an import starts and ends.
1147
-		$this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1148
-		$this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1149
-
1150
-		// Hook the AJAX wl_rebuild action to the Rebuild Service.
1151
-		$this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1152
-
1153
-		// Hook the menu to the Download Your Data page.
1154
-		$this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1155
-		$this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1156
-		$this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1157
-
1158
-		// Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1159
-		$this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1160
-
1161
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1162
-		$this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1137
+        $this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1138
+
1139
+        // Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1140
+        // entities.
1141
+        $this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1142
+
1143
+        // Filter imported post meta.
1144
+        $this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1145
+
1146
+        // Notify the import service when an import starts and ends.
1147
+        $this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1148
+        $this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1149
+
1150
+        // Hook the AJAX wl_rebuild action to the Rebuild Service.
1151
+        $this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1152
+
1153
+        // Hook the menu to the Download Your Data page.
1154
+        $this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1155
+        $this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1156
+        $this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1157
+
1158
+        // Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1159
+        $this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1160
+
1161
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1162
+        $this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1163 1163
 
1164
-		// Hook the AJAX wl_validate_key action to the Key Validation service.
1165
-		$this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1164
+        // Hook the AJAX wl_validate_key action to the Key Validation service.
1165
+        $this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1166 1166
 
1167
-		// Hook the `admin_init` function to the Admin Setup.
1168
-		$this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1167
+        // Hook the `admin_init` function to the Admin Setup.
1168
+        $this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1169 1169
 
1170
-		// Hook the admin_init to the settings page.
1171
-		$this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1172
-
1173
-		// Hook the menu creation on the general wordlift menu creation
1174
-		$this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1175
-		if ( defined( 'WORDLIFT_BATCH' ) && WORDLIFT_BATCH ) {
1176
-			// Add the functionality only if a flag is set in wp-config.php .
1177
-			$this->loader->add_action( 'wl_admin_menu', $this->batch_analysis_page, 'admin_menu', 10, 2 );
1178
-		}
1170
+        // Hook the admin_init to the settings page.
1171
+        $this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1172
+
1173
+        // Hook the menu creation on the general wordlift menu creation
1174
+        $this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1175
+        if ( defined( 'WORDLIFT_BATCH' ) && WORDLIFT_BATCH ) {
1176
+            // Add the functionality only if a flag is set in wp-config.php .
1177
+            $this->loader->add_action( 'wl_admin_menu', $this->batch_analysis_page, 'admin_menu', 10, 2 );
1178
+        }
1179 1179
 
1180
-		// Hook key update.
1181
-		$this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1182
-		$this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1180
+        // Hook key update.
1181
+        $this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1182
+        $this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1183 1183
 
1184
-		// Add additional action links to the WordLift plugin in the plugins page.
1185
-		$this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1184
+        // Add additional action links to the WordLift plugin in the plugins page.
1185
+        $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1186 1186
 
1187
-		// Hook the AJAX `wl_publisher` action name.
1188
-		$this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1187
+        // Hook the AJAX `wl_publisher` action name.
1188
+        $this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1189 1189
 
1190
-		// Hook row actions for the entity type list admin.
1191
-		$this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1190
+        // Hook row actions for the entity type list admin.
1191
+        $this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1192 1192
 
1193
-		// Hook capabilities manipulation to allow access to entity type admin
1194
-		// page  on wordpress versions before 4.7.
1195
-		global $wp_version;
1196
-		if ( version_compare( $wp_version, '4.7', '<' ) ) {
1197
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1198
-		}
1193
+        // Hook capabilities manipulation to allow access to entity type admin
1194
+        // page  on wordpress versions before 4.7.
1195
+        global $wp_version;
1196
+        if ( version_compare( $wp_version, '4.7', '<' ) ) {
1197
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1198
+        }
1199 1199
 
1200
-		/** Adapters. */
1201
-		$this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1200
+        /** Adapters. */
1201
+        $this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1202 1202
 
1203
-		$this->loader->add_action( 'wp_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1203
+        $this->loader->add_action( 'wp_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1204 1204
 
1205
-		// Hooks to restrict multisite super admin from manipulating entity types.
1206
-		if ( is_multisite() ) {
1207
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1208
-		}
1209
-	}
1205
+        // Hooks to restrict multisite super admin from manipulating entity types.
1206
+        if ( is_multisite() ) {
1207
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1208
+        }
1209
+    }
1210 1210
 
1211
-	/**
1212
-	 * Register all of the hooks related to the public-facing functionality
1213
-	 * of the plugin.
1214
-	 *
1215
-	 * @since    1.0.0
1216
-	 * @access   private
1217
-	 */
1218
-	private function define_public_hooks() {
1211
+    /**
1212
+     * Register all of the hooks related to the public-facing functionality
1213
+     * of the plugin.
1214
+     *
1215
+     * @since    1.0.0
1216
+     * @access   private
1217
+     */
1218
+    private function define_public_hooks() {
1219 1219
 
1220
-		$plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1220
+        $plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1221 1221
 
1222
-		// Register the entity post type.
1223
-		$this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1222
+        // Register the entity post type.
1223
+        $this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1224 1224
 
1225
-		// Bind the link generation and handling hooks to the entity link service.
1226
-		$this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1227
-		$this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1228
-		$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 );
1229
-		$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 );
1225
+        // Bind the link generation and handling hooks to the entity link service.
1226
+        $this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1227
+        $this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1228
+        $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 );
1229
+        $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 );
1230 1230
 
1231
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1232
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1231
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1232
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1233 1233
 
1234
-		// Hook the content filter service to add entity links.
1235
-		$this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1234
+        // Hook the content filter service to add entity links.
1235
+        $this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1236 1236
 
1237
-		// Hook the AJAX wl_timeline action to the Timeline service.
1238
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1237
+        // Hook the AJAX wl_timeline action to the Timeline service.
1238
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1239 1239
 
1240
-		// Hook the ShareThis service.
1241
-		$this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1242
-		$this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1240
+        // Hook the ShareThis service.
1241
+        $this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1242
+        $this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1243 1243
 
1244
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1245
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1244
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1245
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1246 1246
 
1247
-		// Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1248
-		// in order to tweak WP's `WP_Query` to include entities in queries related
1249
-		// to categories.
1250
-		$this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1247
+        // Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1248
+        // in order to tweak WP's `WP_Query` to include entities in queries related
1249
+        // to categories.
1250
+        $this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1251 1251
 
1252
-		/*
1252
+        /*
1253 1253
 		 * Hook the `pre_get_posts` action to the `Wordlift_Event_Entity_Page_Service`
1254 1254
 		 * in order to tweak WP's `WP_Query` to show event related entities in reverse
1255 1255
 		 * order of start time.
1256 1256
 		 */
1257
-		$this->loader->add_action( 'pre_get_posts', $this->event_entity_page_service, 'pre_get_posts', 10, 1 );
1258
-
1259
-		$this->loader->add_action( 'wp_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1260
-
1261
-	}
1262
-
1263
-	/**
1264
-	 * Run the loader to execute all of the hooks with WordPress.
1265
-	 *
1266
-	 * @since    1.0.0
1267
-	 */
1268
-	public function run() {
1269
-		$this->loader->run();
1270
-	}
1271
-
1272
-	/**
1273
-	 * The name of the plugin used to uniquely identify it within the context of
1274
-	 * WordPress and to define internationalization functionality.
1275
-	 *
1276
-	 * @since     1.0.0
1277
-	 * @return    string    The name of the plugin.
1278
-	 */
1279
-	public function get_plugin_name() {
1280
-		return $this->plugin_name;
1281
-	}
1282
-
1283
-	/**
1284
-	 * The reference to the class that orchestrates the hooks with the plugin.
1285
-	 *
1286
-	 * @since     1.0.0
1287
-	 * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
1288
-	 */
1289
-	public function get_loader() {
1290
-		return $this->loader;
1291
-	}
1292
-
1293
-	/**
1294
-	 * Retrieve the version number of the plugin.
1295
-	 *
1296
-	 * @since     1.0.0
1297
-	 * @return    string    The version number of the plugin.
1298
-	 */
1299
-	public function get_version() {
1300
-		return $this->version;
1301
-	}
1257
+        $this->loader->add_action( 'pre_get_posts', $this->event_entity_page_service, 'pre_get_posts', 10, 1 );
1258
+
1259
+        $this->loader->add_action( 'wp_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1260
+
1261
+    }
1262
+
1263
+    /**
1264
+     * Run the loader to execute all of the hooks with WordPress.
1265
+     *
1266
+     * @since    1.0.0
1267
+     */
1268
+    public function run() {
1269
+        $this->loader->run();
1270
+    }
1271
+
1272
+    /**
1273
+     * The name of the plugin used to uniquely identify it within the context of
1274
+     * WordPress and to define internationalization functionality.
1275
+     *
1276
+     * @since     1.0.0
1277
+     * @return    string    The name of the plugin.
1278
+     */
1279
+    public function get_plugin_name() {
1280
+        return $this->plugin_name;
1281
+    }
1282
+
1283
+    /**
1284
+     * The reference to the class that orchestrates the hooks with the plugin.
1285
+     *
1286
+     * @since     1.0.0
1287
+     * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
1288
+     */
1289
+    public function get_loader() {
1290
+        return $this->loader;
1291
+    }
1292
+
1293
+    /**
1294
+     * Retrieve the version number of the plugin.
1295
+     *
1296
+     * @since     1.0.0
1297
+     * @return    string    The version number of the plugin.
1298
+     */
1299
+    public function get_version() {
1300
+        return $this->version;
1301
+    }
1302 1302
 
1303 1303
 }
Please login to merge, or discard this patch.