1089 Commits

Author SHA1 Message Date
Tetrakern
f39a259516 Spring cleaning
Renamed and reordered things for more clarity and efficiency.
2024-01-29 17:08:19 +01:00
Tetrakern
d6b78ebc21 Improve chapter list shortcode
Avoid creating HTML that is not used.
2024-01-29 14:32:25 +01:00
Tetrakern
2a6cabffc6 Add Transient caching to statistics for stories 2024-01-29 13:38:19 +01:00
Tetrakern
b612184729 Count story words for author statistics
And some cleanup.
2024-01-29 13:19:10 +01:00
Tetrakern
f7e25e5008 Change constant for post__(not)_in arguments 2024-01-29 00:00:44 +01:00
Tetrakern
02168bfec1 Make meta query options more convenient
They now execute all necessary follow-up actions on their own.
2024-01-28 23:47:48 +01:00
Tetrakern
78dc426916 Update documentation 2024-01-28 20:15:11 +01:00
Tetrakern
e159b952f3 Add options for the extended meta queries
I think this should be easier to reach.
2024-01-28 19:55:54 +01:00
Tetrakern
a35ebe7900 Add constant to toggle extended meta queries 2024-01-28 19:27:56 +01:00
Tetrakern
7d8de5260c Move function to append meta fields into utility 2024-01-28 15:31:16 +01:00
Tetrakern
ec5e40e7e1 Fix typo 2024-01-28 00:55:23 +01:00
Tetrakern
8f16b4a905 Pass type from shortcode to small cards 2024-01-28 00:16:06 +01:00
Tetrakern
995fa50b11 Fix tab sizes in files
How did this even happen?
2024-01-27 21:00:00 +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
dfcd5962b5 "Add Chapter" adminbar link with pre-selected story
On story pages and edit screen where you are the author, the chapter story select field will be pre-selected based on the story_id GET param -- provided the ID is an available option.
2024-01-27 13:46:03 +01:00
Tetrakern
5f8cf18064 Simplify author statistics meta cache
It's now refreshed after one hour, which is perfectly reasonable.
2024-01-27 00:49:01 +01:00
Tetrakern
844b4e0ca0 Rename argument for more clarity 2024-01-27 00:30:40 +01:00
Tetrakern
2a0d87d65f Fix story comments broken by last commit 2024-01-26 23:52:16 +01:00
Tetrakern
2065c72815 Fix story data meta cache 2024-01-26 23:30:58 +01:00
Tetrakern
b1d2030621 Cache collection statistics 2024-01-26 23:01:20 +01:00
Tetrakern
365496c807 Remove problematic commit message
Revert revert!
2024-01-26 17:47:24 +01:00
Tetrakern
e00787589d Revert "Unify since version number format"
This reverts commit 8c4b44e41db8454af65ce4a909e0cb12db8828f8.
2024-01-26 17:45:53 +01:00
Tetrakern
88862fd389 Sort chapter story select alphabetically 2024-01-26 16:42:43 +01:00
Tetrakern
89855cca3b Update comment in function 2024-01-26 16:23:48 +01:00
Tetrakern
999f30f82c Improve function to get story chapter posts
Added a switch for smaller ID arrays (< 50) to use post__in instead of a meta query, which should be faster. 50 is a pretty save value... I have been told.
2024-01-26 16:22:07 +01:00
Tetrakern
8c4b44e41d Unify @since version number format
Yes, it bothered me.
2024-01-26 15:51:11 +01:00
Tetrakern
0bd8144e0c Add no_found_rows to query args
Collection statistics do no longer need that.
2024-01-26 15:42:06 +01:00
Tetrakern
a3dbcccc73 Add utility function for chapter list posts 2024-01-26 15:00:53 +01:00
Tetrakern
f85840702d Add utility function for collection statistics 2024-01-26 14:40:56 +01:00
Tetrakern
b6aa9ff83c Add missing container inline-size properties 2024-01-26 14:09:24 +01:00
Tetrakern
3b67407678 Rename function to fictioneer_get_story_chapter_ids
Because this is what it actually returns.
2024-01-26 00:24:31 +01:00
Tetrakern
3b69587864 Update documentation 2024-01-23 17:37:08 +01:00
Tetrakern
2b9e5e2c93 Add overlay nav layout option 2024-01-23 14:52:56 +01:00
Tetrakern
1612f6cd69 Add constant for chapter icon examples 2024-01-23 11:30:59 +01:00
Tetrakern
b314c109cd Fix pre-collapsed groups hiding lists without groups
Whelp.
2024-01-23 09:25:07 +01:00
Tetrakern
a0520afdd6 Add catch all for outdated browsers 2024-01-22 16:29:25 +01:00
Tetrakern
1bb0c541d5 Add browser notes for outdated... browsers
I can understand not updating your browser for several months. Sometimes, you just have too many tabs open and it would be a real inconvenience. BUT YEARS?!
2024-01-22 16:19:10 +01:00
Tetrakern
992f188bb5 Add and apply CSS utility class for inline-size 2024-01-21 22:58:26 +01:00
Tetrakern
e468568f98 Fix default value for card width
LMAO 2px...
2024-01-20 21:50:24 +01:00
Tetrakern
58c753b3fd Increase card menu click area 2024-01-20 21:26:35 +01:00
Tetrakern
5adb88f991 Fix age confirmation modal not always working 2024-01-20 15:27:46 +01:00
Tetrakern
73c366ee0d Add optional age confirmation modal 2024-01-20 14:41:33 +01:00
Tetrakern
7406c61acd Update customizer translation
Damned pixels...
2024-01-20 09:18:33 +01:00
Tetrakern
18ed3405d1 Add customizer option for card grid width 2024-01-20 01:10:14 +01:00
Tetrakern
9e49435833 Increase recommendation one sentence limit 2024-01-19 23:47:22 +01:00
Tetrakern
626e89a3b0 Refactor cards with container queries 2024-01-19 22:24:08 +01:00
Tetrakern
475af0f8fb Add utility function to safely truncate strings
This had a small chance to fail or return invalid HTML.
2024-01-19 14:42:19 +01:00
Tetrakern
38ca5f5c93 Generalize story tab script 2024-01-19 08:56:15 +01:00
Tetrakern
5413902f6c Purge theme caches after update 2024-01-19 08:56:15 +01:00
Tetrakern
2fc6fca357 Update style of protected icon in chapter lists 2024-01-19 08:56:15 +01:00