|
5 | 5 | <?= $plugin->_('Welchen Livestream-Modus möchten Sie verwenden?') ?> |
6 | 6 | </p> |
7 | 7 | <form action="<?= PluginEngine::getLink('LiveStreaming/player/select_mode') ?>" method="post"> |
8 | | - <?= CSRFProtection::tokenTag() ?> |
| 8 | + <?= CSRFProtection::tokenTag() ?> |
9 | 9 | <input type="hidden" name="livestream-mode" value="<?=$mode?>"> |
10 | 10 | </form> |
11 | 11 | <?endif;?> |
|
23 | 23 | </div> |
24 | 24 | <?endif;?> |
25 | 25 | </div> |
26 | | - <form class="default" action="<?= PluginEngine::getLink('LiveStreaming/player/toggle_chat') ?>" method="post"> |
27 | | - <?= CSRFProtection::tokenTag() ?> |
28 | | - <fieldset> |
29 | | - <legend><?= _('Live-Chat') ?></legend> |
30 | | - <label> |
31 | | - <input type="checkbox" name="chat_active" id="chat_active" value="1" |
32 | | - <? if ($chat_active == 1) echo 'checked'; ?>> |
33 | | - <?= _('Live-Chat aktivieren') ?> |
34 | | - <?= tooltipIcon(_('Soll ein Live-Chat während des Streams unter dem Video verfügbar sein?')) ?> |
35 | | - </label> |
36 | | - </fieldset> |
37 | | - <footer> |
38 | | - <?= Studip\Button::create(_('Speichern'))?> |
39 | | - </footer> |
40 | | - </form> |
| 26 | + <? if (StudipVersion::olderThan('5.5')) : ?> |
| 27 | + <form class="default" action="<?= PluginEngine::getLink('LiveStreaming/player/toggle_chat') ?>" method="post"> |
| 28 | + <?= CSRFProtection::tokenTag() ?> |
| 29 | + <fieldset> |
| 30 | + <legend><?= _('Live-Chat') ?></legend> |
| 31 | + <label> |
| 32 | + <input type="checkbox" name="chat_active" id="chat_active" value="1" |
| 33 | + <? if ($chat_active == 1) echo 'checked'; ?>> |
| 34 | + <?= _('Live-Chat aktivieren') ?> |
| 35 | + <?= tooltipIcon(_('Soll ein Live-Chat während des Streams unter dem Video verfügbar sein?')) ?> |
| 36 | + </label> |
| 37 | + </fieldset> |
| 38 | + <footer> |
| 39 | + <?= Studip\Button::create(_('Speichern'))?> |
| 40 | + </footer> |
| 41 | + </form> |
| 42 | + <?endif;?> |
41 | 43 | <? if($mode == LiveStreamLib::MODE_DEFAULT ): ?> |
42 | 44 | <hr> |
43 | 45 | <form class="default" action="<?= PluginEngine::getLink('LiveStreaming/player/toggle_countdown') ?>" method="post"> |
|
0 commit comments