Changeset 1201910
- Timestamp:
- 07/19/2015 01:26:03 PM (11 years ago)
- Location:
- cloudwok-file-upload/trunk
- Files:
-
- 2 edited
-
cloudwok.php (modified) (4 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cloudwok-file-upload/trunk/cloudwok.php
r1194197 r1201910 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. 26 Version: 0.3.3 7 7 Author: CloudWok 8 8 Author Email: [email protected] … … 39 39 'show_downloads' => False, 40 40 'show_form' => True, 41 'show_form_input_name' => True, 42 'show_form_input_email' => True, 41 43 'show_powered_by_link' => False 42 44 ), $atts ) … … 46 48 $show_downloads = ''; 47 49 $show_form = ''; 48 $show_powered_by_link = 'data-pby="n"'; 50 $show_form_input_name = ' data-show-name="n"'; 51 $show_form_input_email = ' data-show-email="n"'; 52 $show_powered_by_link = ' data-pby="n"'; 49 53 50 54 if(array_key_exists('show_uploads', $atts) && $atts['show_uploads'] == "True") { 51 55 $show_uploads = '<div class="cloudwok-upload-files"></div>'; 52 56 } 57 if(array_key_exists('show_form', $atts) && $atts['show_form'] == "True") { 58 $show_form = '<div class="cloudwok-upload-message"></div>'; 59 } 60 if(array_key_exists('show_form_input_name', $atts) && $atts['show_form_input_name'] == "True") { 61 $show_form_input_name = ' data-show-name="y"'; 62 } 63 if(array_key_exists('show_form_input_email', $atts) && $atts['show_form_input_email'] == "True") { 64 $show_form_input_email = ' data-show-email="y"'; 65 } 53 66 if(array_key_exists('show_downloads', $atts) && $atts['show_downloads'] == "True") { 54 67 $show_downloads = '<div class="cloudwok-download-files"></div>'; 55 }56 if(array_key_exists('show_form', $atts) && $atts['show_form'] == "True") {57 $show_form = '<div class="cloudwok-upload-message"></div>';58 68 } 59 69 if(array_key_exists('show_powered_by_link', $atts) && $atts['show_powered_by_link'] == "True") { … … 62 72 63 73 // Code 64 $to_return = '<div class="cloudwok-embed" data-wokid="' . $atts['wok_id'] . '" ' . $show_powered_by_link . '>'74 $to_return = '<div class="cloudwok-embed" data-wokid="' . $atts['wok_id'] . '" ' . $show_powered_by_link . $show_form_input_name . $show_form_input_email . '>' 65 75 . $show_uploads . 66 76 '<form class="cloudwok-upload"> 67 77 <div class="cloudwok-dropzone"></div> 68 78 </form>' 69 . $show_ downloads70 . $show_ form.79 . $show_form 80 . $show_downloads . 71 81 '</div> 72 82 -
cloudwok-file-upload/trunk/readme.txt
r1194211 r1201910 5 5 Requires at least: 3.0.0 6 6 Tested up to: 4.2.2 7 Stable tag: 0.3. 27 Stable tag: 0.3.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 20 20 21 21 * Create a wedding website where you let wedding guests upload photos directly into your Dropbox, Google Drive, ... 22 * Create a project website with pass owrd-protected file-upload form, through which you collect project deliverables and submissions from colleagues, collaborators, and business partners.22 * Create a project website with password-protected file-upload form, through which you collect project deliverables and submissions from colleagues, collaborators, and business partners. 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 Word press 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. Sometimes so much, that we give away service upgrades and upload quota for free. 26 26 27 27 == Installation == … … 69 69 `[cloudwok wok_id="YOUR_WOK_ID" show_uploads="False" show_downloads="True" show_form="True" show_powered_by_link="True"]` 70 70 71 You can customize the message form as follows to let uploaders enter their e-mail and/or name: 72 73 * `[cloudwok wok_id="YOUR_WOK_ID" show_form="True" show_form_input_name="True" show_form_input_email="True"]` Show a form with name and e-mail input fields in addition to the message field. 74 * `[cloudwok wok_id="YOUR_WOK_ID" show_form="True" show_form_input_name="True"]` Show a form with name field but without e-mail field in addition to the message field. 75 * `[cloudwok wok_id="YOUR_WOK_ID" show_form="True" show_form_input_email="True"]` Show a form without a name field but with an e-mail input fields in addition to the message field. 76 77 Thereby, you gain the ability to more easily correlate files that are uploaded to your Dropbox, Google Drive, etc. with the name and/or e-mail of the person who uploaded these files. 78 71 79 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"]`. 72 80 … … 83 91 == Changelog == 84 92 93 = 0.3.3 = 94 Added new features to optionally show first name, last name, and e-mail address as input fields of the message form. Use it for example like this: `[cloudwok wok_id="YOUR_WOK_ID" show_form="True" show_form_input_name="True"]` 85 95 = 0.3.2 = 86 96 Minor code changes.
Note: See TracChangeset
for help on using the changeset viewer.