Commit Graph

307 Commits

Author SHA1 Message Date
Daryl Koopersmith
3ec7265074 The first inklings of a gallery management screen.
* Adds `view.Workspace.Library` and `view.Workspace.Gallery` as extensions of `view.Workspace` to implement the individual screens
* Shifts the toolbar logic that was library-specific from the generic `Workspace` view to `Workspace.Library`.
* Adds a toolbar to the `Gallery` view.
* 'Create a gallery' and 'Return to media library' buttons toggle between the two views.
* 'Insert gallery into post' closes the modal, but does not actually perform its namesake action.
* Note that elements can still be deselected in the gallery view. This will be fixed in a future commit.

Improvements to avoid over-eager event unbinding:
* `Modal` views now properly detach their contents before replacing them with a new element.
* Likewise, `Workspace` views detach their main content blocks when re-rendering the view.

To test the gallery workflow (which is incomplete), run the following in your browser's console:

	`wp.media({ multiple: true });`

see #21809, #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@21906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-19 00:34:00 +00:00
Bot (Assets)
4a8bb5e3f8 Compress scripts/styles: 3.5-alpha-21879. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-17 00:59:40 +00:00
Daryl Koopersmith
5b525c0281 Make browser text-selections ignore attachment views. see #21390.
git-svn-id: http://core.svn.wordpress.org/trunk@21786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-07 22:15:52 +00:00
Daryl Koopersmith
43fc38330a Adds UI for media modal toolbars, buttons, and the selected item(s) status.
Currently uses actions for inserting media into a post as an example (hence the raw text). To test a workflow that supports multiple selection, run the following in your browser's JavaScript console:

	wp.media({ multiple: true });

see #21390, #21808.



git-svn-id: http://core.svn.wordpress.org/trunk@21769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-06 07:46:15 +00:00
Bot (Assets)
064a570aa7 Compress scripts/styles: 3.5-alpha-21684.
git-svn-id: http://core.svn.wordpress.org/trunk@21684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-31 06:59:25 +00:00
Daryl Koopersmith
c217397faa Add new media workflow scripts, styles, and templates.
Please note that this commit does not integrate media into the existing UI. If you would like to see the new UI, navigate to the post editor and run the following in your browser's Javascript console:

	new wp.media.controller.Workflow().render().modal.open();


The Javascript is broken up into two files, with the slugs media-models and media-views.

* media-models: The models are UI agnostic, and can be used independent of the views. If you'd like to create custom UIs, this is the script for you.

* media-views: This is the Media Experience. The views (and controllers) depend on the models (which are listed as a dependency and will automatically be included thanks to wp_enqueue_script). The views also require the media templates, media-view styles, and the plupload bridge settings. Perhaps we should create a function to include the whole shebang, but in the meantime...

To include media-views in the admin, run the following PHP in or after 'admin_enqueue_scripts':

	wp_enqueue_script( 'media-views' );
	wp_enqueue_style( 'media-views' );
	wp_plupload_default_settings();
	add_action( 'admin_footer', 'wp_print_media_templates' );

see #21390.



git-svn-id: http://core.svn.wordpress.org/trunk@21683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-31 04:54:23 +00:00
Bot (Assets)
e286612fda Compress scripts/styles: 3.5-alpha-21678.
git-svn-id: http://core.svn.wordpress.org/trunk@21678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-30 21:59:32 +00:00
Andrew Ozz
f44e60e0fa Update the query strings to refresh the toolbar sprites, props ocean90, see #20033
git-svn-id: http://core.svn.wordpress.org/trunk@21677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-30 21:46:37 +00:00
Bot (Assets)
e0835b5fc4 Compress scripts/styles: 3.5-alpha-21663.
git-svn-id: http://core.svn.wordpress.org/trunk@21663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-30 04:09:57 +00:00
Andrew Nacin
5f8add5ad2 Fix typo in CSS. props SergeyBiryukov. fixes #20587.
git-svn-id: http://core.svn.wordpress.org/trunk@21661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-30 03:04:10 +00:00
Andrew Ozz
3980c183a1 More visible :focus style for form elements, props lessbloat, see #21324
git-svn-id: http://core.svn.wordpress.org/trunk@21641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-28 05:48:58 +00:00
Andrew Nacin
2710bcade1 Switch to .min for compressed JS and CSS files.
* This moves our "development" versions from .dev.js to .js (same for css).
 * The compressed version then moves from .js to .min.js (same for css).

By switching to the standard .min convention, it sets expectations for developers,
and works nicely with existing tools such as ack.

