var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /* global WPGroHo:true, Gravatar */ WPGroHo = jQuery.extend( { my_hash: '', data: {}, renderers: {}, syncProfileData: function( hash, id ) { if ( !WPGroHo.data[hash] ) { WPGroHo.data[hash] = {}; jQuery( 'div.grofile-hash-map-' + hash + ' span' ).each( function() { WPGroHo.data[hash][this.className] = jQuery( this ).text(); } ); } WPGroHo.appendProfileData( WPGroHo.data[hash], hash, id ); }, appendProfileData: function( data, hash, id ) { for ( var key in data ) { if ( jQuery.isFunction( WPGroHo.renderers[key] ) ) { return WPGroHo.renderers[key]( data[key], hash, id, key ); } jQuery( '#' + id ).find( 'h4' ).after( jQuery( '

' ).html( data[key] ) ); } } }, WPGroHo ); jQuery( document ).ready( function() { if ( 'undefined' === typeof Gravatar ) { return; } Gravatar.profile_cb = function( h, d ) { WPGroHo.syncProfileData( h, d ); }; Gravatar.my_hash = WPGroHo.my_hash; Gravatar.init( 'body', '#wpadminbar' ); } ); }