Skip to content

Commit e1c7118

Browse files
committed
move config
1 parent 278614e commit e1c7118

File tree

1 file changed

+77
-77
lines changed

1 file changed

+77
-77
lines changed

lib/configsetup.inc.php

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -370,83 +370,6 @@
370370
'current' => $config['theme']['current'] ?? '',
371371
],
372372
],
373-
'idle' => [
374-
'view' => 'basic',
375-
'platform' => 'all',
376-
'idle_enabled' => [
377-
'view' => 'basic',
378-
'type' => 'checkbox',
379-
'name' => 'idle[enabled]',
380-
'value' => $config['idle']['enabled'],
381-
],
382-
'idle_mode' => [
383-
'view' => 'basic',
384-
'type' => 'select',
385-
'name' => 'idle[mode]',
386-
'placeholder' => $defaultConfig['idle']['mode'],
387-
'data-theme-field' => 'true',
388-
'options' => [
389-
'image' => 'image',
390-
'video' => 'video',
391-
'folder' => 'folder',
392-
'gallery' => 'gallery',
393-
],
394-
'value' => $config['idle']['mode'],
395-
],
396-
'idle_image_source' => [
397-
'view' => 'basic',
398-
'type' => 'image',
399-
'name' => 'idle[image_source]',
400-
'data-theme-field' => 'true',
401-
'placeholder' => $defaultConfig['idle']['image_source'],
402-
'value' => htmlentities($config['idle']['image_source'] ?? ''),
403-
'paths' => [
404-
PathUtility::getAbsolutePath('private/screensavers'),
405-
],
406-
],
407-
'idle_video_source' => [
408-
'view' => 'basic',
409-
'type' => 'video',
410-
'name' => 'idle[video_source]',
411-
'data-theme-field' => 'true',
412-
'placeholder' => $defaultConfig['idle']['video_source'] ?? '',
413-
'value' => htmlentities($config['idle']['video_source'] ?? ''),
414-
'paths' => [
415-
PathUtility::getAbsolutePath('private/screensavers'),
416-
PathUtility::getAbsolutePath('private/videos'),
417-
PathUtility::getAbsolutePath('resources/videos'),
418-
],
419-
],
420-
'idle_gallery_text' => [
421-
'view' => 'basic',
422-
'type' => 'input',
423-
'name' => 'idle[gallery_text]',
424-
'placeholder' => $defaultConfig['idle']['gallery_text'],
425-
'value' => htmlentities($config['idle']['gallery_text'] ?? ''),
426-
],
427-
'idle_timeout_minutes' => [
428-
'view' => 'basic',
429-
'type' => 'number',
430-
'name' => 'idle[timeout_minutes]',
431-
'placeholder' => $defaultConfig['idle']['timeout_minutes'],
432-
'value' => $config['idle']['timeout_minutes'],
433-
'range_min' => 0,
434-
'range_max' => 120,
435-
'range_step' => 1,
436-
'unit' => 'min',
437-
],
438-
'idle_switch_minutes' => [
439-
'view' => 'basic',
440-
'type' => 'number',
441-
'name' => 'idle[switch_minutes]',
442-
'placeholder' => $defaultConfig['idle']['switch_minutes'],
443-
'value' => $config['idle']['switch_minutes'],
444-
'range_min' => 1,
445-
'range_max' => 120,
446-
'range_step' => 1,
447-
'unit' => 'min',
448-
],
449-
],
450373
'frontpage' => [
451374
'view' => 'basic',
452375
'ui_show_fork' => [
@@ -574,6 +497,83 @@
574497
'value' => $config['logo']['position'],
575498
],
576499
],
500+
'idle' => [
501+
'view' => 'basic',
502+
'platform' => 'all',
503+
'idle_enabled' => [
504+
'view' => 'basic',
505+
'type' => 'checkbox',
506+
'name' => 'idle[enabled]',
507+
'value' => $config['idle']['enabled'],
508+
],
509+
'idle_mode' => [
510+
'view' => 'basic',
511+
'type' => 'select',
512+
'name' => 'idle[mode]',
513+
'placeholder' => $defaultConfig['idle']['mode'],
514+
'data-theme-field' => 'true',
515+
'options' => [
516+
'image' => 'image',
517+
'video' => 'video',
518+
'folder' => 'folder',
519+
'gallery' => 'gallery',
520+
],
521+
'value' => $config['idle']['mode'],
522+
],
523+
'idle_image_source' => [
524+
'view' => 'basic',
525+
'type' => 'image',
526+
'name' => 'idle[image_source]',
527+
'data-theme-field' => 'true',
528+
'placeholder' => $defaultConfig['idle']['image_source'],
529+
'value' => htmlentities($config['idle']['image_source'] ?? ''),
530+
'paths' => [
531+
PathUtility::getAbsolutePath('private/screensavers'),
532+
],
533+
],
534+
'idle_video_source' => [
535+
'view' => 'basic',
536+
'type' => 'video',
537+
'name' => 'idle[video_source]',
538+
'data-theme-field' => 'true',
539+
'placeholder' => $defaultConfig['idle']['video_source'] ?? '',
540+
'value' => htmlentities($config['idle']['video_source'] ?? ''),
541+
'paths' => [
542+
PathUtility::getAbsolutePath('private/screensavers'),
543+
PathUtility::getAbsolutePath('private/videos'),
544+
PathUtility::getAbsolutePath('resources/videos'),
545+
],
546+
],
547+
'idle_gallery_text' => [
548+
'view' => 'basic',
549+
'type' => 'input',
550+
'name' => 'idle[gallery_text]',
551+
'placeholder' => $defaultConfig['idle']['gallery_text'],
552+
'value' => htmlentities($config['idle']['gallery_text'] ?? ''),
553+
],
554+
'idle_timeout_minutes' => [
555+
'view' => 'basic',
556+
'type' => 'number',
557+
'name' => 'idle[timeout_minutes]',
558+
'placeholder' => $defaultConfig['idle']['timeout_minutes'],
559+
'value' => $config['idle']['timeout_minutes'],
560+
'range_min' => 0,
561+
'range_max' => 120,
562+
'range_step' => 1,
563+
'unit' => 'min',
564+
],
565+
'idle_switch_minutes' => [
566+
'view' => 'basic',
567+
'type' => 'number',
568+
'name' => 'idle[switch_minutes]',
569+
'placeholder' => $defaultConfig['idle']['switch_minutes'],
570+
'value' => $config['idle']['switch_minutes'],
571+
'range_min' => 1,
572+
'range_max' => 120,
573+
'range_step' => 1,
574+
'unit' => 'min',
575+
],
576+
],
577577
'pictures' => [
578578
'view' => 'basic',
579579
'platform' => 'all',

0 commit comments

Comments
 (0)