Completed
Push — develop ( a49b98...26ae71 )
by David
07:38
created
src/admin/class-wordlift-primashop-adapter.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -7,33 +7,33 @@
 block discarded – undo
7 7
  */
8 8
 class Wordlift_PrimaShop_Adapter {
9 9
 
10
-	/**
11
-	 * Create a Wordlift_PrimaShop_Adapter instance.
12
-	 *
13
-	 * @since 3.2.3
14
-	 */
15
-	public function __construct() {
10
+    /**
11
+     * Create a Wordlift_PrimaShop_Adapter instance.
12
+     *
13
+     * @since 3.2.3
14
+     */
15
+    public function __construct() {
16 16
 
17
-		// Tell WP (and PrimaShop) that we support the *prima-layout-settings*. This will display the Content Settings
18
-		// in the entity edit page.
19
-		add_post_type_support( Wordlift_Entity_Service::TYPE_NAME, 'prima-layout-settings' );
17
+        // Tell WP (and PrimaShop) that we support the *prima-layout-settings*. This will display the Content Settings
18
+        // in the entity edit page.
19
+        add_post_type_support( Wordlift_Entity_Service::TYPE_NAME, 'prima-layout-settings' );
20 20
 
21
-	}
21
+    }
22 22
 
23
-	/**
24
-	 * Intercept the <em>prima_metabox_entity_header_args</em> filter and return what a call to the related <em>post</em>
25
-	 * would have returned.
26
-	 *
27
-	 * @since 3.2.3
28
-	 *
29
-	 * @param array $meta The meta array.
30
-	 * @param string $ype The post type.
31
-	 *
32
-	 * @return array A meta array.
33
-	 */
34
-	function prima_metabox_entity_header_args( $meta, $ype ) {
23
+    /**
24
+     * Intercept the <em>prima_metabox_entity_header_args</em> filter and return what a call to the related <em>post</em>
25
+     * would have returned.
26
+     *
27
+     * @since 3.2.3
28
+     *
29
+     * @param array $meta The meta array.
30
+     * @param string $ype The post type.
31
+     *
32
+     * @return array A meta array.
33
+     */
34
+    function prima_metabox_entity_header_args( $meta, $ype ) {
35 35
 
36
-		return apply_filters( "prima_metabox_post_header_args", $meta, 'post' );
37
-	}
36
+        return apply_filters( "prima_metabox_post_header_args", $meta, 'post' );
37
+    }
38 38
 
39 39
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 		// Tell WP (and PrimaShop) that we support the *prima-layout-settings*. This will display the Content Settings
18 18
 		// in the entity edit page.
19
-		add_post_type_support( Wordlift_Entity_Service::TYPE_NAME, 'prima-layout-settings' );
19
+		add_post_type_support(Wordlift_Entity_Service::TYPE_NAME, 'prima-layout-settings');
20 20
 
21 21
 	}
22 22
 
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 	 *
32 32
 	 * @return array A meta array.
33 33
 	 */
34
-	function prima_metabox_entity_header_args( $meta, $ype ) {
34
+	function prima_metabox_entity_header_args($meta, $ype) {
35 35
 
36
-		return apply_filters( "prima_metabox_post_header_args", $meta, 'post' );
36
+		return apply_filters("prima_metabox_post_header_args", $meta, 'post');
37 37
 	}
38 38
 
39 39
 }
Please login to merge, or discard this patch.
src/includes/class-wordlift.php 2 patches
Indentation   +412 added lines, -412 removed lines patch added patch discarded remove patch
@@ -29,421 +29,421 @@
 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 Thumbnail service.
