Changeset 1958621
- Timestamp:
- 10/18/2018 01:31:22 PM (7 years ago)
- Location:
- easycoder/trunk
- Files:
-
- 6 added
- 1 deleted
- 3 edited
-
easycoder-min.js (deleted)
-
easycoder-temp.js (added)
-
easycoder.js (modified) (1 diff)
-
easycoder.php (modified) (1 diff)
-
plugin-basic.js (added)
-
plugin-browser.js (added)
-
plugin-json.js (added)
-
plugin-svg.js (added)
-
readme.txt (modified) (1 diff)
-
rest.php (added)
Legend:
- Unmodified
- Added
- Removed
-
easycoder/trunk/easycoder.js
r1958084 r1958621 590 590 } 591 591 }; 592 script.src = ' https://easycoder.software/public/rest.php/plugins/' + list.join();592 script.src = '/rest//plugins/' + list.join(); 593 593 head.appendChild(script); 594 594 }, -
easycoder/trunk/easycoder.php
r1958084 r1958621 1 1 <?php 2 /** 3 * Plugin Name: EasyCoder 4 * Plugin URI: https://easycoder.software 5 * Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript. 6 * Version: 2.0.0 7 * Author: EasyCoder Software 8 */ 9 10 // The EasyCoder library 11 function easycoder_enqueue_script() { 12 wp_enqueue_script('easycoder_script', plugin_dir_url( __FILE__ ) . 'easycoder-min.js', array(), '2.0.0'); 13 } 2 /** 3 * Plugin Name: EasyCoder 4 * Plugin URI: https://easycoder.software 5 * Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript. 6 * Version: 2.0.1 7 * Author: EasyCoder Software 8 */ 14 9 15 add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2); 10 register_activation_hook( __FILE__, 'set_uri' ); 11 12 function set_uri() { 13 $here = $_SERVER['SCRIPT_URI']; 14 $here = substr($here, 0, strrpos($here, 'wp-admin')); 15 $there = $here.'wp-content/plugins/easycoder/rest.php'; 16 $text = file_get_contents('../wp-content/plugins/easycoder/easycoder-temp.js'); 17 $text = str_replace('/rest/', $there, $text); 18 file_put_contents('../wp-content/plugins/easycoder/easycoder-min.js', $text); 19 } 16 20 17 ?> 21 // The EasyCoder library 22 function easycoder_enqueue_script() { 23 wp_enqueue_script('easycoder_script', plugin_dir_url( __FILE__ ) . 'easycoder-min.js', array(), '2.0.1'); 24 } 25 26 add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2); -
easycoder/trunk/readme.txt
r1958084 r1958621 47 47 == Changelog == 48 48 49 = 2.0.1 18-oct-2018 = 50 * Bug fixes. 51 49 52 = 2.0.0 17-oct-2018 = 50 53 * New pluggable architecture.
Note: See TracChangeset
for help on using the changeset viewer.