settings_general.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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"><?=_('General 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><?=_('Language')?></h3>
  18. </div>
  19. <div class="language_wrap" style="float:left;width:50%">
  20. <select name="language" class="selectbox">
  21. <?php
  22. $languages = scandir("locale");
  23. for($i=0;$i<count($languages);$i++) {
  24. if($languages[$i] != "." && $languages[$i] != "..") {
  25. $selected = "";
  26. if($languages[$i] == $locale) {
  27. $selected = " selected";
  28. }
  29. echo "<option value='".$languages[$i]."'".$selected.">"._('Language_'.$languages[$i])."</option>";
  30. }
  31. }
  32. ?>
  33. </select>
  34. </div>
  35. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  36. <h3><?=_('Default post privacy')?></h3>
  37. </div>
  38. <div class="post_privacy_wrap" style="float:left;width:50%;margin-top:8px;margin-bottom:-8px">
  39. <div class="radiobox">
  40. <input id="privacy-1" name="post_privacy" type="radio" value="public">
  41. <label for="privacy-1" class="radiotext"><?=_('Public')?></label>
  42. </div>
  43. <div class="radiobox">
  44. <input id="privacy-2" name="post_privacy" type="radio" value="unlisted">
  45. <label for="privacy-2" class="radiotext"><?=_('Unlisted')?></label>
  46. </div>
  47. <div class="radiobox">
  48. <input id="privacy-3" name="post_privacy" type="radio" value="private">
  49. <label for="privacy-3" class="radiotext"><?=_('Followers-only')?></label>
  50. </div>
  51. <div class="radiobox">
  52. <input id="privacy-4" name="post_privacy" type="radio" value="direct">
  53. <label for="privacy-4" class="radiotext"><?=_('Direct')?></label>
  54. </div>
  55. </div>
  56. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  57. <h3><?=_('Mark as NSFW by default')?></h3>
  58. </div>
  59. <div class="post_sensitive_wrap" style="float:left;width:50%">
  60. <div class="switch">
  61. <input type="checkbox" id="setting_post_sensitive">
  62. <div class="switch-btn">
  63. <span></span>
  64. </div>
  65. </div>
  66. </div>
  67. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  68. <h3><?=_('Autocomplete in compose field')?></h3>
  69. </div>
  70. <div class="compose_autocomplete_wrap" style="float:left;width:50%">
  71. <div class="switch">
  72. <input type="checkbox" id="setting_compose_autocomplete">
  73. <div class="switch-btn">
  74. <span></span>
  75. </div>
  76. </div>
  77. </div>
  78. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  79. <h3><?=_('Rewrite YouTube to Invidious at compose')?></h3>
  80. </div>
  81. <div class="rewrite_invidious_wrap" style="float:left;width:50%">
  82. <div class="switch" style="float:left">
  83. <input type="checkbox" id="setting_rewrite_invidious">
  84. <div class="switch-btn">
  85. <span></span>
  86. </div>
  87. </div>
  88. <a href="javascript:void(0)" id="setting_rewrite_invidious_reset" style="float:left;display:none">
  89. <i class="fa fa-2x fa-times" style="margin-top:8px"></i>
  90. </a>
  91. </div>
  92. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  93. <h3><?=_('Rewrite Twitter to Nitter at compose')?></h3>
  94. </div>
  95. <div class="rewrite_nitter_wrap" style="float:left;width:50%">
  96. <div class="switch" style="float:left">
  97. <input type="checkbox" id="setting_rewrite_nitter">
  98. <div class="switch-btn">
  99. <span></span>
  100. </div>
  101. </div>
  102. <a href="javascript:void(0)" id="setting_rewrite_nitter_reset" style="float:left;display:none">
  103. <i class="fa fa-2x fa-times" style="margin-top:8px"></i>
  104. </a>
  105. </div>
  106. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  107. <h3><?=_('Rewrite Instagram to Bibliogram at compose')?></h3>
  108. </div>
  109. <div class="rewrite_bibliogram_wrap" style="float:left;width:50%">
  110. <div class="switch" style="float:left">
  111. <input type="checkbox" id="setting_rewrite_bibliogram">
  112. <div class="switch-btn">
  113. <span></span>
  114. </div>
  115. </div>
  116. <a href="javascript:void(0)" id="setting_rewrite_bibliogram_reset" style="float:left;display:none">
  117. <i class="fa fa-2x fa-times" style="margin-top:8px"></i>
  118. </a>
  119. </div>
  120. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  121. <h3><?=_('Rewrite Facebook to NoFB at compose')?></h3>
  122. </div>
  123. <div class="rewrite_nofb_wrap" style="float:left;width:50%">
  124. <div class="switch" style="float:left">
  125. <input type="checkbox" id="setting_rewrite_nofb">
  126. <div class="switch-btn">
  127. <span></span>
  128. </div>
  129. </div>
  130. <a href="javascript:void(0)" id="setting_rewrite_nofb_reset" style="float:left;display:none">
  131. <i class="fa fa-2x fa-times" style="margin-top:8px"></i>
  132. </a>
  133. </div>
  134. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  135. <h3><?=_('Local instance')?></h3>
  136. </div>
  137. <div class="local_instance_wrap" style="float:left;width:50%">
  138. <input name="local_instance" placeholder="default" type="text" class="disallow_enter textfield" id="setting_local_instance">
  139. </div>
  140. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  141. <h3><?=_('Hashtag search filter')?></h3>
  142. </div>
  143. <div class="search_filter_wrap" style="float:left;width:50%;margin-top:8px;margin-bottom:-8px">
  144. <div class="radiobox">
  145. <input id="locinstance-1" name="search_filter" type="radio" value="all">
  146. <label for="locinstance-1" class="radiotext"><?=_('All instances')?></label>
  147. </div>
  148. <div class="radiobox">
  149. <input id="locinstance-2" name="search_filter" type="radio" value="local">
  150. <label for="locinstance-2" class="radiotext"><?=_('Local only')?></label>
  151. </div>
  152. </div>
  153. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  154. <h3><?=_('Who to follow')?></h3>
  155. </div>
  156. <div class="who_to_follow_wrap" style="float:left;width:50%">
  157. <div class="switch">
  158. <input type="checkbox" id="setting_who_to_follow">
  159. <div class="switch-btn">
  160. <span></span>
  161. </div>
  162. </div>
  163. </div>
  164. <span style="visibility:hidden">-</span>
  165. </div>
  166. </article>
  167. </div>
  168. </main>
  169. <script src="/assets/js/halcyon/halcyonSettings.js"></script>
  170. <?php include ('footer.php'); ?>