File Editor
Directories:
.. (Back)
calypsoify
carousel
comment-likes
comments
contact-form
custom-css
custom-post-types
geo-location
google-analytics
infinite-scroll
lazy-images
likes
markdown
masterbar
memberships
minileven
photon
photon-cdn
plugin-search
post-by-email
protect
publicize
pwa
related-posts
search
seo-tools
sharedaddy
shortcodes
simple-payments
site-icon
sitemaps
sso
subscriptions
theme-tools
tiled-gallery
verification-tools
videopress
widget-visibility
widgets
woocommerce-analytics
wordads
wpcom-block-editor
Files:
.eslintrc.js
after-the-deadline.php
carousel.php
comment-likes.php
comments.php
contact-form.php
copy-post.php
custom-content-types.php
custom-css.php
enhanced-distribution.php
geo-location.php
google-analytics.php
gravatar-hovercards.php
infinite-scroll.php
json-api.php
latex.php
lazy-images.php
likes.php
markdown.php
masterbar.php
minileven.php
mobile-push.php
module-extras.php
module-headings.php
module-info.php
monitor.php
notes.php
photon-cdn.php
photon.php
plugin-search.php
post-by-email.php
protect.php
publicize.php
pwa.php
related-posts.php
search.php
seo-tools.php
sharedaddy.php
shortcodes.php
shortlinks.php
sitemaps.php
sso.php
stats.php
subscriptions.php
theme-tools.php
tiled-gallery.php
vaultpress.php
verification-tools.php
videopress.php
widget-visibility.php
widgets.php
wordads.php
wpgroho.js
Create New File
Create
Edit File: wpgroho.js
/* 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( '<p class="grav-extra ' + key + '" />' ).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' ); } );
Save Changes
Rename File
Rename