Plugin Directory

Changeset 1120927


Ignore:
Timestamp:
03/26/2015 12:25:59 AM (11 years ago)
Author:
MManifesto
Message:

Adding version 1.6

Location:
mmm-file-list
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • mmm-file-list/trunk/mm_filelist_plugin.php

    r1114739 r1120927  
    44Plugin URI: http://www.mediamanifesto.com
    55Description: Plugin to list files in a given directory using this shortcode [MMFileList folder="optional starting from base uploads path" format="li (unordered list) or table (tabular) or img (unordered list of images) or comma (plain text, comma, delimited) types="optional file-extension e.g. pdf,doc" class="optional css class for html list"]
    6 Version: 1.5
     6Version: 1.6
    77Author: Adam Bissonnette
    88Author URI: http://www.mediamanifesto.com
     
    4141        'limit' => '-1',
    4242        'orderby' => 'name', //name or date
     43        'order' => "desc",
    4344        'target' => ''
    4445        ), $atts ) );
     
    6869            {
    6970                $files = array_reverse($this->rearrange_files_by_date($dir . "/", $files));
     71            }
     72
     73            if ($order == "asc")
     74            {
     75                $files = array_reverse($files);
    7076            }
    7177
  • mmm-file-list/trunk/readme.txt

    r1114739 r1120927  
    2424* **limit**: The default value will list all files in the directory.  You can add a positive number of your choice and that amount of files will be displayed.
    2525* **orderby**: Current params can be either "name" (default) or "date" which sorts the files by date modified since date created seems to be hit and miss.
     26* **order**: By default the order of the list is sorted descending (desc) from the highest value to lowest where value is determined by the "orderby" attribute.  Ordering by date results in a list being displayed as newest to oldest and ordering by name results in a list descending through the alphabet (a-z).  To reverse either of these defaults simply add order="asc" into the shortcode parameters
    2627* **target**: This parameter lets you set a "target" for the links to the listed files (This is typically used to open the files in a new window)
    2728
     
    106107== Changelog ==
    107108
     109= 1.6 =
     110
     111* Added "order" parameter
     112
    108113= 1.5 =
    109114
Note: See TracChangeset for help on using the changeset viewer.