fixes #21633.



git-svn-id: http://core.svn.wordpress.org/trunk@21592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-23 00:04:18 +00:00
bumpbot
cbacfc849c Compress scripts/styles: 3.5-alpha-21460.
git-svn-id: http://core.svn.wordpress.org/trunk@21460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-06 18:58:29 +00:00
azaozz
853df37fe8 Replace last remaining gradients with css, standardize the gradient css cascade, props ocean90, fixes #16461
git-svn-id: http://core.svn.wordpress.org/trunk@21459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-06 17:21:41 +00:00
bumpbot
f8ce3f7163 Compress scripts/styles: 3.5-alpha-21453.
git-svn-id: http://core.svn.wordpress.org/trunk@21453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-06 00:58:32 +00:00
azaozz
4ef4df2f3e Accessibility: add off-screen Log Out link in the toolbar, tweak the class names of the accessible links in #adminbar, see #21312
git-svn-id: http://core.svn.wordpress.org/trunk@21452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-06 00:34:44 +00:00
bumpbot
fc62ad5e57 Compress scripts/styles: 3.5-alpha-21443.
git-svn-id: http://core.svn.wordpress.org/trunk@21443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-05 22:58:29 +00:00
azaozz
83d04bb82a CSS cleanup: take out -moz-box-shadow, fixes #21482
git-svn-id: http://core.svn.wordpress.org/trunk@21439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-05 22:41:49 +00:00
azaozz
c368f0e6a1 Accessibility: fix the Skip to content link, show it on :focus, improve the styling of the skip links when shown, see #21310, see #21471
git-svn-id: http://core.svn.wordpress.org/trunk@21435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-05 21:37:57 +00:00
bumpbot
bb04145462 Compress scripts/styles: 3.5-alpha-21429.
git-svn-id: http://core.svn.wordpress.org/trunk@21429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-05 20:58:19 +00:00
azaozz
30dd9b1aa6 Accessibility: add text to the updates link in the toolbar, props SergeyBiryukov, fixes #21333
git-svn-id: http://core.svn.wordpress.org/trunk@21425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-05 19:10:11 +00:00
bumpbot
e2c2d70548 Compress scripts/styles: 3.5-alpha-21424.
git-svn-id: http://core.svn.wordpress.org/trunk@21424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-05 18:58:19 +00:00
azaozz
6bf5d66d5b Add "Skip to toolbar" accessibility shortcut, see #21471
git-svn-id: http://core.svn.wordpress.org/trunk@21423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-05 18:41:52 +00:00
bumpbot
0d4970e928 Compress scripts/styles: 3.5-alpha-21338.
git-svn-id: http://core.svn.wordpress.org/trunk@21339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 18:58:20 +00:00
azaozz
dcf3b84ebb Reset text-indent on the toolbar, props mfields, fixes #21362
git-svn-id: http://core.svn.wordpress.org/trunk@21335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 18:38:16 +00:00
bumpbot
6c82674ea0 Compress scripts/styles: 3.5-alpha-21321.
git-svn-id: http://core.svn.wordpress.org/trunk@21321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 06:58:20 +00:00
azaozz
883114f813 RTL css for the spinner in internal linking, see #21351
git-svn-id: http://core.svn.wordpress.org/trunk@21320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 05:15:26 +00:00
bumpbot
63df9ad5e0 Compress scripts/styles: 3.5-alpha-21309.
git-svn-id: http://core.svn.wordpress.org/trunk@21309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-23 22:58:26 +00:00
azaozz
4a9e3f4297 Fix internal linking search spinner position, fixes #21351
git-svn-id: http://core.svn.wordpress.org/trunk@21306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-23 22:18:28 +00:00
bumpbot
fc0ac0c0a9 Compress scripts/styles: 3.5-alpha-21297.
git-svn-id: http://core.svn.wordpress.org/trunk@21297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-21 00:58:19 +00:00
azaozz
4293682480 Add query args to refresh the sprite images, see #21019
git-svn-id: http://core.svn.wordpress.org/trunk@21296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-20 23:38:23 +00:00
azaozz
af65e282d2 Retina: fix the icon positions in the original editor buttons sprite, reset the css tweaks and adjust the positions in the 2x sprite, see #21019
git-svn-id: http://core.svn.wordpress.org/trunk@21295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-20 23:07:48 +00:00
bumpbot
0230a753ec Compress scripts/styles: 3.5-alpha-21229. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-07 16:58:20 +00:00
azaozz
54294ad174 Update TinyMCE to 3.5.4.1, fixes #21173
git-svn-id: http://core.svn.wordpress.org/trunk@21228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-07 16:22:53 +00:00
bumpbot
f6669710e0 Compress scripts/styles: 3.5-alpha-21103.
git-svn-id: http://core.svn.wordpress.org/trunk@21103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-22 00:58:22 +00:00
azaozz
1f68942126 Add 2x TinyMCE icons, props empireoflight, see #21019 for trunk
git-svn-id: http://core.svn.wordpress.org/trunk@21101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-22 00:31:18 +00:00
nacin
1d9c8f9aed Move customize-controls RTL CSS to wp-admin. see #20785.
git-svn-id: http://core.svn.wordpress.org/trunk@20963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-30 21:12:36 +00:00
nacin
b698913b10 Move customize-controls CSS and JS to wp-admin. fixes #20785.
git-svn-id: http://core.svn.wordpress.org/trunk@20960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-30 20:11:04 +00:00
bumpbot
59eeca6e71 Compress scripts/styles: 3.4-RC1-20956.
git-svn-id: http://core.svn.wordpress.org/trunk@20956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-30 16:58:19 +00:00
nacin
df1a904b9a Theme Customizer: Add the theme name to the 'You are previewing' string in the left pane, using a placeholder. props SergeyBiryukov, xibe. fixes #20782.
git-svn-id: http://core.svn.wordpress.org/trunk@20955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-30 16:57:44 +00:00
bumpbot
77cd1c3682 Compress scripts/styles: 3.4-RC1-20950.
git-svn-id: http://core.svn.wordpress.org/trunk@20950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-28 20:58:19 +00:00
markjaquith
0b0ba9bc54 RTL font updates for the Theme Customizer. props yoavf. fixes #20585
git-svn-id: http://core.svn.wordpress.org/trunk@20949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-28 20:00:15 +00:00
bumpbot
c8485f2a1b Compress scripts/styles: 3.4-beta4-20941.
git-svn-id: http://core.svn.wordpress.org/trunk@20941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 20:58:28 +00:00
koopersmith
c2c3f2ba7f Theme Customizer: Don't expand theme title if there are no details to show. props nacin, fixes #20757, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 20:47:55 +00:00
bumpbot
cc8f2c1e2d Compress scripts/styles: 3.4-beta4-20939.
git-svn-id: http://core.svn.wordpress.org/trunk@20939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 19:58:26 +00:00
koopersmith
187cdaf4cd Theme Customizer: Color picker RTL fixes. props ocean90, see #20448.
git-svn-id: http://core.svn.wordpress.org/trunk@20938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 19:02:09 +00:00
bumpbot
78f3c9a8e6 Compress scripts/styles: 3.4-beta4-20937.
git-svn-id: http://core.svn.wordpress.org/trunk@20937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 18:58:28 +00:00
koopersmith
0df3218cc2 Theme Customizer: Ensure that JS color controls always use real color values, even if the server-side value is a hex value without a hash. fixes #20448, see #19910.
Adds WP_Customize_Setting->sanitize_js_callback and 'customize_sanitize_js_$settingID' filter, to filter values before they're passed to JS using WP_Customize_Setting->js_value().