62
-	 *
63
-	 * @since 3.1.5
64
-	 * @access private
65
-	 * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
66
-	 */
67
-	private $thumbnail_service;
68
-
69
-	/**
70
-	 * The UI service.
71
-	 *
72
-	 * @since 3.2.0
73
-	 * @access private
74
-	 * @var \Wordlift_UI_Service $ui_service The UI service.
75
-	 */
76
-	private $ui_service;
77
-
78
-	/**
79
-	 * The Entity service.
80
-	 *
81
-	 * @since 3.1.0
82
-	 * @access private
83
-	 * @var \Wordlift_Entity_Service $entity_service The Entity service.
84
-	 */
85
-	private $entity_service;
86
-
87
-	/**
88
-	 * The User service.
89
-	 *
90
-	 * @since 3.1.7
91
-	 * @access private
92
-	 * @var \Wordlift_User_Service $user_service The User service.
93
-	 */
94
-	private $user_service;
95
-
96
-	/**
97
-	 * The Timeline service.
98
-	 *
99
-	 * @since 3.1.0
100
-	 * @access private
101
-	 * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
102
-	 */
103
-	private $timeline_service;
104
-
105
-	/**
106
-	 * The Redirect service.
107
-	 *
108
-	 * @since 3.2.0
109
-	 * @access private
110
-	 * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
111
-	 */
112
-	private $redirect_service;
113
-
114
-	/**
115
-	 * The Entity Types Taxonomy Walker.
116
-	 *
117
-	 * @since 3.1.0
118
-	 * @access private
119
-	 * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
120
-	 */
121
-	private $entity_types_taxonomy_walker;
122
-
123
-	/**
124
-	 * The ShareThis service.
125
-	 *
126
-	 * @since 3.2.0
127
-	 * @access private
128
-	 * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
129
-	 */
130
-	private $sharethis_service;
131
-
132
-	/**
133
-	 * The PrimaShop adapter.
134
-	 *
135
-	 * @since 3.2.3
136
-	 * @access private
137
-	 * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
138
-	 */
139
-	private $primashop_adapter;
140
-
141
-	/**
142
-	 * Define the core functionality of the plugin.
143
-	 *
144
-	 * Set the plugin name and the plugin version that can be used throughout the plugin.
145
-	 * Load the dependencies, define the locale, and set the hooks for the admin area and
146
-	 * the public-facing side of the site.
147
-	 *
148
-	 * @since    1.0.0
149
-	 */
150
-	public function __construct() {
151
-
152
-		$this->plugin_name = 'wordlift';
153
-
154
-		$this->version = '3.3.0-dev';
155
-
156
-		$this->load_dependencies();
157
-		$this->set_locale();
158
-		$this->define_admin_hooks();
159
-		$this->define_public_hooks();
160
-
161
-	}
162
-
163
-	/**
164
-	 * Load the required dependencies for this plugin.
165
-	 *
166
-	 * Include the following files that make up the plugin:
167
-	 *
168
-	 * - Wordlift_Loader. Orchestrates the hooks of the plugin.
169
-	 * - Wordlift_i18n. Defines internationalization functionality.
170
-	 * - Wordlift_Admin. Defines all hooks for the admin area.
171
-	 * - Wordlift_Public. Defines all hooks for the public side of the site.
172
-	 *
173
-	 * Create an instance of the loader which will be used to register the hooks
174
-	 * with WordPress.
175
-	 *
176
-	 * @since    1.0.0
177
-	 * @access   private
178
-	 */
179
-	private function load_dependencies() {
180
-
181
-		/**
182
-		 * The class responsible for orchestrating the actions and filters of the
183
-		 * core plugin.
184
-		 */
185
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
186
-
187
-		/**
188
-		 * The class responsible for defining internationalization functionality
189
-		 * of the plugin.
190
-		 */
191
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
192
-
193
-		/**
194
-		 * The Redirect service.
195
-		 */
196
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
197
-
198
-		/**
199
-		 * The Log service.
200
-		 */
201
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
202
-
203
-		/**
204
-		 * The Query builder.
205
-		 */
206
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
207
-
208
-		/**
209
-		 * The Schema service.
210
-		 */
211
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
212
-
213
-		/**
214
-		 * The UI service.
215
-		 */
216
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
217
-
218
-		/**
219
-		 * The Thumbnail service.
220
-		 */
221
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
222
-
223
-		/**
224
-		 * The Entity Types Taxonomy service.
225
-		 */
226
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-types-taxonomy-service.php';
227
-
228
-		/**
229
-		 * The Entity service.
230
-		 */
231
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
232
-
233
-		/**
234
-		 * The User service.
235
-		 */
236
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
237
-
238
-		/**
239
-		 * The Timeline service.
240
-		 */
241
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
242
-
243
-		/**
244
-		 * The class responsible for defining all actions that occur in the admin area.
245
-		 */
246
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
247
-
248
-		/**
249
-		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
250
-		 */
251
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
252
-
253
-		/**
254
-		 * The Notice service.
255
-		 */
256
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
257
-
258
-		/**
259
-		 * The PrimaShop adapter.
260
-		 */
261
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
262
-
263
-		/**
264
-		 * The class responsible for defining all actions that occur in the public-facing
265
-		 * side of the site.
266
-		 */
267
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
268
-
269
-		/**
270
-		 * The Timeline shortcode.
271
-		 */
272
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
273
-
274
-		/**
275
-		 * The ShareThis service.
276
-		 */
277
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
278
-
279
-		$this->loader = new Wordlift_Loader();
280
-
281
-		// Instantiate a global logger.
282
-		global $wl_logger;
283
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
284
-
285
-		// Create an instance of the UI service.
286
-		$this->ui_service = new Wordlift_UI_Service();
287
-
288
-		// Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
289
-		$this->thumbnail_service = new Wordlift_Thumbnail_Service();
290
-
291
-		// Create an instance of the Schema service.
292
-		new Wordlift_Schema_Service();
293
-
294
-		// Create an instance of the Entity service, passing the UI service to draw parts of the Entity admin page.
295
-		$this->entity_service = new Wordlift_Entity_Service( $this->ui_service );
296
-
297
-		// Create an instance of the User service.
298
-		$this->user_service = new Wordlift_User_Service();
299
-
300
-		// Create a new instance of the Timeline service and Timeline shortcode.
301
-		$this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service );
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 Thumbnail service.
62
+     *
63
+     * @since 3.1.5
64
+     * @access private
65
+     * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
66
+     */
67
+    private $thumbnail_service;
68
+
69
+    /**
70
+     * The UI service.
71
+     *
72
+     * @since 3.2.0
73
+     * @access private
74
+     * @var \Wordlift_UI_Service $ui_service The UI service.
75
+     */
76
+    private $ui_service;
77
+
78
+    /**
79
+     * The Entity service.
80
+     *
81
+     * @since 3.1.0
82
+     * @access private
83
+     * @var \Wordlift_Entity_Service $entity_service The Entity service.
84
+     */
85
+    private $entity_service;
86
+
87
+    /**
88
+     * The User service.
89
+     *
90
+     * @since 3.1.7
91
+     * @access private
92
+     * @var \Wordlift_User_Service $user_service The User service.
93
+     */
94
+    private $user_service;
95
+
96
+    /**
97
+     * The Timeline service.
98
+     *
99
+     * @since 3.1.0
100
+     * @access private
101
+     * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
102
+     */
103
+    private $timeline_service;
104
+
105
+    /**
106
+     * The Redirect service.
107
+     *
108
+     * @since 3.2.0
109
+     * @access private
110
+     * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
111
+     */
112
+    private $redirect_service;
113
+
114
+    /**
115
+     * The Entity Types Taxonomy Walker.
116
+     *
117
+     * @since 3.1.0
118
+     * @access private
119
+     * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
120
+     */
121
+    private $entity_types_taxonomy_walker;
122
+
123
+    /**
124
+     * The ShareThis service.
125
+     *
126
+     * @since 3.2.0
127
+     * @access private
128
+     * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
129
+     */
130
+    private $sharethis_service;
131
+
132
+    /**
133
+     * The PrimaShop adapter.
134
+     *
135
+     * @since 3.2.3
136
+     * @access private
137
+     * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
138
+     */
139
+    private $primashop_adapter;
140
+
141
+    /**
142
+     * Define the core functionality of the plugin.
143
+     *
144
+     * Set the plugin name and the plugin version that can be used throughout the plugin.
145
+     * Load the dependencies, define the locale, and set the hooks for the admin area and
146
+     * the public-facing side of the site.
147
+     *
148
+     * @since    1.0.0
149
+     */
150
+    public function __construct() {
151
+
152
+        $this->plugin_name = 'wordlift';
153
+
154
+        $this->version = '3.3.0-dev';
155
+
156
+        $this->load_dependencies();
157
+        $this->set_locale();
158
+        $this->define_admin_hooks();
159
+        $this->define_public_hooks();
160
+
161
+    }
162
+
163
+    /**
164
+     * Load the required dependencies for this plugin.
165
+     *
166
+     * Include the following files that make up the plugin:
167
+     *
168
+     * - Wordlift_Loader. Orchestrates the hooks of the plugin.
169
+     * - Wordlift_i18n. Defines internationalization functionality.
170
+     * - Wordlift_Admin. Defines all hooks for the admin area.
171
+     * - Wordlift_Public. Defines all hooks for the public side of the site.
172
+     *
173
+     * Create an instance of the loader which will be used to register the hooks
174
+     * with WordPress.
175
+     *
176
+     * @since    1.0.0
177
+     * @access   private
178
+     */
179
+    private function load_dependencies() {
180
+
181
+        /**
182
+         * The class responsible for orchestrating the actions and filters of the
183
+         * core plugin.
184
+         */
185
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
186
+
187
+        /**
188
+         * The class responsible for defining internationalization functionality
189
+         * of the plugin.
190
+         */
191
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
192
+
193
+        /**
194
+         * The Redirect service.
195
+         */
196
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
197
+
198
+        /**
199
+         * The Log service.
200
+         */
201
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
202
+
203
+        /**
204
+         * The Query builder.
205
+         */
206
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
207
+
208
+        /**
209
+         * The Schema service.
210
+         */
211
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
212
+
213
+        /**
214
+         * The UI service.
215
+         */
216
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
217
+
218
+        /**
219
+         * The Thumbnail service.
220
+         */
221
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
222
+
223
+        /**
224
+         * The Entity Types Taxonomy service.
225
+         */
226
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-types-taxonomy-service.php';
227
+
228
+        /**
229
+         * The Entity service.
230
+         */
231
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
232
+
233
+        /**
234
+         * The User service.
235
+         */
236
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
237
+
238
+        /**
239
+         * The Timeline service.
240
+         */
241
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
242
+
243
+        /**
244
+         * The class responsible for defining all actions that occur in the admin area.
245
+         */
246
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
247
+
248
+        /**
249
+         * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
250
+         */
251
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
252
+
253
+        /**
254
+         * The Notice service.
255
+         */
256
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
257
+
258
+        /**
259
+         * The PrimaShop adapter.
260
+         */
261
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
262
+
263
+        /**
264
+         * The class responsible for defining all actions that occur in the public-facing
265
+         * side of the site.
266
+         */
267
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
268
+
269
+        /**
270
+         * The Timeline shortcode.
271
+         */
272
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
273
+
274
+        /**
275
+         * The ShareThis service.
276
+         */
277
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
278
+
279
+        $this->loader = new Wordlift_Loader();
280
+
281
+        // Instantiate a global logger.
282
+        global $wl_logger;
283
+        $wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
284
+
285
+        // Create an instance of the UI service.
286
+        $this->ui_service = new Wordlift_UI_Service();
287
+
288
+        // Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
289
+        $this->thumbnail_service = new Wordlift_Thumbnail_Service();
290
+
291
+        // Create an instance of the Schema service.
292
+        new Wordlift_Schema_Service();
293
+
294
+        // Create an instance of the Entity service, passing the UI service to draw parts of the Entity admin page.
295
+        $this->entity_service = new Wordlift_Entity_Service( $this->ui_service );
296
+
297
+        // Create an instance of the User service.
298
+        $this->user_service = new Wordlift_User_Service();
299
+
300
+        // Create a new instance of the Timeline service and Timeline shortcode.
301
+        $this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service );
302 302
 
