Skip to content

Commit 3b4cd57

Browse files
committed
temporary removing livechat feature for studip 5.5 onwards
1 parent dac8452 commit 3b4cd57

2 files changed

Lines changed: 21 additions & 19 deletions

File tree

views/player/student.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<? foreach ($oc_players as $player_index => $player): ?>
1212
<section class="oc-player-section">
1313
<h3><?= htmlReady($player['room_name']) ?></h3>
14-
<?
14+
<?
1515
// Dynamically instantiating the player_url and plyer_index variables.
1616
$this->player_url = $player['url'];
1717
$this->player_index = $player_index;
@@ -22,10 +22,10 @@
2222
<?endif;?>
2323
<? endif; ?>
2424

25-
<? if (\Navigation::hasItem("/community/blubber") && $thread && $chat_active && $show_player): ?>
25+
<? if (StudipVersion::olderThan('5.5') && \Navigation::hasItem("/community/blubber") && $thread && $chat_active && $show_player): ?>
2626
<section class="blubber-section">
2727
<div class="blubber-container">
2828
<?= $this->render_partial("player/_livechat.php") ?>
2929
</div>
3030
</section>
31-
<? endif ?>
31+
<? endif ?>

views/player/teacher.php

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<?= $plugin->_('Welchen Livestream-Modus möchten Sie verwenden?') ?>
66
</p>
77
<form action="<?= PluginEngine::getLink('LiveStreaming/player/select_mode') ?>" method="post">
8-
<?= CSRFProtection::tokenTag() ?>
8+
<?= CSRFProtection::tokenTag() ?>
99
<input type="hidden" name="livestream-mode" value="<?=$mode?>">
1010
</form>
1111
<?endif;?>
@@ -23,21 +23,23 @@
2323
</div>
2424
<?endif;?>
2525
</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;?>
4143
<? if($mode == LiveStreamLib::MODE_DEFAULT ): ?>
4244
<hr>
4345
<form class="default" action="<?= PluginEngine::getLink('LiveStreaming/player/toggle_countdown') ?>" method="post">

0 commit comments

Comments
 (0)