Adds support for regular hex colors to the color picker.

Changes color methods:
* sanitize_hex_color() accepts 3 and 6 digit hex colors (with hashes) and the empty string.
* sanitize_hex_color_no_hash() accepts 3 and 6 digit hex colors (without hashes) and the empty string.
* maybe_hash_hex_color() ensures that a hex color has a hash, and otherwise leaves the value untouched.


git-svn-id: http://core.svn.wordpress.org/trunk@20936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 18:44:31 +00:00
bumpbot
0b1958f333 Compress scripts/styles: 3.4-beta4-20935.
git-svn-id: http://core.svn.wordpress.org/trunk@20935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 15:58:30 +00:00
nacin
8766391117 Theme Customizer: More RTL. props ocean90. fixes #20585.
git-svn-id: http://core.svn.wordpress.org/trunk@20932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 15:22:02 +00:00
bumpbot
71b00f37aa Compress scripts/styles: 3.4-beta4-20929.
git-svn-id: http://core.svn.wordpress.org/trunk@20929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 05:58:26 +00:00
koopersmith
20f804ab8f Theme Customizer: Fix IE8 drag/drop uploader incompatibility. see #20582, #19910.
Bind drag/drop support checks to individual plupload instances.
Add drag-over classes to wp.Uploader and corresponding styles to customize image controls.


