This makes the plugin compatible with `system.session.initialize = false`
which makes it possible to have no session cookie (for frontend users)
while the admin login still works.
* Added unset functionality to pagemedia (dropzone). Unset removes the file from the page without deleting it from the system.
* Update unset.js for formatting
* Update unset.js. Removed console log and modified JSON parsing for native faster one.
* Updated unset.js. Fixed quote style
* Fixed couple issues with the unset of images
* Merged with latest Admin
* Add function which replaces types and modularTypes
* Replace Pages statics with AdminPlugin statics
* Use Event's built-in items rather than data member
* Add configration for hiding page types
* Bugfix: Save in wrong lang when multiple tabs open
English and french in this PR are used only for example purposes.
When you have multiple tabs opened in different languages, it often cause to ovewrite the french contents with the english contents (or vice-versa, or according to your specific language configuration).
How to reproduce the bug :
1. Open a tab and edit a page in french
2. In another tab, open the same page in english then save
3. Return to the french tab and save
4. **The english contents got overwrited by the french contents**
This patch makes the use of the language code in URL instead of the session when editing a page, preventing to overwrite the contents of another page while power-editing with many tabs in different languages.
* Remove unused scopes about the session language
* First draft of a Tools menu with direct install
* Basic styling
* Translate GPM messages
* Basic frontend validation
* Fix form action path
* Added lang strings for offical_gpm_only toggle
* Separated Admin Controller into a generic and extendable Base controller. Added Autoload for properly loading classes
* Implemented custom class loader to force lowercase
* Removed composer autoloader for classes
* Updates
* Ability to pass custom upload URL for files
* Added new onAdminCanSave event for 3rd party plugins
* Moved files upload GC in onOutputGenerated event
* Cleanup
* Moved autoloader so it is always registering
* Fixed onOutputGenerated event location
* Moved `taskRemoveFileFromBlueprint`, `taskRemoveMedia `, `canEditMedia` methods to admin base controller
* Allow to globally define `blueprint_type` and `file_url_remove` for the file field
* Moved `isMultilang()` into base controller
* Properly generate thumbnails in proportions for file fields
* Simplified execute restrictions with blacklist