Commit Graph

883 Commits

Author SHA1 Message Date
Daryl Koopersmith a43958baeb Theme Customizer: Allow the customize iframe to be accessed directly (with full feature support). see #19910.
* Move the 'Return to Manage Themes' and 'Collapse Sidebar' actions from themes.php to customize-controls.php.
* Create a postMessage connection between themes.php and customize-controls.php.
* Allow the theme customizer to be accessed directly (independent of themes.php and the customize loader).
* Add wp_customize_href() and wp_customize_url().
* Remove wp_customize_loader(). To include the loader, use wp_enqueue_script( 'customize-loader' ).
* The theme customizer now requires postMessage browser support.
* Add .hide-if-customize and .hide-if-no-customize CSS classes.
* Clean up customize-preview.js.

git-svn-id: https://develop.svn.wordpress.org/trunk@20476 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-16 14:02:28 +00:00
bumpbot c6317cb5fe Compress scripts/styles: 3.4-beta2-20468.
git-svn-id: https://develop.svn.wordpress.org/trunk@20468 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-14 19:58:19 +00:00
Andrew Ozz ed87c7abd1 Plupload: no need to reset the queue when one file fails (handled internally), see #20422
git-svn-id: https://develop.svn.wordpress.org/trunk@20467 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-14 19:51:55 +00:00
bumpbot 0081ba2954 Compress scripts/styles: 3.4-beta2-20464.
git-svn-id: https://develop.svn.wordpress.org/trunk@20464 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-13 23:58:20 +00:00
Andrew Ozz 1380c985cf Update Plupload to 1.5.4, props SergeyBiryukov, fixes #20422
git-svn-id: https://develop.svn.wordpress.org/trunk@20463 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-13 23:23:13 +00:00
bumpbot c08d986825 Compress scripts/styles: 3.4-beta2-20452.
git-svn-id: https://develop.svn.wordpress.org/trunk@20452 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 17:58:20 +00:00
Andrew Ozz fe2749eedd Add RTL/LTR button to the html editor, props yoavf, fixes #13070
git-svn-id: https://develop.svn.wordpress.org/trunk@20451 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 17:52:54 +00:00
bumpbot 45081349a3 Compress scripts/styles: 3.4-beta1-20434.
git-svn-id: https://develop.svn.wordpress.org/trunk@20434 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 02:58:23 +00:00
Andrew Ozz 3b9e5468e1 Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014
git-svn-id: https://develop.svn.wordpress.org/trunk@20433 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 02:20:51 +00:00
bumpbot 8b4f1495f3 Compress scripts/styles: 3.4-beta1-20429.
git-svn-id: https://develop.svn.wordpress.org/trunk@20429 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 00:58:23 +00:00
Andrew Ozz 2b1eb4f028 Fix inserting links in the HTML editor in IE9, fixes #19528
git-svn-id: https://develop.svn.wordpress.org/trunk@20428 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 00:20:42 +00:00
bumpbot 0a656052ab Compress scripts/styles: 3.4-beta1-20421.
git-svn-id: https://develop.svn.wordpress.org/trunk@20421 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 02:58:27 +00:00
Daryl Koopersmith 955ca76116 Replace all instances of thickbox theme preview with the theme customizer. fixes #20404.
* Use theme customizer in theme install/update screens.
* Separate the customize loader from the customizer. Use wp_customize_loader() to include the loader script and markup.
* Deprecated: wp-admin/js/theme-preview.js is now no longer used by core.

git-svn-id: https://develop.svn.wordpress.org/trunk@20419 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 02:25:03 +00:00
bumpbot 21490033fb Compress scripts/styles: 3.4-beta1-20390. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20390 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 23:58:19 +00:00
Andrew Ozz c2e3754cf9 Add the "aside,audio,canvas,figcaption,figure,nav,output,video" tags that shouldn't be wrapped in <p> to the internal blocks list in TinyMCE, fixes #20381
git-svn-id: https://develop.svn.wordpress.org/trunk@20389 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 22:59:22 +00:00
bumpbot 7f938af8c5 Compress scripts/styles: 3.4-alpha-20355.
git-svn-id: https://develop.svn.wordpress.org/trunk@20355 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 21:58:23 +00:00
Daryl Koopersmith 31caea7b9b Theme Customizer: Improve the customize loader and themes list table markup. see #19910.
* Use event delegation for triggering the customize loader (so we play nicely with infinite scroll).
* Use data attributes on .load-customize links instead of parsing the href.
* Properly translate the 'Customize' string instead of injecting the replacement with JS.

