Plugin Directory

Changeset 1262365


Ignore:
Timestamp:
10/09/2015 10:09:22 AM (10 years ago)
Author:
markusklems
Message:

Version 0.3.6 - you can now disable the success message modal (in case you find it annoying).

Location:
cloudwok-file-upload/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cloudwok-file-upload/trunk/cloudwok.php

    r1255840 r1262365  
    4343            'show_powered_by_link' => False,
    4444            'simple_file_upload_button' => False,
     45            'hide_upload_success_message' => False,
    4546            'label_add_files_btn' => '',
    4647            'label_send_msg_btn' => '',
     
    5960    $show_form_input_email = ' data-show-email="n"';
    6061    $show_powered_by_link = ' data-pby="n"';
     62    $hide_upload_success_message = '';
    6163    $file_upload_input = '<div class="cloudwok-dropzone"></div>';
    6264
     
    8284    if(array_key_exists('simple_file_upload_button', $atts) && $atts['simple_file_upload_button'] == "True") {
    8385        $file_upload_input = '<input type="file" name="files[]" multiple>';
     86    }
     87    if(array_key_exists('hide_upload_success_message', $atts) && $atts['hide_upload_success_message'] == "True") {
     88        $hide_upload_success_message = ' data-hide-upload-success-msg="y"';
    8489    }
    8590    if(array_key_exists('show_powered_by_link', $atts) && $atts['show_powered_by_link'] == "True") {
     
    129134
    130135    // Code
    131   $to_return = '<div class="cloudwok-embed" data-wokid="' . $atts['wok_id'] . '" ' . $show_powered_by_link . $show_form_input_name . $show_form_input_email . '>'
     136  $to_return = '<div class="cloudwok-embed" data-wokid="' . $atts['wok_id'] . '" ' . $show_powered_by_link . $show_form_input_name . $show_form_input_email . $hide_upload_success_message . '>'
    132137      . $show_uploads .
    133138    '<form class="cloudwok-upload">'
  • cloudwok-file-upload/trunk/readme.txt

    r1255840 r1262365  
    55Requires at least: 3.0.0
    66Tested up to: 4.2.3
    7 Stable tag: 0.3.5
     7Stable tag: 0.3.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8282`[cloudwok wok_id="YOUR_WOK_ID" simple_file_upload_button="True" show_powered_by_link="True"]`
    8383
     84Since version 0.3.6 of this plugin, you can disable the success message that shows after a successful file upload:
     85
     86`[cloudwok wok_id="YOUR_WOK_ID" hide_upload_success_message="True" show_powered_by_link="True"]`
     87
    8488By default, a small "powered by" text-link to www.cloudwok.com is disabled. If you like our plug-in, we would appreciate it if you would enable the link via `[cloudwok wok_id="YOUR_WOK_ID" show_powered_by_link="True"]`. Send me a link to your WordPress site with enabled "powered by" link, and I'd be happy to send you a small coupon code gift back: [email protected]. Thanks!
    8589
     
    100104== Changelog ==
    101105
     106= 0.3.6 =
     107You can now disable the success message after a successful file upload, via hide_upload_success_message="True".
    102108= 0.3.5 =
    103109Added option to show only simple file-upload button in lieu of dropzone via simple_file_upload_button="True" shortcode attribute.
Note: See TracChangeset for help on using the changeset viewer.