Changeset 1120927
- Timestamp:
- 03/26/2015 12:25:59 AM (11 years ago)
- Location:
- mmm-file-list
- Files:
-
- 3 added
- 2 edited
-
tags/1.6 (added)
-
tags/1.6/mm_filelist_plugin.php (added)
-
tags/1.6/readme.txt (added)
-
trunk/mm_filelist_plugin.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mmm-file-list/trunk/mm_filelist_plugin.php
r1114739 r1120927 4 4 Plugin URI: http://www.mediamanifesto.com 5 5 Description: 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. 56 Version: 1.6 7 7 Author: Adam Bissonnette 8 8 Author URI: http://www.mediamanifesto.com … … 41 41 'limit' => '-1', 42 42 'orderby' => 'name', //name or date 43 'order' => "desc", 43 44 'target' => '' 44 45 ), $atts ) ); … … 68 69 { 69 70 $files = array_reverse($this->rearrange_files_by_date($dir . "/", $files)); 71 } 72 73 if ($order == "asc") 74 { 75 $files = array_reverse($files); 70 76 } 71 77 -
mmm-file-list/trunk/readme.txt
r1114739 r1120927 24 24 * **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. 25 25 * **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 26 27 * **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) 27 28 … … 106 107 == Changelog == 107 108 109 = 1.6 = 110 111 * Added "order" parameter 112 108 113 = 1.5 = 109 114
Note: See TracChangeset
for help on using the changeset viewer.