Passed
Push — master ( 8f7aaf...55321b )
by
unknown
04:17
created
classes/post-types/class-exercise.php 1 patch
Spacing   +113 added lines, -113 removed lines patch added patch discarded remove patch
@@ -30,26 +30,26 @@  discard block
 block discarded – undo
30 30
 	 * Contructor
31 31
 	 */
32 32
 	public function __construct() {
33
-		if ( false !== \lsx_health_plan\functions\get_option( 'exercise_enabled', false ) ) {
33
+		if (false !== \lsx_health_plan\functions\get_option('exercise_enabled', false)) {
34 34
 			// Post Type and Taxonomies.
35
-			add_action( 'init', array( $this, 'register_post_type' ) );
36
-			add_action( 'init', array( $this, 'exercise_type_taxonomy_setup' ) );
37
-			add_action( 'init', array( $this, 'equipment_taxonomy_setup' ) );
38
-			add_action( 'init', array( $this, 'muscle_group_taxonomy_setup' ) );
39
-			add_action( 'admin_menu', array( $this, 'register_menus' ) );
35
+			add_action('init', array($this, 'register_post_type'));
36
+			add_action('init', array($this, 'exercise_type_taxonomy_setup'));
37
+			add_action('init', array($this, 'equipment_taxonomy_setup'));
38
+			add_action('init', array($this, 'muscle_group_taxonomy_setup'));
39
+			add_action('admin_menu', array($this, 'register_menus'));
40 40
 
41 41
 			// Settings.
42
-			add_action( 'lsx_hp_settings_page', array( $this, 'register_settings' ), 10, 1 );
42
+			add_action('lsx_hp_settings_page', array($this, 'register_settings'), 10, 1);
43 43
 
44 44
 			// Custom Fields.
45
-			add_action( 'cmb2_admin_init', array( $this, 'exercise_details' ), 8 );
46
-			add_action( 'cmb2_admin_init', array( $this, 'gallery_metabox' ), 9 );
47
-			add_action( 'cmb2_admin_init', array( $this, 'tips_metabox' ) );
48
-			add_filter( 'lsx_health_plan_connections', array( $this, 'enable_connections' ), 10, 1 );
45
+			add_action('cmb2_admin_init', array($this, 'exercise_details'), 8);
46
+			add_action('cmb2_admin_init', array($this, 'gallery_metabox'), 9);
47
+			add_action('cmb2_admin_init', array($this, 'tips_metabox'));
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
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public static function get_instance() {
64 64
 		// If the single instance hasn't been set, set it now.
65
-		if ( null === self::$instance ) {
65
+		if (null === self::$instance) {
66 66
 			self::$instance = new self();
67 67
 		}
68 68
 		return self::$instance;
@@ -72,21 +72,21 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	public function register_post_type() {
74 74
 		$labels = array(
75
-			'name'               => esc_html__( 'Exercise', 'lsx-health-plan' ),
76
-			'singular_name'      => esc_html__( 'Exercises', 'lsx-health-plan' ),
77
-			'add_new'            => esc_html_x( 'Add New', 'post type general name', 'lsx-health-plan' ),
78
-			'add_new_item'       => esc_html__( 'Add New', 'lsx-health-plan' ),
79
-			'edit_item'          => esc_html__( 'Edit', 'lsx-health-plan' ),
80
-			'new_item'           => esc_html__( 'New', 'lsx-health-plan' ),
81
-			'all_items'          => esc_html__( 'All', 'lsx-health-plan' ),
82
-			'view_item'          => esc_html__( 'View', 'lsx-health-plan' ),
83
-			'search_items'       => esc_html__( 'Search', 'lsx-health-plan' ),
84
-			'not_found'          => esc_html__( 'None found', 'lsx-health-plan' ),
85
-			'not_found_in_trash' => esc_html__( 'None found in Trash', 'lsx-health-plan' ),
75
+			'name'               => esc_html__('Exercise', 'lsx-health-plan'),
76
+			'singular_name'      => esc_html__('Exercises', 'lsx-health-plan'),
77
+			'add_new'            => esc_html_x('Add New', 'post type general name', 'lsx-health-plan'),
78
+			'add_new_item'       => esc_html__('Add New', 'lsx-health-plan'),
79
+			'edit_item'          => esc_html__('Edit', 'lsx-health-plan'),
80
+			'new_item'           => esc_html__('New', 'lsx-health-plan'),
81
+			'all_items'          => esc_html__('All', 'lsx-health-plan'),
82
+			'view_item'          => esc_html__('View', 'lsx-health-plan'),
83
+			'search_items'       => esc_html__('Search', 'lsx-health-plan'),
84
+			'not_found'          => esc_html__('None found', 'lsx-health-plan'),
85
+			'not_found_in_trash' => esc_html__('None found in Trash', 'lsx-health-plan'),
86 86
 			'parent_item_colon'  => '',
87
-			'menu_name'          => esc_html__( 'Exercises', 'lsx-health-plan' ),
87
+			'menu_name'          => esc_html__('Exercises', 'lsx-health-plan'),
88 88
 		);
89
-		$args   = array(
89
+		$args = array(
90 90
 			'labels'             => $labels,
91 91
 			'public'             => true,
92 92
 			'publicly_queryable' => true,
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
 			'menu_icon'          => 'dashicons-universal-access',
97 97
 			'query_var'          => true,
98 98
 			'rewrite'            => array(
99
-				'slug' => \lsx_health_plan\functions\get_option( 'endpoint_exercise_single', 'exercise' ),
99
+				'slug' => \lsx_health_plan\functions\get_option('endpoint_exercise_single', 'exercise'),
100 100
 			),
101 101
 			'capability_type'    => 'page',
102
-			'has_archive'        => \lsx_health_plan\functions\get_option( 'endpoint_exercise_archive', 'exercises' ),
102
+			'has_archive'        => \lsx_health_plan\functions\get_option('endpoint_exercise_archive', 'exercises'),
103 103
 			'hierarchical'       => false,
104 104
 			'menu_position'      => null,
105 105
 			'supports'           => array(
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 				'excerpt',
110 110
 			),
111 111
 		);
112
-		register_post_type( 'exercise', $args );
112
+		register_post_type('exercise', $args);
113 113
 	}
114 114
 
115 115
 	/**
@@ -119,17 +119,17 @@  discard block
 block discarded – undo
119 119
 	 */
120 120
 	public function exercise_type_taxonomy_setup() {
121 121
 		$labels = array(
122
-			'name'              => esc_html_x( 'Exercise Type', 'taxonomy general name', 'lsx-health-plan' ),
123
-			'singular_name'     => esc_html_x( 'Exercise Type', 'taxonomy singular name', 'lsx-health-plan' ),
124
-			'search_items'      => esc_html__( 'Search', 'lsx-health-plan' ),
125
-			'all_items'         => esc_html__( 'All', 'lsx-health-plan' ),
126
-			'parent_item'       => esc_html__( 'Parent', 'lsx-health-plan' ),
127
-			'parent_item_colon' => esc_html__( 'Parent:', 'lsx-health-plan' ),
128
-			'edit_item'         => esc_html__( 'Edit', 'lsx-health-plan' ),
129
-			'update_item'       => esc_html__( 'Update', 'lsx-health-plan' ),
130
-			'add_new_item'      => esc_html__( 'Add New', 'lsx-health-plan' ),
131
-			'new_item_name'     => esc_html__( 'New Name', 'lsx-health-plan' ),
132
-			'menu_name'         => esc_html__( 'Exercise Types', 'lsx-health-plan' ),
122
+			'name'              => esc_html_x('Exercise Type', 'taxonomy general name', 'lsx-health-plan'),
123
+			'singular_name'     => esc_html_x('Exercise Type', 'taxonomy singular name', 'lsx-health-plan'),
124
+			'search_items'      => esc_html__('Search', 'lsx-health-plan'),
125
+			'all_items'         => esc_html__('All', 'lsx-health-plan'),
126
+			'parent_item'       => esc_html__('Parent', 'lsx-health-plan'),
127
+			'parent_item_colon' => esc_html__('Parent:', 'lsx-health-plan'),
128
+			'edit_item'         => esc_html__('Edit', 'lsx-health-plan'),
129
+			'update_item'       => esc_html__('Update', 'lsx-health-plan'),
130
+			'add_new_item'      => esc_html__('Add New', 'lsx-health-plan'),
131
+			'new_item_name'     => esc_html__('New Name', 'lsx-health-plan'),
132
+			'menu_name'         => esc_html__('Exercise Types', 'lsx-health-plan'),
133 133
 		);
134 134
 
135 135
 		$args = array(
@@ -139,12 +139,12 @@  discard block
 block discarded – undo
139 139
 			'show_admin_column' => true,
140 140
 			'query_var'         => true,
141 141
 			'rewrite'           => array(
142
-				'slug' => \lsx_health_plan\functions\get_option( 'endpoint_exercise_type', 'exercise-type' ),
142
+				'slug' => \lsx_health_plan\functions\get_option('endpoint_exercise_type', 'exercise-type'),
143 143
 			),
144 144
 			'show_in_rest'      => true,
145 145
 		);
146 146
 
147
-		register_taxonomy( 'exercise-type', array( 'exercise' ), $args );
147
+		register_taxonomy('exercise-type', array('exercise'), $args);
148 148
 	}
149 149
 
150 150
 	/**
@@ -154,17 +154,17 @@  discard block
 block discarded – undo
154 154
 	 */
155 155
 	public function equipment_taxonomy_setup() {
156 156
 		$labels = array(
157
-			'name'              => esc_html_x( 'Equipment', 'taxonomy general name', 'lsx-health-plan' ),
158
-			'singular_name'     => esc_html_x( 'Equipment', 'taxonomy singular name', 'lsx-health-plan' ),
159
-			'search_items'      => esc_html__( 'Search', 'lsx-health-plan' ),
160
-			'all_items'         => esc_html__( 'All', 'lsx-health-plan' ),
161
-			'parent_item'       => esc_html__( 'Parent', 'lsx-health-plan' ),
162
-			'parent_item_colon' => esc_html__( 'Parent:', 'lsx-health-plan' ),
163
-			'edit_item'         => esc_html__( 'Edit', 'lsx-health-plan' ),
164
-			'update_item'       => esc_html__( 'Update', 'lsx-health-plan' ),
165
-			'add_new_item'      => esc_html__( 'Add New', 'lsx-health-plan' ),
166
-			'new_item_name'     => esc_html__( 'New Name', 'lsx-health-plan' ),
167
-			'menu_name'         => esc_html__( 'Equipment', 'lsx-health-plan' ),
157
+			'name'              => esc_html_x('Equipment', 'taxonomy general name', 'lsx-health-plan'),
158
+			'singular_name'     => esc_html_x('Equipment', 'taxonomy singular name', 'lsx-health-plan'),
159
+			'search_items'      => esc_html__('Search', 'lsx-health-plan'),
160
+			'all_items'         => esc_html__('All', 'lsx-health-plan'),
161
+			'parent_item'       => esc_html__('Parent', 'lsx-health-plan'),
162
+			'parent_item_colon' => esc_html__('Parent:', 'lsx-health-plan'),
163
+			'edit_item'         => esc_html__('Edit', 'lsx-health-plan'),
164
+			'update_item'       => esc_html__('Update', 'lsx-health-plan'),
165
+			'add_new_item'      => esc_html__('Add New', 'lsx-health-plan'),
166
+			'new_item_name'     => esc_html__('New Name', 'lsx-health-plan'),
167
+			'menu_name'         => esc_html__('Equipment', 'lsx-health-plan'),
168 168
 		);
169 169
 
170 170
 		$args = array(
@@ -174,12 +174,12 @@  discard block
 block discarded – undo
174 174
 			'show_admin_column' => true,
175 175
 			'query_var'         => true,
176 176
 			'rewrite'           => array(
177
-				'slug' => \lsx_health_plan\functions\get_option( 'endpoint_exercise_equipment', 'equipment' ),
177
+				'slug' => \lsx_health_plan\functions\get_option('endpoint_exercise_equipment', 'equipment'),
178 178
 			),
179 179
 			'show_in_rest'      => true,
180 180
 		);
181 181
 
182
-		register_taxonomy( 'equipment', array( 'exercise' ), $args );
182
+		register_taxonomy('equipment', array('exercise'), $args);
183 183
 	}
184 184
 
185 185
 	/**
@@ -189,17 +189,17 @@  discard block
 block discarded – undo
189 189
 	 */
190 190
 	public function muscle_group_taxonomy_setup() {
191 191
 		$labels = array(
192
-			'name'              => esc_html_x( 'Muscle Groups', 'taxonomy general name', 'lsx-health-plan' ),
193
-			'singular_name'     => esc_html_x( 'Muscle Group', 'taxonomy singular name', 'lsx-health-plan' ),
194
-			'search_items'      => esc_html__( 'Search', 'lsx-health-plan' ),
195
-			'all_items'         => esc_html__( 'All', 'lsx-health-plan' ),
196
-			'parent_item'       => esc_html__( 'Parent', 'lsx-health-plan' ),
197
-			'parent_item_colon' => esc_html__( 'Parent:', 'lsx-health-plan' ),
198
-			'edit_item'         => esc_html__( 'Edit', 'lsx-health-plan' ),
199
-			'update_item'       => esc_html__( 'Update', 'lsx-health-plan' ),
200
-			'add_new_item'      => esc_html__( 'Add New', 'lsx-health-plan' ),
201
-			'new_item_name'     => esc_html__( 'New Name', 'lsx-health-plan' ),
202
-			'menu_name'         => esc_html__( 'Muscle Groups', 'lsx-health-plan' ),
192
+			'name'              => esc_html_x('Muscle Groups', 'taxonomy general name', 'lsx-health-plan'),
193
+			'singular_name'     => esc_html_x('Muscle Group', 'taxonomy singular name', 'lsx-health-plan'),
194
+			'search_items'      => esc_html__('Search', 'lsx-health-plan'),
195
+			'all_items'         => esc_html__('All', 'lsx-health-plan'),
196
+			'parent_item'       => esc_html__('Parent', 'lsx-health-plan'),
197
+			'parent_item_colon' => esc_html__('Parent:', 'lsx-health-plan'),
198
+			'edit_item'         => esc_html__('Edit', 'lsx-health-plan'),
199
+			'update_item'       => esc_html__('Update', 'lsx-health-plan'),
200
+			'add_new_item'      => esc_html__('Add New', 'lsx-health-plan'),
201
+			'new_item_name'     => esc_html__('New Name', 'lsx-health-plan'),
202
+			'menu_name'         => esc_html__('Muscle Groups', 'lsx-health-plan'),
203 203
 		);
204 204
 
205 205
 		$args = array(
@@ -209,12 +209,12 @@  discard block
 block discarded – undo
209 209
 			'show_admin_column' => true,
210 210
 			'query_var'         => true,
211 211
 			'rewrite'           => array(
212
-				'slug' => \lsx_health_plan\functions\get_option( 'endpoint_exercise_musclegroup', 'muscle-group' ),
212
+				'slug' => \lsx_health_plan\functions\get_option('endpoint_exercise_musclegroup', 'muscle-group'),
213 213
 			),
214 214
 			'show_in_rest'      => true,
215 215
 		);
216 216
 
217
-		register_taxonomy( 'muscle-group', array( 'exercise' ), $args );
217
+		register_taxonomy('muscle-group', array('exercise'), $args);
218 218
 	}
219 219
 
220 220
 	/**
@@ -223,10 +223,10 @@  discard block
 block discarded – undo
223 223
 	 * @return void
224 224
 	 */
225 225
 	public function register_menus() {
226
-		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' );
227
-		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' );
228
-		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' );
229
-		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' );
226
+		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');
227
+		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');
228
+		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');
229
+		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 230
 	}
231 231
 
232 232
 	/**
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
 		$cmb = new_cmb2_box(
237 237
 			array(
238 238
 				'id'           => $this->slug . '_tips_details_metabox',
239
-				'title'        => __( 'Exercise Tips', 'lsx-health-plan' ),
240
-				'object_types' => array( $this->slug ), // Post type
239
+				'title'        => __('Exercise Tips', 'lsx-health-plan'),
240
+				'object_types' => array($this->slug), // Post type
241 241
 				'context'      => 'normal',
242 242
 				'priority'     => 'low',
243 243
 				'show_names'   => true,
@@ -250,9 +250,9 @@  discard block
 block discarded – undo
250 250
 				'id'      => $this->slug . '_tips',
251 251
 				'type'    => 'group',
252 252
 				'options' => array(
253
-					'group_title'   => __( 'Tip', 'your-text-domain' ) . ' {#}', // {#} gets replaced by row number
254
-					'add_button'    => __( 'Add another tip', 'your-text-domain' ),
255
-					'remove_button' => __( 'Remove tip', 'your-text-domain' ),
253
+					'group_title'   => __('Tip', 'your-text-domain') . ' {#}', // {#} gets replaced by row number
254
+					'add_button'    => __('Add another tip', 'your-text-domain'),
255
+					'remove_button' => __('Remove tip', 'your-text-domain'),
256 256
 					'sortable'      => true,
257 257
 				),
258 258
 				'classes' => 'lsx-admin-row',
@@ -263,13 +263,13 @@  discard block
 block discarded – undo
263 263
 		$cmb->add_group_field(
264 264
 			$tip_group,
265 265
 			array(
266
-				'name' => __( 'Thumbnail', 'your-text-domain' ),
266
+				'name' => __('Thumbnail', 'your-text-domain'),
267 267
 				'id'   => $this->slug . '_tip_thumbnail',
268 268
 				'type' => 'file',
269 269
 				'text'        => array(
270
-					'add_upload_file_text' => __( 'Add File', 'lsx-health-plan' ),
270
+					'add_upload_file_text' => __('Add File', 'lsx-health-plan'),
271 271
 				),
272
-				'desc'        => __( 'Upload an image 300px x 300px in size.', 'lsx-health-plan' ),
272
+				'desc'        => __('Upload an image 300px x 300px in size.', 'lsx-health-plan'),
273 273
 				'query_args' => array(
274 274
 					'type' => array(
275 275
 						'image/gif',
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 		$cmb->add_group_field(
286 286
 			$tip_group,
287 287
 			array(
288
-				'name'    => __( 'Description', 'your-text-domain' ),
288
+				'name'    => __('Description', 'your-text-domain'),
289 289
 				'id'      => $this->slug . '_tip_content',
290 290
 				'type'    => 'textarea',
291 291
 				'classes' => 'lsx-field-col lsx-field-connect-field lsx-field-col-75',
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
 	 * @param array $post_types
300 300
 	 * @return array
301 301
 	 */
302
-	public function enable_post_type( $post_types = array() ) {
302
+	public function enable_post_type($post_types = array()) {
303 303
 		$post_types[] = $this->slug;
304 304
 		return $post_types;
305 305
 	}
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 	 * @param array $connections
311 311
 	 * @return void
312 312
 	 */
313
-	public function enable_connections( $connections = array() ) {
313
+	public function enable_connections($connections = array()) {
314 314
 		$connections['exercise']['connected_workouts'] = 'connected_exercises';
315 315
 		$connections['workout']['connected_exercises'] = 'connected_workouts';
316 316
 		return $connections;
@@ -322,24 +322,24 @@  discard block
 block discarded – undo
322 322
 	 * @param object $cmb new_cmb2_box().
323 323
 	 * @return void
324 324
 	 */
325
-	public function register_settings( $cmb ) {
325
+	public function register_settings($cmb) {
326 326
 		$cmb->add_field(
327 327
 			array(
328 328
 				'id'          => 'exercise_archive_settings_title',
329 329
 				'type'        => 'title',
330
-				'name'        => __( 'Exercises Archive', 'lsx-health-plan' ),
331
-				'description' => __( 'All of the settings relating to the exercises post type archive.', 'lsx-health-plan' ),
330
+				'name'        => __('Exercises Archive', 'lsx-health-plan'),
331
+				'description' => __('All of the settings relating to the exercises post type archive.', 'lsx-health-plan'),
332 332
 			)
333 333
 		);
334 334
 		$cmb->add_field(
335 335
 			array(
336 336
 				'id'          => 'exercise_archive_description',
337 337
 				'type'        => 'wysiwyg',
338
-				'name'        => __( 'Archive Description', 'lsx-health-plan' ),
339
-				'description' => __( 'This will show up on the post type archive.', 'lsx-health-plan' ),
338
+				'name'        => __('Archive Description', 'lsx-health-plan'),
339
+				'description' => __('This will show up on the post type archive.', 'lsx-health-plan'),
340 340
 			)
341 341
 		);
342
-		do_action( 'lsx_hp_exercise_settings_page', $cmb );
342
+		do_action('lsx_hp_exercise_settings_page', $cmb);
343 343
 		$cmb->add_field(
344 344
 			array(
345 345
 				'id'   => 'settings_exercise_archive_closing',
@@ -355,8 +355,8 @@  discard block
 block discarded – undo
355 355
 		$cmb = new_cmb2_box(
356 356
 			array(
357 357
 				'id'           => $this->slug . '_gallery_details_metabox',
358
-				'title'        => __( 'Exercise Gallery', 'lsx-health-plan' ),
359
-				'object_types' => array( $this->slug ),
358
+				'title'        => __('Exercise Gallery', 'lsx-health-plan'),
359
+				'object_types' => array($this->slug),
360 360
 				'context'      => 'normal',
361 361
 				'priority'     => 'low',
362 362
 				'show_names'   => true,
@@ -365,19 +365,19 @@  discard block
 block discarded – undo
365 365
 
366 366
 		$cmb->add_field(
367 367
 			array(
368
-				'name'    => __( 'Layout', 'lsx-health-plan' ),
368
+				'name'    => __('Layout', 'lsx-health-plan'),
369 369
 				'id'      => $this->slug . '_gallery_layout',
370 370
 				'type'    => 'radio',
371 371
 				'options' => array(
372
-					'slider' => __( 'Slider', 'your-text-domain' ) . ' {#}', // {#} gets replaced by row number
373
-					'grid'   => __( 'Grid', 'your-text-domain' ),
372
+					'slider' => __('Slider', 'your-text-domain') . ' {#}', // {#} gets replaced by row number
373
+					'grid'   => __('Grid', 'your-text-domain'),
374 374
 				),
375 375
 			)
376 376
 		);
377 377
 
378 378
 		$cmb->add_field(
379 379
 			array(
380
-				'name'    => __( 'Grid Columns', 'lsx-health-plan' ),
380
+				'name'    => __('Grid Columns', 'lsx-health-plan'),
381 381
 				'id'      => $this->slug . '_gallery_columns',
382 382
 				'type'    => 'text',
383 383
 				'default' => '3',
@@ -390,9 +390,9 @@  discard block
 block discarded – undo
390 390
 				'id'      => $this->slug . '_gallery',
391 391
 				'type'    => 'group',
392 392
 				'options' => array(
393
-					'group_title'   => __( 'Gallery', 'your-text-domain' ) . ' {#}', // {#} gets replaced by row number
394
-					'add_button'    => __( 'Add Item', 'your-text-domain' ),
395
-					'remove_button' => __( 'Remove Item', 'your-text-domain' ),
393
+					'group_title'   => __('Gallery', 'your-text-domain') . ' {#}', // {#} gets replaced by row number
394
+					'add_button'    => __('Add Item', 'your-text-domain'),
395
+					'remove_button' => __('Remove Item', 'your-text-domain'),
396 396
 					'sortable'      => true,
397 397
 				),
398 398
 				'classes' => 'lsx-admin-row',
@@ -403,13 +403,13 @@  discard block
 block discarded – undo
403 403
 		$cmb->add_group_field(
404 404
 			$gallery_group,
405 405
 			array(
406
-				'name'       => __( 'Image', 'your-text-domain' ),
406
+				'name'       => __('Image', 'your-text-domain'),
407 407
 				'id'         => $this->slug . '_gallery_image',
408 408
 				'type'       => 'file',
409 409
 				'text'       => array(
410
-					'add_upload_file_text' => __( 'Add File', 'lsx-health-plan' ),
410
+					'add_upload_file_text' => __('Add File', 'lsx-health-plan'),
411 411
 				),
412
-				'desc'       => __( 'Upload an image a minimum of 800px x 600px in size.', 'lsx-health-plan' ),
412
+				'desc'       => __('Upload an image a minimum of 800px x 600px in size.', 'lsx-health-plan'),
413 413
 				'query_args' => array(
414 414
 					'type' => array(
415 415
 						'image/gif',
@@ -426,10 +426,10 @@  discard block
 block discarded – undo
426 426
 		$cmb->add_group_field(
427 427
 			$gallery_group,
428 428
 			array(
429
-				'name'         => __( 'oEmbed', 'your-text-domain' ),
429
+				'name'         => __('oEmbed', 'your-text-domain'),
430 430
 				'id'           => $this->slug . '_gallery_embed',
431 431
 				'type'         => 'text',
432
-				'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' ),
432
+				'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'),
433 433
 				'classes'      => 'lsx-field-col lsx-field-connect-field  lsx-field-col-33',
434 434
 			)
435 435
 		);
@@ -437,10 +437,10 @@  discard block
 block discarded – undo
437 437
 		$cmb->add_group_field(
438 438
 			$gallery_group,
439 439
 			array(
440
-				'name'         => __( 'External Media', 'your-text-domain' ),
440
+				'name'         => __('External Media', 'your-text-domain'),
441 441
 				'id'           => $this->slug . '_gallery_external',
442 442
 				'type'         => 'textarea_code',
443
-				'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' ),
443
+				'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'),
444 444
 				'classes'      => 'lsx-field-col lsx-field-connect-field  lsx-field-col-33',
445 445
 			)
446 446
 		);
@@ -455,8 +455,8 @@  discard block
 block discarded – undo
455 455
 		$cmb = new_cmb2_box(
456 456
 			array(
457 457
 				'id'           => $this->slug . '_general_details_metabox',
458
-				'title'        => __( 'Details', 'lsx-health-plan' ),
459
-				'object_types' => array( $this->slug ),
458
+				'title'        => __('Details', 'lsx-health-plan'),
459
+				'object_types' => array($this->slug),
460 460
 				'context'      => 'normal',
461 461
 				'priority'     => 'high',
462 462
 				'show_names'   => true,
@@ -465,15 +465,15 @@  discard block
 block discarded – undo
465 465
 
466 466
 		$cmb->add_field(
467 467
 			array(
468
-				'name'    => __( 'Side', 'lsx-health-plan' ),
468
+				'name'    => __('Side', 'lsx-health-plan'),
469 469
 				'id'      => $this->slug . '_side',
470 470
 				'type'    => 'select',
471 471
 				'options' => array(
472
-					''      => __( 'Select', 'your-text-domain' ),
473
-					'left'  => __( 'Left', 'your-text-domain' ),
474
-					'right' => __( 'Right', 'your-text-domain' ),
472
+					''      => __('Select', 'your-text-domain'),
473
+					'left'  => __('Left', 'your-text-domain'),
474
+					'right' => __('Right', 'your-text-domain'),
475 475
 				),
476
-				'desc'    => __( 'Select which side this exercise uses. ', 'lsx-health-plan' ),
476
+				'desc'    => __('Select which side this exercise uses. ', 'lsx-health-plan'),
477 477
 			)
478 478
 		);
479 479
 	}
Please login to merge, or discard this patch.