git-svn-id: http://core.svn.wordpress.org/trunk@20928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 05:55:40 +00:00
bumpbot
366ca788d5 Compress scripts/styles: 3.4-beta4-20921.
git-svn-id: http://core.svn.wordpress.org/trunk@20921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 22:58:24 +00:00
koopersmith
2d51b1376e Theme Customizer: Fix width for image picker thumbnails in IE8. props SergeyBiryukov, see #20582.
git-svn-id: http://core.svn.wordpress.org/trunk@20920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 22:52:05 +00:00
koopersmith
69c970a4a1 Hide 'Customize' toolbar item when customizer is not supported. fixes #20751, see #19910.
Removes script queue check for 'customize-loader' from wp_customize_support_script(), because we may want to check for customize-support on a page without the loader.


git-svn-id: http://core.svn.wordpress.org/trunk@20918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 22:26:00 +00:00
bumpbot
62608b9370 Compress scripts/styles: 3.4-beta4-20865.
git-svn-id: http://core.svn.wordpress.org/trunk@20865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 03:58:23 +00:00
koopersmith
4973f92107 Theme Customizer: Change 'Return to...' link to 'Cancel' and move 'Save' button to header. props helenyhou, fixes #20692, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-24 03:29:51 +00:00
bumpbot
95ecb49c92 Compress scripts/styles: 3.4-beta4-20825.
git-svn-id: http://core.svn.wordpress.org/trunk@20825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 21:58:27 +00:00
koopersmith
4e5c3519ea Theme Customizer: RTL fixes. props ocean90, fixes #20585, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 21:37:00 +00:00
bumpbot
3c413b1904 Compress scripts/styles: 3.4-beta4-20823.
git-svn-id: http://core.svn.wordpress.org/trunk@20823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 17:22:40 +00:00
koopersmith
67e4ef9102 Theme Customizer: Sidebar RTL fixes. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 17:08:20 +00:00
bumpbot
125c5610af Compress scripts/styles: 3.4-beta4-20821.
git-svn-id: http://core.svn.wordpress.org/trunk@20821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 15:58:23 +00:00
koopersmith
d28902a112 Theme Customizer: Ensure image control tabs are full-width to prevent floating bugs. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-17 15:56:18 +00:00
bumpbot
9047cffc73 Compress scripts/styles: 3.4-beta4-20815.
git-svn-id: http://core.svn.wordpress.org/trunk@20815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 23:58:26 +00:00
azaozz
0450af0ad5 Retina display icons: add 2x sprite for the toolbar, props chexee, fixes #20293
git-svn-id: http://core.svn.wordpress.org/trunk@20814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-16 23:55:38 +00:00
bumpbot
d8b1541f91 Compress scripts/styles: 3.4-beta4-20792.
git-svn-id: http://core.svn.wordpress.org/trunk@20792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-15 01:58:21 +00:00
koopersmith
ae14873b96 Theme Customizer: Prevent sidebar scrollbar from overlapping sidebar header or footer. fixes #20649, #20650, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-15 01:03:31 +00:00
bumpbot
791e0df3dd Compress scripts/styles: 3.4-beta4-20778.
git-svn-id: http://core.svn.wordpress.org/trunk@20778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-12 00:58:21 +00:00
koopersmith
eb44b211af Theme Customizer: Flex-width friendly UI, improved typographical hierarchy. see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-12 00:48:20 +00:00
bumpbot
e12aedf713 Compress scripts/styles: 3.4-beta4-20762.
git-svn-id: http://core.svn.wordpress.org/trunk@20762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-10 00:58:25 +00:00
koopersmith
1bac3f30e3 Theme Customizer: Add a fallback UI for browsers that do not support drag and drop upload. see #19910, #20452, #20582.
git-svn-id: http://core.svn.wordpress.org/trunk@20761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-10 00:15:53 +00:00
bumpbot
a9263fe649 Compress scripts/styles: 3.4-beta3-20678.
git-svn-id: http://core.svn.wordpress.org/trunk@20678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-01 22:58:23 +00:00
ryan
52c4490065 RTL style fixes for the Theme Customizer. Props ocean90, helenyhou.
git-svn-id: http://core.svn.wordpress.org/trunk@20674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-01 22:06:53 +00:00
bumpbot
01b652696f Compress scripts/styles: 3.4-beta3-20663.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 21:58:31 +00:00
nacin
842e757fd1 Explicitly set the dimensions of the avatar in the toolbar's profile menu. Avoids issues where overridden avatars could result in images that don't fit. props andrewryno. fixes #19539.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 21:38:39 +00:00
bumpbot
24b4c94fcf Compress scripts/styles: 3.4-beta3-20647.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 15:58:21 +00:00
koopersmith
2f2cb0926f Theme Customizer: Migrate to an ajax-based solution for refreshing the preview and saving. see #20507, #19910.
* Use ajax-based saving, add saving indicator.
* Use ajax-based refreshing instead of form targets.
* Instead of using hidden inputs with prefixed names to track the canonical data, use the values stored in wp.customize. Encode the values as JSON before sending to avoid bugs with ids that contain square brackets (PHP mangles POST values with nested brackets).
* Use wp.customize.Previewer solely for the purpose of previewing; move the postMessage connection with the parent frame and other unrelated code snippets into the 'ready' handler.


