Passed
Push — add/multiplan ( b0643e...ebd553 )
by Virginia
03:51
created
classes/post-types/class-exercise.php 1 patch
Spacing   +103 added lines, -103 removed lines patch added patch discarded remove patch
@@ -31,25 +31,25 @@  discard block
 block discarded – undo
31 31
 	 */
32 32
 	public function __construct() {
33 33
 
34
-		if ( false !== \lsx_health_plan\functions\get_option( 'exercise_enabled', false ) ) {
34
+		if (false !== \lsx_health_plan\functions\get_option('exercise_enabled', false)) {
35 35
 			// Post Type and Taxonomies.
36
-			add_action( 'init', array( $this, 'register_post_type' ) );
37
-			add_action( 'init', array( $this, 'exercise_type_taxonomy_setup' ) );
38
-			add_action( 'init', array( $this, 'equipment_taxonomy_setup' ) );
39
-			add_action( 'init', array( $this, 'muscle_group_taxonomy_setup' ) );
40
-			add_action( 'admin_menu', array( $this, 'register_menus' ) );
36
+			add_action('init', array($this, 'register_post_type'));
37
+			add_action('init', array($this, 'exercise_type_taxonomy_setup'));
38
+			add_action('init', array($this, 'equipment_taxonomy_setup'));
39
+			add_action('init', array($this, 'muscle_group_taxonomy_setup'));
40
+			add_action('admin_menu', array($this, 'register_menus'));
41 41
 
42 42
 			// Settings.
43
-			add_action( 'lsx_hp_settings_page', array( $this, 'register_settings' ), 10, 1 );
43
+			add_action('lsx_hp_settings_page', array($this, 'register_settings'), 10, 1);
44 44
 
45 45
 			// Custom Fields.
46
-			add_action( 'cmb2_admin_init', array( $this, 'exercise_details' ), 8 );
47
-			add_action( 'cmb2_admin_init', array( $this, 'gallery_metabox' ), 9 );
48
-			add_filter( 'lsx_health_plan_connections', array( $this, 'enable_connections' ), 10, 1 );
46
+			add_action('cmb2_admin_init', array($this, 'exercise_details'), 8);
47
+			add_action('cmb2_admin_init', array($this, 'gallery_metabox'), 9);
48
+			add_filter('lsx_health_plan_connections', array($this, 'enable_connections'), 10, 1);
49 49
 
50 50
 			// Template Redirects.
51
-			add_filter( 'lsx_health_plan_archive_template', array( $this, 'enable_post_type' ), 10, 1 );
52
-			add_filter( 'lsx_health_plan_single_template', array( $this, 'enable_post_type' ), 10, 1 );
51
+			add_filter('lsx_health_plan_archive_template', array($this, 'enable_post_type'), 10, 1);
52
+			add_filter('lsx_health_plan_single_template', array($this, 'enable_post_type'), 10, 1);
53 53
 
54 54
 		}
55 55
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public static function get_instance() {
67 67
 		// If the single instance hasn't been set, set it now.
68
-		if ( null === self::$instance ) {
68
+		if (null === self::$instance) {
69 69
 			self::$instance = new self();
70 70
 		}
71 71
 		return self::$instance;
@@ -75,21 +75,21 @@  discard block
 block discarded – undo
75 75
 	 */
76 76
 	public function register_post_type() {
77 77
 		$labels = array(
78
-			'name'               => esc_html__( 'Exercises', 'lsx-health-plan' ),
79
-			'singular_name'      => esc_html__( 'Exercise', 'lsx-health-plan' ),
80
-			'add_new'            => esc_html_x( 'Add New', 'post type general name', 'lsx-health-plan' ),
81
-			'add_new_item'       => esc_html__( 'Add New', 'lsx-health-plan' ),
82
-			'edit_item'          => esc_html__( 'Edit', 'lsx-health-plan' ),
83
-			'new_item'           => esc_html__( 'New', 'lsx-health-plan' ),
84
-			'all_items'          => esc_html__( 'All Exercises', 'lsx-health-plan' ),
85
-			'view_item'          => esc_html__( 'View', 'lsx-health-plan' ),
86
-			'search_items'       => esc_html__( 'Search', 'lsx-health-plan' ),
87
-			'not_found'          => esc_html__( 'None found', 'lsx-health-plan' ),
88
-			'not_found_in_trash' => esc_html__( 'None found in Trash', 'lsx-health-plan' ),
78
+			'name'               => esc_html__('Exercises', 'lsx-health-plan'),
79
+			'singular_name'      => esc_html__('Exercise', 'lsx-health-plan'),
80
+			'add_new'            => esc_html_x('Add New', 'post type general name', 'lsx-health-plan'),
81
+			'add_new_item'       => esc_html__('Add New', 'lsx-health-plan'),
82
+			'edit_item'          => esc_html__('Edit', 'lsx-health-plan'),
83
+			'new_item'           => esc_html__('New', 'lsx-health-plan'),
84
+			'all_items'          => esc_html__('All Exercises', 'lsx-health-plan'),
85
+			'view_item'          => esc_html__('View', 'lsx-health-plan'),
86
+			'search_items'       => esc_html__('Search', 'lsx-health-plan'),
87
+			'not_found'          => esc_html__('None found', 'lsx-health-plan'),
88
+			'not_found_in_trash' => esc_html__('None found in Trash', 'lsx-health-plan'),
89 89
 			'parent_item_colon'  => '',
90
-			'menu_name'          => esc_html__( 'Exercises', 'lsx-health-plan' ),
90
+			'menu_name'          => esc_html__('Exercises', 'lsx-health-plan'),
91 91
 		);
92
-		$args   = array(
92
+		$args = array(
93 93
 			'labels'             => $labels,
94 94
 			'public'             => true,
95 95
 			'publicly_queryable' => true,
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
 			'menu_icon'          => 'dashicons-universal-access',
100 100
 			'query_var'          => true,
101 101
 			'rewrite'            => array(
102
-				'slug' => \lsx_health_plan\functions\get_option( 'endpoint_exercise_single', 'exercise' ),
102
+				'slug' => \lsx_health_plan\functions\get_option('endpoint_exercise_single', 'exercise'),
103 103
 			),
104 104
 			'capability_type'    => 'page',
105
-			'has_archive'        => \lsx_health_plan\functions\get_option( 'endpoint_exercise_archive', 'exercises' ),
105
+			'has_archive'        => \lsx_health_plan\functions\get_option('endpoint_exercise_archive', 'exercises'),
106 106
 			'hierarchical'       => false,
107 107
 			'menu_position'      => null,
108 108
 			'supports'           => array(
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 				'custom-fields',
114 114
 			),
115 115
 		);
116
-		register_post_type( 'exercise', $args );
116
+		register_post_type('exercise', $args);
117 117
 	}
118 118
 
119 119
 	/**
@@ -123,17 +123,17 @@  discard block
 block discarded – undo
123 123
 	 */
124 124
 	public function exercise_type_taxonomy_setup() {
125 125
 		$labels = array(
126
-			'name'              => esc_html_x( 'Exercise Type', 'taxonomy general name', 'lsx-health-plan' ),
127
-			'singular_name'     => esc_html_x( 'Exercise Type', 'taxonomy singular name', 'lsx-health-plan' ),
128
-			'search_items'      => esc_html__( 'Search', 'lsx-health-plan' ),
129
-			'all_items'         => esc_html__( 'All', 'lsx-health-plan' ),
130
-			'parent_item'       => esc_html__( 'Parent', 'lsx-health-plan' ),
131
-			'parent_item_colon' => esc_html__( 'Parent:', 'lsx-health-plan' ),
132
-			'edit_item'         => esc_html__( 'Edit', 'lsx-health-plan' ),
133
-			'update_item'       => esc_html__( 'Update', 'lsx-health-plan' ),
134
-			'add_new_item'      => esc_html__( 'Add New', 'lsx-health-plan' ),
135
-			'new_item_name'     => esc_html__( 'New Name', 'lsx-health-plan' ),
136
-			'menu_name'         => esc_html__( 'Exercise Types', 'lsx-health-plan' ),
126
+			'name'              => esc_html_x('Exercise Type', 'taxonomy general name', 'lsx-health-plan'),
127
+			'singular_name'     => esc_html_x('Exercise Type', 'taxonomy singular name', 'lsx-health-plan'),
128
+			'search_items'      => esc_html__('Search', 'lsx-health-plan'),
129
+			'all_items'         => esc_html__('All', 'lsx-health-plan'),
130
+			'parent_item'       => esc_html__('Parent', 'lsx-health-plan'),
131
+			'parent_item_colon' => esc_html__('Parent:', 'lsx-health-plan'),
132
+			'edit_item'         => esc_html__('Edit', 'lsx-health-plan'),
133
+			'update_item'       => esc_html__('Update', 'lsx-health-plan'),
134
+			'add_new_item'      => esc_html__('Add New', 'lsx-health-plan'),
135
+			'new_item_name'     => esc_html__('New Name', 'lsx-health-plan'),
136
+			'menu_name'         => esc_html__('Exercise Types', 'lsx-health-plan'),
137 137
 		);
138 138
 
139 139
 		$args = array(
@@ -143,12 +143,12 @@  discard block
 block discarded – undo
143 143
 			'show_admin_column' => true,
144 144
 			'query_var'         => true,
145 145
 			'rewrite'           => array(
146
-				'slug' => \lsx_health_plan\functions\get_option( 'endpoint_exercise_type', 'exercise-type' ),
146
+				'slug' => \lsx_health_plan\functions\get_option('endpoint_exercise_type', 'exercise-type'),
147 147
 			),
148 148
 			'show_in_rest'      => true,
149 149
 		);
150 150
 
151
-		register_taxonomy( 'exercise-type', array( 'exercise' ), $args );
151
+		register_taxonomy('exercise-type', array('exercise'), $args);
152 152
 	}
153 153
 
154 154
 	/**
@@ -158,17 +158,17 @@  discard block
 block discarded – undo
158 158
 	 */
159 159
 	public function equipment_taxonomy_setup() {
160 160
 		$labels = array(
161
-			'name'              => esc_html_x( 'Equipment', 'taxonomy general name', 'lsx-health-plan' ),
162
-			'singular_name'     => esc_html_x( 'Equipment', 'taxonomy singular name', 'lsx-health-plan' ),
163
-			'search_items'      => esc_html__( 'Search', 'lsx-health-plan' ),
164
-			'all_items'         => esc_html__( 'All', 'lsx-health-plan' ),
165
-			'parent_item'       => esc_html__( 'Parent', 'lsx-health-plan' ),
166
-			'parent_item_colon' => esc_html__( 'Parent:', 'lsx-health-plan' ),
167
-			'edit_item'         => esc_html__( 'Edit', 'lsx-health-plan' ),
168
-			'update_item'       => esc_html__( 'Update', 'lsx-health-plan' ),
169
-			'add_new_item'      => esc_html__( 'Add New', 'lsx-health-plan' ),
170
-			'new_item_name'     => esc_html__( 'New Name', 'lsx-health-plan' ),
171
-			'menu_name'         => esc_html__( 'Equipment', 'lsx-health-plan' ),
161
+			'name'              => esc_html_x('Equipment', 'taxonomy general name', 'lsx-health-plan'),
162
+			'singular_name'     => esc_html_x('Equipment', 'taxonomy singular name', 'lsx-health-plan'),
163
+			'search_items'      => esc_html__('Search', 'lsx-health-plan'),
164
+			'all_items'         => esc_html__('All', 'lsx-health-plan'),
165
+			'parent_item'       => esc_html__('Parent', 'lsx-health-plan'),
166
+			'parent_item_colon' => esc_html__('Parent:', 'lsx-health-plan'),
167
+			'edit_item'         => esc_html__('Edit', 'lsx-health-plan'),
168
+			'update_item'       => esc_html__('Update', 'lsx-health-plan'),
169
+			'add_new_item'      => esc_html__('Add New', 'lsx-health-plan'),
170
+			'new_item_name'     => esc_html__('New Name', 'lsx-health-plan'),
171
+			'menu_name'         => esc_html__('Equipment', 'lsx-health-plan'),
172 172
 		);
173 173
 
174 174
 		$args = array(
@@ -178,12 +178,12 @@  discard block
 block discarded – undo
178 178
 			'show_admin_column' => true,
179 179
 			'query_var'         => true,
180 180
 			'rewrite'           => array(
181
-				'slug' => \lsx_health_plan\functions\get_option( 'endpoint_exercise_equipment', 'equipment' ),
181
+				'slug' => \lsx_health_plan\functions\get_option('endpoint_exercise_equipment', 'equipment'),
182 182
 			),
183 183
 			'show_in_rest'      => true,
184 184
 		);
185 185
 
186
-		register_taxonomy( 'equipment', array( 'exercise' ), $args );
186
+		register_taxonomy('equipment', array('exercise'), $args);
187 187
 	}
188 188
 
189 189
 	/**
@@ -193,17 +193,17 @@  discard block
 block discarded – undo
193 193
 	 */
194 194
 	public function muscle_group_taxonomy_setup() {
195 195
 		$labels = array(
196
-			'name'              => esc_html_x( 'Muscle Groups', 'taxonomy general name', 'lsx-health-plan' ),
197
-			'singular_name'     => esc_html_x( 'Muscle Group', 'taxonomy singular name', 'lsx-health-plan' ),
198
-			'search_items'      => esc_html__( 'Search', 'lsx-health-plan' ),
199
-			'all_items'         => esc_html__( 'All', 'lsx-health-plan' ),
200
-			'parent_item'       => esc_html__( 'Parent', 'lsx-health-plan' ),
201
-			'parent_item_colon' => esc_html__( 'Parent:', 'lsx-health-plan' ),
202
-			'edit_item'         => esc_html__( 'Edit', 'lsx-health-plan' ),
203
-			'update_item'       => esc_html__( 'Update', 'lsx-health-plan' ),
204
-			'add_new_item'      => esc_html__( 'Add New', 'lsx-health-plan' ),
205
-			'new_item_name'     => esc_html__( 'New Name', 'lsx-health-plan' ),
206
-			'menu_name'         => esc_html__( 'Muscle Groups', 'lsx-health-plan' ),
196
+			'name'              => esc_html_x('Muscle Groups', 'taxonomy general name', 'lsx-health-plan'),
197
+			'singular_name'     => esc_html_x('Muscle Group', 'taxonomy singular name', 'lsx-health-plan'),
198
+			'search_items'      => esc_html__('Search', 'lsx-health-plan'),
199
+			'all_items'         => esc_html__('All', 'lsx-health-plan'),
200
+			'parent_item'       => esc_html__('Parent', 'lsx-health-plan'),
201
+			'parent_item_colon' => esc_html__('Parent:', 'lsx-health-plan'),
202
+			'edit_item'         => esc_html__('Edit', 'lsx-health-plan'),
203
+			'update_item'       => esc_html__('Update', 'lsx-health-plan'),
204
+			'add_new_item'      => esc_html__('Add New', 'lsx-health-plan'),
205
+			'new_item_name'     => esc_html__('New Name', 'lsx-health-plan'),
206
+			'menu_name'         => esc_html__('Muscle Groups', 'lsx-health-plan'),
207 207
 		);
208 208
 
209 209
 		$args = array(
@@ -213,12 +213,12 @@  discard block
 block discarded – undo
213 213
 			'show_admin_column' => true,
214 214
 			'query_var'         => true,
215 215
 			'rewrite'           => array(
216
-				'slug' => \lsx_health_plan\functions\get_option( 'endpoint_exercise_muscle_group', 'muscle-group' ),
216
+				'slug' => \lsx_health_plan\functions\get_option('endpoint_exercise_muscle_group', 'muscle-group'),
217 217
 			),
218 218
 			'show_in_rest'      => true,
219 219
 		);
220 220
 
221
-		register_taxonomy( 'muscle-group', array( 'exercise' ), $args );
221
+		register_taxonomy('muscle-group', array('exercise'), $args);
222 222
 	}
223 223
 
224 224
 	/**
@@ -227,10 +227,10 @@  discard block
 block discarded – undo
227 227
 	 * @return void
228 228
 	 */
229 229
 	public function register_menus() {
230
-		add_submenu_page( 'edit.php?post_type=workout', esc_html__( 'Exercises', 'lsx-health-plan' ), esc_html__( 'Exercises', 'lsx-health-plan' ), 'edit_posts', 'edit.php?post_type=exercise' );
231
-		add_submenu_page( 'edit.php?post_type=workout', esc_html__( 'Exercise Types', 'lsx-health-plan' ), esc_html__( 'Exercise Types', 'lsx-health-plan' ), 'edit_posts', 'edit-tags.php?taxonomy=exercise-type&post_type=exercise' );
232
-		add_submenu_page( 'edit.php?post_type=workout', esc_html__( 'Equipment', 'lsx-health-plan' ), esc_html__( 'Equipment', 'lsx-health-plan' ), 'edit_posts', 'edit-tags.php?taxonomy=equipment&post_type=exercise' );
233
-		add_submenu_page( 'edit.php?post_type=workout', esc_html__( 'Muscle Groups', 'lsx-health-plan' ), esc_html__( 'Muscle Groups', 'lsx-health-plan' ), 'edit_posts', 'edit-tags.php?taxonomy=muscle-group&post_type=exercise' );
230
+		add_submenu_page('edit.php?post_type=workout', esc_html__('Exercises', 'lsx-health-plan'), esc_html__('Exercises', 'lsx-health-plan'), 'edit_posts', 'edit.php?post_type=exercise');
231
+		add_submenu_page('edit.php?post_type=workout', esc_html__('Exercise Types', 'lsx-health-plan'), esc_html__('Exercise Types', 'lsx-health-plan'), 'edit_posts', 'edit-tags.php?taxonomy=exercise-type&post_type=exercise');
232
+		add_submenu_page('edit.php?post_type=workout', esc_html__('Equipment', 'lsx-health-plan'), esc_html__('Equipment', 'lsx-health-plan'), 'edit_posts', 'edit-tags.php?taxonomy=equipment&post_type=exercise');
233
+		add_submenu_page('edit.php?post_type=workout', esc_html__('Muscle Groups', 'lsx-health-plan'), esc_html__('Muscle Groups', 'lsx-health-plan'), 'edit_posts', 'edit-tags.php?taxonomy=muscle-group&post_type=exercise');
234 234
 	}
235 235
 
236 236
 	/**
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 	 * @param array $post_types
240 240
 	 * @return array
241 241
 	 */
242
-	public function enable_post_type( $post_types = array() ) {
242
+	public function enable_post_type($post_types = array()) {
243 243
 		$post_types[] = $this->slug;
244 244
 		return $post_types;
245 245
 	}
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 	 * @param array $connections
251 251
 	 * @return void
252 252
 	 */
253
-	public function enable_connections( $connections = array() ) {
253
+	public function enable_connections($connections = array()) {
254 254
 		$connections['exercise']['connected_workouts'] = 'connected_exercises';
255 255
 		$connections['workout']['connected_exercises'] = 'connected_workouts';
256 256
 		return $connections;
@@ -262,24 +262,24 @@  discard block
 block discarded – undo
262 262
 	 * @param object $cmb new_cmb2_box().
263 263
 	 * @return void
264 264
 	 */
265
-	public function register_settings( $cmb ) {
265
+	public function register_settings($cmb) {
266 266
 		$cmb->add_field(
267 267
 			array(
268 268
 				'id'          => 'exercise_archive_settings_title',
269 269
 				'type'        => 'title',
270
-				'name'        => __( 'Exercises Archive', 'lsx-health-plan' ),
271
-				'description' => __( 'All of the settings relating to the exercises post type archive.', 'lsx-health-plan' ),
270
+				'name'        => __('Exercises Archive', 'lsx-health-plan'),
271
+				'description' => __('All of the settings relating to the exercises post type archive.', 'lsx-health-plan'),
272 272
 			)
273 273
 		);
274 274
 		$cmb->add_field(
275 275
 			array(
276 276
 				'id'          => 'exercise_archive_description',
277 277
 				'type'        => 'wysiwyg',
278
-				'name'        => __( 'Archive Description', 'lsx-health-plan' ),
279
-				'description' => __( 'This will show up on the post type archive.', 'lsx-health-plan' ),
278
+				'name'        => __('Archive Description', 'lsx-health-plan'),
279
+				'description' => __('This will show up on the post type archive.', 'lsx-health-plan'),
280 280
 			)
281 281
 		);
282
-		do_action( 'lsx_hp_exercise_settings_page', $cmb );
282
+		do_action('lsx_hp_exercise_settings_page', $cmb);
283 283
 		$cmb->add_field(
284 284
 			array(
285 285
 				'id'   => 'settings_exercise_archive_closing',
@@ -295,8 +295,8 @@  discard block
 block discarded – undo
295 295
 		$cmb = new_cmb2_box(
296 296
 			array(
297 297
 				'id'           => $this->slug . '_gallery_details_metabox',
298
-				'title'        => __( 'Exercise Gallery', 'lsx-health-plan' ),
299
-				'object_types' => array( $this->slug ),
298
+				'title'        => __('Exercise Gallery', 'lsx-health-plan'),
299
+				'object_types' => array($this->slug),
300 300
 				'context'      => 'normal',
301 301
 				'priority'     => 'low',
302 302
 				'show_names'   => true,
@@ -305,12 +305,12 @@  discard block
 block discarded – undo
305 305
 
306 306
 		$cmb->add_field(
307 307
 			array(
308
-				'name'    => __( 'Layout', 'lsx-health-plan' ),
308
+				'name'    => __('Layout', 'lsx-health-plan'),
309 309
 				'id'      => $this->slug . '_gallery_layout',
310 310
 				'type'    => 'radio',
311 311
 				'options' => array(
312
-					'slider' => __( 'Slider', 'lsx-health-plan' ) . ' {#}', // {#} gets replaced by row number
313
-					'grid'   => __( 'Grid', 'lsx-health-plan' ),
312
+					'slider' => __('Slider', 'lsx-health-plan') . ' {#}', // {#} gets replaced by row number
313
+					'grid'   => __('Grid', 'lsx-health-plan'),
314 314
 				),
315 315
 				'default' => 'grid',
316 316
 			)
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 
319 319
 		$cmb->add_field(
320 320
 			array(
321
-				'name'    => __( 'Grid Columns', 'lsx-health-plan' ),
321
+				'name'    => __('Grid Columns', 'lsx-health-plan'),
322 322
 				'id'      => $this->slug . '_gallery_columns',
323 323
 				'type'    => 'text',
324 324
 				'default' => '1',
@@ -331,9 +331,9 @@  discard block
 block discarded – undo
331 331
 				'id'      => $this->slug . '_gallery',
332 332
 				'type'    => 'group',
333 333
 				'options' => array(
334
-					'group_title'   => __( 'Gallery', 'lsx-health-plan' ) . ' {#}', // {#} gets replaced by row number
335
-					'add_button'    => __( 'Add Item', 'lsx-health-plan' ),
336
-					'remove_button' => __( 'Remove Item', 'lsx-health-plan' ),
334
+					'group_title'   => __('Gallery', 'lsx-health-plan') . ' {#}', // {#} gets replaced by row number
335
+					'add_button'    => __('Add Item', 'lsx-health-plan'),
336
+					'remove_button' => __('Remove Item', 'lsx-health-plan'),
337 337
 					'sortable'      => true,
338 338
 				),
339 339
 				'classes' => 'lsx-admin-row',
@@ -344,13 +344,13 @@  discard block
 block discarded – undo
344 344
 		$cmb->add_group_field(
345 345
 			$gallery_group,
346 346
 			array(
347
-				'name'       => __( 'Image', 'lsx-health-plan' ),
347
+				'name'       => __('Image', 'lsx-health-plan'),
348 348
 				'id'         => $this->slug . '_gallery_image',
349 349
 				'type'       => 'file',
350 350
 				'text'       => array(
351
-					'add_upload_file_text' => __( 'Add File', 'lsx-health-plan' ),
351
+					'add_upload_file_text' => __('Add File', 'lsx-health-plan'),
352 352
 				),
353
-				'desc'       => __( 'Upload an image a minimum of 800px x 600px in size.', 'lsx-health-plan' ),
353
+				'desc'       => __('Upload an image a minimum of 800px x 600px in size.', 'lsx-health-plan'),
354 354
 				'query_args' => array(
355 355
 					'type' => array(
356 356
 						'image/gif',
@@ -366,20 +366,20 @@  discard block
 block discarded – undo
366 366
 		$cmb->add_group_field(
367 367
 			$gallery_group,
368 368
 			array(
369
-				'name'         => __( 'oEmbed', 'lsx-health-plan' ),
369
+				'name'         => __('oEmbed', 'lsx-health-plan'),
370 370
 				'id'           => $this->slug . '_gallery_embed',
371 371
 				'type'         => 'text',
372
-				'desc'         => __( 'Drop in the embed url for your video from YouTube, Vimeo or DailyMotion, e.g: "https://www.youtube.com/watch?v=9xwazD5SyVg". A full list of supports formats can be found at <a href="https://make.wordpress.org/support/user-manual/content/media/adding-media-to-your-pages-and-posts/embedding-media-from-other-sites/">WordPress</a>', 'lsx-health-plan' ),
372
+				'desc'         => __('Drop in the embed url for your video from YouTube, Vimeo or DailyMotion, e.g: "https://www.youtube.com/watch?v=9xwazD5SyVg". A full list of supports formats can be found at <a href="https://make.wordpress.org/support/user-manual/content/media/adding-media-to-your-pages-and-posts/embedding-media-from-other-sites/">WordPress</a>', 'lsx-health-plan'),
373 373
 			)
374 374
 		);
375 375
 
376 376
 		$cmb->add_group_field(
377 377
 			$gallery_group,
378 378
 			array(
379
-				'name'         => __( 'External Media', 'lsx-health-plan' ),
379
+				'name'         => __('External Media', 'lsx-health-plan'),
380 380
 				'id'           => $this->slug . '_gallery_external',
381 381
 				'type'         => 'textarea_code',
382
-				'desc'         => __( 'Drop in the iFrame embed code from Giphy in this field, i.e: &lt;iframe src="https://giphy.com/embed/3o7527Rn1HxXWqgxuo" width="480" height="270" frameborder="0" class="giphy-embed" allowfullscreen&gt;&lt;/iframe&gt;', 'lsx-health-plan' ),
382
+				'desc'         => __('Drop in the iFrame embed code from Giphy in this field, i.e: &lt;iframe src="https://giphy.com/embed/3o7527Rn1HxXWqgxuo" width="480" height="270" frameborder="0" class="giphy-embed" allowfullscreen&gt;&lt;/iframe&gt;', 'lsx-health-plan'),
383 383
 			)
384 384
 		);
385 385
 	}
@@ -393,8 +393,8 @@  discard block
 block discarded – undo
393 393
 		$cmb = new_cmb2_box(
394 394
 			array(
395 395
 				'id'           => $this->slug . '_general_details_metabox',
396
-				'title'        => __( 'Details', 'lsx-health-plan' ),
397
-				'object_types' => array( $this->slug ),
396
+				'title'        => __('Details', 'lsx-health-plan'),
397
+				'object_types' => array($this->slug),
398 398
 				'context'      => 'normal',
399 399
 				'priority'     => 'high',
400 400
 				'show_names'   => true,
@@ -403,15 +403,15 @@  discard block
 block discarded – undo
403 403
 
404 404
 		$cmb->add_field(
405 405
 			array(
406
-				'name'    => __( 'Side', 'lsx-health-plan' ),
406
+				'name'    => __('Side', 'lsx-health-plan'),
407 407
 				'id'      => $this->slug . '_side',
408 408
 				'type'    => 'select',
409 409
 				'options' => array(
410
-					''      => __( 'Select', 'lsx-health-plan' ),
411
-					'left'  => __( 'Left', 'lsx-health-plan' ),
412
-					'right' => __( 'Right', 'lsx-health-plan' ),
410
+					''      => __('Select', 'lsx-health-plan'),
411
+					'left'  => __('Left', 'lsx-health-plan'),
412
+					'right' => __('Right', 'lsx-health-plan'),
413 413
 				),
414
-				'desc'    => __( 'Select which side this exercise uses. ', 'lsx-health-plan' ),
414
+				'desc'    => __('Select which side this exercise uses. ', 'lsx-health-plan'),
415 415
 			)
416 416
 		);
417 417
 	}
Please login to merge, or discard this patch.