Plugin Directory

Changeset 1386305


Ignore:
Timestamp:
04/04/2016 01:21:24 PM (10 years ago)
Author:
lynton_reed
Message:

updates to documentation and updated compatability to WP 4.4.2 updated to version 3.1.4.

Location:
work-the-flow-file-upload/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • work-the-flow-file-upload/trunk/README.txt

    r1385909 r1386305  
    44Tags: file upload, upload, workflow, html5, image, gallery
    55Requires at least: 3.5.1
    6 Tested up to: 4.3
    7 Stable tag: 3.1.3
     6Tested up to: 4.4.2
     7Stable tag: 3.1.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242Workflows allow simple stepwise processing of each stage. Users can be allowed to move forward or backward through
    4343the workflow as desired. File upload short codes can also be embedded inside workflow stages to provide
    44 upload capabiliy inside a given workflow stage.
     44upload capability inside a given workflow stage.
    4545 
    4646Workflow 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
     
    5555You will need to register (free) to view the demo.
    5656
    57 A pro version is also available from the download page. http://wtf-fu.com/download
     57A pro version is also available from http://wtf-fu.com/download
    5858
    5959By default only registered site users are allowed to access the file upload capabilities.
     
    325325
    326326== 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
    327331= 3.1.3 =
    328332* missing changelogs added.
     
    504508
    505509== Upgrade Notice ==
     510= 3.1.4 =
     511* Tested for compatability with wordpress 4.4.2, All users advised to upgrade.
     512* Additional documentation added.
    506513= 3.1.3 =
    507514* Release version issues only. Please update to latest.
  • work-the-flow-file-upload/trunk/includes/wtf-fu-common-utils.php

    r1385866 r1386305  
    733733                <li>The shortcode can be used in pages, posts, workflow content and email templates.</li>
    734734                <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 &lt;td&gt;&lt;/td&gt;may be used but make sure you include the enclosing &lt;tr&gt; and &lt;/tr&gt; 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 &lt;td&gt;&lt;/td&gt;may be used but make sure you include the enclosing &lt;tr&gt; and &lt;/tr&gt; tags.</li>
    736737                <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>
    738741                <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>.
    739742                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>
     
    10561059        $info->thumburl = '';
    10571060    }
    1058    
     1061
    10591062    $info->medium = $paths['upload_dir']
    10601063            . '/medium/' . $info->basename;
     
    10671070        // If no thumbnail available then use the default WP image for the filetype.
    10681071        $info->mediumurl = '';
    1069     }   
     1072    }
    10701073    $info->filesize = filesize($filename);
    10711074    $info->filetime = filemtime($filename);
     
    10781081    $factor = floor((strlen($bytes) - 1) / 3);
    10791082    return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor];
     1083}
     1084
     1085function 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;
    10801111}
    10811112
  • work-the-flow-file-upload/trunk/public/class-wtf-fu.php

    r1385909 r1386305  
    4444     * @var     string
    4545     */
    46     const VERSION = '3.1.3';
     46    const VERSION = '3.1.4';
    4747
    4848    /**
  • work-the-flow-file-upload/trunk/work-the-flow-file-upload.php

    r1385909 r1386305  
    55 * Plugin URI:        http://wtf-fu.com
    66 * 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.3
     7 * Version:           3.1.4
    88 * Author:            Lynton Reed
    99 * Author URI:        http://wtf-fu.com
Note: See TracChangeset for help on using the changeset viewer.