git-svn-id: http://svn.automattic.com/wordpress/trunk@20645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 15:46:17 +00:00
bumpbot
17ee4064b1 Compress scripts/styles: 3.4-beta3-20644.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 12:58:19 +00:00
nacin
b1d8cfb1c6 Fix typo in hex color code. props bananastalktome. fixes #20574.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 12:50:55 +00:00
bumpbot
58ef081f06 Compress scripts/styles: 3.4-beta3-20603.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 21:58:24 +00:00
koopersmith
a75702bba4 Theme Customizer: Add statuses to the color and image controls. see #19910.
Move the color control from the switch statement to WP_Customize_Color_Control.
Markup improvements.


git-svn-id: http://svn.automattic.com/wordpress/trunk@20598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 21:03:29 +00:00
bumpbot
ad4bfd0a45 Compress scripts/styles: 3.4-beta2-20548.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 04:58:21 +00:00
koopersmith
3668ad4516 Theme Customizer: Firefox CSS love. props helenyhou, see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 04:46:02 +00:00
bumpbot
ca047faab9 Compress scripts/styles: 3.4-beta2-20546.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 02:58:21 +00:00
koopersmith
a20bfcd6b1 Theme Customizer: Improve image picker control. see #19910.
Overhauled image pickers:
* Add support for drag and drop uploads to image controls.
* Improve the 'uploaded' tab in image controls: automatically add images uploaded during the current session, hide the tab when no uploaded images exist.
* Move the header image control to the WP_Customize_Header_Image_Control class. Remove wp_customize_print_uploaded_headers() and wp_customize_print_uploaded_headers() functions.
* Abstract the dropdown functionality from the color picker to the .dropdown class.
* In wp.Uploader, unset element keys if passed an empty jQuery collection.



git-svn-id: http://svn.automattic.com/wordpress/trunk@20545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 02:39:55 +00:00
bumpbot
f8201ed9e2 Compress scripts/styles: 3.4-beta2-20531.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 06:58:24 +00:00
koopersmith
4900af30f1 Theme Customizer: Box model fixes for image picker thumbnails. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 06:45:31 +00:00
koopersmith
c0cc088cb5 Theme Customizer: Begin improving image picker markup/styles. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 06:29:54 +00:00
bumpbot
1aa1918f28 Compress scripts/styles: 3.4-beta2-20512.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 18:58:19 +00:00
koopersmith
8acedf47a9 Theme Customizer: Color control hover styles. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 18:01:20 +00:00
bumpbot
1085d4ecb7 Compress scripts/styles: 3.4-beta2-20505.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 14:58:20 +00:00
koopersmith
5e5a6446d1 Theme Customizer: Improve markup/styles for opened color picker. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 14:32:05 +00:00
bumpbot
83f549b02d Compress scripts/styles: 3.4-beta2-20500.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-17 23:58:21 +00:00
koopersmith
1c19b69eeb Theme Customizer: Improve color picker toggle styles and markup. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-17 22:58:58 +00:00
bumpbot
2884dc969d Compress scripts/styles: 3.4-beta2-20478.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-16 14:58:23 +00:00
koopersmith
a5dacf7da5 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: http://svn.automattic.com/wordpress/trunk@20476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-16 14:02:28 +00:00
bumpbot
ee1bfeb6ab Compress scripts/styles: 3.4-beta2-20457.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 21:58:23 +00:00
koopersmith
017c1a2b81 Theme Customizer: RTL styles. props ocean90. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 21:53:19 +00:00
bumpbot
5226ec2d04 Compress scripts/styles: 3.4-beta1-20405.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-08 21:58:20 +00:00
koopersmith
5a8121fc8f Theme Customizer: Add a 'previewing' notice by the theme name. Reduce padding and size on section titles, add a border between section titles and content to better indicate the title as a click target. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-08 21:17:46 +00:00