settings_appearance.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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">
  38. <input type="checkbox" id="setting_dark_theme" <?php if(array_key_exists('darktheme', $_COOKIE) && $_COOKIE['darktheme'] == "true") echo "checked='checked'" ?>>
  39. <div class="switch-btn">
  40. <span></span>
  41. </div>
  42. </div>
  43. </div>
  44. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  45. <h3><?=_('Enable link previews')?></h3>
  46. </div>
  47. <div class="link_previews_wrap" style="float:left;width:50%">
  48. <div class="switch">
  49. <input type="checkbox" id="setting_link_previews">
  50. <div class="switch-btn">
  51. <span></span>
  52. </div>
  53. </div>
  54. </div>
  55. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  56. <h3><?=_('Desktop notifications')?></h3>
  57. </div>
  58. <div class="desktop_notifications_wrap" style="float:left;width:50%">
  59. <div class="switch">
  60. <input type="checkbox" id="setting_desktop_notifications">
  61. <div class="switch-btn">
  62. <span></span>
  63. </div>
  64. </div>
  65. </div>
  66. <!--<div id="service_worker_box" style="display:none">
  67. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  68. <h3><?=_('Notifications when tab closed')?></h3>
  69. </div>
  70. <div class="service_worker_wrap" style="float:left;width:50%">
  71. <div class="switch">
  72. <input type="checkbox" id="setting_service_worker">
  73. <div class="switch-btn">
  74. <span></span>
  75. </div>
  76. </div>
  77. </div>
  78. </div>-->
  79. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  80. <h3><?=_('Show all CW content')?></h3>
  81. </div>
  82. <div class="show_content_warning_wrap" style="float:left;width:50%">
  83. <div class="switch">
  84. <input type="checkbox" id="setting_show_content_warning">
  85. <div class="switch-btn">
  86. <span></span>
  87. </div>
  88. </div>
  89. </div>
  90. <div style="float:left;width:50%;text-align:right;margin-top:16px">
  91. <h3><?=_('Show all NSFW content')?></h3>
  92. </div>
  93. <div class="show_nsfw_wrap" style="float:left;width:50%">
  94. <div class="switch">
  95. <input type="checkbox" id="setting_show_nsfw">
  96. <div class="switch-btn">
  97. <span></span>
  98. </div>
  99. </div>
  100. </div>
  101. <span style="visibility:hidden">-</span>
  102. </div>
  103. </article>
  104. </div>
  105. </main>
  106. <script src="/assets/js/halcyon/halcyonSettings.js"></script>
  107. <?php include ('footer.php'); ?>