Plugin Directory

Changeset 1269172


Ignore:
Timestamp:
10/20/2015 07:11:44 AM (10 years ago)
Author:
markusklems
Message:

Minor fixes and addition of download-only feature / flag.

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

Legend:

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

    r1264038 r1269172  
    44Plugin URI: http://www.cloudwok.com
    55Description: CloudWok enables you to let your website visitors upload files directly into a Dropbox, Google Drive, Amazon S3, Box.com, or other cloud storage folder that you own.
    6 Version: 0.3.6
     6Version: 0.3.7
    77Author: CloudWok
    88Author Email: [email protected]
     
    4444            'simple_file_upload_button' => False,
    4545            'hide_upload_success_message' => False,
     46            'allow_upload' => True,
    4647            'label_add_files_btn' => '',
    4748            'label_send_msg_btn' => '',
     
    5758    $show_downloads = '';
    5859    $show_form = '';
    59     $show_form_input_name = ' data-show-name="n"';
    60     $show_form_input_email = ' data-show-email="n"';
     60    $show_form_input_name = '';
     61    $show_form_input_email = '';
    6162    $show_powered_by_link = ' data-pby="n"';
    6263    $hide_upload_success_message = '';
    6364    $file_upload_input = '<div class="cloudwok-dropzone"></div>';
     65  $file_upload_form = '';
    6466
    6567    // customize labels and texts
     
    8587        $file_upload_input = '<input type="file" name="files[]" multiple>';
    8688    }
    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"';
     89    if(array_key_exists('simple_file_upload_button', $atts) && $atts['simple_file_upload_button'] == "True") {
     90        $file_upload_input = '<input type="file" name="files[]" multiple>';
     91    }
     92    if(array_key_exists('allow_upload', $atts) && $atts['allow_upload'] == "False") {
     93        $file_upload_form = '<form class="cloudwok-upload"></form>';
     94    } else {
     95        $file_upload_form = '<form class="cloudwok-upload">' . $file_upload_input . '</form>';
    8996    }
    9097    if(array_key_exists('show_powered_by_link', $atts) && $atts['show_powered_by_link'] == "True") {
     
    135142    // Code
    136143  $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 . '>'
    137       . $show_uploads .
    138     '<form class="cloudwok-upload">'
    139         . $file_upload_input
    140         .
    141     '</form>'
     144      . $show_uploads
     145        . $file_upload_form
    142146        . $show_form
    143147        . $show_downloads .
  • cloudwok-file-upload/trunk/readme.txt

    r1264791 r1269172  
    55Requires at least: 3.0.0
    66Tested up to: 4.3.1
    7 Stable tag: 0.3.6
     7Stable tag: 0.3.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323* Create a blog where you invite your audience to submit pictures and videos for a contest.
    2424
    25 Share your use case with us by sending us a link to your WordPress site at [email protected]. We are always happy to hear feedback from our users. Sometimes so much, that we give away service upgrades and upload quota for free.
     25Share your use case with us by sending us a link to your WordPress site at [email protected]. We are always happy to hear feedback from our users. If you write a blog post about your CloudWok use case, we grant you extra quota for free. Drop me an e-mail if you would like to participate in the free-extra-quota initiative.
     26
     27Take a look at the "Installation" tab for more information how to customize the plugin.
    2628
    2729== Installation ==
     
    8688`[cloudwok wok_id="YOUR_WOK_ID" hide_upload_success_message="True" show_powered_by_link="True"]`
    8789
     90Since version 0.3.7 of this plugin, you can disallow file uploads, for example to only show the list of downloadable files in your Google Drive, Dropbox, ...:
     91
     92`[cloudwok wok_id="YOUR_WOK_ID" allow_upload="False" show_downloads="True"]`
     93
    8894By 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!
    8995
     
    104110== Changelog ==
    105111
     112= 0.3.7 =
     113You can now use the shortcode also to only allow downloads via allow_upload="False". Thereby, you can, for example, place one cloudwok shortcode on a page that only allows uploading and another shortocde on a page that only allows downloading. Both shortcodes can reference the same wok id (i.e., the same Dropbox or Google Drive folder).
    106114= 0.3.6 =
    107115You can now disable the success message after a successful file upload, via hide_upload_success_message="True".
Note: See TracChangeset for help on using the changeset viewer.