303
-		// Create a new instance of the Redirect service.
304
-		$this->redirect_service = new Wordlift_Redirect_Service( $this->entity_service );
303
+        // Create a new instance of the Redirect service.
304
+        $this->redirect_service = new Wordlift_Redirect_Service( $this->entity_service );
305 305
 
306
-		// Create an instance of the Timeline shortcode.
307
-		new Wordlift_Timeline_Shortcode();
306
+        // Create an instance of the Timeline shortcode.
307
+        new Wordlift_Timeline_Shortcode();
308 308
 
309
-		$this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
309
+        $this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
310 310
 
311
-		// Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
312
-		$this->sharethis_service = new Wordlift_ShareThis_Service();
313
-
314
-		// Create an instance of the Notice service.
315
-		new Wordlift_Notice_Service();
316
-
317
-		// Create an instance of the PrimaShop adapter.
318
-		$this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
319
-	}
320
-
321
-	/**
322
-	 * Define the locale for this plugin for internationalization.
323
-	 *
324
-	 * Uses the Wordlift_i18n class in order to set the domain and to register the hook
325
-	 * with WordPress.
326
-	 *
327
-	 * @since    1.0.0
328
-	 * @access   private
329
-	 */
330
-	private function set_locale() {
331
-
332
-		$plugin_i18n = new Wordlift_i18n();
333
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
334
-
335
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
336
-
337
-	}
338
-
339
-	/**
340
-	 * Register all of the hooks related to the admin area functionality
341
-	 * of the plugin.
342
-	 *
343
-	 * @since    1.0.0
344
-	 * @access   private
345
-	 */
346
-	private function define_admin_hooks() {
347
-
348
-		$plugin_admin = new Wordlift_Admin( $this->get_plugin_name(), $this->get_version() );
349
-
350
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
351
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
352
-
353
-		// Hook the deleted_post_meta action to the Thumbnail service.
354
-		$this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
355
-
356
-		// Hook the added_post_meta action to the Thumbnail service.
357
-		$this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_post_meta', 10, 4 );
358
-
359
-		// Hook posts inserts (or updates) to the user service.
360
-		$this->loader->add_action( 'wp_insert_post', $this->user_service, 'wp_insert_post', 10, 3 );
361
-
362
-		// Hook the AJAX wl_timeline action to the Timeline service.
363
-		$this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
364
-
365
-		// Register custom allowed redirect hosts.
366
-		$this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
367
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
368
-		$this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
369
-
370
-		// Hook save_post to the entity service to update custom fields (such as alternate labels).
371
-		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
372
-		$this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
373
-		$this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
374
-
375
-		// Add custom columns for entity listing in the backand
376
-		$this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_service, 'register_custom_columns' );
377
-		$this->loader->add_filter( 'manage_entity_posts_custom_column', $this->entity_service, 'render_custom_columns', 10, 2 );
378
-
379
-		$this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
380
-
381
-		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
382
-		// entities.
383
-		$this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
384
-
385
-	}
386
-
387
-	/**
388
-	 * Register all of the hooks related to the public-facing functionality
389
-	 * of the plugin.
390
-	 *
391
-	 * @since    1.0.0
392
-	 * @access   private
393
-	 */
394
-	private function define_public_hooks() {
395
-
396
-		$plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
397
-
398
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
399
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
400
-
401
-		// Hook the AJAX wl_timeline action to the Timeline service.
402
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
403
-
404
-		// Hook the ShareThis service.
405
-		$this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
406
-		$this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
407
-	}
408
-
409
-	/**
410
-	 * Run the loader to execute all of the hooks with WordPress.
411
-	 *
412
-	 * @since    1.0.0
413
-	 */
414
-	public function run() {
415
-		$this->loader->run();
416
-	}
417
-
418
-	/**
419
-	 * The name of the plugin used to uniquely identify it within the context of
420
-	 * WordPress and to define internationalization functionality.
421
-	 *
422
-	 * @since     1.0.0
423
-	 * @return    string    The name of the plugin.
424
-	 */
425
-	public function get_plugin_name() {
426
-		return $this->plugin_name;
427
-	}
428
-
429
-	/**
430
-	 * The reference to the class that orchestrates the hooks with the plugin.
431
-	 *
432
-	 * @since     1.0.0
433
-	 * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
434
-	 */
435
-	public function get_loader() {
436
-		return $this->loader;
437
-	}
438
-
439
-	/**
440
-	 * Retrieve the version number of the plugin.
441
-	 *
442
-	 * @since     1.0.0
443
-	 * @return    string    The version number of the plugin.
444
-	 */
445
-	public function get_version() {
446
-		return $this->version;
447
-	}
311
+        // Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
312
+        $this->sharethis_service = new Wordlift_ShareThis_Service();
313
+
314
+        // Create an instance of the Notice service.
315
+        new Wordlift_Notice_Service();
316
+
317
+        // Create an instance of the PrimaShop adapter.
318
+        $this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
319
+    }
320
+
321
+    /**
322
+     * Define the locale for this plugin for internationalization.
323
+     *
324
+     * Uses the Wordlift_i18n class in order to set the domain and to register the hook
325
+     * with WordPress.
326
+     *
327
+     * @since    1.0.0
328
+     * @access   private
329
+     */
330
+    private function set_locale() {
331
+
332
+        $plugin_i18n = new Wordlift_i18n();
333
+        $plugin_i18n->set_domain( $this->get_plugin_name() );
334
+
335
+        $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
336
+
337
+    }
338
+
339
+    /**
340
+     * Register all of the hooks related to the admin area functionality
341
+     * of the plugin.
342
+     *
343
+     * @since    1.0.0
344
+     * @access   private
345
+     */
346
+    private function define_admin_hooks() {
347
+
348
+        $plugin_admin = new Wordlift_Admin( $this->get_plugin_name(), $this->get_version() );
349
+
350
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
351
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
352
+
353
+        // Hook the deleted_post_meta action to the Thumbnail service.
354
+        $this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
355
+
356
+        // Hook the added_post_meta action to the Thumbnail service.
357
+        $this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_post_meta', 10, 4 );
358
+
359
+        // Hook posts inserts (or updates) to the user service.
360
+        $this->loader->add_action( 'wp_insert_post', $this->user_service, 'wp_insert_post', 10, 3 );
361
+
362
+        // Hook the AJAX wl_timeline action to the Timeline service.
363
+        $this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
364
+
365
+        // Register custom allowed redirect hosts.
366
+        $this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
367
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
368
+        $this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
369
+
370
+        // Hook save_post to the entity service to update custom fields (such as alternate labels).
371
+        // We have a priority of 9 because we want to be executed before data is sent to Redlink.
372
+        $this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
373
+        $this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
374
+
375
+        // Add custom columns for entity listing in the backand
376
+        $this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_service, 'register_custom_columns' );
377
+        $this->loader->add_filter( 'manage_entity_posts_custom_column', $this->entity_service, 'render_custom_columns', 10, 2 );
378
+
379
+        $this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
380
+
381
+        // Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
382
+        // entities.
383
+        $this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
384
+
385
+    }
386
+
387
+    /**
388
+     * Register all of the hooks related to the public-facing functionality
389
+     * of the plugin.
390
+     *
391
+     * @since    1.0.0
392
+     * @access   private
393
+     */
394
+    private function define_public_hooks() {
395
+
396
+        $plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
397
+
398
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
399
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
400
+
401
+        // Hook the AJAX wl_timeline action to the Timeline service.
402
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
403
+
404
+        // Hook the ShareThis service.
405
+        $this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
406
+        $this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
407
+    }
408
+
409
+    /**
410
+     * Run the loader to execute all of the hooks with WordPress.
411
+     *
412
+     * @since    1.0.0
413
+     */
414
+    public function run() {
415
+        $this->loader->run();
416
+    }
417
+
418
+    /**
419
+     * The name of the plugin used to uniquely identify it within the context of
420
+     * WordPress and to define internationalization functionality.
421
+     *
422
+     * @since     1.0.0
423
+     * @return    string    The name of the plugin.
424
+     */
425
+    public function get_plugin_name() {
426
+        return $this->plugin_name;
427
+    }
428
+
429
+    /**
430
+     * The reference to the class that orchestrates the hooks with the plugin.
431
+     *
432
+     * @since     1.0.0
433
+     * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
434
+     */
435
+    public function get_loader() {
436
+        return $this->loader;
437
+    }
438
+
439
+    /**
440
+     * Retrieve the version number of the plugin.
441
+     *
442
+     * @since     1.0.0
443
+     * @return    string    The version number of the plugin.
444
+     */
445
+    public function get_version() {
446
+        return $this->version;
447
+    }
448 448
 
