PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 4.12.0
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v4.12.0
4.12.0 4.10.0 4.9.0 4.8.1 trunk 1.0 1.1 1.12.1 1.2.3 1.2.4 1.2.5 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5 1.5.1 1.5.2 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.4.1 1.6.5 1.6.5.1 1.6.6 1.6.6.1 1.6.6.2 1.6.6.3 1.6.7 1.6.7.1 1.6.8 1.6.8.1 1.6.8.2 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.9.0 1.9.1 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.8.1 1.9.9 1.9.9.1 1.9.9.2 1.9.9.3 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3 2.10 2.11 2.11.1 2.12 2.12.1 2.12.2 2.12.3 2.12.4 2.13 2.14 2.14.1 2.15 2.15.1 2.16 2.16.1 2.17 2.17.1 2.18 2.18.1 2.18.2 2.18.3 2.19 2.19.1 2.19.2 2.19.3 2.2 2.2.1 2.3 2.3.1 2.3.10 2.3.2 2.3.3 2.3.4 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.1.1 2.4.1.2 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5 2.5.1 2.5.2 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.7 2.7.1 2.7.2 2.8 2.9 2.9.1 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.7.5 4.7.6 4.7.7
custom-facebook-feed / admin / assets / js / extensions.js
custom-facebook-feed / admin / assets / js Last commit date
about.js 2 weeks ago admin-notifications.js 2 weeks ago builders-preview-handler.js 2 weeks ago callout.js 2 weeks ago cff-admin-scripts.js 2 weeks ago divi-handler.min.js 2 weeks ago extensions.js 2 weeks ago oembeds.js 2 weeks ago settings.js 2 weeks ago smash-usage-session.js 2 weeks ago support.js 2 weeks ago vue.min.js 2 weeks ago
extensions.js
130 lines
1 var extensions_data = {
2 genericText: cff_extensions.genericText,
3 extentions_bundle: cff_extensions.extentions_bundle,
4 links: cff_extensions.links,
5 extensions: cff_extensions.extensions_info,
6 socialWallActivated: cff_extensions.socialWallActivated,
7 socialWallLinks: cff_extensions.socialWallLinks,
8 plugins: cff_extensions.pluginsInfo,
9 supportPageUrl: cff_extensions.supportPageUrl,
10 social_wall: cff_extensions.social_wall,
11 ajax_handler: cff_extensions.ajax_handler,
12 nonce: cff_extensions.nonce,
13 buttons: cff_extensions.buttons,
14 icons: cff_extensions.icons,
15 btnClicked: null,
16 btnStatus: null,
17 btnName: null,
18 }
19
20 var cffExtensions = new Vue({
21 el: "#cff-extensions",
22 http: {
23 emulateJSON: true,
24 emulateHTTP: true
25 },
26 data: extensions_data,
27 methods: {
28 activatePlugin: function( plugin, name, index, type ) {
29 this.btnClicked = index + 1;
30 this.btnStatus = 'loading';
31 this.btnName = name;
32
33 let data = new FormData();
34 data.append( 'action', 'cff_activate_addon' );
35 data.append( 'nonce', this.nonce );
36 data.append( 'plugin', plugin );
37 data.append( 'type', 'plugin' );
38 if ( this.extentions_bundle && type == 'extension' ) {
39 data.append( 'extensions_bundle', this.extentions_bundle );
40 }
41 fetch(this.ajax_handler, {
42 method: "POST",
43 credentials: 'same-origin',
44 body: data
45 })
46 .then(response => response.json())
47 .then(data => {
48 if( data.success == true ) {
49 if ( name === 'social_wall' ) {
50 this.social_wall.activated = true;
51 } else if ( type === 'extension' ) {
52 this.extensions[name].activated = true;
53 } else {
54 this.plugins[name].activated = true;
55 }
56 this.btnClicked = null;
57 this.btnStatus = null;
58 this.btnName = null;
59 }
60 });
61 },
62 deactivatePlugin: function( plugin, name, index, type ) {
63 this.btnClicked = index + 1;
64 this.btnStatus = 'loading';
65 this.btnName = name;
66
67 let data = new FormData();
68 data.append( 'action', 'cff_deactivate_addon' );
69 data.append( 'nonce', this.nonce );
70 data.append( 'plugin', plugin );
71 data.append( 'type', 'plugin' );
72 if ( this.extentions_bundle && type == 'extension' ) {
73 data.append( 'extensions_bundle', this.extentions_bundle );
74 }
75 fetch(this.ajax_handler, {
76 method: "POST",
77 credentials: 'same-origin',
78 body: data
79 })
80 .then(response => response.json())
81 .then(data => {
82 if( data.success == true ) {
83 if ( name === 'social_wall' ) {
84 this.social_wall.activated = false;
85 } else if ( type === 'extension' ) {
86 this.extensions[name].activated = false;
87 } else {
88 this.plugins[name].activated = false;
89 }
90 this.btnClicked = null;
91 this.btnName = null;
92 this.btnStatus = null;
93 }
94 return;
95 });
96 },
97 installPlugin: function( plugin, name, index ) {
98 this.btnClicked = index + 1;
99 this.btnStatus = 'loading';
100 this.btnName = name;
101
102 let data = new FormData();
103 data.append( 'action', 'cff_install_addon' );
104 data.append( 'nonce', this.nonce );
105 data.append( 'plugin', plugin );
106 data.append( 'type', 'plugin' );
107 fetch(this.ajax_handler, {
108 method: "POST",
109 credentials: 'same-origin',
110 body: data
111 })
112 .then(response => response.json())
113 .then(data => {
114 if( data.success == true ) {
115 this.plugins[name].installed = true;
116 this.plugins[name].open = true;
117 this.btnClicked = null;
118 this.btnName = null;
119 this.btnStatus = null;
120 }
121 return;
122 });
123 },
124 buttonIcon: function() {
125 if ( this.btnStatus == 'loading' ) {
126 return this.icons.loaderSVG
127 }
128 },
129 }
130 })