Changeset 1989441
- Timestamp:
- 12/08/2018 06:46:31 PM (7 years ago)
- Location:
- checklist-in-post
- Files:
-
- 10 added
- 3 edited
-
tags/1.1.3 (added)
-
tags/1.1.3/admin (added)
-
tags/1.1.3/admin/options.php (added)
-
tags/1.1.3/checklist_in_post.js (added)
-
tags/1.1.3/checklist_in_post.php (added)
-
tags/1.1.3/checklist_in_post_frontend.js (added)
-
tags/1.1.3/css (added)
-
tags/1.1.3/css/checklist_in_post.css (added)
-
tags/1.1.3/css/checklist_in_post_frontend.css (added)
-
tags/1.1.3/readme.txt (added)
-
trunk/checklist-in-post/checklist_in_post.php (modified) (6 diffs)
-
trunk/checklist-in-post/readme.txt (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
checklist-in-post/trunk/checklist-in-post/checklist_in_post.php
r1929254 r1989441 4 4 Description: Checklist in Post - Allow creating checklists in posts for readers 5 5 Author: Tomasz Małecki 6 Version: 1.1. 26 Version: 1.1.3 7 7 Author URI: http://tomiskym.deviantart.com 8 8 Text Domain: checklistinpost … … 16 16 require_once dirname(__FILE__) . '/admin/options.php'; 17 17 18 19 20 21 18 function checklistinpost_load_fa() { 22 23 19 wp_enqueue_style( 'wpb-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css' ); 24 20 } … … 30 26 31 27 wp_register_script( 32 'checklist_in_post_js_frontend',28 'checklist_in_post_js_frontend', 33 29 plugin_dir_url( __FILE__ ) . 'checklist_in_post_frontend.js', 34 array( 'jquery' ),30 array( 'jquery' ), 35 31 '', 36 32 'true' 37 );33 ); 38 34 $options = array ( 39 35 'cookies' => (get_option('cookies')) ? true : false, … … 41 37 wp_localize_script('checklist_in_post_js_frontend','options', $options); 42 38 43 wp_enqueue_script('checklist_in_post_js_frontend');39 wp_enqueue_script('checklist_in_post_js_frontend'); 44 40 } 45 41 46 42 function checklistinpost_enqueue_plugin_scripts($plugin_array) 47 43 { 48 //enqueue TinyMCE plugin script with its ID.49 $plugin_array["green_button_plugin"] = plugin_dir_url(__FILE__) . "checklist_in_post.js";50 return $plugin_array;44 //enqueue TinyMCE plugin script with its ID. 45 $plugin_array["green_button_plugin"] = plugin_dir_url(__FILE__) . "checklist_in_post.js"; 46 return $plugin_array; 51 47 } 52 48 … … 55 51 function checklistinpost_register_buttons_editor($buttons) 56 52 { 57 //register buttons with their id.58 array_push($buttons, "green");59 return $buttons;53 //register buttons with their id. 54 array_push($buttons, "green"); 55 return $buttons; 60 56 } 61 57 … … 63 59 64 60 function checklistinpost_load_plugin_css() { 65 wp_enqueue_style( 'checklist_in_post_css', plugin_dir_url( __FILE__ ) . 'css/checklist_in_post.css' );61 wp_enqueue_style( 'checklist_in_post_css', plugin_dir_url( __FILE__ ) . 'css/checklist_in_post.css' ); 66 62 } 67 63 add_action( 'admin_enqueue_scripts', 'checklistinpost_load_plugin_css' ); 68 64 69 65 function checklistinpost_start_shortcode( $attributes,$content=null ) { 70 $content = "<div class='checklist_in_post'>" . $content . "</div>";71 return $content;66 $content = "<div class='checklist_in_post'>" . $content . "</div>"; 67 return $content; 72 68 } 73 74 75 76 77 69 78 70 add_shortcode( 'checklist_in_post', 'checklistinpost_start_shortcode' ); -
checklist-in-post/trunk/checklist-in-post/readme.txt
r1929254 r1989441 3 3 Tags: checklist, in, post, shortcode,for,user,reader, checklist,Frontend,list,to-do,todo 4 4 Requires at least: 3.0 5 Tested up to: 4.96 Stable tag: 1. 1.25 Tested up to: 5.0 6 Stable tag: 1.2.3 7 7 License: #GNUGPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 14 14 **Supports Cookies** 15 15 16 *Usage:* 17 * Create / Edit Post and add classic Visual Editor bulleted list to it. 18 * Select list in Visual Editor and click button `"Add Checklist"`. 16 *Wordpress 5.0 and Gutenberg Support:* 17 Use Classic Block and then Visual editor instructions below. 18 There are plans for Separate Gutenberg block in the future. 19 20 *Usage in visual editor :* 21 * Create / Edit Post and add classic Visual Editor bulleted list to it. Try to prepare space for it by leaving empty lines before and after. 22 * Select list in Visual Editor (and empty line above) and click button `"Add Checklist"`. 19 23 * Shortcodes `[checklist_in_post] [/checklist_in_post]` will appear. 20 24 * Save. … … 27 31 * Activate the plugin over the plugin manager of WordPress. 28 32 29 *Usage:* 30 * Create / Edit Post and add classic Visual Editor bulleted list to it. 31 * Select list in Visual Editor and click button `"Add Checklist"`. 33 *Wordpress 5.0 and Gutenberg Support:* 34 Use Classic Block and then Visual editor instructions below. 35 There are plans for Separate Gutenberg block in the future. 36 37 *Usage in visual editor :* 38 * Create / Edit Post and add classic Visual Editor bulleted list to it. Try to prepare space for it by leaving empty lines before and after. 39 * Select list in Visual Editor (and empty line above) and click button `"Add Checklist"`. 32 40 * Shortcodes `[checklist_in_post] [/checklist_in_post]` will appear. 33 41 * Save. 34 42 * If you want to use cookies - check cookie option under plugin settings. 35 43 44 36 45 == Changelog == 46 1.1.3 47 Wordpress 5.0 Support (You need to use Block Classic). 37 48 1.1.2 38 49 Fixed: Styling for some themes -
checklist-in-post/trunk/readme.txt
r1929254 r1989441 3 3 Tags: checklist, in, post, shortcode,for,user,reader, checklist,Frontend,list,to-do,todo 4 4 Requires at least: 3.0 5 Tested up to: 4.96 Stable tag: 1. 1.25 Tested up to: 5.0 6 Stable tag: 1.2.3 7 7 License: #GNUGPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 14 14 **Supports Cookies** 15 15 16 *Usage:* 17 * Create / Edit Post and add classic Visual Editor bulleted list to it. 18 * Select list in Visual Editor and click button `"Add Checklist"`. 16 *Wordpress 5.0 and Gutenberg Support:* 17 Use Classic Block and then Visual editor instructions below. 18 There are plans for Separate Gutenberg block in the future. 19 20 *Usage in visual editor :* 21 * Create / Edit Post and add classic Visual Editor bulleted list to it. Try to prepare space for it by leaving empty lines before and after. 22 * Select list in Visual Editor (and empty line above) and click button `"Add Checklist"`. 19 23 * Shortcodes `[checklist_in_post] [/checklist_in_post]` will appear. 20 24 * Save. … … 27 31 * Activate the plugin over the plugin manager of WordPress. 28 32 29 *Usage:* 30 * Create / Edit Post and add classic Visual Editor bulleted list to it. 31 * Select list in Visual Editor and click button `"Add Checklist"`. 33 *Wordpress 5.0 and Gutenberg Support:* 34 Use Classic Block and then Visual editor instructions below. 35 There are plans for Separate Gutenberg block in the future. 36 37 *Usage in visual editor :* 38 * Create / Edit Post and add classic Visual Editor bulleted list to it. Try to prepare space for it by leaving empty lines before and after. 39 * Select list in Visual Editor (and empty line above) and click button `"Add Checklist"`. 32 40 * Shortcodes `[checklist_in_post] [/checklist_in_post]` will appear. 33 41 * Save. 34 42 * If you want to use cookies - check cookie option under plugin settings. 35 43 44 36 45 == Changelog == 46 1.1.3 47 Wordpress 5.0 Support (You need to use Block Classic). 37 48 1.1.2 38 49 Fixed: Styling for some themes
Note: See TracChangeset
for help on using the changeset viewer.