Changeset 1269172
- Timestamp:
- 10/20/2015 07:11:44 AM (10 years ago)
- Location:
- cloudwok-file-upload/trunk
- Files:
-
- 2 edited
-
cloudwok.php (modified) (5 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cloudwok-file-upload/trunk/cloudwok.php
r1264038 r1269172 4 4 Plugin URI: http://www.cloudwok.com 5 5 Description: 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. 66 Version: 0.3.7 7 7 Author: CloudWok 8 8 Author Email: [email protected] … … 44 44 'simple_file_upload_button' => False, 45 45 'hide_upload_success_message' => False, 46 'allow_upload' => True, 46 47 'label_add_files_btn' => '', 47 48 'label_send_msg_btn' => '', … … 57 58 $show_downloads = ''; 58 59 $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 = ''; 61 62 $show_powered_by_link = ' data-pby="n"'; 62 63 $hide_upload_success_message = ''; 63 64 $file_upload_input = '<div class="cloudwok-dropzone"></div>'; 65 $file_upload_form = ''; 64 66 65 67 // customize labels and texts … … 85 87 $file_upload_input = '<input type="file" name="files[]" multiple>'; 86 88 } 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>'; 89 96 } 90 97 if(array_key_exists('show_powered_by_link', $atts) && $atts['show_powered_by_link'] == "True") { … … 135 142 // Code 136 143 $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 142 146 . $show_form 143 147 . $show_downloads . -
cloudwok-file-upload/trunk/readme.txt
r1264791 r1269172 5 5 Requires at least: 3.0.0 6 6 Tested up to: 4.3.1 7 Stable tag: 0.3. 67 Stable tag: 0.3.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 * Create a blog where you invite your audience to submit pictures and videos for a contest. 24 24 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. 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. 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 27 Take a look at the "Installation" tab for more information how to customize the plugin. 26 28 27 29 == Installation == … … 86 88 `[cloudwok wok_id="YOUR_WOK_ID" hide_upload_success_message="True" show_powered_by_link="True"]` 87 89 90 Since 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 88 94 By 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! 89 95 … … 104 110 == Changelog == 105 111 112 = 0.3.7 = 113 You 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). 106 114 = 0.3.6 = 107 115 You 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.