Commit Graph

317 Commits

Author SHA1 Message Date
Flavio Copes
0d9a3e4bdc GravTrait changes in Admin 2016-02-04 20:59:11 +01:00
Flavio Copes
5170a9d2c4 🎨 Drop unused code, format, PHPDoc 2016-02-04 20:59:11 +01:00
Djamil Legato
a846b73e46 Added more lang strings for Medias 2016-02-01 16:34:50 -08:00
Djamil Legato
35fa588438 Reworked Admin JS with ES6 2016-02-01 11:27:34 -08:00
Flavio Copes
c62fb6bdb5 Fix #390 Incorrect number of pages being displayed 2016-01-28 14:03:53 +01:00
Andy Miller
086ed34bc0 Fix theme_url in admin for #407 2016-01-24 19:27:53 -07:00
Matias Griese
d902c9f8b4 Improve support for user defined blueprints in Configuration 2016-01-22 21:52:25 +02:00
Matias Griese
d0e87bddb1 Add support for admin based blueprints 2016-01-22 10:42:38 +02:00
Matias Griese
77639e71cf Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop
# Conflicts:
#	classes/controller.php
2016-01-21 09:51:35 +02:00
Matias Griese
0424975657 Improve type hints 2016-01-21 09:46:38 +02:00
Flavio Copes
51c0a9301c Better solution for previous commit. On Linux glob might return false. Check prior to casting to array.
From the PHP manual: on some systems it is impossible to distinguish
between empty match and an error.
2016-01-17 23:08:19 +01:00
Flavio Copes
73d8396553 On Linux glob might return a ['0' => false] array
From the PHP manual: on some systems it is impossible to distinguish
between empty match and an error.
2016-01-17 23:04:34 +01:00
Flavio Copes
6d3d728bda Tweak onTwigSiteVariables() to handle folders without md file 2016-01-15 12:58:04 +01:00
Flavio Copes
769033739a Add pages dashboard via onAdminDashboard event too.
Allow 3 twig var placements:

grav.twig.plugins_hooked_dashboard_widgets_top
grav.twig.plugins_hooked_dashboard_widgets_main
grav.twig.plugins_hooked_dashboard_widgets_bottom
2016-01-11 11:34:15 +01:00
Flavio Copes
2c9630b7af Add onAdminDashboard event. Move maintenance and Statistics widgets on their own partial, add to Twig::plugins_hooked_dashboard_widgets on onAdminDashboard 2016-01-10 17:39:57 +01:00
Flavio Copes
53bbbf9fc2 Docblocks / coding style improvement 2016-01-10 17:39:57 +01:00
Flavio Copes
68747cc4b8 Remove deprecated menu event 2016-01-10 17:39:57 +01:00
Andy Miller
1d338094f2 force lowercase of username 2015-12-11 10:34:40 -07:00
Andy Miller
72cd1099cd Removed unnecessary cache file check.. no real performance difference 2015-12-10 16:14:13 -07:00
Flavio Copes
8bfe80d4a3 Drop unneeded event handler 2015-12-10 22:28:30 +01:00
Andy Miller
19d73c1fdd refactor including site-side redirect if no accounts. 2015-12-10 13:22:23 -07:00
Andy Miller
cceb39a05c Merge branch 'feature/admin_registration' of https://github.com/getgrav/grav-plugin-admin into feature/admin_registration
Conflicts:
	admin.php
2015-12-10 12:12:04 -07:00
Andy Miller
914dd0315f refactoring a little 2015-12-10 12:08:06 -07:00
Flavio Copes
62820793d0 Add pattern for username. Drop manual validation 2015-12-10 19:34:02 +01:00
Andy Miller
4e1f1109e1 Merge branch 'develop' into feature/admin_registration 2015-12-10 11:02:47 -07:00
Andy Miller
ed51e48e35 various updates 2015-12-10 11:02:19 -07:00
Flavio Copes
88550797e3 Revert "Fix issue in base_url_relative_frontend on sites not running on a subfolder"
This reverts commit 11557780f1.
2015-12-10 18:17:09 +01:00
Andy Miller
87aa4b36c9 Merge branch 'develop' into feature/admin_registration 2015-12-10 09:47:37 -07:00
Flavio Copes
4c109d002c Admin registration working 2015-12-10 12:07:36 +01:00
Flavio Copes
11557780f1 Fix issue in base_url_relative_frontend on sites not running on a subfolder 2015-12-10 10:17:32 +01:00
Andy Miller
c1311567b4 more progress with the registration 2015-12-09 21:37:34 -07:00
Andy Miller
fb30324187 started work on admin registration logic 2015-12-04 11:58:28 -07:00
Andy Miller
74923aba86 Force timestamp on assets based on GRAV_VERSION 2015-12-03 16:57:27 -07:00
Andy Miller
1f3ef3aebb Use new methods to disable CSS/JS Pipeline if available (without effecting config) #318 2015-12-03 14:47:34 -07:00
Flavio Copes
3af03e2f8e Throw exception when used within the PHP builtin webserver 2015-12-03 17:29:46 +01:00
Flavio Copes
e82c347508 Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-30 15:58:40 +01:00
Andy Miller
6f97eb2613 force translations to be on while processing admin translations #299 2015-11-29 21:51:07 -07:00
Flavio Copes
5591ae6836 Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-26 12:14:27 +01:00
Andy Miller
fd24c84a4a display Error page if the page is not found 2015-11-25 15:43:26 -07:00
Flavio Copes
970d77219e Fixes https://github.com/getgrav/grav/issues/476, replace default themes service with admin own theme service to avoid loading the default theme 2015-11-25 18:31:28 +01:00
Flavio Copes
16d745b377 Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-21 16:40:18 +01:00
Andy Miller
86a6d56a23 Set default lang for pages on fresh session 2015-11-20 11:02:52 -07:00
Flavio Copes
aa11f29290 Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-01 14:03:10 +01:00
Flavio Copes
17cb5e8bec Intercept error in connecting to the GPM and tell "Cannot connect to the GPM" instead of "Internal Server Error" 2015-11-01 12:05:07 +01:00
Flavio Copes
5a84b5716c Fix $locator not defined, use existing structure but with locator 2015-10-29 19:15:51 +01:00
Sommerregen
42b3a09982 Minor improvements 2015-10-26 21:30:33 +01:00
Andy Miller
f6d05289ce Rely on context-language for active language 2015-10-24 13:14:00 -06:00
Andy Miller
4239272ebb optimized disable asset pipeline logic 2015-10-24 12:34:10 -06:00
Cord
429604a078 disable asset pipeline in admin only
currently pipelines are also deactivated on frontend
2015-10-24 18:25:15 +02:00
Andy Miller
f0f8cd6c7f Back out lang removal code as it is causing problems 2015-10-23 19:51:02 -06:00