File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -551,6 +551,37 @@ public function getCourseMeetings()
551
551
}
552
552
}
553
553
}
554
+ } else {
555
+ $ actionLinks = '' ;
556
+ if ($ this ->isTeacher ()) {
557
+ if ($ meetingDB ['visibility ' ] == 0 ) {
558
+ $ actionLinks .= Display::url (
559
+ Display::return_icon (
560
+ 'invisible.png ' ,
561
+ get_lang ('MakeVisible ' ),
562
+ array (),
563
+ ICON_SIZE_MEDIUM
564
+ ),
565
+ api_get_self ().'? ' .
566
+ api_get_cidreq ().
567
+ '&action=publish&id= ' .$ meetingDB ['id ' ]
568
+ );
569
+ } else {
570
+ $ actionLinks .= Display::url (
571
+ Display::return_icon (
572
+ 'visible.png ' ,
573
+ get_lang ('MakeInvisible ' ),
574
+ array (),
575
+ ICON_SIZE_MEDIUM
576
+ ),
577
+ api_get_self ().'? ' .
578
+ api_get_cidreq ().
579
+ '&action=unpublish&id= ' .$ meetingDB ['id ' ]
580
+ );
581
+ }
582
+ }
583
+ $ actionLinksArray [] = $ actionLinks ;
584
+ $ item ['action_links ' ] = implode ('<br /> ' , $ actionLinksArray );
554
585
}
555
586
//var_dump($recordArray);
556
587
$ item ['show_links ' ] = implode ('<br /> ' , $ recordArray );
You can’t perform that action at this time.
0 commit comments