Commit graph

21 commits

Author SHA1 Message Date
Mike Colagrosso
03ed3c2257 Add Ebook::DownloadUrl for web and feed downloads
This commit adds a rewrite rule for ebook downloads of the form:

```
/ebooks/some-author/some-book/downloads/some-filename.epub
```

to `www/ebooks/download.php`. That file handles the logic of whether to
show a thank you page before beginning the download.

Download URLs in RSS, Atom, and OPDS feeds follow the same pattern, but
they have a query string parameter `?source=feed` to always skip the
thank you page.
2025-04-25 14:31:44 -05:00
Mike Colagrosso
dab857d127 Cast WordCount to string to fix PHPStan error 2025-03-25 13:10:53 -05:00
Alex Cabal
ba22538659 Add new schema.org wordCount property to ebook view 2025-03-14 12:10:05 -05:00
Alex Cabal
124e8343fc Completely type hint template functions and switch to named arguments 2025-03-04 20:32:20 -06:00
Alex Cabal
bcba5c2192 Remove now-redundant PD placeholders code 2025-01-01 10:05:59 -06:00
Alex Cabal
b8def40795 Tweak semantics and contribute index page 2024-12-31 11:08:21 -06:00
Mike Colagrosso
c016547e2c Rename template to CollectionDescriptor 2024-12-28 14:18:08 -06:00
Mike Colagrosso
9652d63b12 Add Template::CollectionFormatted for common formatting 2024-12-28 14:18:08 -06:00
Alex Cabal
8e8cbb0c5e Move delete form and more multi select fixes 2024-12-19 14:40:38 -06:00
Alex Cabal
806939ca49 Replace Template::Emit...() functions with more generic function 2024-12-18 13:14:16 -06:00
Alex Cabal
97021ce26d Add blog post 2024-12-16 23:47:02 -06:00
Alex Cabal
5782d6ca7d Further refine projects system 2024-12-15 23:39:23 -06:00
Alex Cabal
c7a4e34e31 Add projects index page, and more detail on placeholder pages 2024-12-14 21:12:00 -06:00
Alex Cabal
adfe07aad9 Add beginning of a project management system to placeholders 2024-12-14 19:13:03 -06:00
Alex Cabal
1a742baa51 Add CanEditEbooks benefit and clean up some PHPStan errors 2024-12-14 11:50:16 -06:00
Mike Colagrosso
1ab95df084 Add placeholders for ebooks 2024-12-13 11:46:36 -06:00
Alex Cabal
b536ebdaee Add blog post for Public Domain Day 2025 2024-11-26 23:14:26 -06:00
Alex Cabal
e11f2ad6b1 Adjust nofollow attribute 2024-11-26 13:41:00 -06:00
Alex Cabal
3050ab7219 Use HTTP code enums instead of ints 2024-11-20 14:52:05 -06:00
Alex Cabal
d4c7703cf0 Restructure how incorrect ebook URLs are redirected 2024-11-11 13:59:45 -06:00
Alex Cabal
ec0b81817d Restructure some files to match new URL structure 2024-11-11 11:17:04 -06:00
Renamed from www/ebooks/ebook.php (Browse further)