449 449
 }
Please login to merge, or discard this patch.
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -182,105 +182,105 @@  discard block
 block discarded – undo
182 182
 		 * The class responsible for orchestrating the actions and filters of the
183 183
 		 * core plugin.
184 184
 		 */
185
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
185
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-loader.php';
186 186
 
187 187
 		/**
188 188
 		 * The class responsible for defining internationalization functionality
189 189
 		 * of the plugin.
190 190
 		 */
191
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
191
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-i18n.php';
192 192
 
193 193
 		/**
194 194
 		 * The Redirect service.
195 195
 		 */
196
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
196
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-redirect-service.php';
197 197
 
198 198
 		/**
199 199
 		 * The Log service.
200 200
 		 */
201
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
201
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-log-service.php';
202 202
 
203 203
 		/**
204 204
 		 * The Query builder.
205 205
 		 */
206
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
206
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-query-builder.php';
207 207
 
208 208
 		/**
209 209
 		 * The Schema service.
210 210
 		 */
211
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
211
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-schema-service.php';
212 212
 
213 213
 		/**
214 214
 		 * The UI service.
215 215
 		 */
216
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
216
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-ui-service.php';
217 217
 
218 218
 		/**
219 219
 		 * The Thumbnail service.
220 220
 		 */
221
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
221
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-thumbnail-service.php';
222 222
 
