108 Commits

Author SHA1 Message Date
Tetrakern
c55c737dbd Add more CSS modifier classes to small cards 2024-02-06 03:10:02 +01:00
Tetrakern
6ba2fe6282 Fix Latest Updates shortcode queries 2024-01-29 23:38:21 +01:00
Tetrakern
ac1771f1f8 Simplify query args 2024-01-28 20:45:32 +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
5fd686c054 Add action hooks to shortcode card bodies 2024-01-28 00:48:32 +01:00
Tetrakern
8f16b4a905 Pass type from shortcode to small cards 2024-01-28 00:16:06 +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
8c4b44e41d Unify @since version number format
Yes, it bothered me.
2024-01-26 15:51:11 +01:00
Tetrakern
626e89a3b0 Refactor cards with container queries 2024-01-19 22:24:08 +01:00
Tetrakern
73537691bd Rename CSS class two-columns to grid-columns
Depending on the site width, this are, in fact, not just two columns.
2024-01-19 14:55:50 +01:00
Tetrakern
c31a863dfc Fix card content truncation containers 2024-01-19 14:13:17 +01:00
Tetrakern
562b6c5816 Add protected icon to (some) cards 2024-01-18 21:44:29 +01:00
Tetrakern
f207720f52 Reduce unnecessary get_the_ID calls 2023-12-02 00:00:13 +01:00
Tetrakern
294d13ce38 Cleanup 2023-11-30 17:52:19 +01:00
Tetrakern
36aff1f54a Add fictioneer_get_word_count helper 2023-11-30 17:10:19 +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
e0176eac59 Use fictioneer_get_field everwhere
I might actually remove it later on because it does not safe space anyway, but at least it is consistent for now.
2023-11-30 10:58:45 +01:00
Tetrakern
82d8069d80 Add missing story updates
And some cleanup.
2023-11-19 21:10:12 +01:00
Tetrakern
c92f66da09 Improve handling of list titles 2023-10-08 15:28:23 +02:00
Tetrakern
6bbf017405 Add padding to card list links
Makes them easier to click on mobile.
2023-09-18 13:20:45 +02:00
Tetrakern
c104b8d53d Improve shortcode author parameter 2023-09-17 01:28:14 +02:00
Tetrakern
3c4463a318 Add missing documentation 2023-09-16 23:41:30 +02:00
Tetrakern
bd0158a631 Improve shortcodes
Added function to get default args instead of doing it again in each shortcode.
2023-09-16 23:20:37 +02:00
Tetrakern
527e7f1e6c Clean up shortcodes 2023-09-16 21:44:12 +02:00
Tetrakern
359f5d5ca1 Update latest updates shortcode 2023-09-16 13:25:38 +02:00
Tetrakern
22ca34e5ec Generalize no-results case for shortcodes 2023-09-15 22:55:59 +02:00
Tetrakern
5df11d88ad Improve shortcode params 2023-09-15 22:43:17 +02:00
Tetrakern
633255ba10 Add ignore_protected to other shortcodes 2023-09-15 22:00:00 +02:00
Tetrakern
dc19a409b3 Fix shortcode doc comments 2023-09-15 14:42:02 +02:00
Tetrakern
9fb5390fca Add additional query names 2023-09-15 14:00:44 +02:00
Tetrakern
adcb3edb0f Improve card CSS selectors
Probably a negligible render performance boost, but that's no reason not to do it.
2023-08-30 11:51:48 +02:00
Tetrakern
15eb144b48 Cleanup 2023-08-28 10:43:04 +02:00
Tetrakern
110b024e63 Check for ABSPATH in template parts
Probably overkill but oh well...
2023-08-20 20:21:48 +02:00
Tetrakern
b4d20aa0b3 Cleaned up some comments 2023-08-19 22:30:40 +02:00
Tetrakern
299db867e8 Fix overzealous post__in filtering
I hate this.
2023-08-17 01:32:02 +02:00
Tetrakern
bed9852de1 New query safety function for empty post__in
This was causing untold issues...
2023-08-17 01:10:00 +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
9ed7e08868 Improve shortcode performance
Queries are cached as Transients for 5 Minutes, which is not much but help for high traffic that cannot be cached normally (e.g. logged-in users).
2023-08-03 13:17:57 +02:00
Tetrakern
9e727533dd Add aria labels to info box toggles 2023-06-11 19:24:16 +02:00
Tetrakern
4feef249f3 Remove sibling selectors from card infoboxes 2023-06-09 21:52:17 +02:00
Tetrakern
527fda7871 Remove unnecessary sibling selector 2023-06-09 02:06:45 +02:00
Tetrakern
ad6d54482d Use constants for Latest * shortcodes
Easy to override in child templates and allow a more precise customization than via the settings page.
2023-06-06 20:04:45 +02:00
Tetrakern
6728e34faf Add constant for Latest Update shortcode date 2023-06-06 15:34:08 +02:00
Tetrakern
db15d8c0b2 Improved word/date markup of Latest Updates 2023-06-06 13:43:49 +02:00
Tetrakern
54d6228f9a Remove more superfluous nodes 2023-06-04 20:45:25 +02:00
Tetrakern
9f115e54e7 Reduced spans in author nodes and cards 2023-06-04 14:02:12 +02:00
Tetrakern
e9f8695ff6 Add option to hide a story in lists 2023-05-07 01:45:42 +02:00
Tetrakern
c7fe07e945 Add exclude parameters to latest_updates 2023-03-10 17:09:46 +01:00