O que faz um auditor? Veja as possibilidades da carreira! 0 ) { powerkitButtonsIds.push( $( this ).attr( ‘data-id’ ) ); } }); // Generate accounts data. var powerkitButtonsData = {}; if( powerkitButtonsIds.length > 0 ) { powerkitButtonsData = { ‘ids’ : powerkitButtonsIds.join(), ‘post_id’ : powerkitButtonsBox.attr( ‘data-post-id’ ), ‘url’ : powerkitButtonsBox.attr( ‘data-share-url’ ), }; } // Get results by REST API. $.ajax({ type: ‘GET’, url: ‘https://blog.orientu.com.br/wp-json/social-share/v1/get-shares’, data: powerkitButtonsData, beforeSend: function(){ // Add Loading Class. powerkitButtonsBox.addClass( ‘pk-share-buttons-loading’ ); }, success: function( response ) { if ( ! $.isEmptyObject( response ) && ! response.hasOwnProperty( ‘code’ ) ) { // Accounts loop. $.each( response, function( index, data ) { if ( index !== ‘total_count’ ) { // Find Bsa Item. var powerkitButtonsItem = powerkitButtonsBox.find( ‘.pk-share-buttons-item[data-id=”‘ + index + ‘”]’); // Set Count. if ( data.hasOwnProperty( ‘count’ ) && data.count ) { powerkitButtonsItem.removeClass( ‘pk-share-buttons-no-count’ ).addClass( ‘pk-share-buttons-item-count’ ); powerkitButtonsItem.find( ‘.pk-share-buttons-count’ ).html( data.count ); } else { powerkitButtonsItem.addClass( ‘pk-share-buttons-no-count’ ); } } }); if ( powerkitButtonsBox.hasClass( ‘pk-share-buttons-has-total-counts’ ) && response.hasOwnProperty( ‘total_count’ ) ) { var powerkitButtonsTotalBox = powerkitButtonsBox.find( ‘.pk-share-buttons-total’ ); if ( response.total_count ) { powerkitButtonsTotalBox.find( ‘.pk-share-buttons-count’ ).html( response.total_count ); powerkitButtonsTotalBox.show().removeClass( ‘pk-share-buttons-total-no-count’ ); } } } // Remove Loading Class. powerkitButtonsBox.removeClass( ‘pk-share-buttons-loading’ ); }, error: function() { // Remove Loading Class. powerkitButtonsBox.removeClass( ‘pk-share-buttons-loading’ ); } }); }); }); })(jQuery); ]]>
Source
Warning: sprintf(): Too few arguments in /home/rspirescontabilidade/www/wp-includes/link-template.php on line 2741