WordPress.org

Make WordPress Core

Changeset 19997


Ignore:
Timestamp:
02/25/12 04:16:01 (2 years ago)
Author:
bumpbot
Message:

Compress scripts/styles: 3.4-alpha-19996.

Location:
trunk/wp-includes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/css/customize-controls.css

    r19995 r19997  
     1body{overflow:hidden}.customize-section{border-top:1px solid #fff;border-bottom:1px solid #dfdfdf;padding:15px 20px;margin:0}.customize-section:last-child{box-shadow:0 1px 0 0 #fff}#customize-controls{width:300px;height:100%;padding:0;margin:0;z-index:10;position:relative;overflow:auto;background:#f5f5f5;box-shadow:inset -11px 0 8px -8px rgba(0,0,0,0.1);border-right:1px solid rgba(0,0,0,0.2)}#customize-controls .theme-name{font-size:16px;font-weight:bold;line-height:24px;display:block}#customize-controls .theme-screenshot{width:258px;border:1px solid #ccc}#customize-controls .submit{text-align:center}#customize-info{padding-top:55px}#customize-theme-controls{padding-bottom:60px}#customize-theme-controls ul{margin:0}#customize-theme-controls ul ul{margin-top:1em;display:none}#customize-theme-controls ul h3{margin:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}#customize-theme-controls ul h3:hover{cursor:pointer}#customize-theme-controls ul h3:after{content:'';border-color:#ccc transparent transparent transparent;border-style:solid;border-width:6px;float:right;margin-top:5px;margin-left:5px}#customize-theme-controls ul h3.open:after{-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);-moz-transform-origin:center 3px;-webkit-transform-origin:center 3px;-o-transform-origin:center 3px;-ms-transform-origin:center 3px;transform-origin:center 3px}#customize-footer{border-bottom:0;border-top:1px solid #dfdfdf;position:fixed;bottom:0;left:0;width:260px;padding:15px 20px;margin:0;z-index:10;background:#f5f5f5;box-shadow:inset -11px 0 8px -8px rgba(0,0,0,0.1),inset 0 1px 0 0 #fff,0 0 11px 0 rgba(0,0,0,0.1)}#customize-preview{position:fixed;left:300px;right:0;top:0;bottom:0}#customize-preview iframe{width:100%;height:100%}.customize-loader{background:transparent;border:4px solid #666;border-radius:50%;display:block;margin:10px auto;text-indent:-9999px;height:12px;width:12px;-webkit-animation:customize-loader 1s infinite ease-out;-moz-animation:customize-loader 1s infinite ease-out;animation:customize-loader 1s infinite ease-out}@-moz-keyframes customize-loader{0%{opacity:0;-moz-transform:scale(0.7)}40%{opacity:1}100%{opacity:0;-moz-transform:scale(1)}}@-webkit-keyframes customize-loader{0%{opacity:0;-webkit-transform:scale(0.7)}40%{opacity:1}100%{opacity:0;-webkit-transform:scale(1)}}@keyframes customize-loader{0%{opacity:0;transform:scale(0.7)}40%{opacity:1}100%{opacity:0;transform:scale(1)}}.customize-section select{max-width:150px}.customize-section .hex-prepend{float:left;display:block;margin:1px -2px 0 0;line-height:15px;padding:3px 5px;color:#777;text-align:center;background-color:#fff;border:1px solid #dfdfdf;-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.customize-section input[type="text"].hex-input{-webkit-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;width:150px}.customize-section .hex-color-example{border:1px solid #dfdfdf;-webkit-border-radius:3px;border-radius:3px;padding:3px 14px;background-color:#ef45da} 
  • trunk/wp-includes/css/customize-loader.css

    r19995 r19997  
     1body.customize-active{overflow:hidden}#customize-container{display:none;background:#fff;z-index:500000;position:fixed;top:0;bottom:0;left:0;right:0}.customize-active #customize-container{display:block}#customize-container.collapsed{left:-302px}#customize-container .collapse-sidebar,#customize-container .return-to-admin{z-index:50}#customize-container div{position:absolute;left:0;top:0;width:260px;padding:15px 20px;background:#f5f5f5;box-shadow:inset -11px 0 8px -8px rgba(0,0,0,0.1),inset 0 -1px 0 #dfdfdf,-1px 1px 0 #fff;border-right:1px solid rgba(0,0,0,0.2)}#customize-container iframe{height:100%;width:100%;z-index:20}#customize-container .collapse-sidebar{position:absolute;top:13px;left:265px;z-index:50;display:block;width:19px;height:19px;padding:0;border-radius:50%}#customize-container.collapsed .collapse-sidebar{position:absolute;left:315px}#customize-container .collapse-sidebar span{margin-top:2px;margin-left:2px;display:block;width:15px;height:15px;background:transparent url('../../wp-admin/images/arrows.png') no-repeat 0 -72px}#customize-container.collapsed .collapse-sidebar span{background-position:0 -108px}#customize-container,#customize-container .collapse-sidebar{-moz-transition-property:left,right,top,bottom;-webkit-transition-property:left,right,top,bottom;-o-transition-property:left,right,top,bottom;-ms-transition-property:left,right,top,bottom;transition-property:left,right,top,bottom;-moz-transition-duration:.2s;-webkit-transition-duration:.2s;-o-transition-duration:.2s;-ms-transition-duration:.2s;transition-duration:.2s} 
  • trunk/wp-includes/js/customize-base.js

    r19995 r19997  
     1if(typeof wp==="undefined"){var wp={}}(function(a,e){var c,h,d,g,b,f=Array.prototype.slice;h=function(i,j){var k=g(this,i,j);k.extend=this.extend;return k};d=function(){};g=function(j,i,k){var l;if(i&&i.hasOwnProperty("constructor")){l=i.constructor}else{l=function(){var m=j.apply(this,arguments);return m}}e.extend(l,j);d.prototype=j.prototype;l.prototype=new d();if(i){e.extend(l.prototype,i)}if(k){e.extend(l,k)}l.prototype.constructor=l;l.__super__=j.prototype;return l};b=e.Callbacks("once memory");c={};c.Class=function(m,l,j){var k,i=arguments;if(m&&l&&c.Class.applicator===m){i=l;e.extend(this,j||{})}k=this;if(this.instance){k=function(){return k.instance.apply(k,arguments)};e.extend(k,this)}k.initialize.apply(k,i);return k};c.Class.applicator={};c.Class.prototype.initialize=function(){};c.Class.prototype.extended=function(i){var j=this;while(typeof j.constructor!=="undefined"){if(j.constructor===i){return true}if(typeof j.constructor.__super__==="undefined"){return false}j=j.constructor.__super__}return false};c.Class.extend=h;c.Value=c.Class.extend({initialize:function(j,i){this._value=j;this.callbacks=e.Callbacks();e.extend(this,i||{})},instance:function(){return arguments.length?this.set.apply(this,arguments):this.get()},get:function(){return this._value},set:function(j){var i=this._value;j=this.validate(j);if(null===j||this._value===j){return this}this._value=j;this.callbacks.fireWith(this,[j,i]);return this},validate:function(i){return i},bind:function(i){this.callbacks.add.apply(this.callbacks,arguments);return this},unbind:function(i){this.callbacks.remove.apply(this.callbacks,arguments);return this},link:function(){var k=f.call(arguments),n=k.pop(),i=this,m,j,l;if(this.links){this.unlink()}this.links=[];if(!k.length){k=[n];n=function(o,p){return p}}while(j=k.shift()){if(this._parent&&e.type(j)=="string"){this.links.push(this._parent[j])}else{this.links.push(j)}}m=function(){var p,o;if(l){return i.set.original.apply(i,arguments)}l=true;p=i.links.concat(f.call(arguments));o=n.apply(i,p);l=false;if(typeof o!=="undefined"){i.set.original.call(i,o)}};m.original=this.set;this.set=m;e.each(this.links,function(o,p){p.bind(i.set)});this.set(this.get());return this},unlink:function(){var i=this.set;e.each(this.links,function(j,k){k.unbind(i)});delete this.links;this.set=this.set.original;return this}});c.ensure=function(i){return typeof i=="string"?e(i):i};sync={val:{update:function(){this.element[this._updater](this._value)},refresh:function(){this.set(this.element[this._refresher]())}}};c.Element=c.Value.extend({initialize:function(j,i){var l=c.Element.synchronizer.html,k;this.element=c.ensure(j);this.events="";if(this.element.is("input, select, textarea")){this.events+="change";l=c.Element.synchronizer.val;if(this.element.is("input")){k=this.element.prop("type");if(c.Element.synchronizer[k]){l=c.Element.synchronizer[k]}if("text"===k||"password"===k){this.events+=" keyup"}}}c.Value.prototype.initialize.call(this,null,e.extend(i||{},l));this._value=this.get();this.bind(this.update);this.refresh=e.proxy(this.refresh,this);this.element.bind(this.events,this.refresh)},find:function(i){return e(i,this.element)},refresh:function(){},update:function(){}});c.Element.synchronizer={};e.each(["html","val"],function(j,k){c.Element.synchronizer[k]={update:function(i){this.element[k](i)},refresh:function(){this.set(this.element[k]())}}});c.Element.synchronizer.checkbox={update:function(i){this.element.prop("checked",i)},refresh:function(){this.set(this.element.prop("checked"))}};c.Element.synchronizer.radio={update:function(i){this.element.filter(function(){return this.value===i}).prop("checked",true)},refresh:function(){this.set(this.element.filter(":checked").val())}};c.ValueFactory=function(i){i=i||c.Value;return function(k){var j=f.call(arguments,1);this[k]=new i(c.Class.applicator,j);this[k]._parent=this;return this[k]}};c.Values=c.Value.extend({defaultConstructor:c.Value,initialize:function(i){c.Value.prototype.initialize.call(this,{},i||{})},instance:function(i){return this.value(i)},value:function(i){return this._value[i]},has:function(i){return typeof this._value[i]!=="undefined"},add:function(j,i){if(this.has(j)){return}this._value[j]=i;this._value[j]._parent=this._value;return this._value[j]},set:function(i){if(this.has(i)){return this.pass("set",arguments)}return this.add(i,new this.defaultConstructor(c.Class.applicator,f.call(arguments,1)))},remove:function(i){delete this._value[i]},pass:function(j,i){var l,k;i=f.call(i);l=i.shift();if(!this.has(l)){return}k=this.value(l);return k[j].apply(k,i)}});e.each(["get","bind","unbind","link","unlink"],function(j,k){c.Values.prototype[k]=function(){return this.pass(k,arguments)}});c.Messenger=c.Class.extend({add:c.ValueFactory(),initialize:function(j,i){e.extend(this,i||{});this.add("url",j);this.add("origin").link("url",function(k){return k().replace(/([^:]+:\/\/[^\/]+).*/,"$1")});this.topics={};e.receiveMessage(e.proxy(this.receive,this),this.origin()||null)},receive:function(j){var i;console.log("messenger receiveMessage",arguments);i=JSON.parse(j.data);if(i&&i.id&&i.data&&this.topics[i.id]){this.topics[i.id].fireWith(this,[i.data])}},send:function(k,j){var i;if(!this.url()){return}console.log("sending message",k,j);i=JSON.stringify({id:k,data:j});e.postMessage(i,this.url(),this.targetWindow||null)},bind:function(k,j){var i=this.topics[k]||(this.topics[k]=e.Callbacks());i.add(j)},unbind:function(j,i){if(this.topics[j]){this.topics[j].remove(i)}}});c=e.extend(new c.Values(),c);a.customize=c})(wp,jQuery); 
  • trunk/wp-includes/js/customize-controls.js

    r19995 r19997  
     1(function(a,c){var b=wp.customize;b.Previewer=b.Messenger.extend({initialize:function(e,d){c.extend(this,d||{});this.iframe=b.ensure(e.iframe);this.form=b.ensure(e.form);b.Messenger.prototype.initialize.call(this,e.url,{targetWindow:this.iframe[0].contentWindow});this._formOriginalProps={target:this.form.prop("target"),action:this.form.prop("action")};this.bind("url",function(f){if(this.url()==f||0!==f.indexOf(this.origin()+"/")||-1!==f.indexOf("wp-admin")){return}this.url(f);this.refresh()});this.refresh()},refresh:function(){this.submit({target:this.iframe.prop("name"),action:this.url()})},submit:function(d){if(d){this.form.prop(d)}this.form.submit();if(d){this.form.prop(this._formOriginalProps)}}});c(function(){var e,d=c('[name^="'+b.settings.prefix+'"]');e=new b.Previewer({iframe:"#customize-preview iframe",form:"#customize-controls",url:b.settings.preview});c.each(b.settings.values,function(i,h){var g=d.filter('[name="'+b.settings.prefix+i+'"]'),f=b.set(i,h);f.control=new wp.customize.Element(g);f.control.link(f);f.link(f.control)});c(".control-section h3").click(function(){c(this).siblings("ul").slideToggle(200);c(this).toggleClass("open");return false});c("#save").click(function(){e.submit();return false});c("#refresh").click(function(){e.refresh();return false});c('[name^="'+b.settings.prefix+'"]').each(function(){})})})(wp,jQuery); 
  • trunk/wp-includes/js/customize-loader.js

    r19995 r19997  
     1if(typeof wp==="undefined"){var wp={}}(function(a,b){var c={initialize:function(){this.body=b(document.body);this.element=b("#customize-container");this.base=b(".admin-url",this.element).val();this.doc_title=b(document).attr("title");this.element.on("click",".return-to-admin",function(){c.close();return false});this.element.on("click",".collapse-sidebar",function(){c.element.toggleClass("collapsed");return false})},open:function(d){d.customize="on";this.element.append("<iframe />");this.iframe=b("iframe").attr("src",this.base+"?"+jQuery.param(d));b("iframe").load(function(){title=b(this).contents().find("title").text();b(document).attr("title",title)});this.element.fadeIn(200,function(){c.body.addClass("customize-active")})},close:function(){this.element.fadeOut(200,function(){c.iframe.remove();c.iframe=null;c.body.removeClass("customize-active");b(document).attr("title",c.doc_title)})}};b(function(){c.initialize();b(".thickbox-preview").click(function(g){var d,f,e;g.preventDefault();g.stopImmediatePropagation();d=b(this).attr("href");f=d.match("template=([^&]*)")[1];e=d.match("stylesheet=([^&]*)")[1];c.open({template:f,stylesheet:e})}).filter(function(){return"Preview"==b(this).text()}).text("Customize")});a.CustomizeLoader=c})(wp,jQuery); 
  • trunk/wp-includes/js/customize-preview.js

    r19995 r19997  
     1(function(a,c){var b=wp.customize;b.Preview=b.Messenger.extend({initialize:function(f,e){var d=this;c.extend(this,e||{});b.Messenger.prototype.initialize.call(this,f);this.body=c(document.body);this.body.on("click.preview","a",function(g){g.preventDefault();d.send("url",c(this).attr("href"))});this.body.on("submit.preview","form",function(g){g.preventDefault()});this.bind("url",function(g){this.url(g);this.refresh()})},refresh:function(){this.submit({target:this.iframe.prop("name"),action:this.url()})},submit:function(d){if(d){this.form.prop(d)}this.form.submit();if(d){this.form.prop(this._formOriginalProps)}}});c(function(){var d;d=new b.Preview(b.settings.parent)})})(wp,jQuery); 
  • trunk/wp-includes/version.php

    r19994 r19997  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '3.4-alpha-19994'; 
     7$wp_version = '3.4-alpha-19996'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.