Commit Graph

141 Commits

Author SHA1 Message Date
Andreas Gohr 28af4b6776 Major Refactoring (will need some cleanup)
This refactors the plugin from one mega syntax file into multiple
classes.

The plugin now focuses on one usecase: listing files that are external
to the wiki and making them downloadable. All other usecases have been
dropped. Also a bunch of other options have been dropped.

A new dispatcher makes it possible to deliver files without the need to
have the webserver pointing at them.
2024-02-27 14:49:08 +01:00
Andreas Gohr 1c9be8254b initial automatic cleanup 2024-02-26 11:58:11 +01:00
Andreas Gohr 31b4eb67ba Version upped 2020-11-09 11:39:38 +01:00
Gerrit Uitslag 6c842602ea Merge pull request #32 from dokufreaks/cleanup
Removed useless/deprecated code
2020-09-27 15:30:15 +02:00
lpaulsen93 5cdac8ec6a Removed useless/deprecated code 2020-09-27 11:59:14 +02:00
Gerrit Uitslag 5c86675f14 Merge pull request #31 from dokufreaks/use-nocache
Use '$renderer->nocache()'
2020-09-22 21:44:43 +02:00
lpaulsen93 41ca2bd314 Use '$renderer->nocache()' 2020-09-19 13:54:27 +02:00
Lars Paulsen 6ddd45c38b Added new option 'showcreator'. See #28.
If activated an additional column will be displayed showing the DokuWiki user which created the file.
Only works if option 'direct' is set to '0'.
2018-05-31 16:35:56 +02:00
LarsDW223 bfd71e37a5 Corrected image link generation for image preview.
This fixes broken preview images if media ids are used in the file pattern
(parameter 'direct=0'). Fixes #27.
2018-04-07 12:55:36 +02:00
LarsGit223 ed94025e20 Added screenshot via upload 2016-09-10 15:14:17 +02:00
LarsDW223 d6b2e685a5 Fixed missing language strings for 'preview' and 'filetype'. Upped version. 2016-09-10 14:14:42 +02:00
LarsGit223 63b3a261cb Merge pull request #26 from LarsGit223/master
Minor adjustments for ODT redesign branch.
2016-09-01 21:37:19 +02:00
LarsDW223 37723cbe4a Minor adjustments for ODT redesign branch. 2016-09-01 21:32:41 +02:00
LarsDW223 9750d364c3 Upped version, added Dokufreaks 2016-05-14 14:51:24 +02:00
LarsDW223 ec306048e5 Fixed _realpath() for UNC pathes like '\\examplepath\mypath' (will become '//examplepath/mypath'). See #1.
Here is a comparison between the output of the old and new version of _realpath():

Input: '/a/b/c/' Output old: '/a/b/c/' Output new: '/a/b/c'
Input: '//a/b/c' Output old: '/a/b/c'  Output new: '//a/b/c'
Input: 'a//b'    Output old: 'a/b'     Output new: 'a//b'
2016-05-13 22:05:24 +02:00
LarsDW223 64cebf9c73 Preview image path are always direct. Fixes #24. 2016-05-13 19:33:15 +02:00
LarsDW223 4d798e23d2 Adjusted _path_is_absolute() to also recognize a path like '\\mypath' as absolute under windows. See #1. 2016-05-13 19:00:31 +02:00
LarsDW223 0dc06c1a89 Out commented travis ci tests for PHP version 5.3 to 5.5 as the test code is currently incompatible to this versions. 2016-05-12 20:31:41 +02:00
LarsGit223 2199420462 Merge pull request #23 from LarsGit223/master
Added option for generating ftp links.
2016-05-11 22:16:23 +02:00
LarsDW223 ca75fd34f2 Minor code improvement. 2016-05-11 22:11:11 +02:00
LarsDW223 738390afa9 Added option for generating ftp links. Fixes #18. 2016-05-11 22:03:46 +02:00
LarsDW223 530bbb1685 On ODT export call _odtAddImage() to insert image. Fixes #22. 2016-05-11 20:33:26 +02:00
LarsDW223 737905fb5e Fixed ODT export for style=table:
- Count table columns for table_open()
- Open and close table row before table heading
Fixes #21.
2016-05-11 20:29:06 +02:00
LarsDW223 7b9a2ebee7 Fixed deprecated constructor. 2016-05-09 18:56:20 +02:00
LarsDW223 204dee0e6f Corrected '.travis.yml' file: there is no directory '.gitignore' in the plugin filelist directory. 2016-05-09 18:53:35 +02:00
LarsGit223 e9591647ab Merge pull request #20 from LarsGit223/master
Added JavaScript zoom function for preview images. Fixes #19.
2016-05-09 18:42:35 +02:00
LarsDW223 4366c8ab3f Adjusted CSS id. 2016-05-09 18:35:58 +02:00
LarsDW223 2d0fd400c0 Added missing COPYING and README file. 2016-05-08 12:10:41 +02:00
LarsDW223 d8da66761e Added test code (incomplete) and travis-ci config file. 2016-05-08 11:59:49 +02:00
LarsDW223 ea05a3a5c6 Added JavaScript zoom function for preview images. Fixes #19. 2016-05-07 14:50:33 +02:00
LarsGit223 00ee8d3fdd Merge pull request #17 from LarsGit223/master
Added new options 'showsize', 'showdate' and 'listsep':
2016-05-07 10:23:57 +02:00
LarsDW223 00ae752f49 Added new options 'showsize', 'showdate' and 'listsep':
- 'showsize' shows the filesize for lists and table mode
- 'showdate' shows the last modified date for lists and table mode
- 'listsep' specifies the separator between the link, size and date.
  Default is ", ".
