Commit Graph

77 Commits

Author SHA1 Message Date
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 12519a0878 Move more work into render function 2015-05-30 10:27:33 -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 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 9bdca7944f escape more things #WWGJD 2015-05-07 20:36:35 -04:00
Robin Cornett e527557810 escape all the things 2015-04-24 17:02:47 -04:00
Robin Cornett c9f049392b refactor section/page variables 2015-04-20 17:02:16 -04:00
Robin Cornett 9ae17447e0 change input names for accuracy 2015-04-14 17:48:15 -04:00
Robin Cornett 41c51f337e fix hidden field data
if the setting was a URL we had inconsistent behavior.
2015-04-10 09:32:57 -04:00
Robin Cornett a422bda814 add subsequent pages help 2015-04-10 08:38:43 -04:00
Robin Cornett 90febaaa10 remove unnecessary external warning 2015-04-10 08:38:28 -04:00
Robin Cornett a68e201116 add blog page 2+ setting
originally the featured image doesn't show on subsequent pages, but some
people might want it to. needs documentation.
2015-04-09 22:16:36 -04:00
Robin Cornett aa96b77f25 document is_numeric 2015-04-09 22:15:41 -04:00
Robin Cornett 1f8c832e40 update buttons 2015-03-24 10:09:32 -04:00
Robin Cornett f66f0395f8 add delete button for term/cpt/default images 2015-03-23 12:50:58 -04:00
Robin Cornett 9524139621 change term/cpt/default image to use ID 2015-03-23 11:51:45 -04:00
Robin Cornett fd5f03e6b7 change source validation 2015-03-23 09:56:12 -04:00
Robin Cornett a431ca768b Update CPT/tax image validation for consistency 2015-03-22 21:35:14 -04:00
Robin Cornett 4e44cdd552 add filter for minimum backstretch width 2015-03-22 16:34:25 -04:00
Robin Cornett 7b1e7b5302 Change default image validation 2015-03-22 10:06:35 -04:00
Robin Cornett c14cd41058 add check/error message for external images 2015-03-21 16:26:55 -04:00
Robin Cornett 4bde7c33c5 clarify help text 2015-03-05 14:07:49 -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 d22dcb51b0 clarify keep titles setting/wording 2015-01-20 13:20:53 -05:00
Robin Cornett daae448009 change upload button to not primary 2015-01-10 14:24:18 -05:00
Robin Cornett 0511b4f27f tag as 2.0.0 2015-01-10 10:45:16 -05:00
Robin Cornett e9e20d39d3 add CPT archive link to settings page 2015-01-10 09:43:38 -05:00
Robin Cornett 8f56924f84 enable large (in addition to backstretch) images for archives 2015-01-09 15:36:47 -05:00
Robin Cornett fdd006ecdf clarify language and add help for settings 2015-01-09 12:55:54 -05:00
Robin Cornett 45b04bafaf fix variable consistency 2015-01-08 12:39:23 -05:00
Robin Cornett 9b5da50918 updated term option for uniqueness 2015-01-07 19:08:49 -05:00
Robin Cornett a635fd0524 fixed js to handle multiple buttons
needed to set a global variable, apparently
2015-01-06 20:45:37 -05:00
Robin Cornett 289f0e5a6e set cpt/tax images to be backstretch only 2015-01-04 18:15:32 -05:00
Robin Cornett 3268052c73 fix sanitization return for cpt images
previous valid value is now returned here as well.
2015-01-04 17:45:32 -05:00
Robin Cornett 83e46c5e31 move tax save function to settings class
this cuts redundancy, since the image validation function is already in
this class. having the taxonomy save in its own class required
duplicating the validation functions.
2015-01-04 16:05:25 -05:00
Robin Cornett 6710a5707d simplify button text 2015-01-03 18:26:31 -05:00
Robin Cornett 1ec79fded2 update settings page, better validation for cpt images
As of this moment, cpt images will return empty if the value is invalid.
Better than resetting to fallback, but still not ideal.
2015-01-03 18:08:27 -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 3b5c5344fd update text strings for consistency 2015-01-03 11:57:06 -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 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 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 2014-12-13 10:03:55 -05:00