settings_media.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php include ('header.php'); ?>
  2. <main id="main">
  3. <?php include dirname(__FILE__).('/widgets/settings_header.php'); ?>
  4. <div class="article_wrap">
  5. <aside class="left_column">
  6. <?php include dirname(__FILE__).('/widgets/side_current_user.php'); ?>
  7. <?php include dirname(__FILE__).('/widgets/side_footer.php'); ?>
  8. </aside>
  9. <article class="center_column">
  10. <header class="timeline_header">
  11. <ul class="header_items">
  12. <li class="item toots view"><?=_('Media settings')?></li>
  13. </ul>
  14. </header>
  15. <div class="timeline">
  16. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  17. <h3><?=_('Play animated GIFs')?></h3>
  18. </div>
  19. <div class="play_gif_wrap" style="float:left;width:50%">
  20. <div class="switch">
  21. <input type="checkbox" id="setting_play_gif">
  22. <div class="switch-btn">
  23. <span></span>
  24. </div>
  25. </div>
  26. </div>
  27. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  28. <h3><?=_('Enable video player')?></h3>
  29. </div>
  30. <div class="play_video_wrap" style="float:left;width:50%">
  31. <div class="switch">
  32. <input type="checkbox" id="setting_play_video">
  33. <div class="switch-btn">
  34. <span></span>
  35. </div>
  36. </div>
  37. </div>
  38. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  39. <h3><?=_('Enable audio player')?></h3>
  40. </div>
  41. <div class="play_audio_wrap" style="float:left;width:50%">
  42. <div class="switch">
  43. <input type="checkbox" id="setting_play_audio">
  44. <div class="switch-btn">
  45. <span></span>
  46. </div>
  47. </div>
  48. </div>
  49. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  50. <h3><?=_('Embed PeerTube videos')?></h3>
  51. </div>
  52. <div class="play_peertube_wrap" style="float:left;width:50%">
  53. <div class="switch">
  54. <input type="checkbox" id="setting_play_peertube">
  55. <div class="switch-btn">
  56. <span></span>
  57. </div>
  58. </div>
  59. </div>
  60. <?php if($config["Media"]["youplay"]) { ?>
  61. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  62. <h3><?=_('Embed YouTube using YouPlay')?></h3>
  63. </div>
  64. <div class="play_youplay_wrap" style="float:left;width:50%">
  65. <div class="switch">
  66. <input type="checkbox" id="setting_play_youplay">
  67. <div class="switch-btn">
  68. <span></span>
  69. </div>
  70. </div>
  71. </div>
  72. <?php } else { ?>
  73. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  74. <h3><?=_('Embed YouTube using Invidio.us')?></h3>
  75. </div>
  76. <div class="play_invidious_wrap" style="float:left;width:50%">
  77. <div class="switch">
  78. <input type="checkbox" id="setting_play_invidious">
  79. <div class="switch-btn">
  80. <span></span>
  81. </div>
  82. </div>
  83. </div>
  84. <?php } if($config["Media"]["vimeo"]) { ?>
  85. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  86. <h3><?=_('Embed Vimeo using YouPlay')?></h3>
  87. </div>
  88. <div class="play_vimeo_wrap" style="float:left;width:50%">
  89. <div class="switch">
  90. <input type="checkbox" id="setting_play_vimeo">
  91. <div class="switch-btn">
  92. <span></span>
  93. </div>
  94. </div>
  95. </div>
  96. <?php } ?>
  97. <span style="visibility:hidden">-</span>
  98. </div>
  99. </article>
  100. </div>
  101. </main>
  102. <script src="/assets/js/halcyon/halcyonSettings.js"></script>
  103. <?php include ('footer.php'); ?>