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
7830f89fa9
Fixing typos
2017-10-08 12:52:03 -06:00
Luke Towers
c2f204008b
Moved the MediaManager widget from the CMS module to the System module
2017-09-27 22:23:58 -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
f020479b91
Move session logic to SessionMaker
...
This allows controller behaviors to access session utils
2017-06-10 04:58:29 +10:00
Samuel Georges
3be6dafa6b
Fixes int folder name showing as 0
...
Fixes #2902
Code dusting
2017-06-02 20:16:26 +10:00
Samuel Georges
4d1bec860d
thumbnailDirectory -> thumbFolder
2017-05-16 08:47:15 +10:00
Luke Towers
21d4f683c3
Support custom thumbnail directory
...
This enables support for edge cases that require custom thumbnail directories (such as requiring authentication to view generated thumbnails).
2017-05-14 22:41:31 -06:00
Luke Towers
7a820f3c43
Remove reference to hardcoded media path
...
Replaces the reference to a hardcoded `/media` path when generating a local temp file path to utilize the folder name as set in `cms.storage.media.folder`.
2017-05-14 22:28:08 -06: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
9df40c07b8
Move extension validation to files only
2017-04-13 09:37:49 +10:00
Samuel Georges
24c8b4368a
Various security and UI fixes
...
The Media Manager now uses a white list approach to blocking files, we have been advised that the blacklist approach is too fragile and we agree.
Asset List and Media Manager now use $.oc.alert when displaying errors
2017-04-09 08:00:56 +10:00
Samuel Georges
09085c5e03
Add explanation - Refs #2674
2017-02-15 05:51:30 +11:00
tschallacka
65247c4ce2
Fix for get realPath on IIS.
...
Sometimes getRealPath is empty when requested on IIS and needs to be rebuilt manually.
2017-02-14 09:22:34 +01:00
Samuel Georges
8b71385481
Removed "before" events
...
There is no use case for them (yet)
Refs #2628
2017-01-30 08:33:32 +11:00
Samuel Georges
15209a9575
Bring events in to line with dev guide
...
Proof class
Refs #2628
2017-01-30 08:25:43 +11:00
Samuel Georges
0f00c3a5f3
Merge pull request #2628 from Klaasie/feature/media-manager-events
...
Add events to Media Manager widget
2017-01-30 08:03:06 +11:00
Samuel Georges
96fcb7fd79
Minor tidy
2017-01-28 07:43:24 +11:00
Klaas Poortinga
7cfb7da7d0
Add events to Media Manager widget
2017-01-24 21:20:14 +01:00
Aleksey Bobkov
4b3ab44bab
Use minified JavaScript for the Media Manager
2017-01-11 20:13:03 -08:00
Aleksey Bobkov
e3d864e0f7
Fixes item selection on touch laptops in the Media Manager. Fixes #2490
2017-01-11 20:00:23 -08:00
Aleksey Bobkov
f1bd0d33b8
Minor fix in the file type validation
2016-08-13 14:54:59 -07:00
Samuel Georges
e64b08c697
Prevent rename media file to blocked type
...
Fixes #2304
2016-08-13 09:49:13 +10:00
Jérémy Gaulin
11a55b764b
Fixes #2021 - Cropping with float values
2016-05-30 00:36:49 +02: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
Breno Douglas Araujo Souza
8d1670d562
Fix error upload file in midia
...
rename $title to $name in cleanFileName method
2016-05-12 11:54:39 -03:00
Samuel Georges
ff207b91cf
onDelete -> onDeleteItem
2016-05-12 04:31:29 +10:00
Samuel Georges
90ccef9b11
Minor
2016-03-26 12:39:34 +11:00
Samuel Georges
7b32f33d9d
Update to resizer class
...
Refs #1694
2016-03-25 17:31:22 +11:00
Samuel Georges
767ce5f2e7
Throw an exception when the file_data is missing from the request
...
Fixes #1712
2016-03-25 16:11:01 +11: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
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
ed583491e0
Fixes #1681
...
Added a customzied slug-function to MediaManager which supports @-signs
2016-01-23 20:36:05 +01:00
Samuel Georges
ab4abb9bc5
Minor
2015-09-19 06:17:31 +10:00
Vladimir Kattsov
9fee6346df
Update MediaManager.php
...
Transform extension like JPG and etc to lower case
2015-09-19 06:04:25 +10:00
Samuel Georges
742ae07391
Tidy up from #1377
2015-08-22 08:47:35 +10:00
Vladimir Kattsov
7c39a1ae74
Update MediaManager.php
...
If name of our upload file not latin
2015-08-17 18:35:43 +03: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
f49775d547
Routes cache should be used for all driver types
...
Minor cleanup of MediaManager class
2015-05-02 11:58:09 +10:00
Samuel Georges
9470259727
Minor clean ups
2015-04-29 19:50:30 +10:00
Samuel Georges
84b80a10c2
The media manager should only look for uploads of its own species
...
Fixes https://github.com/rainlab/blog-plugin/issues/79
2015-04-24 18:51:06 +10:00
alekseybobkov
87a2ea1350
Implemented Insert Video and Insert Audio features
2015-04-14 22:44:45 -07: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
332d92f538
Implemented image inserting to Redactor.
2015-04-04 18:59:36 -07:00
alekseybobkov
9ed3d03484
jQuery in the back-end updated to v.2.1.3. Fixed several memory management issues in select2 (an event attached to the mask element is never unbound), framework.js (onunload event attached to window is never unbound and holds references to the Request instances). Added popup adaptive size option. Started media manager popup API.
2015-03-29 18:56:06 -07:00
alekseybobkov
695c5d243b
Implemented the hide/show sidebar feature
2015-03-22 14:56:08 -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