Plugin Directory

Changeset 1989441


Ignore:
Timestamp:
12/08/2018 06:46:31 PM (7 years ago)
Author:
tomiskym
Message:

Version 1.1.3

Location:
checklist-in-post
Files:
10 added
3 edited

Legend:

Unmodified
Added
Removed
  • checklist-in-post/trunk/checklist-in-post/checklist_in_post.php

    r1929254 r1989441  
    44Description: Checklist in Post - Allow creating checklists in posts for readers
    55Author: Tomasz Małecki
    6 Version: 1.1.2
     6Version: 1.1.3
    77Author URI: http://tomiskym.deviantart.com
    88Text Domain: checklistinpost
     
    1616require_once dirname(__FILE__) . '/admin/options.php';
    1717
    18 
    19 
    20 
    2118function checklistinpost_load_fa() {
    22 
    2319    wp_enqueue_style( 'wpb-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css' );
    2420}
     
    3026
    3127    wp_register_script(
    32         'checklist_in_post_js_frontend',
     28        'checklist_in_post_js_frontend',
    3329        plugin_dir_url( __FILE__ ) . 'checklist_in_post_frontend.js',
    34         array( 'jquery' ),
     30        array( 'jquery' ),
    3531        '',
    3632        'true'
    37     );
     33    );
    3834    $options = array (
    3935        'cookies' => (get_option('cookies')) ? true : false,
     
    4137    wp_localize_script('checklist_in_post_js_frontend','options', $options);
    4238
    43     wp_enqueue_script('checklist_in_post_js_frontend');
     39    wp_enqueue_script('checklist_in_post_js_frontend');
    4440}
    4541
    4642function checklistinpost_enqueue_plugin_scripts($plugin_array)
    4743{
    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;
    5147}
    5248
     
    5551function checklistinpost_register_buttons_editor($buttons)
    5652{
    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;
    6056}
    6157
     
    6359
    6460function 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' );
    6662}
    6763add_action( 'admin_enqueue_scripts', 'checklistinpost_load_plugin_css' );
    6864
    6965function 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;
    7268}
    73 
    74 
    75 
    76 
    7769
    7870add_shortcode( 'checklist_in_post', 'checklistinpost_start_shortcode' );
  • checklist-in-post/trunk/checklist-in-post/readme.txt

    r1929254 r1989441  
    33Tags: checklist, in, post, shortcode,for,user,reader, checklist,Frontend,list,to-do,todo
    44Requires at least: 3.0
    5 Tested up to: 4.9
    6 Stable tag: 1.1.2
     5Tested up to: 5.0
     6Stable tag: 1.2.3
    77License: #GNUGPLv3
    88License URI: https://www.gnu.org/licenses/gpl.html
     
    1414**Supports Cookies**
    1515
    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:*
     17Use Classic Block and then Visual editor instructions below.
     18There 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"`.
    1923* Shortcodes `[checklist_in_post] [/checklist_in_post]` will appear.
    2024* Save.
     
    2731* Activate the plugin over the plugin manager of WordPress.
    2832
    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:*
     34Use Classic Block and then Visual editor instructions below.
     35There 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"`.
    3240* Shortcodes `[checklist_in_post] [/checklist_in_post]` will appear.
    3341* Save.
    3442* If you want to use cookies - check cookie option under plugin settings.
    3543
     44
    3645== Changelog ==
     461.1.3
     47Wordpress 5.0 Support (You need to use Block Classic).
    37481.1.2
    3849Fixed: Styling for some themes
  • checklist-in-post/trunk/readme.txt

    r1929254 r1989441  
    33Tags: checklist, in, post, shortcode,for,user,reader, checklist,Frontend,list,to-do,todo
    44Requires at least: 3.0
    5 Tested up to: 4.9
    6 Stable tag: 1.1.2
     5Tested up to: 5.0
     6Stable tag: 1.2.3
    77License: #GNUGPLv3
    88License URI: https://www.gnu.org/licenses/gpl.html
     
    1414**Supports Cookies**
    1515
    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:*
     17Use Classic Block and then Visual editor instructions below.
     18There 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"`.
    1923* Shortcodes `[checklist_in_post] [/checklist_in_post]` will appear.
    2024* Save.
     
    2731* Activate the plugin over the plugin manager of WordPress.
    2832
    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:*
     34Use Classic Block and then Visual editor instructions below.
     35There 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"`.
    3240* Shortcodes `[checklist_in_post] [/checklist_in_post]` will appear.
    3341* Save.
    3442* If you want to use cookies - check cookie option under plugin settings.
    3543
     44
    3645== Changelog ==
     461.1.3
     47Wordpress 5.0 Support (You need to use Block Classic).
    37481.1.2
    3849Fixed: Styling for some themes
Note: See TracChangeset for help on using the changeset viewer.