Commit Graph

307 Commits

Author SHA1 Message Date
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
Andy Miller
2f9621ac0f Remove language for ALL urls where it's not needed (outside of pages/ for now) 2015-10-22 15:53:42 -06:00
Andy Miller
6dd0e60c25 Fixed disabling asset pipeline order issue #224 2015-10-22 14:47:47 -06:00
Flavio Copes
d387994898 Allow translating filter popup titles 2015-10-21 19:54:10 +02:00
Flavio Copes
ba07370b07 Print admin version only if in admin 2015-10-20 10:36:48 +02:00
Flavio Copes
269a3296db Move controller initialization to its own method so it's easily overriddeable 2015-10-19 11:46:51 +02:00
Flavio Copes
d5e9ce756b Fix for swapping with admin pro if available 2015-10-16 21:16:34 +02:00
Flavio Copes
a52f2c842b Allow plugins to provide pages in (plugin)/admin/pages/ 2015-09-07 11:49:41 +02:00
Flavio Copes
5658bad347 Call onAdminTemplateNavPluginHook to provide plugins the ability to populate plugins_hooked_nav
Example event handling:

    public function onAdminTemplateNavPluginHook()
    {
        $this->grav['twig']->plugins_hooked_nav['PLUGIN_DATA.DATA'] =
['route' => 'data', 'icon' => 'fa-file-text'];
    }
2015-09-07 11:48:42 +02:00
Andy Miller
58e1aec94b Check for existence of a user account 2015-08-31 17:03:44 -06:00
Flavio Copes
4176b32e61 If all updates are applied, show Fully Updated. Fixes #101
Also include code for a more smooth visualization of the data
2015-08-28 17:31:45 +02:00