settings_appearance.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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"><?=_('Appearance 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><?=_('New posts streaming')?></h3>
  18. </div>
  19. <div class="post_streaming_wrap" style="float:left;width:50%;margin-top:8px;margin-bottom:-8px">
  20. <div class="radiobox">
  21. <input id="streaming-1" name="post_streaming" type="radio" value="auto">
  22. <label for="streaming-1" class="radiotext"><?=_('Auto update')?></label>
  23. </div>
  24. <div class="radiobox">
  25. <input id="streaming-2" name="post_streaming" type="radio" value="manual">
  26. <label for="streaming-2" class="radiotext"><?=_('Manual update')?></label>
  27. </div>
  28. <div class="radiobox">
  29. <input id="streaming-3" name="post_streaming" type="radio" value="ontop">
  30. <label for="streaming-3" class="radiotext"><?=_('Only on top')?></label>
  31. </div>
  32. </div>
  33. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  34. <h3><?=_('Enable dark theme')?></h3>
  35. </div>
  36. <div class="dark_theme_wrap" style="float:left;width:50%">
  37. <div class="switch" style="float:left">
  38. <input type="checkbox" id="setting_dark_theme" <?php if(array_key_exists('darktheme',$_COOKIE)) {if($_COOKIE['darktheme'] == "true") echo "checked='checked'"; else if($_COOKIE['darktheme'] == "unset") echo "default='default'";} ?>>
  39. <div class="switch-btn">
  40. <span></span>
  41. </div>
  42. </div>
  43. <a href="javascript:void(0)" id="setting_dark_theme_reset" style="float:left">
  44. <i class="fa fa-2x fa-times" style="margin-top:8px"></i>
  45. </a>
  46. </div>
  47. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  48. <h3><?=_('Enable link previews')?></h3>
  49. </div>
  50. <div class="link_previews_wrap" style="float:left;width:50%">
  51. <div class="switch">
  52. <input type="checkbox" id="setting_link_previews">
  53. <div class="switch-btn">
  54. <span></span>
  55. </div>
  56. </div>
  57. </div>
  58. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  59. <h3><?=_('Desktop notifications')?></h3>
  60. </div>
  61. <div class="desktop_notifications_wrap" style="float:left;width:50%">
  62. <div class="switch">
  63. <input type="checkbox" id="setting_desktop_notifications">
  64. <div class="switch-btn">
  65. <span></span>
  66. </div>
  67. </div>
  68. </div>
  69. <!--<div id="service_worker_box" style="display:none">
  70. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  71. <h3><?=_('Notifications when tab closed')?></h3>
  72. </div>
  73. <div class="service_worker_wrap" style="float:left;width:50%">
  74. <div class="switch">
  75. <input type="checkbox" id="setting_service_worker">
  76. <div class="switch-btn">
  77. <span></span>
  78. </div>
  79. </div>
  80. </div>
  81. </div>-->
  82. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  83. <h3><?=_('Show all CW content')?></h3>
  84. </div>
  85. <div class="show_content_warning_wrap" style="float:left;width:50%">
  86. <div class="switch">
  87. <input type="checkbox" id="setting_show_content_warning">
  88. <div class="switch-btn">
  89. <span></span>
  90. </div>
  91. </div>
  92. </div>
  93. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  94. <h3><?=_('Show all NSFW content')?></h3>
  95. </div>
  96. <div class="show_nsfw_wrap" style="float:left;width:50%">
  97. <div class="switch">
  98. <input type="checkbox" id="setting_show_nsfw">
  99. <div class="switch-btn">
  100. <span></span>
  101. </div>
  102. </div>
  103. </div>
  104. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  105. <h3><?=_('Show pictures in full height')?></h3>
  106. </div>
  107. <div class="full_height_wrap" style="float:left;width:50%">
  108. <div class="switch">
  109. <input type="checkbox" id="setting_full_height">
  110. <div class="switch-btn">
  111. <span></span>
  112. </div>
  113. </div>
  114. </div>
  115. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  116. <h3><?=_('Show threads in thread view in timeline')?></h3>
  117. </div>
  118. <div class="thread_view_wrap" style="float:left;width:50%">
  119. <div class="switch">
  120. <input type="checkbox" id="setting_thread_view">
  121. <div class="switch-btn">
  122. <span></span>
  123. </div>
  124. </div>
  125. </div>
  126. <span style="visibility:hidden">-</span>
  127. </div>
  128. </article>
  129. </div>
  130. </main>
  131. <script src="/assets/js/halcyon/halcyonSettings.js"></script>
  132. <?php include ('footer.php'); ?>