settings_media.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  98. <h3><?=_('Redirect YouTube to Invidious')?></h3>
  99. </div>
  100. <div class="redirect_invidious_wrap" style="float:left;width:50%">
  101. <div class="switch" style="float:left">
  102. <input type="checkbox" id="setting_redirect_invidious">
  103. <div class="switch-btn">
  104. <span></span>
  105. </div>
  106. </div>
  107. <a href="javascript:void(0)" id="setting_redirect_invidious_reset" style="float:left;display:none">
  108. <i class="fa fa-2x fa-times" style="margin-top:8px"></i>
  109. </a>
  110. </div>
  111. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  112. <h3><?=_('Redirect Twitter to Nitter')?></h3>
  113. </div>
  114. <div class="redirect_nitter_wrap" style="float:left;width:50%">
  115. <div class="switch" style="float:left">
  116. <input type="checkbox" id="setting_redirect_nitter">
  117. <div class="switch-btn">
  118. <span></span>
  119. </div>
  120. </div>
  121. <a href="javascript:void(0)" id="setting_redirect_nitter_reset" style="float:left;display:none">
  122. <i class="fa fa-2x fa-times" style="margin-top:8px"></i>
  123. </a>
  124. </div>
  125. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  126. <h3><?=_('Redirect Instagram to Bibliogram')?></h3>
  127. </div>
  128. <div class="redirect_bibliogram_wrap" style="float:left;width:50%">
  129. <div class="switch" style="float:left">
  130. <input type="checkbox" id="setting_redirect_bibliogram">
  131. <div class="switch-btn">
  132. <span></span>
  133. </div>
  134. </div>
  135. <a href="javascript:void(0)" id="setting_redirect_bibliogram_reset" style="float:left;display:none">
  136. <i class="fa fa-2x fa-times" style="margin-top:8px"></i>
  137. </a>
  138. </div>
  139. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  140. <h3><?=_('Redirect Facebook to NoFB')?></h3>
  141. </div>
  142. <div class="redirect_nofb_wrap" style="float:left;width:50%">
  143. <div class="switch" style="float:left">
  144. <input type="checkbox" id="setting_redirect_nofb">
  145. <div class="switch-btn">
  146. <span></span>
  147. </div>
  148. </div>
  149. <a href="javascript:void(0)" id="setting_redirect_nofb_reset" style="float:left;display:none">
  150. <i class="fa fa-2x fa-times" style="margin-top:8px"></i>
  151. </a>
  152. </div>
  153. <span style="visibility:hidden">-</span>
  154. </div>
  155. </article>
  156. </div>
  157. </main>
  158. <script src="/assets/js/halcyon/halcyonSettings.js"></script>
  159. <?php include ('footer.php'); ?>