223 223
 		/**
224 224
 		 * The Entity Types Taxonomy service.
225 225
 		 */
226
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-types-taxonomy-service.php';
226
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-types-taxonomy-service.php';
227 227
 
228 228
 		/**
229 229
 		 * The Entity service.
230 230
 		 */
231
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
231
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-service.php';
232 232
 
233 233
 		/**
234 234
 		 * The User service.
235 235
 		 */
236
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
236
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-user-service.php';
237 237
 
238 238
 		/**
239 239
 		 * The Timeline service.
240 240
 		 */
241
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
241
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-timeline-service.php';
242 242
 
243 243
 		/**
244 244
 		 * The class responsible for defining all actions that occur in the admin area.
245 245
 		 */
246
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
246
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin.php';
247 247
 
248 248
 		/**
249 249
 		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
250 250
 		 */
251
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
251
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-entity-types-taxonomy-walker.php';
252 252
 
253 253
 		/**
254 254
 		 * The Notice service.
255 255
 		 */
256
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
256
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-notice-service.php';
257 257
 
258 258
 		/**
259 259
 		 * The PrimaShop adapter.
260 260
 		 */
261
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
261
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-primashop-adapter.php';
262 262
 
263 263
 		/**
264 264
 		 * The class responsible for defining all actions that occur in the public-facing
265 265
 		 * side of the site.
266 266
 		 */
