Commit Graph

153 Commits

Author SHA1 Message Date
Robin Cornett a64d5c68ee retrieve js for all relevant admin pages 2015-01-03 15:42:20 -05:00
Robin Cornett 1897557a3b simplify columns calls 2015-01-03 15:41:49 -05:00
Robin Cornett 3535e5a2de update readme 2015-01-03 11:57:21 -05:00
Robin Cornett 3b5c5344fd update text strings for consistency 2015-01-03 11:57:06 -05:00
Robin Cornett 3e341912fc add cpt image to available images 2015-01-03 09:10:38 -05:00
Robin Cornett 3592082abf functional setting for cpt featured image
at this point, a featured image can be set and retrieved for the cpt
archive. creates a new setting, though, not sure if this is desirable.
could we just add on to the existing displayfeaturedimage setting, since
it is already serialized?

also, at this point, no validation is happening for the cpt images.
2015-01-03 09:10:16 -05:00
Robin Cornett df532a6a20 add size to featured image description 2015-01-03 09:07:40 -05:00
Robin Cornett 12ad667b5f add class for cpt featured image setting 2015-01-02 20:28:33 -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 f400a7cc57 fixed returned value for taxonomy images
The taxonomy option is not updated if the image is invalid or too small.
If the image is deleted (the field is empty), that's OK.
2015-01-02 16:40:46 -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
Robin Cornett 4c1a9495db remove useless variables 2015-01-01 23:13:27 -05:00
Robin Cornett e828b948bc update validation
returns empty string if invalid value. would prefer for it to return
previous value instead.
2015-01-01 19:55:39 -05:00
Robin Cornett b04bbb81c6 add condition for new post type columns
post_type must be public && support featured image
2015-01-01 19:18:24 -05:00
Robin Cornett 7ff9accb71 add documentation 2015-01-01 19:17:41 -05:00
Robin Cornett 58d67e89e2 add doc blocks 2015-01-01 18:55:13 -05:00
Robin Cornett adb2ab6d3e create admin class for custom featured image column 2015-01-01 18:38:59 -05:00
Robin Cornett 7160b7cdaa add featured image column to posts, pages, post types 2015-01-01 18:05:23 -05:00
Robin Cornett f8777553dc add featured image column to taxonomies
also changed how hooks were called to use "{$taxonomy->name}_etc
2015-01-01 17:28:19 -05:00
Robin Cornett ee62bdb52a remove priority/args from function call 2015-01-01 17:26:51 -05:00
Robin Cornett 21786d2f03 change get_object_terms to get the image from most used taxonomy 2015-01-01 10:56:51 -05:00
Robin Cornett 5c3c6ae6cb update README 2014-12-31 17:04:05 -05:00
Robin Cornett 4dcd3896da add description class to <p> 2014-12-31 17:03:54 -05:00
Robin Cornett faa88f04f3 add sort taxonomies by taxonomy, then term
need to decide if this is helpful for items with multiple terms/taxes
assigned. Think in this case, the user will have to pick a featured
image for the singular post anyway if they really care which one gets
assigned.
2014-12-31 17:03:35 -05:00
Robin Cornett 2ec2fdee26 change button text to be the same for settings and taxonomies 2014-12-31 17:02:14 -05:00
Robin Cornett f29cfcba9b use get_post only for checking post_content 2014-12-31 11:00:36 -05:00
Robin Cornett 6221d8d0a9 change to get_the_ID instead of $post 2014-12-31 11:00:15 -05:00
Robin Cornett 6fa66873db remove global $post 2014-12-31 10:51:39 -05:00
Robin Cornett 1a4adac350 fix image selection for is_singular()
if there is no post thumbnail, but a taxonomy has a featured image, then
use that. otherwise, if a fallback image exists.
2014-12-31 10:41:39 -05:00
Robin Cornett c5acb81938 add tax image if there is no featured image
needs checking to see what happens if there is no tax image, but there
is a fallback image
2014-12-31 10:02:02 -05:00
Robin Cornett 42f98531a8 validate image in taxonomy upload
no way to add error message?
2014-12-31 08:32:55 -05:00
Robin Cornett 1d5bd646f2 remove early return condition for fallback image
had bailed early if no fallback, or if not a singular page/post
2014-12-31 08:32:17 -05:00
Robin Cornett ad47e48784 move taxonomy image declaration ahead of single posts 2014-12-31 08:31:23 -05:00
Robin Cornett 1e91cb1638 set a width for url field on taxonomy pages 2014-12-30 17:12:58 -05:00
Robin Cornett afa91f00cf add taxonomy image to common class parameters
need to decide about using tax image if a fallback image is needed, or
exists.
2014-12-30 17:12:21 -05:00
Robin Cornett 56919d77fe move upload script enqueue to main class
(so it's available for both taxonomies and settings page)
2014-12-30 16:36:33 -05:00
Robin Cornett 05cbac5306 add taxonomies class
sets up featured image for taxonomies. not applied to output yet.
2014-12-30 16:27:56 -05:00
Robin Cornett 5dab26b927 add new setting to optionally not move titles 2014-12-15 10:03:47 -05:00
Robin Cornett 8a715934ec updated version to 1.5.0 1.5.0 2014-12-13 10:03:55 -05:00
Robin Cornett 6c73cc6d83 updated readme 2014-12-12 14:06:20 -05:00
Robin Cornett 8da1514877 refactored rss class
First check is now full text as that is more standard. Reorganized decision process,
and properly accounted for optional alternate feed in Send Images to RSS.
2014-12-12 14:05:58 -05:00
Robin Cornett 7e67eac6e4 add class for RSS work
extracted RSS filters from output class and created new RSS class.
2014-12-12 10:08:00 -05:00
Robin Cornett f905bc61f9 add function to check/update new setting
since feed_image is a new setting in the array, there is an error if it's not set for users
upgrading from 1.4.3. this function checks if it isn't there and if it's not, adds it.

for new users, there is no need to check.
2014-12-11 17:33:29 -05:00
Robin Cornett 58545926fc clarify docblock on new seting 2014-12-11 17:30:39 -05:00
Robin Cornett d7c366535f modify feed output if featured image exists in post 2014-12-10 19:33:22 -05:00
Robin Cornett bc699974a0 add help text 2014-12-10 19:31:53 -05:00
Robin Cornett 60ce2aebb2 validate feed_image 2014-12-10 19:31:39 -05:00
Robin Cornett e034e54caa add rss function 2014-12-10 17:04:31 -05:00