@@ -154,98 +154,98 @@ public function get_fields() {
154154 'type ' => 'select ' ,
155155 'value ' => $ difficulty_options ,
156156 ),
157- array (
158- 'class ' => 'llms-select2 ' ,
159- 'id ' => $ this ->prefix . 'focus_mode ' ,
160- 'desc ' => __ ( 'Enable or disable Focus Mode for lessons in this course. ' , 'lifterlms ' ),
161- 'desc_class ' => 'd-all ' ,
162- 'group ' => 'bottom ' ,
163- 'is_controller ' => true ,
164- 'label ' => __ ( 'Focus Mode ' , 'lifterlms ' ),
165- 'selected ' => $ course ->get ( 'focus_mode ' ) ? $ course ->get ( 'focus_mode ' ) : 'inherit ' ,
166- 'type ' => 'select ' ,
167- 'value ' => array (
168- array (
169- 'key ' => 'inherit ' ,
170- 'title ' => __ ( 'Inherit Global Setting ' , 'lifterlms ' ),
171- ),
172- array (
173- 'key ' => 'enable ' ,
174- 'title ' => __ ( 'Enable ' , 'lifterlms ' ),
175- ),
176- array (
177- 'key ' => 'disable ' ,
178- 'title ' => __ ( 'Disable ' , 'lifterlms ' ),
157+ array (
158+ 'class ' => 'llms-select2 ' ,
159+ 'id ' => $ this ->prefix . 'focus_mode ' ,
160+ 'desc ' => __ ( 'Enable or disable Focus Mode for lessons in this course. ' , 'lifterlms ' ),
161+ 'desc_class ' => 'd-all ' ,
162+ 'group ' => 'bottom ' ,
163+ 'is_controller ' => true ,
164+ 'label ' => __ ( 'Focus Mode ' , 'lifterlms ' ),
165+ 'selected ' => $ course ->get ( 'focus_mode ' ) ? $ course ->get ( 'focus_mode ' ) : 'inherit ' ,
166+ 'type ' => 'select ' ,
167+ 'value ' => array (
168+ array (
169+ 'key ' => 'inherit ' ,
170+ 'title ' => __ ( 'Inherit Global Setting ' , 'lifterlms ' ),
171+ ),
172+ array (
173+ 'key ' => 'enable ' ,
174+ 'title ' => __ ( 'Enable ' , 'lifterlms ' ),
175+ ),
176+ array (
177+ 'key ' => 'disable ' ,
178+ 'title ' => __ ( 'Disable ' , 'lifterlms ' ),
179+ ),
179180 ),
180181 ),
181- ),
182- array (
183- ' class ' => ' llms-select2 ' ,
184- ' controller ' => '# ' . $ this -> prefix . ' focus_mode ' ,
185- ' controller_value ' => ' enable,inherit ' ,
186- ' id ' => $ this -> prefix . ' focus_mode_content_width ' ,
187- ' desc ' => __ ( ' Set the maximum width of the lesson content area in focus mode. ' , ' lifterlms ' ) ,
188- ' desc_class ' => 'd-all ' ,
189- ' group ' => ' bottom ' ,
190- ' label ' => __ ( 'Focus Mode Content Width ' , ' lifterlms ' ),
191- ' selected ' => $ course -> get ( ' focus_mode_content_width ' ) ? $ course -> get ( ' focus_mode_content_width ' ) : ' inherit ' ,
192- ' type ' => ' select ' ,
193- ' value ' => array (
194- array (
195- ' key ' => ' inherit ' ,
196- ' title ' => __ ( ' Inherit Global Setting ' , ' lifterlms ' ),
197- ),
198- array (
199- ' key ' => ' full ' ,
200- ' title ' => __ ( ' Full Width ' , ' lifterlms ' ),
201- ),
202- array (
203- ' key ' => ' 1600 ' ,
204- ' title ' => __ ( ' Extra Wide (1600px) ' , ' lifterlms ' ),
205- ),
206- array (
207- ' key ' => ' 1180 ' ,
208- ' title ' => __ ( ' Wide (1180px) ' , ' lifterlms ' ),
209- ),
210- array (
211- ' key ' => ' 960 ' ,
212- ' title ' => __ ( ' Default (960px) ' , ' lifterlms ' ),
213- ),
214- array (
215- ' key ' => ' 768 ' ,
216- ' title ' => __ ( ' Narrow (768px) ' , ' lifterlms ' ),
182+ array (
183+ ' class ' => ' llms-select2 ' ,
184+ ' controller ' => ' # ' . $ this -> prefix . ' focus_mode ' ,
185+ ' controller_value ' => 'enable,inherit ' ,
186+ ' id ' => $ this -> prefix . ' focus_mode_content_width ' ,
187+ ' desc ' => __ ( ' Set the maximum width of the lesson content area in focus mode. ' , ' lifterlms ' ) ,
188+ ' desc_class ' => ' d-all ' ,
189+ ' group ' => 'bottom ' ,
190+ ' label ' => __ ( ' Focus Mode Content Width ' , ' lifterlms ' ) ,
191+ ' selected ' => $ course -> get ( 'focus_mode_content_width ' ) ? $ course -> get ( ' focus_mode_content_width ' ) : ' inherit ' ,
192+ ' type ' => ' select ' ,
193+ ' value ' => array (
194+ array (
195+ ' key ' => ' inherit ' ,
196+ ' title ' => __ ( ' Inherit Global Setting ' , ' lifterlms ' ) ,
197+ ),
198+ array (
199+ ' key ' => ' full ' ,
200+ ' title ' => __ ( ' Full Width ' , ' lifterlms ' ) ,
201+ ),
202+ array (
203+ ' key ' => ' 1600 ' ,
204+ ' title ' => __ ( ' Extra Wide (1600px) ' , ' lifterlms ' ) ,
205+ ),
206+ array (
207+ ' key ' => ' 1180 ' ,
208+ ' title ' => __ ( ' Wide (1180px) ' , ' lifterlms ' ) ,
209+ ),
210+ array (
211+ ' key ' => ' 960 ' ,
212+ ' title ' => __ ( ' Default (960px) ' , ' lifterlms ' ) ,
213+ ),
214+ array (
215+ ' key ' => ' 768 ' ,
216+ ' title ' => __ ( ' Narrow (768px) ' , ' lifterlms ' ) ,
217+ ),
217218 ),
218219 ),
219- ),
220- array (
221- ' class ' => ' llms-select2 ' ,
222- ' controller ' => '# ' . $ this -> prefix . ' focus_mode ' ,
223- ' controller_value ' => ' enable,inherit ' ,
224- ' id ' => $ this -> prefix . ' focus_mode_sidebar_position ' ,
225- ' desc ' => __ ( ' Choose which side the course syllabus sidebar appears on. ' , ' lifterlms ' ) ,
226- ' desc_class ' => 'd-all ' ,
227- ' group ' => ' bottom ' ,
228- ' label ' => __ ( 'Focus Mode Sidebar Position ' , ' lifterlms ' ),
229- ' selected ' => $ course -> get ( ' focus_mode_sidebar_position ' ) ? $ course -> get ( ' focus_mode_sidebar_position ' ) : ' inherit ' ,
230- ' type ' => ' select ' ,
231- ' value ' => array (
232- array (
233- ' key ' => ' inherit ' ,
234- ' title ' => __ ( ' Inherit Global Setting ' , ' lifterlms ' ),
235- ),
236- array (
237- ' key ' => ' left ' ,
238- ' title ' => __ ( ' Left ' , ' lifterlms ' ),
239- ),
240- array (
241- ' key ' => ' right ' ,
242- ' title ' => __ ( ' Right ' , ' lifterlms ' ),
220+ array (
221+ ' class ' => ' llms-select2 ' ,
222+ ' controller ' => ' # ' . $ this -> prefix . ' focus_mode ' ,
223+ ' controller_value ' => 'enable,inherit ' ,
224+ ' id ' => $ this -> prefix . ' focus_mode_sidebar_position ' ,
225+ ' desc ' => __ ( ' Choose which side the course syllabus sidebar appears on. ' , ' lifterlms ' ) ,
226+ ' desc_class ' => ' d-all ' ,
227+ ' group ' => 'bottom ' ,
228+ ' label ' => __ ( ' Focus Mode Sidebar Position ' , ' lifterlms ' ) ,
229+ ' selected ' => $ course -> get ( 'focus_mode_sidebar_position ' ) ? $ course -> get ( ' focus_mode_sidebar_position ' ) : ' inherit ' ,
230+ ' type ' => ' select ' ,
231+ ' value ' => array (
232+ array (
233+ ' key ' => ' inherit ' ,
234+ ' title ' => __ ( ' Inherit Global Setting ' , ' lifterlms ' ) ,
235+ ),
236+ array (
237+ ' key ' => ' left ' ,
238+ ' title ' => __ ( ' Left ' , ' lifterlms ' ) ,
239+ ),
240+ array (
241+ ' key ' => ' right ' ,
242+ ' title ' => __ ( ' Right ' , ' lifterlms ' ) ,
243+ ),
243244 ),
244245 ),
245- ),
246- array (
247- 'type ' => 'text ' ,
248- 'label ' => __ ( 'Featured Video ' , 'lifterlms ' ),
246+ array (
247+ 'type ' => 'text ' ,
248+ 'label ' => __ ( 'Featured Video ' , 'lifterlms ' ),
249249 'desc ' => sprintf ( __ ( 'Paste the url for a Wistia, Vimeo or Youtube video or a hosted video file. For a full list of supported providers see %s. ' , 'lifterlms ' ), '<a href="https://wordpress.org/documentation/article/embeds/#list-of-sites-you-can-embed-from" target="_blank">WordPress oEmbeds</a> ' ),
250250 'id ' => $ this ->prefix . 'video_embed ' ,
251251 'class ' => 'code input-full ' ,
0 commit comments