settings_general.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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><?=_('Local instance')?></h3>
  80. </div>
  81. <div class="local_instance_wrap" style="float:left;width:50%">
  82. <input name="local_instance" placeholder="default" type="text" class="disallow_enter textfield" id="setting_local_instance">
  83. </div>
  84. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  85. <h3><?=_('Hashtag search filter')?></h3>
  86. </div>
  87. <div class="search_filter_wrap" style="float:left;width:50%;margin-top:8px;margin-bottom:-8px">
  88. <div class="radiobox">
  89. <input id="locinstance-1" name="search_filter" type="radio" value="all">
  90. <label for="locinstance-1" class="radiotext"><?=_('All instances')?></label>
  91. </div>
  92. <div class="radiobox">
  93. <input id="locinstance-2" name="search_filter" type="radio" value="local">
  94. <label for="locinstance-2" class="radiotext"><?=_('Local only')?></label>
  95. </div>
  96. </div>
  97. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  98. <h3><?=_('Who to follow')?></h3>
  99. </div>
  100. <div class="who_to_follow_wrap" style="float:left;width:50%">
  101. <div class="switch">
  102. <input type="checkbox" id="setting_who_to_follow">
  103. <div class="switch-btn">
  104. <span></span>
  105. </div>
  106. </div>
  107. </div>
  108. <span style="visibility:hidden">-</span>
  109. </div>
  110. </article>
  111. </div>
  112. </main>
  113. <script src="/assets/js/halcyon/halcyonSettings.js"></script>
  114. <?php include ('footer.php'); ?>