Changeset 1262365
- Timestamp:
- 10/09/2015 10:09:22 AM (10 years ago)
- Location:
- cloudwok-file-upload/trunk
- Files:
-
- 2 edited
-
cloudwok.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cloudwok-file-upload/trunk/cloudwok.php
r1255840 r1262365 43 43 'show_powered_by_link' => False, 44 44 'simple_file_upload_button' => False, 45 'hide_upload_success_message' => False, 45 46 'label_add_files_btn' => '', 46 47 'label_send_msg_btn' => '', … … 59 60 $show_form_input_email = ' data-show-email="n"'; 60 61 $show_powered_by_link = ' data-pby="n"'; 62 $hide_upload_success_message = ''; 61 63 $file_upload_input = '<div class="cloudwok-dropzone"></div>'; 62 64 … … 82 84 if(array_key_exists('simple_file_upload_button', $atts) && $atts['simple_file_upload_button'] == "True") { 83 85 $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"'; 84 89 } 85 90 if(array_key_exists('show_powered_by_link', $atts) && $atts['show_powered_by_link'] == "True") { … … 129 134 130 135 // 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 . '>' 132 137 . $show_uploads . 133 138 '<form class="cloudwok-upload">' -
cloudwok-file-upload/trunk/readme.txt
r1255840 r1262365 5 5 Requires at least: 3.0.0 6 6 Tested up to: 4.2.3 7 Stable tag: 0.3. 57 Stable tag: 0.3.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 82 82 `[cloudwok wok_id="YOUR_WOK_ID" simple_file_upload_button="True" show_powered_by_link="True"]` 83 83 84 Since 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 84 88 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! 85 89 … … 100 104 == Changelog == 101 105 106 = 0.3.6 = 107 You can now disable the success message after a successful file upload, via hide_upload_success_message="True". 102 108 = 0.3.5 = 103 109 Added 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.