git-svn-id: https://develop.svn.wordpress.org/trunk@20352 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 21:02:29 +00:00
bumpbot 825926267f Compress scripts/styles: 3.4-alpha-20345.
git-svn-id: https://develop.svn.wordpress.org/trunk@20345 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-03 22:58:20 +00:00
Daryl Koopersmith 9218ead840 Theme Customizer: Improve data binding in wp.customize.Value and wp.customize.Values. see #19910.
* Replace the convoluted wp.customize.Value.link method with a simple shortcut for direct binding.
* Add wp.customize.Value.sync for bidirectional linking.
* Add wp.customize.Value.setter for handling compound values (instead of using wp.customize.Value.link).

git-svn-id: https://develop.svn.wordpress.org/trunk@20344 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-03 22:04:40 +00:00
bumpbot f3e171b253 Compress scripts/styles: 3.4-alpha-20343.
git-svn-id: https://develop.svn.wordpress.org/trunk@20343 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-02 22:58:19 +00:00
Andrew Ozz 05071148d9 Editor: fix adding a link in WebKit to floated image, fixes #16569
git-svn-id: https://develop.svn.wordpress.org/trunk@20341 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-02 22:16:30 +00:00
Ryan Boren 467f9af92d Remove jQuery Masonry. Fully reverts [20060]. see #17242
git-svn-id: https://develop.svn.wordpress.org/trunk@20340 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-02 20:05:35 +00:00
Andrew Nacin 816ebbd616 jQuery 1.7.2. props ocean90. fixes #20339.
git-svn-id: https://develop.svn.wordpress.org/trunk@20337 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-01 20:13:36 +00:00
bumpbot 8c171a54c6 Compress scripts/styles: 3.4-alpha-20320.
git-svn-id: https://develop.svn.wordpress.org/trunk@20320 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 06:58:19 +00:00
Daryl Koopersmith bdee6c8e15 Theme Customizer: Move upload and image controls to subclasses. see #19910.
Instead of grouping together every control parameter into a single  array and passing them all to the JS, use subclasses with custom parameters to implement additional PHP functionality and the  parameter to send only the necessary variables to the JavaScript control.

Replaces WP_Customize_Control->control_params with WP_Customize_Control->json and WP_Customize_Control->to_json(). The to_json() method refreshes the json array passed to the JavaScript control (set to control.param by default).

Creates WP_Customize_Upload_Control and WP_Customize_Image_Control.

git-svn-id: https://develop.svn.wordpress.org/trunk@20319 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 06:35:54 +00:00
bumpbot 8f575763ab Compress scripts/styles: 3.4-alpha-20304.
git-svn-id: https://develop.svn.wordpress.org/trunk@20304 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 09:58:22 +00:00
Daryl Koopersmith d5f5376394 Theme Customizer: Properly bind the 'upload new' and 'remove image' actions in the image picker. see #19910.
This occurred because we weren't calling UploadControl.ready (where the actions are declared and the uploader is initialized) in ImageControl.ready.

git-svn-id: https://develop.svn.wordpress.org/trunk@20301 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 09:33:32 +00:00
Daryl Koopersmith ea85772eb6 Theme Customizer: Sanitize selectors by transforming square brackets into dashes. see #19910.
This both better conforms to the CSS spec and prevents bugs from occurring in JavaScript selector engines.

git-svn-id: https://develop.svn.wordpress.org/trunk@20299 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 09:10:29 +00:00
bumpbot 4e658d4443 Compress scripts/styles: 3.4-alpha-20298.
git-svn-id: https://develop.svn.wordpress.org/trunk@20298 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 08:58:23 +00:00
Daryl Koopersmith 1a03f9af0d Theme Customizer: Fix postMessage for background_color. The method parameter affects settings, not controls. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20297 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 08:55:25 +00:00
bumpbot 4d703df740 Compress scripts/styles: 3.4-alpha-20296.
git-svn-id: https://develop.svn.wordpress.org/trunk@20296 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 04:58:24 +00:00
Daryl Koopersmith 2ca07cdf2a Create WP_Customize_Control to separate the process of rendering a control from fetching, previewing, and saving its values. see #19910.
Many-to-many mapping between settings and controls.
* Settings and controls have been separated in both the PHP (WP_Customize_Setting, WP_Customize_Control) and the JS (wp.customize.Setting, wp.customize.Control).
* While most settings are tied to a single control, some require multiple controls. The 'header_textcolor' control is a good example: to hide the header text, header_textcolor is set to 'blank'.