267
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
267
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-public.php';
268 268
 
269 269
 		/**
270 270
 		 * The Timeline shortcode.
271 271
 		 */
272
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
272
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-timeline-shortcode.php';
273 273
 
274 274
 		/**
275 275
 		 * The ShareThis service.
276 276
 		 */
277
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
277
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-sharethis-service.php';
278 278
 
279 279
 		$this->loader = new Wordlift_Loader();
280 280
 
281 281
 		// Instantiate a global logger.
282 282
 		global $wl_logger;
283
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
283
+		$wl_logger = Wordlift_Log_Service::get_logger('WordLift');
284 284
 
285 285
 		// Create an instance of the UI service.
286 286
 		$this->ui_service = new Wordlift_UI_Service();
@@ -292,16 +292,16 @@  discard block
 block discarded – undo
292 292
 		new Wordlift_Schema_Service();
293 293
 
294 294
 		// Create an instance of the Entity service, passing the UI service to draw parts of the Entity admin page.
295
-		$this->entity_service = new Wordlift_Entity_Service( $this->ui_service );
295
+		$this->entity_service = new Wordlift_Entity_Service($this->ui_service);
296 296
 
297 297
 		// Create an instance of the User service.
298 298
 		$this->user_service = new Wordlift_User_Service();
299 299
 
