Changeset 1386305
- Timestamp:
- 04/04/2016 01:21:24 PM (10 years ago)
- Location:
- work-the-flow-file-upload/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (5 diffs)
-
includes/wtf-fu-common-utils.php (modified) (4 diffs)
-
public/class-wtf-fu.php (modified) (1 diff)
-
work-the-flow-file-upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
work-the-flow-file-upload/trunk/README.txt
r1385909 r1386305 4 4 Tags: file upload, upload, workflow, html5, image, gallery 5 5 Requires at least: 3.5.1 6 Tested up to: 4. 37 Stable tag: 3.1. 36 Tested up to: 4.4.2 7 Stable tag: 3.1.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 Workflows allow simple stepwise processing of each stage. Users can be allowed to move forward or backward through 43 43 the workflow as desired. File upload short codes can also be embedded inside workflow stages to provide 44 upload capabili y inside a given workflow stage.44 upload capability inside a given workflow stage. 45 45 46 46 Workflow pre and post functions may also be added to allow post and pre processing as desired as a user moves from one stage to the next. For example to archive files or send and email once a user … … 55 55 You will need to register (free) to view the demo. 56 56 57 A pro version is also available from the download page.http://wtf-fu.com/download57 A pro version is also available from http://wtf-fu.com/download 58 58 59 59 By default only registered site users are allowed to access the file upload capabilities. … … 325 325 326 326 == Changelog == 327 = 3.1.4 = 328 * Tested for compatability with wordpress 4.4.2 329 * Additional documentation added for wtf_fu_list_files shortcode attributes and placeholder fields. 330 327 331 = 3.1.3 = 328 332 * missing changelogs added. … … 504 508 505 509 == Upgrade Notice == 510 = 3.1.4 = 511 * Tested for compatability with wordpress 4.4.2, All users advised to upgrade. 512 * Additional documentation added. 506 513 = 3.1.3 = 507 514 * Release version issues only. Please update to latest. -
work-the-flow-file-upload/trunk/includes/wtf-fu-common-utils.php
r1385866 r1386305 733 733 <li>The shortcode can be used in pages, posts, workflow content and email templates.</li> 734 734 <li>To override the default attributes you need to specify the attribute you want to override when you embedd the shortcode.</li> 735 <li>The format of each file row is determined by the <code>line_format</code> attribute. You may override this to change the display format. Any or all of the placeholders <code>%%NUMBER%%, %%THUMBNAIL%%, %%FILENAME%%, %%ICON%% and %%FILESIZE%%</code> can be embedded in a table row html string. Any number of table cells <td></td>may be used but make sure you include the enclosing <tr> and </tr> tags.</li> 735 <li>The format of each file row is determined by the <code>line_format</code> attribute. You may override this to change the display format. Any or all of the placeholders in the table below 736 can be embedded in a table row html string. Any number of table cells <td></td>may be used but make sure you include the enclosing <tr> and </tr> tags.</li> 736 737 <li>Set <code>table_class=''</code> to remove the default formatting or to the name of your own css class to provide your own style, alternately provide your own inline styling inside the <code>line_format</code> attribute. 737 The default css can be found in the file .../work-the-flow-file-upload-pro/public/assets/css/wtf-fu-pro-list-files.css</li> 738 The default css can be found in the file .../work-the-flow-file-upload-pro/public/assets/css/wtf-fu-pro-list-files.css. The placeholders fields represent :" 739 . get_wtf_fu_list_files_placeholders_table() 740 . "</li> 738 741 <li>The icons used when the %%ICON%% shortcut is deployed are provided free of charge as fonts from flaticon by the author 'Freepik', from <a href='http://www.flaticon.com/packs/file-formats-icons'>here</a>. 739 742 The author requires that the icons are attributed on the web page where they are dispalyed. PRO users can find the license file in work-the-flow-file-upload-pro/public/assets/css/flaticon/license.pdf.</li> … … 1056 1059 $info->thumburl = ''; 1057 1060 } 1058 1061 1059 1062 $info->medium = $paths['upload_dir'] 1060 1063 . '/medium/' . $info->basename; … … 1067 1070 // If no thumbnail available then use the default WP image for the filetype. 1068 1071 $info->mediumurl = ''; 1069 } 1072 } 1070 1073 $info->filesize = filesize($filename); 1071 1074 $info->filetime = filemtime($filename); … … 1078 1081 $factor = floor((strlen($bytes) - 1) / 3); 1079 1082 return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor]; 1083 } 1084 1085 function get_wtf_fu_list_files_placeholders_table() { 1086 1087 $fields = array( 1088 "%%ICON%%" => "An icon representing the filetype, eg a PDF file or JPG image. Icons are provided in CSS from the flat-icon series provided free by Freepik, 1089 the css files are available in the PRO package installation in the assets/css/flaticons directory.", 1090 "%%FILENAME%%" => "The filename of the file if the 'dowload_links' attribute of the wtf_fu_list_files shortcode is specifed and true (1) then the filename will also be a link to the file for download.", 1091 "%%FILESIZE%%" => "The filesize in human readable format e.g 2.52K", 1092 "%%FILEDATETIME%%" => "The file datetime in the format specified by the filetimeformat attribute.", 1093 "%%THUMBNAIL%%" => "The THUMBNAIL image that was created using the wtf_fu_upload shortcode if any, " 1094 . "to change the size do this in the wtf_fu_upload shortcode used to upload the image, " 1095 . "see thumbnail_width and thumbnail_height attributes", 1096 "%%MEDIUM%%" => "The MEDIUM image that was created using the wtf_fu_upload shortcode if any, " 1097 . "Medium images are not created by default to change this specify 'create_medium_images' in the wtf_fu_upload shortcode used to upload the image, " 1098 . "and also the medium_width and medium_height attributes." 1099 . "You may set this to any size (even if smaller than the thumbnails) and is a useful way to provide tiny thumbs for the list without affecting the thumnail images, even if the 'medium' name is misleading.", 1100 "%%NUMBER%%" => "Prints a number for the file in order starting from 1.", 1101 "%%AUDIO%%" => "Provides an embedded audio player for the file if it is an audio file."); 1102 1103 $table = "<TABLE border=1><THEAD><TR><TH>%%FIELD%%</TH><TH>Meaning</TH></TR></THEAD><TBODY>"; 1104 1105 foreach ($fields as $k => $v) { 1106 $table .= "<tr><td>{$k}</td><td>$v</td></tr>"; 1107 } 1108 $table .= "</TBODY></TABLE>"; 1109 1110 return $table; 1080 1111 } 1081 1112 -
work-the-flow-file-upload/trunk/public/class-wtf-fu.php
r1385909 r1386305 44 44 * @var string 45 45 */ 46 const VERSION = '3.1. 3';46 const VERSION = '3.1.4'; 47 47 48 48 /** -
work-the-flow-file-upload/trunk/work-the-flow-file-upload.php
r1385909 r1386305 5 5 * Plugin URI: http://wtf-fu.com 6 6 * Description: Front end Html5 File Upload and configurable Workflow steps. Multiple file drag and drop, gallery image display, file reordering and archiving. 7 * Version: 3.1. 37 * Version: 3.1.4 8 8 * Author: Lynton Reed 9 9 * Author URI: http://wtf-fu.com
Note: See TracChangeset
for help on using the changeset viewer.