Add 'Display Header Text' control.

A handful of miscellaneous bugfixes along the way.

Notes:
* Controls should be separated out a bit more; juggling type-specific arguments in the switch statement is rather inelegant.
* Page dropdowns are currently inactive and need to be re-linked.

git-svn-id: https://develop.svn.wordpress.org/trunk@20295 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 04:14:09 +00:00
bumpbot 655b18cb36 Compress scripts/styles: 3.4-alpha-20291.
git-svn-id: https://develop.svn.wordpress.org/trunk@20291 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 21:58:20 +00:00
Daryl Koopersmith d8513a5ebb Theme Customizer: Add 'choose image' functionality to image controls. Rough first pass, using header images as an example. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20290 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 21:18:32 +00:00
bumpbot d079275e8c Compress scripts/styles: 3.4-alpha-20280.
git-svn-id: https://develop.svn.wordpress.org/trunk@20280 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 04:58:29 +00:00
Daryl Koopersmith e0773710ec Theme Customizer: First pass at image controls. Use header_image as the initial case. Add a 'removed' control param for upload/image controls to map 'removed' to a value other than the empty string. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20278 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 04:35:13 +00:00
bumpbot 1c6f00b0f3 Compress scripts/styles: 3.4-alpha-20277.
git-svn-id: https://develop.svn.wordpress.org/trunk@20277 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 01:58:28 +00:00
Daryl Koopersmith b0f973d884 Theme Customizer: Add WP_Customizer_Setting->control_params, and wp.customize.Control.params to allow settings to pass arbitrary parameters to controls. Add the 'context' parameter to wp.customize.UploadControl. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20276 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 01:02:29 +00:00
bumpbot 5e3e0b0404 Compress scripts/styles: 3.4-alpha-20275.
git-svn-id: https://develop.svn.wordpress.org/trunk@20275 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 22:58:27 +00:00
Daryl Koopersmith c41689115f Theme Customizer: Change 'Random Image' control to be a proper 'Header Image' control. First step to integrating header images. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20274 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 22:43:00 +00:00
bumpbot 8f741e4f24 Compress scripts/styles: 3.4-alpha-20264.
git-svn-id: https://develop.svn.wordpress.org/trunk@20264 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 08:58:23 +00:00
Daryl Koopersmith 95ab797033 Theme Customizer: Add background repeat, position, and attachment settings. Change visibility parameter to accept a string or array( , ). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20263 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 08:07:44 +00:00
bumpbot c22a8a6cf6 Compress scripts/styles: 3.4-alpha-20262.
git-svn-id: https://develop.svn.wordpress.org/trunk@20262 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:58:24 +00:00
Daryl Koopersmith f28d57454f Theme Customizer: Only show uploader 'remove' links when there is an image to remove. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20261 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:30:44 +00:00
Daryl Koopersmith 7dc476bd8b Theme Customizer: Add a WP_Customize_Setting->visibility parameter to show/hide a control based upon the value of another control. Also shifts rendering the setting wrapper element into WP_Customize_Setting->render() and adds WP_Customize_Setting->render_content(). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20260 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:17:26 +00:00
Daryl Koopersmith f561219e0b Theme Customizer: Ensure background_color and background_image exist instead of blindly attempting to access their controls. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20259 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:03:44 +00:00
bumpbot b1b507b2a9 Compress scripts/styles: 3.4-alpha-20258.
git-svn-id: https://develop.svn.wordpress.org/trunk@20258 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 06:58:22 +00:00
Daryl Koopersmith a2e813571e Theme Customizer: In JavaScript, add the ability to execute a callback once a set of values have been initialized. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20257 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 06:52:44 +00:00
bumpbot 5c54b48c3c Compress scripts/styles: 3.4-alpha-20255.
git-svn-id: https://develop.svn.wordpress.org/trunk@20255 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 04:58:24 +00:00
Daryl Koopersmith 44880bceb5 Theme Customizer: Plupload does not support objects in its multipart_params setting (which causes exceptions in Firefox). Use multidimensional keys to circumnavigate this issue. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20253 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 03:58:06 +00:00