init
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '60be609c738e41364432');
|
||||
@@ -0,0 +1 @@
|
||||
(()=>{var o;window.wpPostLikeCount=window.wpPostLikeCount||{},o=jQuery,window.wpPostLikeCount=jQuery.extend(window.wpPostLikeCount,{request:function(t){return o.ajax({type:"GET",url:window.wpPostLikeCount.jsonAPIbase+t.path,dataType:"jsonp",data:t.data,success:function(o){t.success(o)},error:function(o){t.error(o)}})}})})();
|
||||
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '3f9d607d48b3f3989701');
|
||||
@@ -0,0 +1 @@
|
||||
(()=>{var t;window.wpPostLikeCount=window.wpPostLikeCount||{},t=jQuery,window.wpPostLikeCount=jQuery.extend(window.wpPostLikeCount,{jsonAPIbase:"https://public-api.wordpress.com/rest/v1",APIqueue:[],wpPostLikeCount:function(){t(".post-like-count").each((function(){var o=t(this).attr("data-post-id"),n=t(this).attr("data-blog-id");window.wpPostLikeCount.APIqueue.push("/sites/"+n+"/posts/"+o+"/likes")})),window.wpPostLikeCount.getCounts()},showCount:function(o,n){n>0&&(t("#post-like-count-"+o).find(".comment-count").hide(),t("#post-like-count-"+o).find(".comment-count").text(n),t("#post-like-count-"+o).find(".comment-count").fadeIn())},getCounts:function(){for(var t={path:"/batch",data:"",success:function(t){for(var o in t)if(!t[o].error_data){var n=o.split("/")[4];window.wpPostLikeCount.showCount(n,t[o].found)}},error:function(){}},o="",n=0;n<window.wpPostLikeCount.APIqueue.length;n++)n>0&&(o="&"),t.data+=o+"urls[]="+window.wpPostLikeCount.APIqueue[n];window.wpPostLikeCount.request(t)}}),jQuery(document).ready((function(){window.wpPostLikeCount.wpPostLikeCount()}))})();
|
||||
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '7355c6870922ff46bfc0');
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user