Changeset 1281660
- Timestamp:
- 11/07/2015 02:27:38 PM (10 years ago)
- Location:
- cloudwok-file-upload/trunk
- Files:
-
- 2 edited
-
cloudwok.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cloudwok-file-upload/trunk/cloudwok.php
r1275598 r1281660 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. 86 Version: 0.3.9 7 7 Author: CloudWok 8 8 Author Email: [email protected] … … 31 31 // Add Shortcode 32 32 function cloudwok_shortcode( $atts ) { 33 34 global $current_user; 35 get_currentuserinfo(); 36 if($current_user) { 37 $wp_user_id = $current_user->ID; 38 $wp_user_firstname = $current_user->user_firstname; 39 if(!$wp_user_firstname) { 40 $wp_user_firstname = $current_user->display_name; 41 } 42 $wp_user_lastname = $current_user->user_lastname; 43 $wp_user_email = $current_user->user_email; 44 } 33 45 34 46 // Attributes … … 139 151 $customizeMessages = $customizeMessages . 'document.querySelector(".cloudwok-embed input[name=from_lastname]" ).placeholder = "' . $atts['label_send_lastname_placeholder'] . '";'; 140 152 } 153 // fill e-mail, first name, and last name with wp user values 154 if($wp_user_email) { 155 $customizeMessages = $customizeMessages . 'document.querySelector(".cloudwok-embed input[name=from]").value = "' . $wp_user_email . '";'; 156 } 157 if($wp_user_firstname) { 158 $customizeMessages = $customizeMessages . 'document.querySelector(".cloudwok-embed input[name=from_firstname]").value = "' . $wp_user_firstname . '";'; 159 } 160 if($wp_user_lastname) { 161 $customizeMessages = $customizeMessages . 'document.querySelector(".cloudwok-embed input[name=from_lastname]" ).value = "' . $wp_user_lastname . '";'; 162 } 141 163 $customizeMessages = $customizeMessages . ' 142 164 }}'; -
cloudwok-file-upload/trunk/readme.txt
r1275598 r1281660 5 5 Requires at least: 3.0.0 6 6 Tested up to: 4.3.1 7 Stable tag: 0.3. 87 Stable tag: 0.3.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 110 110 == Changelog == 111 111 112 = 0.3.9 = 113 Minor feature improvement: pre-fill message form with e-mail, first name, and last name of a logged in WP user. 112 114 = 0.3.8 = 113 115 Bugfix to make this feature work: 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.