'tableshowsize' and 'tableshowdate' are still supported for backwards compatibility.
Fixes #16.
2016-05-06 20:03:39 +02:00
LarsGit223 8e034a213c Merge pull request #15 from LarsGit223/master
Minor code cleanup
2016-05-06 19:22:21 +02:00
LarsDW223 0654dfec92 Replaced all occurences of '&$renderer' with 'Doku_Renderer $renderer'.
Moved function 'render_preview_image()' to section 'Render functions'.
2016-05-05 21:18:20 +02:00
LarsDW223 116e03df92 Fixed code duplication for the link's URL generation. 2016-05-05 12:33:40 +02:00
LarsDW223 b4c60681b1 Removed obsolete getInfo() method. 2016-05-05 12:11:45 +02:00
LarsGit223 be97c8ef7c Merge pull request #14 from LarsGit223/master
Added option for inserting preview images
2016-05-05 11:58:30 +02:00
LarsDW223 95f84f105c Fixed code duplication for preview image rendering. 2016-05-05 11:04:42 +02:00
LarsDW223 69f6c00d52 Removed currently unused class 'preview' from preview image tags. 2016-05-05 10:45:47 +02:00
LarsDW223 76b639344d Set alignment for 'preview' table column to 'center'. 2016-05-05 10:24:12 +02:00
LarsDW223 3c09f83788 Added new config options 'preview', 'previewsize' and 'link':
- 'preview' and 'previewsize' allow to enable a previewimage and set the size of it
- 'link' controls if a link is created with icon or not or if just plain text is used
2016-05-05 10:11:29 +02:00
LarsGit223 98785ba92b Merge pull request #13 from LarsGit223/master
Added option 'randlinks' to create random links with a timestamp atta…
2016-05-04 21:04:38 +02:00
LarsDW223 2572618a34 Added option 'randlinks' to create random links with a timestamp attached to it as a URL parameter.
This prevents the referenced resource from being cached.
The user will see the latest version of a file if he clicks on it, at least after refreshing the page. See #9.
2016-05-03 19:39:56 +02:00
LarsDW223 7441ea06c0 Added ODT support. 2016-04-30 17:45:19 +02:00
LarsDW223 c26020c439 Small refactoring. 2016-04-30 15:01:15 +02:00
LarsDW223 99bbd1f698 Check if method '$renderer->getLastlevel()' exists or if '$renderer->lastlevel' is accessible.
If not for both then always use level 1 to prevent an error causing an empty page e.g. on "hrun" and "detritus". See #11.
2016-04-30 11:56:27 +02:00
LarsDW223 ede0369bdb Upped version. 2016-04-26 18:43:28 +02:00
Michael Hamann 77cab9416c Merge pull request #12 from splitbrain-forks/php7-signature
Adjust method signatures to match parent
2016-02-27 18:31:08 +01:00
Andreas Gohr 88000db20d Adjust method signatures to match parent 2016-02-02 13:09:53 +01:00
Andreas Gohr 30af0de757 upped version 2014-05-26 14:37:04 +02:00