Commit Graph

1299 Commits

Author SHA1 Message Date
Flavio Copes
b68a12fd11 Merge branch 'develop' into feature/new-folder-modal 2016-02-04 21:05:00 +01:00
Flavio Copes
0d9a3e4bdc GravTrait changes in Admin 2016-02-04 20:59:11 +01:00
Flavio Copes
d200f7a72c 🎨 Code hints, docblocks 2016-02-04 20:59:11 +01:00
Flavio Copes
30a08f6203 🚧 Simplify admin translate method 2016-02-04 20:59:11 +01:00
Flavio Copes
5170a9d2c4 🎨 Drop unused code, format, PHPDoc 2016-02-04 20:59:11 +01:00
Flavio Copes
bc57362628 Delete streams.yaml 2016-02-03 18:05:06 +01:00
Matias Griese
f885bcdd08 Merge remote-tracking branch 'origin/develop' into develop 2016-02-02 13:26:42 +02:00
Matias Griese
29f7aa6428 Fix Blueprints "ignore" field removes tab options but not the tab itself (#620) 2016-02-02 13:26:28 +02:00
Flavio Copes
c62fb6bdb5 Fix #390 Incorrect number of pages being displayed 2016-01-28 14:03:53 +01:00
Flavio Copes
13c60ed833 Add a logout button when not authorized to access a page in Admin
Otherwise if the user cannot access any page it needs to clear the
cache to be able to logout and login again
2016-01-28 13:52:28 +01:00
Flavio Copes
80eef0a919 🐛 Fix preview and insertion of images with non-lowercase extension 2016-01-26 14:32:01 +01:00
Flavio Copes
5e1004f06f 🎨 Cut previewTemplate in multiple lines, 2016-01-26 14:32:01 +01:00
Andy Miller
086ed34bc0 Fix theme_url in admin for #407 2016-01-24 19:27:53 -07:00
Matias Griese
6e824d1528 Merge remote-tracking branch 'origin/develop' into develop 2016-01-22 21:52:34 +02:00
Matias Griese
d902c9f8b4 Improve support for user defined blueprints in Configuration 2016-01-22 21:52:25 +02:00
Flavio Copes
29641a6f5b Fix issue with selector
Refs
https://stackoverflow.com/questions/13438945/jquery-tools-error-uncaught
-error-syntax-error-unrecognized-expression-href
2016-01-22 18:30:30 +01:00
Matias Griese
d0e87bddb1 Add support for admin based blueprints 2016-01-22 10:42:38 +02:00
Matias Griese
732d9f66b0 Add possibility to hide Configuration section/tab 2016-01-22 10:38:07 +02:00
Flavio Copes
03087bed27 Use common language strings in blueprints 2016-01-21 14:40:54 +01: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
9f7b55476a Add noindex, nofollow across the entire admin theme if no other robots headers are set on a page 2016-01-18 08:56:43 +01: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
096259dc3f Escape page title 2016-01-17 20:55:55 +01:00
Flavio Copes
876d0acb6b Escape page titles 2016-01-17 20:52:05 +01:00
Flavio Copes
5816a34e64 Escape user values in nav template 2016-01-17 10:51:40 +01:00
Flavio Copes
08135ee843 Fix PHP error happening when uploading file without extension if the JS dropzone uploader is configured to allow empty file extensions 2016-01-16 18:49:42 +01:00
Flavio Copes
f068b48fce Don't reveal Grav filesystem path when trying to delete non-existing images 2016-01-16 18:30:26 +01:00
Flavio Copes
d5dea81d94 Fix issue when adding folders to subfolders. Also fix when ordering is < 10, and fix when there's no other folder 2016-01-16 17:22:08 +01:00
Flavio Copes
1602f2c870 Fix #396 Check frontmatter for validity prior to saving
If saving in Expert mode and the frontmatter field contained invalid
yaml, the page content was changed to the error description.

Instead, avoid saving the page and return an error in the Admin
interface.
2016-01-16 16:24:38 +01:00
Flavio Copes
6df159277a Revert "Prepend config with authorize check"
This reverts commit 25c10e297e.
2016-01-16 10:34:07 +01:00
Flavio Copes
6ed680109c Add correct acl setting to config page 2016-01-16 10:33:46 +01:00
Flavio Copes
25c10e297e Prepend config with authorize check 2016-01-16 10:12:27 +01:00
Andy Miller
687d633204 Merge branch 'release/1.0.7' into develop 2016-01-15 19:10:06 -07:00
Andy Miller
9b7863f8ec version update 2016-01-15 19:09:55 -07:00
Andy Miller
4eded02516 Added access check for config pages 2016-01-15 19:00:30 -07:00
Flavio Copes
9df722e7eb Fix #391 IE/Edge issue in saving Form 2016-01-15 15:15:46 +01:00
Flavio Copes
6bf9a0ba5d Add lang string 2016-01-15 12:58:21 +01:00
Flavio Copes
6d3d728bda Tweak onTwigSiteVariables() to handle folders without md file 2016-01-15 12:58:04 +01:00
Flavio Copes
b775dc189a Drop unused code 2016-01-15 12:57:17 +01:00
Flavio Copes
0f3101bc95 Save folder controller task 2016-01-15 12:57:09 +01:00
Flavio Copes
2d0d9c2d9a New folder modal twig 2016-01-15 12:56:44 +01:00
Flavio Copes
3c9110b4fc Add button in toolbar, change display to drop down 2016-01-15 12:56:21 +01:00
Flavio Copes
a453ea93a9 Modal definition 2016-01-15 12:55:55 +01:00
Andy Miller
2725c14334 Added a new onAdminSave event right before saving an object - #384 2016-01-14 17:59:00 -07:00
Andy Miller
585b83d6a7 Fix for wrong page count - #390 2016-01-14 17:52:11 -07:00
Flavio Copes
2a36608b59 When no route field is added to a page blueprint, just put it as a root page instead of throwing an error 2016-01-14 00:22:26 +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
78facc0da0 Typo 2016-01-11 11:17:38 +01:00