31 Commits

Author SHA1 Message Date
Tetrakern
b5c9f1b716 Optimize chapter template
Well, micro-optimize anyway.
2024-05-17 17:10:24 +02:00
Tetrakern
c384de6e01 Reduce PHP/HTML mode-switch overhead
Probably impossible to notice, but still.
2024-05-17 12:29:52 +02:00
Tetrakern
2e25a6c7c0 Optimize templates
Reduce code and avoid some redundant calls of post_password_required().
2024-05-10 01:45:56 +02:00
Tetrakern
8ea32feec2 Add and use indexed chapter IDs to story data
This is in case the query is filtered and suddenly contains non-published chapters that would cause 404 if accessed.
2024-04-23 02:47:23 +02:00
Tetrakern
c9e8500d5a Update template formatting
Should be easier to read. No functional changes.
2024-04-14 12:57:59 +02:00
Tetrakern
6a278c671c Improve forced excerpts on protected stories and chapters 2024-04-09 21:04:31 +02:00
Tetrakern
a7b2459be5 Add option to show excerpt on protected posts 2024-04-06 17:30:59 +02:00
Tetrakern
491031fd29 Add data-nosnippet to chapter action rows 2024-03-27 18:43:51 +01:00
Tetrakern
aceeb11cd3 Add additional data-nosnippet attributes
What the heck is wrong with Google?
2024-03-09 00:39:11 +01:00
Tetrakern
e039c39f73 Account for missing parent story in global password note 2024-03-03 12:32:43 +01:00
Tetrakern
143340a4db Add [!global] render hint to story passwords
This will render the note on all associated chapters if they do not have a more specific note.
2024-03-03 12:26:10 +01:00
Tetrakern
fc7fc2ac2e Update safe title helper parameters
Added the $context parameter and $args, which now also covers $no_filters which hopefully nobody has used yet lol
2024-03-01 12:39:42 +01:00
Tetrakern
02e3a2e7b1 Refactor chapter formatting toggles 2024-01-31 14:41:09 +01:00
Tetrakern
3740947d8f Add meta cache for chapter index HTML
This was a potentially expensive query executed on each chapter page.
2024-01-27 20:43:20 +01:00
Tetrakern
73c366ee0d Add optional age confirmation modal 2024-01-20 14:41:33 +01:00
Tetrakern
f207720f52 Reduce unnecessary get_the_ID calls 2023-12-02 00:00:13 +01:00
Tetrakern
b65e8ccea1 Replace fictioneer_get_field with get_post_meta
This wrapper made sense at some point in the past, now it was just unnecessary overhead.
2023-11-30 16:03:53 +01:00
Tetrakern
c92f66da09 Improve handling of list titles 2023-10-08 15:28:23 +02:00
Tetrakern
db8f002fa1 Improve access gate to unpublished content 2023-08-31 17:30:24 +02:00
Tetrakern
044632a0c6 Improve chapter CSS selectors
I know it helps, but I lack a way to actually benchmark this, which is annoying.
2023-08-30 12:27:58 +02:00
Tetrakern
413e87a61e Properly gate unpublished posts
And associated chapters. I hope this is the last iteration.
2023-08-17 21:30:42 +02:00
Tetrakern
3377ed7c55 Restrict chapters of unpublished stories 2023-08-17 19:33:29 +02:00
Tetrakern
b4917ec34e Improve unpublished post access gate 2023-08-17 18:55:36 +02:00
Tetrakern
7785a31e1b Fix missing post ID 2023-08-17 18:14:50 +02:00
Tetrakern
ef00a51301 Account for unpublished story parent or chapter 2023-08-17 16:46:32 +02:00
Tetrakern
5deeb29991 Hide invisible posts in public caches 2023-08-17 16:38:22 +02:00
Tetrakern
ac507476cf Optionize comment count refresh for story data
This is an expensive query and hardly needed, but better leave it on by default for legacy reasons.
2023-08-05 18:31:39 +02:00
Tetrakern
8ce5507925 Move page assignment links to options table 2023-08-03 23:51:04 +02:00
Tetrakern
476495ac2d Improve observer CSS 2023-07-30 17:00:40 +02:00
Tetrakern
f003ffedf9 Add noindex to hidden chapters 2023-06-13 11:34:10 +02:00
Tetrakern
9136947e4c Clean history for public release 2023-01-21 01:31:34 +01:00