reading.phtml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <?php
  2. declare(strict_types=1);
  3. /** @var FreshRSS_View $this */
  4. $this->partial('aside_configure');
  5. ?>
  6. <main class="post">
  7. <h1><?= _t('conf.reading') ?></h1>
  8. <form method="post" action="<?= _url('configure', 'reading') ?>" data-auto-leave-validation="1">
  9. <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
  10. <fieldset>
  11. <legend><?= _t('conf.reading.headline.view') ?></legend>
  12. <div class="form-group">
  13. <label class="group-name" for="view_mode"><?= _t('conf.reading.view.default') ?></label>
  14. <div class="group-controls">
  15. <select name="view_mode" id="view_mode">
  16. <?php
  17. /** @var FreshRSS_View $this */
  18. /** @var list<FreshRSS_ViewMode>|null $viewModes */
  19. $viewModes = isset($this->viewModes) && is_array($this->viewModes) ? $this->viewModes : null;
  20. if ($viewModes === null) {
  21. $viewModes = FreshRSS_ViewMode::getAllModes();
  22. }
  23. foreach ($viewModes as $mode):
  24. ?>
  25. <option value="<?= htmlspecialchars($mode->id(), ENT_COMPAT, 'UTF-8') ?>"<?= FreshRSS_Context::userConf()->view_mode === $mode->id() ? ' selected="selected"' : '' ?>>
  26. <?= htmlspecialchars($mode->name(), ENT_NOQUOTES, 'UTF-8') ?>
  27. </option>
  28. <?php endforeach; ?>
  29. </select>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="group-name" for="default_view"><?= _t('conf.reading.show') ?></label>
  34. <div class="group-controls">
  35. <select name="default_view" id="default_view">
  36. <option value="unread"<?= FreshRSS_Context::userConf()->default_view === 'unread' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.unread') ?></option>
  37. <option value="adaptive"<?= FreshRSS_Context::userConf()->default_view === 'adaptive' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.adaptive') ?></option>
  38. <option value="unread_or_favorite"<?= FreshRSS_Context::userConf()->default_view === 'unread_or_favorite' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.unread_or_favorite') ?></option>
  39. <option value="all"<?= FreshRSS_Context::userConf()->default_view === 'all' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.all_articles') ?></option>
  40. </select>
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="group-name" for="posts_per_page"><?= _t('conf.reading.articles_per_page') ?></label>
  45. <div class="group-controls">
  46. <input type="number" id="posts_per_page" name="posts_per_page" value="<?=
  47. FreshRSS_Context::userConf()->posts_per_page ?>" min="5" max="500" />
  48. <p class="help"><?= _i('help') ?> <?= _t('conf.reading.number_divided_when_reader') ?></p>
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <div class="group-controls">
  53. <label class="checkbox" for="auto_load_more">
  54. <input type="checkbox" name="auto_load_more" id="auto_load_more" value="1"<?=
  55. FreshRSS_Context::userConf()->auto_load_more ? ' checked="checked"' : '' ?> />
  56. <?= _t('conf.reading.auto_load_more') ?>
  57. <noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
  58. </label>
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label class="group-name" for="mark_read_button"><?= _t('conf.mark_read_button') ?></label>
  63. <div class="group-controls">
  64. <select name="mark_read_button" id="mark_read_button">
  65. <option value="big"<?= FreshRSS_Context::userConf()->mark_read_button === 'big' ? ' selected="selected"' : '' ?>><?= _t('conf.mark_read_button.big') ?></option>
  66. <option value="small"<?= FreshRSS_Context::userConf()->mark_read_button === 'small' ? ' selected="selected"' : '' ?>><?= _t('conf.mark_read_button.small') ?></option>
  67. <option value="none"<?= FreshRSS_Context::userConf()->mark_read_button === 'none' ? ' selected="selected"' : '' ?>><?= _t('conf.mark_read_button.none') ?></option>
  68. </select>
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <label class="group-name" for="sort_order"><?= _t('conf.reading.sort') ?></label>
  73. <div class="group-controls">
  74. <select name="sort_order" id="sort_order">
  75. <option value="DESC"<?= FreshRSS_Context::userConf()->sort_order === 'DESC' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.sort.newer_first') ?></option>
  76. <option value="ASC"<?= FreshRSS_Context::userConf()->sort_order === 'ASC' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.sort.older_first') ?></option>
  77. </select>
  78. </div>
  79. </div>
  80. </fieldset>
  81. <fieldset>
  82. <legend><?= _t('conf.reading.headline.categories') ?></legend>
  83. <div class="form-group">
  84. <label class="group-name" for="display_categories"><?= _t('conf.reading.display_categories_unfolded') ?></label>
  85. <div class="group-controls">
  86. <select name="display_categories" id="display_categories">
  87. <option value="active"<?= FreshRSS_Context::userConf()->display_categories === 'active' ? ' selected="selected"' : '' ?>><?=
  88. _t('conf.reading.show.active_category') ?></option>
  89. <option value="remember"<?= FreshRSS_Context::userConf()->display_categories === 'remember' ? ' selected="selected"' : '' ?>><?=
  90. _t('conf.reading.show.remember_categories') ?></option>
  91. <option value="all"<?= FreshRSS_Context::userConf()->display_categories === 'all' ? ' selected="selected"' : '' ?>><?=
  92. _t('conf.reading.show.all_categories') ?></option>
  93. <option value="none"<?= FreshRSS_Context::userConf()->display_categories === 'none' ? ' selected="selected"' : '' ?>><?=
  94. _t('conf.reading.show.no_category') ?></option>
  95. </select>
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <div class="group-controls">
  100. <label class="checkbox" for="show_fav_unread">
  101. <input type="checkbox" name="show_fav_unread" id="show_fav_unread" value="1"<?=
  102. FreshRSS_Context::userConf()->show_fav_unread ? ' checked="checked"' : '' ?> />
  103. <?= _t('conf.reading.always_show_favorites') ?>
  104. <p class="help"><?= _i('help') ?> <?= _t('conf.reading.show_fav_unread_help') ?></p>
  105. </label>
  106. </div>
  107. </div>
  108. <div class="form-group">
  109. <div class="group-controls">
  110. <label class="checkbox" for="hide_read_feeds">
  111. <input type="checkbox" name="hide_read_feeds" id="hide_read_feeds" value="1"<?=
  112. FreshRSS_Context::userConf()->hide_read_feeds ? ' checked="checked"' : '' ?> />
  113. <?= _t('conf.reading.hide_read_feeds') ?>
  114. </label>
  115. </div>
  116. </div>
  117. </fieldset>
  118. <fieldset>
  119. <legend><?= _t('conf.reading.headline.articles_header_footer') ?></legend>
  120. <div class="form-group">
  121. <label class="group-name" for="show_feed_name"><?= _t('conf.reading.article.feed_title') ?></label>
  122. <div class="group-controls">
  123. <select name="show_feed_name" id="show_feed_name">
  124. <option value="0"<?= FreshRSS_Context::userConf()->show_feed_name === '0' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.feed_name.none') ?></option>
  125. <option value="t"<?= FreshRSS_Context::userConf()->show_feed_name === 't' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.feed_name.above_title') ?></option>
  126. <option value="a"<?= FreshRSS_Context::userConf()->show_feed_name === 'a' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.feed_name.with_authors') ?></option>
  127. </select>
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <label class="group-name" for="show_author_date"><?= _t('conf.reading.article.authors_date') ?></label>
  132. <div class="group-controls">
  133. <select name="show_author_date" id="show_author_date">
  134. <option value="0" <?= FreshRSS_Context::userConf()->show_author_date === '0' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.authors_date.none') ?></option>
  135. <option value="h" <?= FreshRSS_Context::userConf()->show_author_date === 'h' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.authors_date.header') ?></option>
  136. <option value="f" <?= FreshRSS_Context::userConf()->show_author_date === 'f' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.authors_date.footer') ?></option>
  137. <option value="b" <?= FreshRSS_Context::userConf()->show_author_date === 'b' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.authors_date.both') ?></option>
  138. </select>
  139. </div>
  140. </div>
  141. <div class="form-group">
  142. <label class="group-name" for="show_article_icons"><?= _t('conf.reading.article.icons') ?></label>
  143. <div class="group-controls">
  144. <select name="show_article_icons" id="show_article_icons">
  145. <option value="t" <?= FreshRSS_Context::userConf()->show_article_icons === 't' ? ' selected="selected"' : '' ?> data-input-visible="true"><?= _t('conf.reading.article.icons.above_title') ?></option>
  146. <option value="a" <?= FreshRSS_Context::userConf()->show_article_icons === 'a' ? ' selected="selected"' : '' ?> data-input-visible="true"><?= _t('conf.reading.article.icons.with_authors') ?></option>
  147. </select>
  148. </div>
  149. </div>
  150. <div class="form-group">
  151. <label class="group-name" for="show_tags"><?= _t('conf.reading.article.tags') ?></label>
  152. <div class="group-controls">
  153. <select class="select-input-changer" name="show_tags" id="show_tags" data-name="show_tags_max">
  154. <option value="0" <?= FreshRSS_Context::userConf()->show_tags === '0' ? ' selected="selected"' : '' ?> data-input-visible="false"><?= _t('conf.reading.article.tags.none') ?></option>
  155. <option value="h" <?= FreshRSS_Context::userConf()->show_tags === 'h' ? ' selected="selected"' : '' ?> data-input-visible="true"><?= _t('conf.reading.article.tags.header') ?></option>
  156. <option value="f" <?= FreshRSS_Context::userConf()->show_tags === 'f' ? ' selected="selected"' : '' ?> data-input-visible="true"><?= _t('conf.reading.article.tags.footer') ?></option>
  157. <option value="b" <?= FreshRSS_Context::userConf()->show_tags === 'b' ? ' selected="selected"' : '' ?> data-input-visible="true"><?= _t('conf.reading.article.tags.both') ?></option>
  158. </select>
  159. <noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
  160. </div>
  161. </div>
  162. <div class="form-group" id="show_tags_max-block">
  163. <label class="group-name" for="show_tags_max"><?= _t('conf.reading.article.tags_max') ?></label>
  164. <div class="group-controls">
  165. <input type="number" id="show_tags_max" name="show_tags_max" value="<?= FreshRSS_Context::userConf()->show_tags_max ?>" min="0" data-number="2" />
  166. <p class="help"><?= _i('help') ?> <?= _t('conf.reading.article.tags_max.help') ?></p>
  167. </div>
  168. </div>
  169. </fieldset>
  170. <fieldset>
  171. <legend><?= _t('conf.reading.headline.articles') ?></legend>
  172. <div class="form-group">
  173. <div class="group-controls">
  174. <label class="checkbox" for="display_posts">
  175. <input type="checkbox" name="display_posts" id="display_posts" value="1"<?=
  176. FreshRSS_Context::userConf()->display_posts ? ' checked="checked"' : '' ?> />
  177. <?= _t('conf.reading.display_articles_unfolded') ?>
  178. <noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
  179. </label>
  180. </div>
  181. </div>
  182. <div class="form-group">
  183. <div class="group-controls">
  184. <label class="checkbox" for="sticky_post">
  185. <input type="checkbox" name="sticky_post" id="sticky_post" value="1"<?=
  186. FreshRSS_Context::userConf()->sticky_post ? ' checked="checked"' : '' ?> />
  187. <?= _t('conf.reading.sticky_post') ?>
  188. <noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
  189. </label>
  190. </div>
  191. </div>
  192. <div class="form-group">
  193. <div class="group-controls">
  194. <label class="checkbox" for="sides_close_article">
  195. <input type="checkbox" name="sides_close_article" id="sides_close_article" value="1"<?=
  196. FreshRSS_Context::userConf()->sides_close_article ? ' checked="checked"' : '' ?> />
  197. <?= _t('conf.reading.sides_close_article') ?>
  198. <noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
  199. </label>
  200. </div>
  201. </div>
  202. </fieldset>
  203. <fieldset>
  204. <legend><?= _t('conf.reading.headline.mark_as_read') ?></legend>
  205. <div class="form-group">
  206. <div class="group-controls">
  207. <label class="checkbox" for="auto_remove_article">
  208. <input type="checkbox" name="auto_remove_article" id="auto_remove_article" value="1"<?=
  209. FreshRSS_Context::userConf()->auto_remove_article ? ' checked="checked"' : '' ?> />
  210. <?= _t('conf.reading.auto_remove_article') ?>
  211. <noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
  212. </label>
  213. </div>
  214. </div>
  215. <div class="form-group">
  216. <div class="group-controls">
  217. <label class="checkbox" for="reading_confirm">
  218. <input type="checkbox" name="reading_confirm" id="reading_confirm" value="1"<?=
  219. FreshRSS_Context::userConf()->reading_confirm ? ' checked="checked"' : '' ?> />
  220. <?= _t('conf.reading.confirm_enabled') ?>
  221. <noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
  222. </label>
  223. </div>
  224. </div>
  225. <div class="form-group">
  226. <label class="group-name" for="onread_jump_next"><?= _t('conf.reading.after_onread') ?></label>
  227. <div class="group-controls">
  228. <label class="checkbox" for="onread_jump_next">
  229. <input type="checkbox" name="onread_jump_next" id="onread_jump_next" value="1"<?=
  230. FreshRSS_Context::userConf()->onread_jump_next ? ' checked="checked"' : '' ?> />
  231. <?= _t('conf.reading.jump_next') ?>
  232. </label>
  233. </div>
  234. </div>
  235. <div class="form-group">
  236. <label class="group-name" for="check_open_article"><?= _t('conf.reading.read.when') ?></label>
  237. <div class="group-controls">
  238. <label class="checkbox" for="check_open_article">
  239. <input type="checkbox" name="mark_open_article" id="check_open_article" value="1"<?=
  240. FreshRSS_Context::userConf()->mark_when['article'] ? ' checked="checked"' : '' ?> />
  241. <?= _t('conf.reading.read.article_viewed') ?>
  242. </label>
  243. </div>
  244. </div>
  245. <div class="form-group">
  246. <label class="group-name" for="check_open_site"><?= _t('conf.reading.read.when') ?></label>
  247. <div class="group-controls">
  248. <label class="checkbox" for="check_open_site">
  249. <input type="checkbox" name="mark_open_site" id="check_open_site" value="1"<?=
  250. FreshRSS_Context::userConf()->mark_when['site'] ? ' checked="checked"' : '' ?> />
  251. <?= _t('conf.reading.read.article_open_on_website') ?>
  252. </label>
  253. </div>
  254. </div>
  255. <div class="form-group">
  256. <label class="group-name" for="check_scroll"><?= _t('conf.reading.read.when') ?></label>
  257. <div class="group-controls">
  258. <label class="checkbox" for="check_scroll">
  259. <input type="checkbox" name="mark_scroll" id="check_scroll" value="1"<?=
  260. FreshRSS_Context::userConf()->mark_when['scroll'] ? ' checked="checked"' : '' ?> />
  261. <?= _t('conf.reading.read.scroll') ?>
  262. </label>
  263. </div>
  264. </div>
  265. <div class="form-group">
  266. <label class="group-name" for="check_focus"><?= _t('conf.reading.read.when') ?></label>
  267. <div class="group-controls">
  268. <label class="checkbox" for="check_focus">
  269. <input type="checkbox" name="mark_focus" id="check_focus" value="1"<?=
  270. FreshRSS_Context::userConf()->mark_when['focus'] ? ' checked="checked"' : '' ?> />
  271. <?= _t('conf.reading.read.focus') ?>
  272. </label>
  273. </div>
  274. </div>
  275. </fieldset>
  276. <fieldset>
  277. <legend><?= _t('sub.feed.filteractions') ?></legend>
  278. <div class="form-group">
  279. <div class="group-controls">
  280. <label class="checkbox" for="mark_updated_article_unread">
  281. <input type="checkbox" name="mark_updated_article_unread" id="mark_updated_article_unread" value="1"<?=
  282. FreshRSS_Context::userConf()->mark_updated_article_unread ? ' checked="checked"' : '' ?> />
  283. <?= _t('conf.reading.mark_updated_article_unread') ?>
  284. </label>
  285. </div>
  286. </div>
  287. <div class="form-group">
  288. <label class="group-name" for="enable_read_when_same_title_in_feed"><?= _t('conf.reading.read.when') ?></label>
  289. <div class="group-controls">
  290. <label class="checkbox" for="enable_read_when_same_title_in_feed">
  291. <input type="checkbox" name="enable_read_when_same_title_in_feed" id="enable_read_when_same_title_in_feed" value="1"<?=
  292. empty(FreshRSS_Context::userConf()->mark_when['same_title_in_feed']) ? '' : ' checked="checked"' ?> />
  293. <?= _t('conf.reading.read.when_same_title_in_feed') ?>
  294. <?php $read_when_same_title_in_feed = empty(FreshRSS_Context::userConf()->mark_when['same_title_in_feed']) ? 25 : FreshRSS_Context::userConf()->mark_when['same_title_in_feed']; ?>
  295. <input type="number" id="read_when_same_title_in_feed" name="read_when_same_title_in_feed" min="0"
  296. value="<?= $read_when_same_title_in_feed ?>" />
  297. </label>
  298. </div>
  299. </div>
  300. <div class="form-group">
  301. <label class="group-name" for="mark_upon_reception"><?= _t('conf.reading.read.when') ?></label>
  302. <div class="group-controls">
  303. <label class="checkbox" for="mark_upon_reception">
  304. <input type="checkbox" name="mark_upon_reception" id="mark_upon_reception" value="1"<?=
  305. FreshRSS_Context::userConf()->mark_when['reception'] ? ' checked="checked"' : '' ?> />
  306. <?= _t('conf.reading.read.upon_reception') ?>
  307. </label>
  308. </div>
  309. </div>
  310. <div class="form-group">
  311. <label class="group-name" for="read_upon_gone"><?= _t('conf.reading.read.when') ?></label>
  312. <div class="group-controls">
  313. <label class="checkbox" for="read_upon_gone">
  314. <input type="checkbox" name="read_upon_gone" id="read_upon_gone" value="1"<?=
  315. FreshRSS_Context::userConf()->mark_when['gone'] ? ' checked="checked"' : '' ?> />
  316. <?= _t('conf.reading.read.upon_gone') ?>
  317. </label>
  318. </div>
  319. </div>
  320. <div class="form-group">
  321. <label class="group-name" for="filteractions_read"><?= _t('conf.reading.read.when') ?></label>
  322. <div class="group-controls">
  323. <textarea name="filteractions_read" id="filteractions_read" class="w100"><?php
  324. foreach (FreshRSS_Context::userConf()->filtersAction('read') as $filterRead) {
  325. echo htmlspecialchars($filterRead->toString(expandUserQueries: false), ENT_NOQUOTES, 'UTF-8'), PHP_EOL;
  326. }
  327. ?></textarea>
  328. <p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>
  329. <p>
  330. <button class="btn" formaction="<?= _url('configure', 'viewFilter', 'filters_name', 'filteractions_read') ?>" formtarget="_blank">
  331. <?= _t('sub.feed.filteractions.view_filter') ?>
  332. </button>
  333. </p>
  334. </div>
  335. </div>
  336. <div class="form-group">
  337. <label class="group-name" for="filteractions_star"><?= _t('conf.reading.star.when') ?></label>
  338. <div class="group-controls">
  339. <textarea name="filteractions_star" id="filteractions_star" class="w100"><?php
  340. foreach (FreshRSS_Context::userConf()->filtersAction('star') as $filterStar) {
  341. echo htmlspecialchars($filterStar->toString(expandUserQueries: false), ENT_NOQUOTES, 'UTF-8'), PHP_EOL;
  342. }
  343. ?></textarea>
  344. <p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>
  345. <p>
  346. <button class="btn" formaction="<?= _url('configure', 'viewFilter', 'filters_name', 'filteractions_star') ?>" formtarget="_blank">
  347. <?= _t('sub.feed.filteractions.view_filter') ?>
  348. </button>
  349. </p>
  350. </div>
  351. </div>
  352. <div class="form-group">
  353. <div class="group-controls">
  354. <label class="checkbox" for="keep_max_n_unread">
  355. <input type="checkbox" name="enable_keep_max_n_unread" id="enable_keep_max_n_unread" value="1"<?=
  356. empty(FreshRSS_Context::userConf()->mark_when['max_n_unread']) ? '' : ' checked="checked"' ?> />
  357. <?= _t('conf.reading.read.keep_max_n_unread') ?>
  358. <?php $keep_max_n_unread = empty(FreshRSS_Context::userConf()->mark_when['max_n_unread']) ? 1000 : FreshRSS_Context::userConf()->mark_when['max_n_unread']; ?>
  359. <input type="number" id="keep_max_n_unread" name="keep_max_n_unread" min="0" value="<?= $keep_max_n_unread ?>" />
  360. </label>
  361. </div>
  362. </div>
  363. </fieldset>
  364. <fieldset>
  365. <legend><?= _t('conf.reading.headline.misc') ?></legend>
  366. <div class="form-group">
  367. <div class="group-controls">
  368. <label class="checkbox" for="lazyload">
  369. <input type="checkbox" name="lazyload" id="lazyload" value="1"<?=
  370. FreshRSS_Context::userConf()->lazyload ? ' checked="checked"' : '' ?> />
  371. <?= _t('conf.reading.img_with_lazyload') ?>
  372. <noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
  373. </label>
  374. </div>
  375. </div>
  376. </fieldset>
  377. <div class="form-group form-actions">
  378. <div class="group-controls">
  379. <button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button>
  380. <button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
  381. </div>
  382. </div>
  383. </form>
  384. </main>
  385. <script src="../scripts/config.js?<?= @filemtime(PUBLIC_PATH . '/scripts/config.js') ?>"></script>