Changeset 2452601
- Timestamp:
- 01/08/2021 12:06:24 PM (5 years ago)
- Location:
- croct
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.6 (copied) (copied from croct/trunk)
-
tags/1.0.6/croct.php (modified) (1 diff)
-
tags/1.0.6/src/Dependency/BootstrapScript.php (modified) (2 diffs)
-
tags/1.0.6/src/Plugin.php (modified) (1 diff)
-
trunk/croct.php (modified) (1 diff)
-
trunk/src/Dependency/BootstrapScript.php (modified) (2 diffs)
-
trunk/src/Plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
croct/tags/1.0.6/croct.php
r2452249 r2452601 6 6 * Plugin Name: Croct 7 7 * Plugin URI: https://croct.com/wordpress 8 * Version: 1.0. 58 * Version: 1.0.6 9 9 * Description: Content Personalization for WordPress. 10 10 * Requires at least: 4.0 -
croct/tags/1.0.6/src/Dependency/BootstrapScript.php
r2452249 r2452601 9 9 const SCRIPT = <<<JS 10 10 (function initCroct() { 11 if (typeof croct === 'undefined') {12 const script = document.getElementById(%s);13 14 if (script !== null) {15 script.addEventListener('load', initCroct);16 }17 18 return;19 }20 21 11 if (typeof wpCroct === 'undefined' ) { 22 12 const queue = []; … … 26 16 enqueue: (method, args) => queue.push([method, args]), 27 17 }; 18 } 19 20 if (typeof croct === 'undefined') { 21 const script = document.getElementById(%s); 28 22 23 if (script === null) { 24 console.warn('Cannot find Croct Plug script.') 25 26 return; 27 } 28 29 script.addEventListener('load', initCroct); 30 31 return; 32 } 33 34 if (typeof wpCroct.init === 'undefined') { 29 35 const script = document.getElementById(%s); 36 37 if (script === null) { 38 console.warn('Cannot find Croct WP script.') 39 40 return; 41 } 30 42 31 if (script !== null) { 32 script.addEventListener('load', initCroct); 33 } 43 script.addEventListener('load', initCroct); 34 44 35 45 return; -
croct/tags/1.0.6/src/Plugin.php
r2452249 r2452601 13 13 final class Plugin 14 14 { 15 const VERSION = '1.0. 5';15 const VERSION = '1.0.6'; 16 16 17 17 const OPTIONS_GROUP = 'croct'; -
croct/trunk/croct.php
r2452249 r2452601 6 6 * Plugin Name: Croct 7 7 * Plugin URI: https://croct.com/wordpress 8 * Version: 1.0. 58 * Version: 1.0.6 9 9 * Description: Content Personalization for WordPress. 10 10 * Requires at least: 4.0 -
croct/trunk/src/Dependency/BootstrapScript.php
r2452249 r2452601 9 9 const SCRIPT = <<<JS 10 10 (function initCroct() { 11 if (typeof croct === 'undefined') {12 const script = document.getElementById(%s);13 14 if (script !== null) {15 script.addEventListener('load', initCroct);16 }17 18 return;19 }20 21 11 if (typeof wpCroct === 'undefined' ) { 22 12 const queue = []; … … 26 16 enqueue: (method, args) => queue.push([method, args]), 27 17 }; 18 } 19 20 if (typeof croct === 'undefined') { 21 const script = document.getElementById(%s); 28 22 23 if (script === null) { 24 console.warn('Cannot find Croct Plug script.') 25 26 return; 27 } 28 29 script.addEventListener('load', initCroct); 30 31 return; 32 } 33 34 if (typeof wpCroct.init === 'undefined') { 29 35 const script = document.getElementById(%s); 36 37 if (script === null) { 38 console.warn('Cannot find Croct WP script.') 39 40 return; 41 } 30 42 31 if (script !== null) { 32 script.addEventListener('load', initCroct); 33 } 43 script.addEventListener('load', initCroct); 34 44 35 45 return; -
croct/trunk/src/Plugin.php
r2452249 r2452601 13 13 final class Plugin 14 14 { 15 const VERSION = '1.0. 5';15 const VERSION = '1.0.6'; 16 16 17 17 const OPTIONS_GROUP = 'croct';
Note: See TracChangeset
for help on using the changeset viewer.