Simplify pointer API with smarter positioning. see #18693.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6141f8039b
commit
c47765dedb
|
@ -1650,7 +1650,6 @@ function wp_pointer_enqueue( $hook_suffix ) {
|
||||||
if ( $enqueue ) {
|
if ( $enqueue ) {
|
||||||
wp_enqueue_style( 'wp-pointer' );
|
wp_enqueue_style( 'wp-pointer' );
|
||||||
wp_enqueue_script( 'wp-pointer' );
|
wp_enqueue_script( 'wp-pointer' );
|
||||||
wp_enqueue_script( 'utils' );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_action( 'admin_enqueue_scripts', 'wp_pointer_enqueue' );
|
add_action( 'admin_enqueue_scripts', 'wp_pointer_enqueue' );
|
||||||
|
@ -1664,13 +1663,9 @@ function _wp_pointer_print_admin_bar() {
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
jQuery(document).ready( function($) {
|
jQuery(document).ready( function($) {
|
||||||
$('#wpadminbar').pointer({
|
$('#wp-admin-bar-help').pointer({
|
||||||
content: '<?php echo $pointer_content; ?>',
|
content: '<?php echo $pointer_content; ?>',
|
||||||
position: {
|
position: 'top',
|
||||||
my: 'left top',
|
|
||||||
at: 'center bottom',
|
|
||||||
offset: '-25 0'
|
|
||||||
},
|
|
||||||
close: function() {
|
close: function() {
|
||||||
$.post( ajaxurl, {
|
$.post( ajaxurl, {
|
||||||
pointer: 'wp330-admin-bar',
|
pointer: 'wp330-admin-bar',
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
.wp-pointer-content{padding:0 10px;background:white;border:1px solid #aaa;-moz-box-shadow:0 0 16px rgba(0,0,0,0.1);-webkit-box-shadow:0 0 16px rgba(0,0,0,0.1);box-shadow:0 0 16px rgba(0,0,0,0.1);}.wp-pointer-buttons{padding:0 0 10px 0;overflow:auto;}.wp-pointer-buttons a{float:right;display:inline-block;}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0;}.wp-pointer-arrow{z-index:10;}.wp-pointer-arrow-inner{z-index:20;}.wp-pointer-left{margin-left:10px;}.wp-pointer-right{margin-left:-10px;}.wp-pointer-top{margin-top:10px;}.wp-pointer-bottom{margin-top:-10px;}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow,.wp-pointer-top .wp-pointer-arrow,.wp-pointer-bottom .wp-pointer-arrow{border:solid 10px transparent;}.wp-pointer-left .wp-pointer-arrow{border-right-color:#aaa;border-left-width:0;right:100%;top:0;}.wp-pointer-right .wp-pointer-arrow{border-left-color:#aaa;border-right-width:0;left:100%;top:0;}.wp-pointer-top .wp-pointer-arrow{border-bottom-color:#aaa;border-top-width:0;left:0;bottom:100%;}.wp-pointer-bottom .wp-pointer-arrow{border-top-color:#aaa;border-bottom-width:0;left:0;top:100%;}.wp-pointer-left .wp-pointer-arrow-inner,.wp-pointer-right .wp-pointer-arrow-inner,.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer-bottom .wp-pointer-arrow-inner{border:solid 9px transparent;}.wp-pointer-left .wp-pointer-arrow-inner{border-right-color:#fff;border-left-width:0;top:-9px;left:2px;}.wp-pointer-right .wp-pointer-arrow-inner{border-left-color:#fff;border-right-width:0;top:-9px;right:2px;}.wp-pointer-top .wp-pointer-arrow-inner{border-bottom-color:#fff;border-top-width:0;top:2px;left:-9px;}.wp-pointer-bottom .wp-pointer-arrow-inner{border-top-color:#fff;border-bottom-width:0;bottom:2px;left:-9px;}
|
.wp-pointer-content{padding:0 10px;background:white;border:1px solid #aaa;-moz-box-shadow:0 0 16px rgba(0,0,0,0.1);-webkit-box-shadow:0 0 16px rgba(0,0,0,0.1);box-shadow:0 0 16px rgba(0,0,0,0.1);}.wp-pointer-buttons{padding:0 0 10px 0;overflow:auto;}.wp-pointer-buttons a{float:right;display:inline-block;}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0;}.wp-pointer-arrow{z-index:10;}.wp-pointer-arrow-inner{z-index:20;}.wp-pointer-left{margin-left:10px;}.wp-pointer-right{margin-left:-10px;}.wp-pointer-top{margin-top:10px;}.wp-pointer-bottom{margin-top:-10px;}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow,.wp-pointer-top .wp-pointer-arrow,.wp-pointer-bottom .wp-pointer-arrow{border:solid 10px transparent;}.wp-pointer-left .wp-pointer-arrow{border-right-color:#aaa;border-left-width:0;}.wp-pointer-right .wp-pointer-arrow{border-left-color:#aaa;border-right-width:0;}.wp-pointer-top .wp-pointer-arrow{border-bottom-color:#aaa;border-top-width:0;}.wp-pointer-bottom .wp-pointer-arrow{border-top-color:#aaa;border-bottom-width:0;}.wp-pointer-left .wp-pointer-arrow-inner,.wp-pointer-right .wp-pointer-arrow-inner,.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer-bottom .wp-pointer-arrow-inner{border:solid 9px transparent;}.wp-pointer-left .wp-pointer-arrow-inner{border-right-color:#fff;border-left-width:0;top:-9px;left:2px;}.wp-pointer-right .wp-pointer-arrow-inner{border-left-color:#fff;border-right-width:0;top:-9px;right:2px;}.wp-pointer-top .wp-pointer-arrow-inner{border-bottom-color:#fff;border-top-width:0;top:2px;left:-9px;}.wp-pointer-bottom .wp-pointer-arrow-inner{border-top-color:#fff;border-bottom-width:0;bottom:2px;left:-9px;}
|
|
@ -51,26 +51,18 @@
|
||||||
.wp-pointer-left .wp-pointer-arrow {
|
.wp-pointer-left .wp-pointer-arrow {
|
||||||
border-right-color: #aaa;
|
border-right-color: #aaa;
|
||||||
border-left-width: 0;
|
border-left-width: 0;
|
||||||
right: 100%;
|
|
||||||
top: 0;
|
|
||||||
}
|
}
|
||||||
.wp-pointer-right .wp-pointer-arrow {
|
.wp-pointer-right .wp-pointer-arrow {
|
||||||
border-left-color: #aaa;
|
border-left-color: #aaa;
|
||||||
border-right-width: 0;
|
border-right-width: 0;
|
||||||
left: 100%;
|
|
||||||
top: 0;
|
|
||||||
}
|
}
|
||||||
.wp-pointer-top .wp-pointer-arrow {
|
.wp-pointer-top .wp-pointer-arrow {
|
||||||
border-bottom-color: #aaa;
|
border-bottom-color: #aaa;
|
||||||
border-top-width: 0;
|
border-top-width: 0;
|
||||||
left: 0;
|
|
||||||
bottom: 100%;
|
|
||||||
}
|
}
|
||||||
.wp-pointer-bottom .wp-pointer-arrow {
|
.wp-pointer-bottom .wp-pointer-arrow {
|
||||||
border-top-color: #aaa;
|
border-top-color: #aaa;
|
||||||
border-bottom-width: 0;
|
border-bottom-width: 0;
|
||||||
left: 0;
|
|
||||||
top: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-pointer-left .wp-pointer-arrow-inner,
|
.wp-pointer-left .wp-pointer-arrow-inner,
|
||||||
|
|
|
@ -19,16 +19,7 @@
|
||||||
t.element.pointer('close');
|
t.element.pointer('close');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
arrow: 'auto',
|
position: 'top',
|
||||||
position: {
|
|
||||||
my: "left center",
|
|
||||||
at: "right center"
|
|
||||||
},
|
|
||||||
arrow: {
|
|
||||||
edge: 'top',
|
|
||||||
align: 'left',
|
|
||||||
offset: 20
|
|
||||||
},
|
|
||||||
show: function( event, t ) {
|
show: function( event, t ) {
|
||||||
t.pointer.show();
|
t.pointer.show();
|
||||||
t.opened();
|
t.opened();
|
||||||
|
@ -151,9 +142,13 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
reposition: function() {
|
reposition: function() {
|
||||||
|
var position;
|
||||||
|
|
||||||
if ( this.options.disabled )
|
if ( this.options.disabled )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
position = this._processPosition( this.options.position );
|
||||||
|
|
||||||
// Reposition pointer.
|
// Reposition pointer.
|
||||||
this.pointer.css({
|
this.pointer.css({
|
||||||
top: 0,
|
top: 0,
|
||||||
|
@ -161,41 +156,84 @@
|
||||||
zIndex: zindex++ // Increment the z-index so that it shows above other opened pointers.
|
zIndex: zindex++ // Increment the z-index so that it shows above other opened pointers.
|
||||||
}).show().position($.extend({
|
}).show().position($.extend({
|
||||||
of: this.element
|
of: this.element
|
||||||
}, this.options.position )); // the object comes before this.options.position so the user can override position.of.
|
}, position )); // the object comes before this.options.position so the user can override position.of.
|
||||||
|
|
||||||
this.repoint();
|
this.repoint();
|
||||||
},
|
},
|
||||||
|
|
||||||
repoint: function() {
|
repoint: function() {
|
||||||
var o = this.options,
|
var o = this.options,
|
||||||
position = {
|
position,
|
||||||
my: 'center',
|
at;
|
||||||
of: this.pointer
|
|
||||||
},
|
|
||||||
clear;
|
|
||||||
|
|
||||||
if ( o.disabled )
|
if ( o.disabled )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Generate arrow position from the box position.
|
||||||
|
position = $.extend( this._processPosition( o.position ), {
|
||||||
|
of: this.pointer,
|
||||||
|
offset: ''
|
||||||
|
});
|
||||||
|
|
||||||
|
// Swap at and my; we're positioning the arrow relative to the box.
|
||||||
|
at = position.at + '';
|
||||||
|
position.at = position.my;
|
||||||
|
position.my = at;
|
||||||
|
|
||||||
|
// Don't align the arrows exactly with the edge.
|
||||||
|
if ( position.align != 'center' ) {
|
||||||
|
position.offset = ( position.align == 'top' || position.align == 'left' ) ? 15 : -15;
|
||||||
|
if ( position.align == 'top' || position.align == 'bottom' )
|
||||||
|
position.offset = '0 ' + position.offset;
|
||||||
|
else
|
||||||
|
position.offset = position.offset + ' 0';
|
||||||
|
}
|
||||||
|
|
||||||
// Remove arrow classes.
|
// Remove arrow classes.
|
||||||
this.pointer[0].className = this.pointer[0].className.replace( /wp-pointer-[^\s'"]*/, '' );
|
this.pointer[0].className = this.pointer[0].className.replace( /wp-pointer-[^\s'"]*/, '' );
|
||||||
|
|
||||||
if ( o.arrow.edge == 'top' || o.arrow.edge == 'bottom' ) {
|
// Add arrow class.
|
||||||
position.at = o.arrow.align + ' ' + o.arrow.edge;
|
this.pointer.addClass( 'wp-pointer-' + position.edge );
|
||||||
position.offset = o.arrow.offset + ' 0';
|
|
||||||
clear = 'top';
|
|
||||||
} else {
|
|
||||||
position.at = o.arrow.edge + ' ' + o.arrow.align;
|
|
||||||
position.offset = '0 ' + o.arrow.offset;
|
|
||||||
clear = 'left';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reposition arrow.
|
// Reposition arrow.
|
||||||
this.arrow.position( position ).css( clear, '' );
|
this.arrow.position( position );
|
||||||
// Add arrow class.
|
|
||||||
this.pointer.addClass( 'wp-pointer-' + o.arrow.edge );
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_processPosition: function( position ) {
|
||||||
|
var opposite = {
|
||||||
|
top: 'bottom',
|
||||||
|
bottom: 'top',
|
||||||
|
left: 'right',
|
||||||
|
right: 'left'
|
||||||
|
},
|
||||||
|
result;
|
||||||
|
|
||||||
|
// If the position object is a string, it is shorthand for position.edge.
|
||||||
|
if ( typeof position == 'string' ) {
|
||||||
|
result = {
|
||||||
|
edge: position + ''
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
result = $.extend( {}, position );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! result.edge )
|
||||||
|
return result;
|
||||||
|
|
||||||
|
if ( result.edge == 'top' || result.edge == 'bottom' ) {
|
||||||
|
result.align = result.align || 'left';
|
||||||
|
|
||||||
|
result.at = result.at || result.align + ' ' + opposite[ result.edge ];
|
||||||
|
result.my = result.my || result.align + ' ' + result.edge;
|
||||||
|
} else {
|
||||||
|
result.align = result.align || 'top';
|
||||||
|
|
||||||
|
result.at = result.at || opposite[ result.edge ] + ' ' + result.align;
|
||||||
|
result.my = result.my || result.edge + ' ' + result.align;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
|
||||||
open: function( event ) {
|
open: function( event ) {
|
||||||
var self = this,
|
var self = this,
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
(function(c){var a=0,b=9999;c.widget("wp.pointer",{options:{pointerClass:"wp-pointer",content:function(f,e,d){return c(this).text()},buttons:function(f,e){var g=(wpPointerL10n)?wpPointerL10n.close:"Close",d=c('<a class="button-secondary">'+g+"</div>");return d.bind("click.pointer",function(){e.element.pointer("close")})},arrow:"auto",position:{my:"left center",at:"right center"},arrow:{edge:"top",align:"left",offset:20},show:function(e,d){d.pointer.show();d.opened()},hide:function(e,d){d.pointer.hide();d.closed()},document:document},_create:function(){var e,d;this.content=c('<div class="wp-pointer-content"></div>');this.arrow=c('<div class="wp-pointer-arrow"><div class="wp-pointer-arrow-inner"></div></div>');d=this.element.parents().add(this.element);e="absolute";if(d.filter(function(){return"fixed"===c(this).css("position")}).length){e="fixed"}this.pointer=c("<div />").append(this.content).append(this.arrow).attr("id","wp-pointer-"+a++).addClass(this.options.pointerClass).css("position",e).hide().appendTo(this.options.document.body)},_setOption:function(d,f){var g=this.options,e=this.pointer;if(d==="document"&&f!==g.document){e.detach().appendTo(f.body)}else{if(d==="pointerClass"){e.removeClass(g.pointerClass).addClass(f)}}c.Widget.prototype._setOption.apply(this,arguments);if(d==="position"){this.reposition()}else{if(d==="content"&&this.active){this.update()}}},destroy:function(){this.pointer.remove();c.Widget.prototype.destroy.call(this)},widget:function(){return this.pointer},update:function(g){var e=this,h=this.options,d=c.Deferred(),f;if(h.disabled){return}d.done(function(i){e._update(g,i)});if(typeof h.content==="string"){f=h.content}else{f=h.content.call(this.element[0],d.resolve,g,this._handoff())}if(f){d.resolve(f)}return d.promise()},_update:function(f,e){var d,g=this.options;if(!e){return}this.pointer.stop();this.content.html(e);d=g.buttons.call(this.element[0],f,this._handoff());if(d){d.wrap('<div class="wp-pointer-buttons" />').parent().appendTo(this.content)}this.reposition()},reposition:function(){if(this.options.disabled){return}this.pointer.css({top:0,left:0,zIndex:b++}).show().position(c.extend({of:this.element},this.options.position));this.repoint()},repoint:function(){var f=this.options,e={my:"center",of:this.pointer},d;if(f.disabled){return}this.pointer[0].className=this.pointer[0].className.replace(/wp-pointer-[^\s'"]*/,"");if(f.arrow.edge=="top"||f.arrow.edge=="bottom"){e.at=f.arrow.align+" "+f.arrow.edge;e.offset=f.arrow.offset+" 0";d="top"}else{e.at=f.arrow.edge+" "+f.arrow.align;e.offset="0 "+f.arrow.offset;d="left"}this.arrow.position(e).css(d,"");this.pointer.addClass("wp-pointer-"+f.arrow.edge)},open:function(e){var d=this,f=this.options;if(this.active||f.disabled){return}this.update().done(function(){d._open(e)})},_open:function(e){var d=this,f=this.options;if(this.active||f.disabled){return}this.active=true;this._trigger("open",e,this._handoff());this._trigger("show",e,this._handoff({opened:function(){d._trigger("opened",e,d._handoff())}}))},close:function(e){if(!this.active||this.options.disabled){return}var d=this;this.active=false;this._trigger("close",e,this._handoff());this._trigger("hide",e,this._handoff({closed:function(){d._trigger("closed",e,d._handoff())}}))},sendToTop:function(d){if(this.active){this.pointer.css("z-index",b++)}},toggle:function(d){if(this.pointer.is(":hidden")){this.open(d)}else{this.close(d)}},_handoff:function(d){return c.extend({pointer:this.pointer,element:this.element},d)}})})(jQuery);
|
(function(c){var a=0,b=9999;c.widget("wp.pointer",{options:{pointerClass:"wp-pointer",content:function(f,e,d){return c(this).text()},buttons:function(f,e){var g=(wpPointerL10n)?wpPointerL10n.close:"Close",d=c('<a class="button-secondary">'+g+"</div>");return d.bind("click.pointer",function(){e.element.pointer("close")})},position:"top",show:function(e,d){d.pointer.show();d.opened()},hide:function(e,d){d.pointer.hide();d.closed()},document:document},_create:function(){var e,d;this.content=c('<div class="wp-pointer-content"></div>');this.arrow=c('<div class="wp-pointer-arrow"><div class="wp-pointer-arrow-inner"></div></div>');d=this.element.parents().add(this.element);e="absolute";if(d.filter(function(){return"fixed"===c(this).css("position")}).length){e="fixed"}this.pointer=c("<div />").append(this.content).append(this.arrow).attr("id","wp-pointer-"+a++).addClass(this.options.pointerClass).css("position",e).hide().appendTo(this.options.document.body)},_setOption:function(d,f){var g=this.options,e=this.pointer;if(d==="document"&&f!==g.document){e.detach().appendTo(f.body)}else{if(d==="pointerClass"){e.removeClass(g.pointerClass).addClass(f)}}c.Widget.prototype._setOption.apply(this,arguments);if(d==="position"){this.reposition()}else{if(d==="content"&&this.active){this.update()}}},destroy:function(){this.pointer.remove();c.Widget.prototype.destroy.call(this)},widget:function(){return this.pointer},update:function(g){var e=this,h=this.options,d=c.Deferred(),f;if(h.disabled){return}d.done(function(i){e._update(g,i)});if(typeof h.content==="string"){f=h.content}else{f=h.content.call(this.element[0],d.resolve,g,this._handoff())}if(f){d.resolve(f)}return d.promise()},_update:function(f,e){var d,g=this.options;if(!e){return}this.pointer.stop();this.content.html(e);d=g.buttons.call(this.element[0],f,this._handoff());if(d){d.wrap('<div class="wp-pointer-buttons" />').parent().appendTo(this.content)}this.reposition()},reposition:function(){var d;if(this.options.disabled){return}d=this._processPosition(this.options.position);this.pointer.css({top:0,left:0,zIndex:b++}).show().position(c.extend({of:this.element},d));this.repoint()},repoint:function(){var f=this.options,e,d;if(f.disabled){return}e=c.extend(this._processPosition(f.position),{of:this.pointer,offset:""});d=e.at+"";e.at=e.my;e.my=d;if(e.align!="center"){e.offset=(e.align=="top"||e.align=="left")?15:-15;if(e.align=="top"||e.align=="bottom"){e.offset="0 "+e.offset}else{e.offset=e.offset+" 0"}}this.pointer[0].className=this.pointer[0].className.replace(/wp-pointer-[^\s'"]*/,"");this.pointer.addClass("wp-pointer-"+e.edge);this.arrow.position(e)},_processPosition:function(e){var f={top:"bottom",bottom:"top",left:"right",right:"left"},d;if(typeof e=="string"){d={edge:e+""}}else{d=c.extend({},e)}if(!d.edge){return d}if(d.edge=="top"||d.edge=="bottom"){d.align=d.align||"left";d.at=d.at||d.align+" "+f[d.edge];d.my=d.my||d.align+" "+d.edge}else{d.align=d.align||"top";d.at=d.at||f[d.edge]+" "+d.align;d.my=d.my||d.edge+" "+d.align}return d},open:function(e){var d=this,f=this.options;if(this.active||f.disabled){return}this.update().done(function(){d._open(e)})},_open:function(e){var d=this,f=this.options;if(this.active||f.disabled){return}this.active=true;this._trigger("open",e,this._handoff());this._trigger("show",e,this._handoff({opened:function(){d._trigger("opened",e,d._handoff())}}))},close:function(e){if(!this.active||this.options.disabled){return}var d=this;this.active=false;this._trigger("close",e,this._handoff());this._trigger("hide",e,this._handoff({closed:function(){d._trigger("closed",e,d._handoff())}}))},sendToTop:function(d){if(this.active){this.pointer.css("z-index",b++)}},toggle:function(d){if(this.pointer.is(":hidden")){this.open(d)}else{this.close(d)}},_handoff:function(d){return c.extend({pointer:this.pointer,element:this.element},d)}})})(jQuery);
|
|
@ -96,7 +96,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
'broken' => __('An unidentified error has occurred.')
|
'broken' => __('An unidentified error has occurred.')
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$scripts->add( 'wp-pointer', "/wp-includes/js/wp-pointer$suffix.js", array( 'jquery-ui-widget', 'jquery-ui-position' ), '20110918', 1 );
|
$scripts->add( 'wp-pointer', "/wp-includes/js/wp-pointer$suffix.js", array( 'jquery-ui-widget', 'jquery-ui-position' ), '20111013', 1 );
|
||||||
$scripts->add_script_data( 'wp-pointer', 'wpPointerL10n', array(
|
$scripts->add_script_data( 'wp-pointer', 'wpPointerL10n', array(
|
||||||
'close' => __('Close'),
|
'close' => __('Close'),
|
||||||
) );
|
) );
|
||||||
|
@ -455,7 +455,7 @@ function wp_default_styles( &$styles ) {
|
||||||
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20111010' );
|
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20111010' );
|
||||||
$styles->add( 'wp-jquery-ui-dialog', "/wp-includes/css/jquery-ui-dialog$suffix.css", array(), '20101224' );
|
$styles->add( 'wp-jquery-ui-dialog', "/wp-includes/css/jquery-ui-dialog$suffix.css", array(), '20101224' );
|
||||||
$styles->add( 'editor-buttons', "/wp-includes/css/editor-buttons$suffix.css", array(), '20111010' );
|
$styles->add( 'editor-buttons', "/wp-includes/css/editor-buttons$suffix.css", array(), '20111010' );
|
||||||
$styles->add( 'wp-pointer', "/wp-includes/css/wp-pointer$suffix.css", array(), '20110918' );
|
$styles->add( 'wp-pointer', "/wp-includes/css/wp-pointer$suffix.css", array(), '20111013' );
|
||||||
|
|
||||||
foreach ( $rtl_styles as $rtl_style ) {
|
foreach ( $rtl_styles as $rtl_style ) {
|
||||||
$styles->add_data( $rtl_style, 'rtl', true );
|
$styles->add_data( $rtl_style, 'rtl', true );
|
||||||
|
|
Loading…
Reference in New Issue