Make the comment rotation interval configurable
Scale slides get the setting comment_interval (seconds per comment, one of Slide::COMMENT_INTERVALS, default 8). The presenter state carries it as results.commentInterval and the rotating comments use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cfb445123e
commit
2301f91457
7 files changed
+66
-5
No files matched your search
@@ -159,6 +159,10 @@ class SlidesTable extends Table
|
||||
$settings['private'] = filter_var($input['private'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$settings['comments'] = filter_var($input['comments'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$settings['comment_ratings'] = filter_var($input['comment_ratings'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$interval = (int)($input['comment_interval'] ?? $settings['comment_interval']);
|
||||
if (in_array($interval, Slide::COMMENT_INTERVALS, true)) {
|
||||
$settings['comment_interval'] = $interval;
|
||||
}
|
||||
break;
|
||||
case Slide::TYPE_QUIZ:
|
||||
$limit = (int)($input['time_limit'] ?? $settings['time_limit']);
|
||||
|
||||
Reference in new issue
Block a user