golden hour
/home/doctorbruno/public_html/taeionline.com/wp-content/plugins_old/jetpack/modules/widgets
⬆️ Go Up
Upload
File/Folder
Size
Actions
authors
-
Del
OK
authors.php
8.98 KB
Del
OK
blog-stats.php
5.26 KB
Del
OK
class-jetpack-eu-cookie-law-widget.php
10.4 KB
Del
OK
class-jetpack-instagram-widget.php
24.23 KB
Del
OK
contact-info
-
Del
OK
contact-info.php
17.83 KB
Del
OK
customizer-controls.css
165 B
Del
OK
customizer-utils.js
4.07 KB
Del
OK
eu-cookie-law
-
Del
OK
facebook-likebox
-
Del
OK
facebook-likebox.php
15.09 KB
Del
OK
flickr
-
Del
OK
flickr.php
7.15 KB
Del
OK
gallery
-
Del
OK
gallery.php
16.07 KB
Del
OK
goodreads
-
Del
OK
goodreads.php
8 KB
Del
OK
google-translate
-
Del
OK
google-translate.php
6.33 KB
Del
OK
gravatar-profile.css
1.23 KB
Del
OK
gravatar-profile.php
15.3 KB
Del
OK
image-widget
-
Del
OK
image-widget.php
12.21 KB
Del
OK
instagram
-
Del
OK
internet-defense-league.php
8.27 KB
Del
OK
mailchimp.php
4.17 KB
Del
OK
migrate-to-core
-
Del
OK
milestone
-
Del
OK
milestone.php
346 B
Del
OK
my-community
-
Del
OK
my-community.php
10.98 KB
Del
OK
rsslinks-widget.php
10.38 KB
Del
OK
simple-payments
-
Del
OK
simple-payments.php
21.77 KB
Del
OK
social-icons
-
Del
OK
social-icons.php
20.36 KB
Del
OK
social-media-icons
-
Del
OK
social-media-icons.php
10.66 KB
Del
OK
top-posts
-
Del
OK
top-posts.php
26.51 KB
Del
OK
twitter-timeline-admin.js
2.2 KB
Del
OK
twitter-timeline.php
19.77 KB
Del
OK
upcoming-events.php
6.35 KB
Del
OK
wordpress-post-widget
-
Del
OK
wordpress-post-widget.php
3.71 KB
Del
OK
Edit: customizer-utils.js
/* global wp, gapi, FB, twttr, PaypalExpressCheckout */ /** * Utilities to work with widgets in Customizer. */ /** * Checks whether this Customizer supports partial widget refresh. * @returns {boolean} */ wp.customizerHasPartialWidgetRefresh = function () { return ( 'object' === typeof wp && 'function' === typeof wp.customize && 'object' === typeof wp.customize.selectiveRefresh && 'object' === typeof wp.customize.widgetsPreview && 'function' === typeof wp.customize.widgetsPreview.WidgetPartial ); }; /** * Verifies that the placed widget ID contains the widget name. * @param {object} placement * @param {string} widgetName * @returns {*|boolean} */ wp.isJetpackWidgetPlaced = function ( placement, widgetName ) { return placement.partial.widgetId && 0 === placement.partial.widgetId.indexOf( widgetName ); }; /** * Bind events for selective refresh in Customizer. */ ( function ( $ ) { $( document ).ready( function () { if ( wp && wp.customize && wp.customizerHasPartialWidgetRefresh() ) { // Refresh widget contents when a partial is rendered. wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function ( placement ) { if ( placement.container ) { // Refresh Google+ if ( wp.isJetpackWidgetPlaced( placement, 'googleplus-badge' ) && 'object' === typeof gapi && gapi.person && 'function' === typeof gapi.person.go ) { gapi.person.go( placement.container[ 0 ] ); } // Refresh Facebook XFBML else if ( wp.isJetpackWidgetPlaced( placement, 'facebook-likebox' ) && 'object' === typeof FB && 'object' === typeof FB.XFBML && 'function' === typeof FB.XFBML.parse ) { FB.XFBML.parse( placement.container[ 0 ], function () { var $fbContainer = $( placement.container[ 0 ] ).find( '.fb_iframe_widget' ), fbWidth = $fbContainer.data( 'width' ), fbHeight = $fbContainer.data( 'height' ); $fbContainer.find( 'span' ).css( { width: fbWidth, height: fbHeight } ); setTimeout( function () { $fbContainer .find( 'iframe' ) .css( { width: fbWidth, height: fbHeight, position: 'relative' } ); }, 1 ); } ); } // Refresh Twitter else if ( wp.isJetpackWidgetPlaced( placement, 'twitter_timeline' ) && 'object' === typeof twttr && 'object' === typeof twttr.widgets && 'function' === typeof twttr.widgets.load ) { twttr.widgets.load( placement.container[ 0 ] ); } else if ( wp.isJetpackWidgetPlaced( placement, 'eu_cookie_law_widget' ) ) { // Refresh EU Cookie Law if ( $( '#eu-cookie-law' ).hasClass( 'top' ) ) { $( '.widget_eu_cookie_law_widget' ).addClass( 'top' ); } else { $( '.widget_eu_cookie_law_widget' ).removeClass( 'top' ); } placement.container.fadeIn(); } else if ( wp.isJetpackWidgetPlaced( placement, 'jetpack_simple_payments_widget' ) ) { // Refresh Simple Payments Widget try { var buttonId = $( '.jetpack-simple-payments-button', placement.container ) .attr( 'id' ) .replace( '_button', '' ); PaypalExpressCheckout.renderButton( null, null, buttonId, null ); } catch ( e ) { // PaypalExpressCheckout may fail. // For the same usage, see also: // https://github.com/Automattic/jetpack/blob/6c1971e6bed7d3df793392a7a58ffe0afaeeb5fe/modules/simple-payments/simple-payments.php#L111 } } } } ); // Refresh widgets when they're moved. wp.customize.selectiveRefresh.bind( 'partial-content-moved', function ( placement ) { if ( placement.container ) { // Refresh Twitter timeline iframe, since it has to be re-built. if ( wp.isJetpackWidgetPlaced( placement, 'twitter_timeline' ) && placement.container.find( 'iframe.twitter-timeline:not([src]):first' ).length ) { placement.partial.refresh(); } else if ( wp.isJetpackWidgetPlaced( placement, 'jetpack_simple_payments_widget' ) ) { // Refresh Simple Payments Widget placement.partial.refresh(); } } } ); } } ); } )( jQuery );
Save