Arthur Kushman
bbc33710c1
>= PHP7.0 refactoring ( #3343 )
...
* Fix loosly comparison to strict + argument types and return types for >=7.0
* Change hard-coded strings to ::class,
* Fix unit-tests failures - some relative to 7.0 phpunit env deployment
* Fix exception string + format return types
* Change string representation of new classes in traceLog to ::class
Credit to @arthurkushman
2018-01-12 00:23:20 -06:00
Luke Towers
de747f98b3
Deprecate the MediaLibrary & MediaLibraryItem classes in the CMS module
2017-09-27 22:12:45 -06:00
Luke Towers
0b7170ac26
Add support for sorting direction to the MediaManager ( #3007 )
...
* Remove redundant returns
`$this->putSession()` in `Backend\Traits\SessionMaker` doesn't return anything, and the return values of these methods are not used; so returning the value of `putSession()` in these methods is redundant.
* Add support for sort direction to MediaLibrary
Adds support for switching the direction that item lists get sorted by the media library. This necessitates the changing of the default direction of Last Modified and Size to Ascending, previously their sorting direction was Descending while Title was sorted in Ascending order. This shouldn't change anything as the user still has the power to sort by either direction. Fully backwards compatible with any calls to `sortItemList`.
* Support sorting direction in the MediaManager widget
Adds further support for specifying a sorting direction to the MediaManager widget itself
* Display sorting direction options
* Improving styles for sorting direction
* Send sorting information to the MediaManager
* Add translations for sorting feature
* Removing strange ghost whitespace
2017-08-05 12:45:01 -06:00
Samuel Georges
3be6dafa6b
Fixes int folder name showing as 0
...
Fixes #2902
Code dusting
2017-06-02 20:16:26 +10:00
Quezler
cc17b679f1
Code dusting ( #2826 )
...
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges
c7eb965af8
Introduce ignorePatterns to Media Library, ignoring dot files by default
...
Roll back some changes from #2692
2017-03-20 17:42:17 +11:00
Muah
bcd75c84c0
use regex to hide files under media manger
2017-02-20 13:54:30 +02:00
Aleksey Bobkov
5415e64cf3
Added an option to suppress folders in the MediaLibrary::listFolderContents() calls. Fixes #2016
2017-01-12 17:40:08 -08:00
Samuel Georges
676196d304
Use starts_with instead of regex
2016-07-16 15:34:20 +10:00
Samuel Georges
af19341c01
"Quick Uploads" are dumped in a special folder via media manager
...
Refs #2005
Remove the active state on media manager table data for consistency with other view modes
2016-05-22 07:24:04 +10:00
Samuel Georges
87a4de40de
Address serialize/unserialize issues
...
This will require a cache clear for the combiner
Ref https://davidwalsh.name/php-serialize-unserialize-issues
2016-04-16 08:22:31 +10:00
Samuel Georges
4ddc8055c6
Merge branch 'develop' into stable
2016-03-25 18:39:16 +11:00
Pásztor Gábor
ed1c84b8b1
PHPDoc fixes.
2016-03-04 16:50:58 +01:00
alekseybobkov
387c75c5cd
Fixed a bug where changing a letter case in a folder name in Media Manager deletes the folder. Added ability to move files and folders to the root directory in Media Manager. Fixed a bug where numeric folder names are displayed incorrectly in the folder path in Media Manager. Fixes #1765 , fixes #1173 , fixes #1085 .
2016-02-29 21:50:07 -08:00
Samuel Georges
fd16f38b11
Implement file definitions (extensions + ignore files)
...
Block "unsafe" extensions from being uploaded to the Media manager
Fixes #1801
2016-02-29 18:12:26 +11:00
Samuel Georges
63451aab50
Fixes validatePath for Windows
...
(DIRECTORY_SEPARATOR is normalized in code above)
2016-02-27 15:04:07 +11:00
Samuel Georges
8e9ae8e53e
Clean up from #1631
...
- Files in the media library can now contain two dots
- Retina Images Support
2016-02-27 14:49:38 +11:00
Joel E. Svensson
8f1e2ff8a3
Files in the media library can now contain two dots
2015-12-06 18:55:51 +01:00
Vojta Svoboda
16eb704793
Add missing PHPDoc @return tag
2015-10-17 09:17:37 +11:00
Samuel Georges
2cf1d707ad
The API response for insert / insert+crop should be identical
...
This is because the 'onInsert' callback is used for both actions, yet yielded different results causing breakages
Fixes #1281
Also improved code readability in some places
2015-08-08 11:17:56 +10:00
Samuel Georges
91c061f60a
Add |media filter and MediaLibrary::url helper
2015-06-17 18:51:05 +10:00
Samuel Georges
e3bd53230f
Revert breaking from #1103
2015-05-09 11:06:04 +10:00
niclasleonbock
28f265c10a
Fix two minor media manager bugs
2015-05-03 16:10:30 +02:00
Samuel Georges
9470259727
Minor clean ups
2015-04-29 19:50:30 +10:00
Samuel Georges
0b82e1f44f
Fixes operation in subfolders
2015-04-16 19:13:33 +10:00
alekseybobkov
c1740c479c
Media Manager: implemented insert link, insert image, and crop and insert features. Minor fixes in October core and third-party JS plugins.
2015-04-11 18:55:02 -07:00
alekseybobkov
86b9f58465
Implemented folder and file moving.
2015-03-22 13:07:37 -07:00
alekseybobkov
f7d08f1197
Implemented folder creation, fixed a minor issue with selecting items, added a new event to the Popup control.
2015-03-21 23:09:33 -07:00
alekseybobkov
cd0b107a2b
Implemented file and folder renaming
2015-03-21 16:14:26 -07:00
alekseybobkov
331276c244
Implemented file and folder deletion
2015-03-18 22:20:53 -07:00
alekseybobkov
e2a9c25b65
Implemented search.
2015-03-17 22:20:04 -07:00
alekseybobkov
4e1217e2de
Implemented item sorting. Minor fix in the drop-down list styling.
2015-03-16 21:49:39 -07:00
alekseybobkov
a040fa4c68
Implemented file type filters
2015-03-16 20:32:51 -07:00
alekseybobkov
44c08b76f9
Implemented file uploading
2015-03-15 21:54:39 -07:00
alekseybobkov
18e058ad59
Added the Media tab, minor update in .htaccess to allow temporary public directory to be accessible; implemented the basic UI components and navigation; implemented grid, list and tiles view modes; implemented drag-select interface; implemented Media Library cache refreshing; implemented thumbnail generating for local and remote media files; fixed memory leak in third-party Flot Resize library; minor update in the AJAX framework - AJAX request cancelling is not considered as an error anymore; added back-end UI components for creating panels.
2015-03-15 12:52:03 -07:00
alekseybobkov
1c273f28ba
Implementing the MediaLibrary class, in progress
2015-02-24 22:02:03 -08:00