Commit Graph

354 Commits

Author SHA1 Message Date
Robin Cornett c58cc69648 Revert to static functions
(backwards compatible)
2015-06-06 21:30:42 -04:00
Robin Cornett 837c8bb761 Fix $image_id filter 2015-06-06 18:01:07 -04:00
Robin Cornett 0f6430682d Fix $variables 2015-06-06 17:57:28 -04:00
Robin Cornett 93b7c5aa35 Clean up static methods
Needs lots more testing
2015-06-03 14:36:16 -04:00
Robin Cornett 955fba0e67 Fix duplicate image preview 2015-06-02 07:50:53 -04:00
Robin Cornett cab899a1f7 Refactor image validation
Now checking image validity/size for default and CPT images go through
one function instead of two.
2015-06-02 07:44:48 -04:00
Robin Cornett 812254fc20 Fix button output 2015-06-02 07:43:43 -04:00
Robin Cornett 7d440be436 Simplify checkbox setting function 2015-06-01 10:18:16 -04:00
Robin Cornett 73fd2dd6bd Refactor image preview/buttons
Move image preview and button renderer to separate functions instead of
building each three times.
2015-05-30 17:27:45 -04:00
Robin Cornett b103701b2e Refactor the refactor for settings fields 2015-05-30 13:38:41 -04:00
Robin Cornett 532ca19eb0 Refactor add_settings_field 2015-05-30 11:46:40 -04:00
Robin Cornett d859db9df4 Clean up widgets 2015-05-30 10:44:53 -04:00
Robin Cornett 12519a0878 Move more work into render function 2015-05-30 10:27:33 -04:00
Robin Cornett 682b6d9d03 Strict standards 2015-05-30 10:27:08 -04:00
Robin Cornett 62c8a41def Update help text 2015-05-30 09:54:32 -04:00
Robin Cornett 3b89ad5fb4 Update image ext check
pulled from latest CMB2
2015-05-30 09:54:19 -04:00
Robin Cornett 5d1e7ceb20 Change image preview dry 2015-05-30 09:53:22 -04:00
Robin Cornett 79d672f623 Remove unnecessary statics 2015-05-30 09:50:56 -04:00
Robin Cornett 9b42e9b3ea Fix foreach for CPT image setting 2015-05-30 08:04:57 -04:00
Robin Cornett 4db2b430c7 Refactor CPT image setting output 2015-05-30 07:41:29 -04:00
Robin Cornett 90bdeccf37 add hooks for before/after overlay title/excerpt 2015-05-26 17:01:28 -04:00
Robin Cornett 2e220abe31 Change RSS output 2015-05-23 15:42:47 -04:00
Robin Cornett 9fcd6c7f21 Fix default image ID helper function 2.2.2 2015-05-09 10:00:14 -04:00
Robin Cornett 944ed6fd6b Fix version number 2015-05-08 21:18:07 -04:00
Robin Cornett fee827cdc8 Update readme 2.2.1 2015-05-08 20:37:00 -04:00
Robin Cornett 4bff9bc7ae there is always more to escape 2015-05-08 09:32:50 -04:00
Robin Cornett cb643f8520 Fix no-js image 2015-05-07 21:18:39 -04:00
Robin Cornett d95d99e7bd Update version number 2015-05-07 20:39:19 -04:00
Robin Cornett 9bdca7944f escape more things #WWGJD 2015-05-07 20:36:35 -04:00
Robin Cornett 9f97e65e88 Fix image_id sequence (term image) 2015-05-07 19:00:06 -04:00
Robin Cornett dd6982ac3a Merge hotfix branch variable-id
Fixes fallback filters
2015-05-06 16:17:33 -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 77491715ee Fix term image/default filters 2015-05-05 13:37:09 -04:00
Robin Cornett 84823c39cb Fix archive widget 2015-05-05 13:20:14 -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 3b6999eec4 Fix archive widget 2015-05-05 12:05:43 -04:00
Robin Cornett a262521ffc revise archive thumbnail helper function 2.2.0 2015-05-03 14:23:38 -04:00
Robin Cornett e28c060729 update readme
(fix archive thumbnail function example)
2015-04-30 09:58:46 -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 6787b96354 Fix post_parent call 2015-04-27 11:59:47 -04:00
Robin Cornett 4da66b80ee fix archive thumbnails
If a post has an image attached (uploaded to that post), Genesis uses
that for the archive, which results in a duplicate image. This now
outputs a term/CPT image only if the post has no attached image.
2015-04-27 11:26:29 -04:00
Robin Cornett dca2a33929 add filter for alternate image_id 2015-04-25 17:08:11 -04:00
Robin Cornett 2af908c803 change description output for consistency 2015-04-24 17:03:05 -04:00
Robin Cornett e527557810 escape all the things 2015-04-24 17:02:47 -04:00
Robin Cornett 5555fb2f30 set fallback value for is_paged variable 2015-04-21 14:39:26 -04:00
Robin Cornett 797146092e add aria roles to widget images 2015-04-21 08:58:34 -04:00