66 Commits

Author SHA1 Message Date
Tetrakern
039b3ab50d Add filter for card term nodes 2024-08-23 23:35:49 +02:00
Tetrakern
3532f9bd23 Refactor shortcode and card tags 2024-08-23 23:12:24 +02:00
Tetrakern
bc3a3f657b Add fictioneer_get_bullet_separator() helper 2024-08-23 13:56:17 +02:00
Tetrakern
bdf31c400a Update card tag helper to be more universal
Now allows for other term types and is used on post cards as well.
2024-08-23 13:29:34 +02:00
Tetrakern
9f8aac0282 Add wrappers and classes to card footer items 2024-07-28 12:50:45 +02:00
Tetrakern
4715fea1ee Fall back to excerpt if card description is missing 2024-07-20 23:13:26 +02:00
Tetrakern
ac8f5d9a58 Add more wrappers with class to card inner list items 2024-05-29 00:06:28 +02:00
Tetrakern
0355631d8a Optimize post ID accesses 2024-05-17 17:46:54 +02:00
Tetrakern
a851b13cb0 Reduce PHP/HTML mode-switch overhead 2 2024-05-17 12:34:14 +02:00
Tetrakern
9c816df834 Replace array utility with Elvis operator
Same result, easier to read, less overhead.
2024-05-14 22:59:02 +02:00
Tetrakern
d41ae8f799 Add card image style Customizer option 2024-05-14 19:18:37 +02:00
Tetrakern
268fefe4d1 Move card header into grid container 2024-05-14 10:05:05 +02:00
Tetrakern
4f306efa3c Restructuring 4 2024-05-13 23:26:51 +02:00
Tetrakern
676e58fb3d Add post-ID class to cards 2024-04-17 22:36:26 +02:00
Tetrakern
6110ac45a6 Add alt attribute to card thumbnails 2024-03-16 14:49:51 +01:00
Tetrakern
abecf5249f Add output and filter for card attributes 2024-03-04 01:54:53 +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
2c4ab454a3 Add "combined" card style 2024-02-12 01:40:38 +01:00
Tetrakern
cb544c49c1 Add card style Customizer option 2024-02-12 00:27:58 +01:00
Tetrakern
b054408f90 Add more CSS classes to cards
Makes it easier to target specific ones.
2024-02-11 23:55:32 +01:00
Tetrakern
5ae01e8f15 Add CSS modifier class to list items if password protected 2024-02-06 14:18:37 +01:00
Tetrakern
4b8117bf52 Fix typo 2024-01-28 00:18:25 +01:00
Tetrakern
2ca1f068bd Add action hooks to large card bodies 2024-01-27 22:32:10 +01:00
Tetrakern
8c91aad588 Remove superfluous variable on large cards 2024-01-27 22:07:09 +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
f85840702d Add utility function for collection statistics 2024-01-26 14:40:56 +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
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
c31a863dfc Fix card content truncation containers 2024-01-19 14:13:17 +01:00
Tetrakern
ca5b57aeec Reduce more unnecessary get_the_ID calls 2023-12-02 01:39:14 +01:00
Tetrakern
fb92db30ee Fix word count in collections 2023-11-30 17:12:48 +01:00
Tetrakern
36aff1f54a Add fictioneer_get_word_count helper 2023-11-30 17:10:19 +01:00
Tetrakern
082337c53c Add fictioneer_get_story_chapters helper 2023-11-30 16:21:16 +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
b98d45404a Add type casting to word count operations 2023-11-27 22:41:43 +01:00
Tetrakern
088d43f7ac Update _card-collection.php 2023-10-01 15:32:56 +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
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
8137ff6d00 Fix typo in new filter hooks
haha
2023-08-30 02:49:52 +02:00
Tetrakern
b55613c2f9 Add filter to card footers 2023-08-30 02:32:39 +02:00
Tetrakern
15eb144b48 Cleanup 2023-08-28 10:43:04 +02:00
Tetrakern
6ede5b4da1 Rename function 2023-08-21 00:57:56 +02:00
Tetrakern
110b024e63 Check for ABSPATH in template parts
Probably overkill but oh well...
2023-08-20 20:21:48 +02:00
Tetrakern
a55c4e1ce5 Rename function 2023-08-17 03:20:27 +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
baf96f4b68 Improve chapter, story, and collection cards
Now with up to 1/4 of the previous queries!
2023-08-08 01:51:03 +02:00