300 300
 		// Create a new instance of the Timeline service and Timeline shortcode.
301
-		$this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service );
301
+		$this->timeline_service = new Wordlift_Timeline_Service($this->entity_service);
302 302
 
303 303
 		// Create a new instance of the Redirect service.
304
-		$this->redirect_service = new Wordlift_Redirect_Service( $this->entity_service );
304
+		$this->redirect_service = new Wordlift_Redirect_Service($this->entity_service);
305 305
 
306 306
 		// Create an instance of the Timeline shortcode.
307 307
 		new Wordlift_Timeline_Shortcode();
@@ -330,9 +330,9 @@  discard block
 block discarded – undo
330 330
 	private function set_locale() {
331 331
 
332 332
 		$plugin_i18n = new Wordlift_i18n();
333
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
333
+		$plugin_i18n->set_domain($this->get_plugin_name());
334 334
 
335
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
335
+		$this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain');
336 336
 
337 337
 	}
338 338
 
@@ -345,42 +345,42 @@  discard block
 block discarded – undo
345 345
 	 */
346 346
 	private function define_admin_hooks() {
347 347
 
348
-		$plugin_admin = new Wordlift_Admin( $this->get_plugin_name(), $this->get_version() );
348
+		$plugin_admin = new Wordlift_Admin($this->get_plugin_name(), $this->get_version());
349 349
 
350
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
351
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
350
+		$this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles');
351
+		$this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts');
352 352
 
353 353
 		// Hook the deleted_post_meta action to the Thumbnail service.
354
-		$this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
354
+		$this->loader->add_action('deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4);
355 355
 
356 356
 		// Hook the added_post_meta action to the Thumbnail service.
357
-		$this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_post_meta', 10, 4 );
357
+		$this->loader->add_action('added_post_meta', $this->thumbnail_service, 'added_post_meta', 10, 4);
358 358
 
359 359
 		// Hook posts inserts (or updates) to the user service.
360
-		$this->loader->add_action( 'wp_insert_post', $this->user_service, 'wp_insert_post', 10, 3 );
360
+		$this->loader->add_action('wp_insert_post', $this->user_service, 'wp_insert_post', 10, 3);
361 361
 
362 362
 		// Hook the AJAX wl_timeline action to the Timeline service.
363
-		$this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
363
+		$this->loader->add_action('wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline');
364 364
 
365 365
 		// Register custom allowed redirect hosts.
366
-		$this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
366
+		$this->loader->add_filter('allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts');
367 367
 		// Hook the AJAX wordlift_redirect action to the Redirect service.
368
-		$this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
368
+		$this->loader->add_action('wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect');
369 369
 
370 370
 		// Hook save_post to the entity service to update custom fields (such as alternate labels).
371 371
 		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
372
-		$this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
373
-		$this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
372
+		$this->loader->add_action('save_post', $this->entity_service, 'save_post', 9, 3);
373
+		$this->loader->add_action('edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1);
374 374
 
375 375
 		// Add custom columns for entity listing in the backand
376
-		$this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_service, 'register_custom_columns' );
377
-		$this->loader->add_filter( 'manage_entity_posts_custom_column', $this->entity_service, 'render_custom_columns', 10, 2 );
376
+		$this->loader->add_filter('manage_entity_posts_columns', $this->entity_service, 'register_custom_columns');
377
+		$this->loader->add_filter('manage_entity_posts_custom_column', $this->entity_service, 'render_custom_columns', 10, 2);
378 378
 
379
-		$this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
379
+		$this->loader->add_filter('wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args');
380 380
 
381 381
 		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
382 382
 		// entities.
383
-		$this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
383
+		$this->loader->add_filter('prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2);
384 384
 
385 385
 	}
386 386
 
@@ -393,17 +393,17 @@  discard block
 block discarded – undo
393 393
 	 */
394 394
 	private function define_public_hooks() {
395 395
 
396
-		$plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
396
+		$plugin_public = new Wordlift_Public($this->get_plugin_name(), $this->get_version());
397 397
 
398
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
399
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
398
+		$this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_styles');
399
+		$this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_scripts');
400 400
 
401 401
 		// Hook the AJAX wl_timeline action to the Timeline service.
402
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
402
+		$this->loader->add_action('wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline');
403 403
 
404 404
 		// Hook the ShareThis service.
405
-		$this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
406
-		$this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
405
+		$this->loader->add_filter('the_content', $this->sharethis_service, 'the_content', 99);
406
+		$this->loader->add_filter('the_excerpt', $this->sharethis_service, 'the_excerpt', 99);
407 407
 	}
408 408
 
409 409
 	/**
Please login to merge, or discard this patch.