Robin Cornett
9f97e65e88
Fix image_id sequence (term image)
2015-05-07 19:00:06 -04:00
Robin Cornett
80ff36a732
Fix term image filter
2015-05-06 15:23:50 -04:00
Robin Cornett
f1607e243e
Fix a11y
2015-05-06 13:18:42 -04:00
Robin Cornett
096600c69d
Add a11y support
2015-05-06 13:05:01 -04:00
Robin Cornett
6649e1ea5f
add a CPT image filter
2015-05-05 12:50:19 -04:00
Robin Cornett
70a1498e5f
Refactor title to new function
2015-05-05 12:50:02 -04:00
Robin Cornett
f698c47dbd
Refactor image ID function
2015-05-05 12:19:08 -04:00
Robin Cornett
580869641f
Refactor get_image_id
...
Sets a fallback if original image has number pattern like WP's resized
images in the URL. Mad props to @hellofromtonya to abstract the SQL
query and make it more efficient.
2015-04-29 15:02:35 -04:00
Robin Cornett
dca2a33929
add filter for alternate image_id
2015-04-25 17:08:11 -04:00
Robin Cornett
e527557810
escape all the things
2015-04-24 17:02:47 -04:00
Robin Cornett
99138620ce
add check for image_id in get_image_id
...
So if someone is using the function elsewhere, it won't break with a new
term/cpt/default featured image.
2015-04-10 21:28:23 -04:00
Robin Cornett
aa96b77f25
document is_numeric
2015-04-09 22:15:41 -04:00
Robin Cornett
6dcccca6ea
update version number
...
(cache busting)
2015-03-23 13:28:09 -04:00
Robin Cornett
691a1eb87e
fix numeric check
2015-03-23 12:16:57 -04:00
Robin Cornett
9524139621
change term/cpt/default image to use ID
2015-03-23 11:51:45 -04:00
Robin Cornett
64bfa88ca4
update get_image_id
2015-03-23 10:10:32 -04:00
Robin Cornett
4e44cdd552
add filter for minimum backstretch width
2015-03-22 16:34:25 -04:00
Robin Cornett
18a6b28184
fix CPT image retrieval
2015-03-04 08:51:22 -05:00
Robin Cornett
e189ec78dd
Add 404 to disallowed cpt/term images
2015-03-03 16:28:19 -05:00
Robin Cornett
4ef185d31a
fix function name
2015-02-27 10:12:47 -05:00
Robin Cornett
1a6f95645d
Change main image variable
...
Simplify this variable--no need for certain elements to be accessible
outside the main function.
2015-02-27 09:10:06 -05:00
Robin Cornett
fcc0021a45
Simplify image variables
2015-02-26 15:38:01 -05:00
Robin Cornett
24a3836466
update docs, tentative 2.1.0
2015-02-18 18:28:07 -05:00
Robin Cornett
1dba657602
fix CPT archive title
2015-02-18 18:27:39 -05:00
Robin Cornett
99bee2077c
add helper functions
...
currently just get term image for single posts.
2015-02-16 13:23:45 -05:00
Robin Cornett
b03427509b
change how images are assigned
2015-02-15 20:57:24 -05:00
Robin Cornett
3e7171eae1
refactor titles/descriptions
2015-02-13 17:06:03 -05:00
Robin Cornett
90d077f107
change term_image check to safer ! empty
2015-02-10 13:38:15 -05:00
Robin Cornett
af88778546
set the CPT image as an intermediate fallback for a taxonomy term
2015-02-09 18:39:00 -05:00
Robin Cornett
85a4906eaf
fix taxonomy term image if a term image has been deleted
2015-02-06 12:42:21 -05:00
Robin Cornett
ee62790829
add HTML5 itemprop to headlines
2015-02-05 18:35:10 -05:00
Robin Cornett
cc870a11ea
fix $image_id variable for CPT
...
If a CPT doesn't have an image assigned, the fallback will be used.
2015-01-28 11:02:41 -05:00
Robin Cornett
d5efd2464a
fix variable for CPT
2015-01-20 13:24:32 -05:00
Robin Cornett
f66959f4f5
add filter to force large image use
...
added for Craig. Required going back to using actual item to
determine width instead of using image metadata. Should still be OK with
Photon but worth checking.
2015-01-13 22:18:47 -05:00
Robin Cornett
0511b4f27f
tag as 2.0.0
2015-01-10 10:45:16 -05:00
Robin Cornett
4ee75055c8
fix is_singular conditional (again)
2015-01-10 10:26:52 -05:00
Robin Cornett
6420d8fc1f
fix is_singular conditional
2015-01-10 10:15:12 -05:00
Robin Cornett
09793cd4a6
fix image_id setting if no post thumbnail
2015-01-08 13:24:54 -05:00
Robin Cornett
9b5da50918
updated term option for uniqueness
2015-01-07 19:08:49 -05:00
Robin Cornett
606bfc8075
integrate apply_filters to relevant places
...
reduces number of functions created
2015-01-05 11:04:44 -05:00
Robin Cornett
8d357c56ae
simplify post_types array for filters
...
(call just once)
2015-01-04 22:39:12 -05:00
Robin Cornett
4e923f99ac
add filter to move large image to after header on single posts
2015-01-04 16:03:18 -05:00
Robin Cornett
ad325cd07f
fixed tax/cpt image variable settings
2015-01-04 16:01:11 -05:00
Robin Cornett
0f6d537c40
fixed cpt image setting for output
2015-01-03 18:38:22 -05:00
Robin Cornett
a475716d5a
working cpt archive images
...
including sanitization! although the sanitized images all revert to the
last valid fallback value, which is not correct. May be better to revert
to blank?
2015-01-03 17:43:18 -05:00
Robin Cornett
3e341912fc
add cpt image to available images
2015-01-03 09:10:38 -05:00
Robin Cornett
d233ca773f
add break after a taxonomy image is found
...
(we only need one, even if a post has multiple terms)
2015-01-02 17:47:28 -05:00
Robin Cornett
1481511e4e
preemptively set backstretch variable
...
this may be unnecessary as it appears to return false if empty anyway
2015-01-02 17:03:27 -05:00
Robin Cornett
88f18fd6c0
add a new filter to use taxonomy image instead of post thumbnail
2015-01-02 16:35:26 -05:00
Robin Cornett
96e7823208
fix where fallback filter is applied on single posts
2015-01-02 16:34:42 -05:00