@@ -53,8 +53,7 @@ class ilObjBigBlueButtonGUI extends ilObjectPluginGUI
5353 */
5454 protected function afterConstructor (): void
5555 {
56- // $this->tpl->addCss("./public/Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton/templates/bbb.css");
57- $ this ->tpl ->addCss ($ this ->getPlugin ()->getDirectory () . '/templates/bbb.css ' );
56+ $ this ->tpl ->addCss ("./Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton/templates/bbb.css " );
5857 }
5958
6059 /**
@@ -167,9 +166,7 @@ public function initPropertiesForm()
167166 {
168167 global $ ilCtrl ;
169168
170- include_once ILIAS_ABSOLUTE_PATH . "/components/ILIAS/Form/classes/class.ilPropertyFormGUI.php " ;
171-
172-
169+ include_once ("Services/Form/classes/class.ilPropertyFormGUI.php " );
173170 $ this ->form = new ilPropertyFormGUI ();
174171
175172 // title
@@ -312,10 +309,11 @@ public function showContent()
312309 $ available_sessions = $ BBBHelper ->getMaximumSessionsAvailable ();
313310 //$BBBHelper->getMeetings();
314311
315- $ client_js = new ilTemplate ("../client.js " , true , true , " public/ Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton" );
312+ $ client_js = new ilTemplate ("./ Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton/templates/client.js " , true , true );
316313
317314 if ($ isModerator ) {
318- $ my_tpl = new ilTemplate ("../tpl.BigBlueButtonModeratorClient.html " , true , true , "public/Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton " );
315+ $ my_tpl = new ilTemplate ("./Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton/templates/tpl.BigBlueButtonModeratorClient.html " , true , true );
316+
319317 $ my_tpl ->setVariable ("CMD_END_CLASS " , "cmd[endClass] " );
320318 $ my_tpl ->setVariable ("END_CLASS " , $ this ->txt ('end_bbb_class ' ));
321319 $ my_tpl ->setVariable ("FORMACTION " , $ this ->ctrl ->getFormAction ($ this ));
@@ -333,25 +331,13 @@ public function showContent()
333331 $ my_tpl ->setVariable ("startClass " , $ this ->txt ("start_class " ));
334332 $ my_tpl ->setVariable ("endClass " , $ this ->txt ("end_class " ));
335333 $ my_tpl ->setVariable ("endClassComment " , $ this ->txt ("end_class_comment " ));
336-
337- global $ DIC ; // Get global ILIAS dependency injection container
338-
339- // Log the values of guest access settings
340- $ data = [
341- "Guest Global Allowed " => $ this ->object ->isGuestGlabalAllowed (),
342- "Guest Link Allowed " => $ this ->object ->isGuestLinkAllowed (),
343- ];
344-
345- $ DIC ->logger ()->root ()->dump ($ data ); // Logs data in ILIAS 10
346-
347- if ($ this ->object ->isGuestGlabalAllowed () && $ this ->object ->isGuestLinkAllowed ()) {
348- $ my_tpl ->setCurrentBlock ("guestlink_block " );
334+ if ($ this ->object ->isGuestGlabalAllowed () && $ this ->object ->isGuestLinkAllowed ()){
349335 $ my_tpl ->setVariable ("GUEST_INVITE_INFO " , $ this ->txt ("guest_invite_info " ));
350336 $ my_tpl ->setVariable ("GUEST_INVITE_URL " , $ BBBHelper ->getInviteUrl ());
351- $ my_tpl ->parseCurrentBlock ();
337+ }else {
338+ $ my_tpl ->setVariable ("HIDE_GUESTLINK " , "hide " );
352339 }
353-
354-
340+
355341 if ($ values ["choose_recording " ]){
356342 $ my_tpl ->setVariable ("recordings " , $ this ->buildRecordingUI ());
357343 $ my_tpl ->setVariable ("Headline_Recordings " , $ this ->txt ("Headline_Recordings " ));
@@ -368,7 +354,8 @@ public function showContent()
368354
369355 $ bbbURL =$ BBBHelper ->joinURLModerator ($ this ->object );
370356 } else {
371- $ my_tpl = new ilTemplate ("../tpl.BigBlueButtonClient.html " , true , true , "public/Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton " );
357+ $ my_tpl = new ilTemplate ("./Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton/templates/tpl.BigBlueButtonClient.html " , true , true );
358+
372359 $ my_tpl ->setVariable ("classNotStartedText " , $ this ->txt ("class_not_started_yet " ));
373360
374361 $ bbbURL =$ BBBHelper ->joinURL ($ this ->object );
@@ -401,7 +388,7 @@ private function buildRecordingUI()
401388 "tpl.BigBlueButtonRecordTable.html " ,
402389 true ,
403390 true ,
404- "public/ Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton "
391+ "Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton "
405392 );
406393 $ table_content = [];
407394 $ recordcount =0 ;
@@ -413,7 +400,7 @@ private function buildRecordingUI()
413400 $ table_row_template = new ilTemplate ("tpl.BigBlueButtonRecordTableRow.html " ,
414401 true ,
415402 true ,
416- "public/ Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton " );
403+ "Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton " );
417404 $ table_row_template ->setVariable ("Date " ,date ("d.m.Y H:i " , substr ($ recording ->startTime ,0 ,10 )));
418405 $ seconds = round (($ recording ->endTime - $ recording ->startTime )/1000 );
419406 $ table_row_template ->setVariable ("Duration " , $ this ->formatTimeDiff ( $ seconds ));
@@ -423,7 +410,7 @@ private function buildRecordingUI()
423410 $ table_link_template = new ilTemplate ("tpl.BigBlueButtonRecordTableLink.html " ,
424411 true ,
425412 true ,
426- "public/ Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton " );
413+ "Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton " );
427414 $ table_link_template ->setVariable ("URL " ,$ format ->url );
428415 if ($ format ->type =="presentation " && $ this ->object ->isDownloadAllowed () ){
429416 $ node = '<a href=" ' .$ BBBHelper ->getVideoDownloadStreamUrl ($ format ->url ).'" download> ' .$ this ->txt ("DownloadText " ) . '</a> ' ;
@@ -487,7 +474,7 @@ public function endClass()
487474
488475 //$this->object->incSequence();
489476
490- $ my_tpl = new ilTemplate ("../tpl.BigBlueButtonModeratorMeetingEnded.html " , true , true , " public/ Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton" );
477+ $ my_tpl = new ilTemplate ("./ Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton/templates/tpl.BigBlueButtonModeratorMeetingEnded.html " , true , true );
491478 $ my_tpl ->setVariable ("classEnded " , $ this ->txt ("class_ended " ));
492479 $ tpl ->setContent ($ my_tpl ->get ());
493480 $ this ->showContent ();
@@ -505,7 +492,7 @@ public function startClass()
505492
506493 $ BBBHelper ->createMeeting ($ this ->object , isset ($ _POST ["recordmeeting " ]));
507494
508- $ my_tpl = new ilTemplate ("../tpl.BigBlueButtonModeratorMeetingCreated.html " , true , true , " public/ Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton" );
495+ $ my_tpl = new ilTemplate ("./ Customizing/global/plugins/Services/Repository/RepositoryObject/BigBlueButton/templates/tpl.BigBlueButtonModeratorMeetingCreated.html " , true , true );
509496
510497 $ bbbURL =$ BBBHelper ->joinURLModerator ($ this ->object );
511498
0 commit comments