Compare commits

...

480 Commits
1.1.8 ... 1.3.4

Author SHA1 Message Date
Andy Miller
a7c2505f36 Merge branch 'release/1.3.4' 2017-09-29 16:55:54 -06:00
Andy Miller
25b5becd1a prepare for release 2017-09-29 16:55:44 -06:00
Andy Miller
49013a0ed0 updated changelog 2017-09-29 16:55:02 -06:00
Newb I the Newbd
a861d57763 Fixed insecure session cookie initialization (#1656) 2017-09-28 17:57:14 -06:00
Andy Miller
a4ab5d9106 Fixed an issue where fallback was not supporting dynamic page generation 2017-09-28 16:00:57 -06:00
Andy Miller
442cb01adb cleanup 2017-09-28 15:57:25 -06:00
Andy Miller
c6793c1dee Updated vendor libs 2017-09-27 17:12:22 -06:00
Andy Miller
3b7a7d09a0 Missing thumbnail throwing error when adding .json file via media
https://github.com/getgrav/grav-plugin-admin/issues/1156
2017-09-25 13:21:15 -06:00
Andy Miller
80901cecdb rebuilt composer.lock for PHP 5.5+ 2017-09-23 07:34:36 -06:00
Andy Miller
7f23828ece Revert "Removed markdowndocs from require-dev due to PHP 7 requirements"
This reverts commit 8e1dca4360.
2017-09-23 07:33:12 -06:00
Andy Miller
8e1dca4360 Removed markdowndocs from require-dev due to PHP 7 requirements 2017-09-23 07:23:37 -06:00
Andy Miller
86d989a722 Added Page Collection filtering support 2017-09-23 07:09:34 -06:00
Andy Miller
046b9240e4 Added developer libs for markdowndocs lib for API documentation 2017-09-20 19:54:50 -06:00
Andy Miller
67f0cfb039 Changelog fixes 2017-09-19 12:14:18 -06:00
Andy Miller
238e209982 Twig extension cleanup 2017-09-15 15:07:22 -06:00
Andy Miller
c5f5ac62b5 Updated changelog 2017-09-15 11:28:14 -06:00
Andy Miller
776cf388b0 Merge branch 'feature/language-override-fixes' into develop 2017-09-15 11:26:44 -06:00
Andy Miller
c1c458a934 Fix for timestamp on pipelined assets 2017-09-15 11:24:46 -06:00
Andy Miller
ab721de49c Improved support for Assets with query strings #1451 2017-09-15 09:07:46 -06:00
Andy Miller
133e83f89d Removed extraneous cast 2017-09-14 21:07:39 -06:00
Andy Miller
af47fc7d60 Smarter merge of languages 2017-09-14 18:41:03 -06:00
Andy Miller
7adaf536f1 Fix for image URLs not being fully URL encoded #1622 2017-09-14 17:21:53 -06:00
Andy Miller
ffd61065ac Implemented Composer\CaBundle for safer SSL negotiation #1241 2017-09-14 16:58:09 -06:00
Andy Miller
8ff1042fe3 Refactored asset sorting logic 2017-09-14 15:20:24 -06:00
Andy Miller
79fa88c315 Fixed Page::summary() when using delimiter and multibyte UTF8 Characters #1644 2017-09-11 08:56:50 -06:00
Andy Miller
f2898f9f20 Merge tag '1.3.3' into develop
Release v1.3.3
2017-09-07 18:06:49 -06:00
Andy Miller
7fbac765e7 Merge branch 'release/1.3.3' 2017-09-07 18:06:48 -06:00
Andy Miller
ccad675336 Prepare for release 2017-09-07 18:06:39 -06:00
Andy Miller
0aa36f3cb0 updated changelog 2017-09-07 15:10:05 -06:00
Andy Miller
cc61464be3 Updated changelog 2017-09-07 14:26:10 -06:00
Andy Miller
d0e57c8276 Update LICENSE.txt 2017-09-07 14:00:46 -06:00
Andy Miller
898ab989aa Revert "Fix setting session cookie twice (#1634)"
This reverts commit 96028d1d69.
2017-09-07 13:07:08 -06:00
Andy Miller
580dac1784 Added new dirname filter 2017-09-07 10:43:28 -06:00
Andy Miller
2eb8690c2d Added new basename filter 2017-09-07 10:39:54 -06:00
Andy Miller
942652ec27 Try explicit php7 version 2017-09-05 21:53:49 -06:00
Andy Miller
6fb8cd293a Try PHP 7.1 as PHP 7.0 on travis is too old 2017-09-05 21:29:27 -06:00
Andy Miller
5e7d103eab Rolled back to PHP 5.6 compatible phpdocumentor libs 2017-09-05 21:22:00 -06:00
Andy Miller
82f3322d40 Use PHP7 compatible instantiator 2017-09-05 21:20:49 -06:00
Andy Miller
0dd5d08514 Accidentally updated to Doctrine Cache 1.7, force 1.6 (for PHP5 compatibility) 2017-09-05 21:17:09 -06:00
Andy Miller
8d64835765 updated vendor libs 2017-09-05 21:08:50 -06:00
Antony Dabonde
481fe1903e Added system option to enable case insensitive urls. (#1638) 2017-09-05 13:58:57 -06:00
j000
96028d1d69 Fix setting session cookie twice (#1634)
Because setting cookie twice bothers me. Now proper options are applied to first one, so no need to set it again.
2017-09-05 13:57:46 -06:00
Mike Mellor
8532c2d06e Added current position to page object (#1632) 2017-09-05 13:57:32 -06:00
Dávid Szabó
9147a10cc7 Add try to load alphanumeric class (#1630) 2017-09-05 13:57:17 -06:00
Andy Miller
0179c6ee65 blueprint alignment 2017-08-31 21:58:20 -06:00
Andy Miller
7a3f136207 updated changelog 2017-08-28 12:29:03 -06:00
Andy Miller
550b51f77a Added new tl filter/function to translate language #1618
This addresses issues with the PR.  It uses a new twig filter that gives full access to the langauges->translate() function.
2017-08-28 12:22:53 -06:00
Andy Miller
3572833e7a Revert "fix Twig dynamic translation (#1618)"
This reverts commit 7a7ffd3492.
2017-08-28 12:02:11 -06:00
Andy Miller
c52931e7fa hilight for 2fa in account should be on true 2017-08-27 12:57:39 -06:00
Andy Miller
535a3d9a83 return if not authenticated 2017-08-26 18:39:05 -06:00
Andy Miller
d075c29254 Added chunk_split() twig filter 2017-08-26 11:49:57 -06:00
Andy Miller
299a658050 updated changelog 2017-08-25 18:43:28 -06:00
Andy Miller
42d3b12b13 moved from help to sublabel 2017-08-25 18:42:57 -06:00
Andy Miller
3eace66274 Added 2fa authenticator check 2017-08-25 16:40:10 -06:00
Andy Miller
c66bae55b4 Merge branch 'develop' of https://github.com/getgrav/grav into develop 2017-08-25 10:47:43 -06:00
Andy Miller
d1b0f12e5b Added gaussianBlur media method #1623 2017-08-25 10:47:32 -06:00
Chris Jung
0543d997f6 Gregwar/Image supports gaussianBlur (#1623)
Since grav uses the GD Adapter of Gregwar/Image and has no option to change it, this should be safe to implement, when the latest Version of the Lib is used.
2017-08-25 10:44:59 -06:00
Andy Miller
b7e1eb9d1b Updated changelog again 2017-08-24 09:26:43 -06:00
Andy Miller
eecf914881 Updated changelog 2017-08-24 09:23:15 -06:00
Andy Miller
cc8a20537e Added support for redis password option #1620 2017-08-24 09:17:25 -06:00
Andy Miller
04690ce206 Use multilevel field to handle Asset Collections #1201 2017-08-24 07:57:56 -06:00
iusvar
7a7ffd3492 fix Twig dynamic translation (#1618)
* fix Twig dynamic translation

* fix Twig dynamic translation
2017-08-23 14:30:39 -06:00
Eihrister
667c4340d8 Changing back the default redirect code from 301 to 302. (#1619) 2017-08-23 14:29:18 -06:00
圈爷
39af36977e Quick Fix Summary issues (#1554)
* Quick Fix Summary issues

1. Calculate the string size without any html tags, so now you can get exactly what you wanted length;
2. Support utf8 2 character widths characters, like Chinese, Japanese;
3. This is a quick dirty mod, some associated functions should be rethinked;

* fix: Add an option to compatibel with old version

Now, you can use page.summary(10) as normal, or page.summary(10, true) to ignore all html tags and medias

* fit PS2R coding style

* psr-2 reformated without assignment align
2017-08-22 13:17:56 -06:00
Andy Miller
4cf5f00441 Added natsort on plugin load #1614 2017-08-22 11:22:13 -06:00
Andy Miller
85d1ed7255 Merge branch 'release/1.3.2' 2017-08-16 11:05:26 -06:00
Andy Miller
cafd371475 Merge tag '1.3.2' into develop
Release v1.3.2
2017-08-16 11:05:26 -06:00
Andy Miller
ebce5ecd31 Prepare for release 2017-08-16 11:05:12 -06:00
Andy Miller
51c3b6d105 vendor updates 2017-08-15 16:26:12 -06:00
Matias Griese
f02b7a6028 Merge remote-tracking branch 'origin/develop' into develop 2017-08-15 14:55:48 +03:00
Matias Griese
828e1a54f1 Fixed parent theme auto-loading in child themes of Gantry 5 2017-08-15 14:55:40 +03:00
Andy Miller
04d7945f10 Pushing default namespace 2017-08-14 16:17:27 -06:00
Andy Miller
4b948e2cbb Added a new Collection::intersect() method #1605 2017-08-11 13:41:46 -06:00
Andy Miller
122ded671c Merge branch 'develop' of https://github.com/getgrav/grav into develop 2017-08-11 11:17:11 -06:00
Andy Miller
c7c234d04a Added array_key_exists wrapper function 2017-08-11 11:17:05 -06:00
Andy Miller
a37582eb4c Added new events and paths to support namespacing #1604 2017-08-11 11:16:09 -06:00
Matias Griese
4776b0e6b5 Fixed Data::exists() and Data::raw() functions breaking if Data::file() hasn't been called with non-null value 2017-08-10 11:44:34 +03:00
Andy Miller
926d78d9cb updated changelog 2017-08-02 17:19:03 -06:00
naucon
7bfb316d6b Allow system.session.timeout field to be 0 (#1598) 2017-08-02 17:01:21 -06:00
Andy Miller
9168b192ff Added missing method access 2017-07-26 20:55:27 -06:00
Andy Miller
c2d22694f3 Updated with comparisons 2017-07-26 20:52:54 -06:00
Andy Miller
633a2a750f option to configure image cache clearing #1481 2017-07-26 12:53:16 -06:00
Andy Miller
13341c323d Added cache-control property #1591 2017-07-26 12:33:35 -06:00
Andy Miller
1bfbb71767 Merge tag '1.3.1' into develop
Release v1.3.1
2017-07-19 12:15:39 -06:00
Andy Miller
66fc3ae8c5 Merge branch 'release/1.3.1' 2017-07-19 12:15:38 -06:00
Andy Miller
f6667077f3 Prepare for release 2017-07-19 12:15:30 -06:00
Tim Robbings
bbc4a23c86 Fix default sort order (#1575)
This appears to have broken page ordering.

Test-information:

Did a quick test on a personal project, clearing cache and reloading
the page fixed the default sort order of the navbar (i.e. it displayed
according to numeric folder prefixes).
2017-07-17 15:47:53 -06:00
Flavio Copes
c178b22c10 Check if medium thumbnail exists before resetting 2017-07-17 18:10:06 +02:00
Flavio Copes
cd081b22a4 Fix ordering in linux+intl environments (#1571)
Added for next point release
2017-07-17 10:08:03 -06:00
Djamil Legato
3dc0a2994b Updated Access Token 2017-07-16 17:17:57 -06:00
Andy Miller
34d4cd9ab1 Merge tag '1.3.0' into develop
Release v1.3.0
2017-07-16 17:00:29 -06:00
Andy Miller
442d6a41ad Merge branch 'release/1.3.0' 2017-07-16 17:00:28 -06:00
Andy Miller
5f2542c1c7 Prepare for release 2017-07-16 17:00:13 -06:00
Andy Miller
e0d29c5ca2 Updated changelog 2017-07-11 19:13:30 -06:00
Djamil Legato
287a51148a Fix natural sort when > 100 pages (#1564)
* Fix natural sort when > 100 pages

* Revert manual and default sort type

* Only check prefix numbers
2017-07-11 18:01:13 -06:00
Andy Miller
4332dd07a9 Update changelog 2017-07-10 22:02:34 -06:00
Andy Miller
3148f3f502 Merge branch 'develop' of https://github.com/getgrav/grav into develop 2017-07-10 21:59:35 -06:00
Andy Miller
966c4f5866 Fix for broken range slider
https://github.com/getgrav/grav-plugin-admin/issues/1153
2017-07-10 21:59:28 -06:00
Tasos Papalyras
01c7a36025 Fix undeclared variable $difference (#1563)
Fixes a bug when returning nicetime
2017-07-07 00:21:41 -06:00
Andy Miller
f76d8827eb Prepare for release 2017-07-05 11:15:49 -06:00
Flavio Copes
4b723832ea Sanitize the error message in the error handler page 2017-07-03 17:10:22 +02:00
Flavio Copes
823244a787 Revert "Set folder name as required during validation [grav-plugin-admin#1146](https://github.com/getgrav/grav-plugin-admin/issues/1146)", was preventing validation 2017-06-30 10:40:49 +02:00
Andy Miller
876380b9a7 Updated changelog 2017-06-29 17:15:39 -06:00
Andy Miller
eac96c00dc Also for routes 2017-06-29 14:09:34 -06:00
Andy Miller
5e3dbbf092 Fix for broken regex redirects/routes 2017-06-29 14:07:31 -06:00
Flavio Copes
08920d5b10 Allow to set system.session.timeout to 0 to clear session on browser close (#1538)
* Allow to set expire to 0 to clear session on browser close

* Changelog
2017-06-29 15:32:35 +02:00
Flavio Copes
144fcf43cf Set folder name as required during validation, fix https://github.com/getgrav/grav-plugin-admin/issues/1146 2017-06-29 15:29:19 +02:00
Matias Griese
e9c11bbef2 Fixed global media files disappearing after a reload (#1545) 2017-06-28 11:50:39 +03:00
Andy Miller
90182e2ceb Merge branch 'develop' of https://github.com/getgrav/grav into develop 2017-06-27 15:41:33 -06:00
Andy Miller
2b7707a6a0 Renamed media func to avoid conflict 2017-06-27 15:41:28 -06:00
Flavio Copes
cd60acde5f Create CODE_OF_CONDUCT.md (#1541) 2017-06-26 08:27:02 -06:00
Andy Miller
e14ab682fd Set to testing 2017-06-22 17:49:02 -06:00
Andy Miller
7736447ae8 Prepare for release 2017-06-22 14:18:31 -06:00
Flavio Copes
f83b65be19 Update matthiasmullie/minify to 1.3.45. Fix #1518 2017-06-22 15:35:52 +02:00
Andy Miller
b1715dc54f Only rebuild metadata if files don't exist 2017-06-20 13:26:28 -06:00
Flavio Copes
40ad4a3d5b Add translations contribution explanation 2017-06-15 16:12:11 +02:00
Flavio Copes
69bf98ae6e Explain correct branch for PR 2017-06-15 16:06:06 +02:00
Flavio Copes
4dfbcf0318 Add security contact to the README and point to contributing guide
Removed useless gitflow information in favor of simpler PR-based approach described in the contributing doc
2017-06-15 16:04:08 +02:00
Flavio Copes
5e329d343f Fix changelog 2017-06-08 13:31:46 +02:00
Flavio Copes
947c920fbd Improved error message when running bin/grav install instead of bin/gpm install, and also when running on a non-skeleton site #1027
```
$ bin/grav install
HINT Are you trying to install Grav? Grav is already installed. You
need to run this command only if you download a skeleton from GitHub
directly.

$ bin/grav install admin
HINT Are you trying to install a plugin or a theme? Make sure you use
bin/gpm install <something>, not bin/grav install. This command is only
used to install Grav skeletons.
```
2017-06-06 13:15:08 +02:00
Flavio Copes
354ef34c7a Restore GravTrait in ConsoleTrait, fix https://github.com/getgrav/grav-plugin-login/issues/119 2017-06-06 13:00:39 +02:00
Ole Vik
ff8a8dde28 Fix Windows routing with built-in server (#1502)
Strips backward-slashes from Medium.php's and ImageMedium.php's url() method.
2017-06-04 14:24:29 -06:00
the4thamigo-uk
9c0f06e306 fix #1504 process_twig and frontmatter.yaml (#1507) 2017-06-04 14:21:28 -06:00
ShtHappens796
634f2bdfa0 Nicetime fix: 0 seconds from now -> just now (#1509)
* Update TwigExtension.php

Check if date matches, which means the post / comment was posted just now. 

Will return proper value to whatever function uses it.
The file /system/languages/en.yaml and basically all language files need to include the JUST_NOW text value which should be "just now", of course correctly translated in each language.

This fix has been created in order to fix the "0 seconds from now" message as it sounds weird.

* Update en.yaml - Add JUST_NOW variable

Should be translated to other languages and included in all translation files.
2017-06-02 06:32:15 -06:00
Denis Efremov
5551cb834c Fixed help text wrapping (#1503) 2017-05-31 19:54:50 +02:00
Djamil Legato
abccf2278d Removed HHVM PHP environment from travis. 2017-05-30 16:39:51 -07:00
Andy Miller
c1edbab1fa added lower/upper filter types 2017-05-27 08:35:18 -06:00
Andy Miller
7274f52988 only build media from supported media types 2017-05-27 00:21:29 -06:00
Andy Miller
53bccab326 Adde pathinfo twig function 2017-05-26 17:52:19 -06:00
Andy Miller
0ca58122a9 added a relativePath() method 2017-05-25 06:13:27 -06:00
Andy Miller
4107518a02 updated changelog 2017-05-24 11:50:11 -06:00
Andy Miller
42d99756ea Added a tonne of new thumbs 2017-05-24 11:48:23 -06:00
Andy Miller
f22d6beb28 Prepare for release 2017-05-22 14:41:08 -06:00
Andy Miller
d40cb3c74a Fix for bad base_url paths in some URLs 2017-05-21 16:24:13 -06:00
Andy Miller
9277381527 Fix for inefficient path parts 2017-05-21 16:23:27 -06:00
Andy Miller
7dd886837f Tweak to 'hash' file check method 2017-05-20 22:17:40 -06:00
Andy Miller
ba562f0486 Added Utils::getPagePathFromToken() 2017-05-20 22:16:53 -06:00
Flavio Copes
27647d45d0 Changelog 2017-05-19 10:07:14 +02:00
Flavio Copes
2e7e3c41c0 Changelog 2017-05-19 10:05:31 +02:00
Flavio Copes
ce32a08cbf Remove unpublished pages from the translated languages, move into untranslated list (#1482)
* Remove unpublished pages from the translated languages, move into untranslated list

Refs https://github.com/getgrav/grav-plugin-sitemap/issues/43

* Add missing part

* Add flags to avoid breaking changes
2017-05-19 10:01:02 +02:00
Andy Miller
f7266ef752 Typo 2017-05-18 14:33:10 -06:00
Andy Miller
f126f3fd53 Put onOutputRendered back in processor 2017-05-18 14:16:26 -06:00
OliverO2
890b0280b3 Fix output handling in RenderProcessor (#1483)
Ensure that output modifications by subscribers to onOutputGenerated are picked up.
2017-05-18 17:45:08 +03:00
Matias Griese
5a93fcf952 Minor fix for adding custom page vars if page template file cannot be found 2017-05-18 13:09:29 +03:00
Matias Griese
f3cecd8bdd Merge remote-tracking branch 'origin/develop' into develop 2017-05-18 09:51:14 +03:00
Matias Griese
7543f3e543 Define public $this->output variable for Grav container (for PhpStorm) 2017-05-18 09:51:03 +03:00
Andy Miller
ffe286ea49 cleanup output 2017-05-17 15:29:21 -06:00
Andy Miller
f31f6f8e04 Moved onOutputRendered() back into Grav core 2017-05-17 14:31:59 -06:00
Andy Miller
725e6ab303 Prepare for release 2017-05-17 12:17:57 -06:00
Andy Miller
cb36bdabdf Added timestamp on configurations #1480 2017-05-17 12:11:48 -06:00
Andy Miller
dd058155c8 Updated changelog 2017-05-17 11:44:07 -06:00
Flavio Copes
8dabe88246 Avoid validation on a YAML field, do not parse YAML (#1480)
YAML parsing causes a fatal error if the field is not a string
2017-05-17 11:42:27 -06:00
Andy Miller
5c0d378d1e changelog typos 2017-05-17 11:08:07 -06:00
Andy Miller
18f97b067d Various checks for Exif existence before using 2017-05-17 10:31:56 -06:00
Andy Miller
fd858248af Added media and vardump Twig functions 2017-05-17 10:31:27 -06:00
Andy Miller
6496508810 Prepare for release 2017-05-16 13:33:59 -06:00
Andy Miller
d11099c0ae Updated toolbox 2017-05-15 15:10:42 -06:00
Matias Griese
9c5df5977d Merge remote-tracking branch 'origin/develop' into develop 2017-05-15 20:26:52 +03:00
Matias Griese
d3526ae544 Added support for a single array field in the forms 2017-05-15 20:26:45 +03:00
Andy Miller
52d4c3f137 Only store 'extra' metadata in yaml 2017-05-15 10:45:14 -06:00
Andy Miller
0c0bf4b137 Store metadata atomically for easy retrieval 2017-05-15 10:03:36 -06:00
Flavio Copes
6b282d845f Fix issue with exif when composer update is not run
For git-cloned repos
2017-05-15 12:36:31 +02:00
Andy Miller
82f223248e Added Exif + Auto generation of meta.yaml files (#1472)
* Added Exif + Auto generation of meta.yaml files

* Added twig function

* Put a check in for `exif_read_data` function
2017-05-12 16:20:22 -06:00
Ole Vik
a9f1ca429a Tiny typo (#1473) 2017-05-12 15:28:40 -06:00
Andy Miller
7db5d9189b Updated clean command 2017-05-12 15:28:03 -06:00
Andy Miller
8ff2003411 Added base32/64 encode/decode twig filters 2017-05-12 14:47:55 -06:00
j000
899cbffe33 ETag header should be inside double quotes (#1471)
It's small change, but still...

https://tools.ietf.org/html/rfc7232#section-2.3
2017-05-12 12:05:35 -06:00
Matias Griese
77b44f83e1 Add missing APCu 2017-05-11 13:37:24 +03:00
Matias Griese
5fc5813274 Use older version of doctrine/collections (PHP 5.5 support) 2017-05-10 11:06:40 +03:00
Matias Griese
56b0cf292e Changelog update 2017-05-10 10:34:37 +03:00
Matias Griese
08e0679942 Oops, accidentally merged local 2.0 branch into develop, revert GravTrait deprecation and several new Framework classes 2017-05-10 10:08:08 +03:00
Matias Griese
6c062edd18 Add Page interfaces to Grav Framework 2017-05-10 09:44:59 +03:00
Matias Griese
65d844c6e7 Merge branch 'feature/objects' of https://github.com/getgrav/grav into 2.0 2017-05-10 09:43:38 +03:00
Matias Griese
10b4a90501 Add useful functions to FileCollection class 2017-05-09 21:40:35 +03:00
Matias Griese
5f00e1f8ee Rename Collection class to ArrayCollection 2017-05-09 21:27:33 +03:00
Matias Griese
3c468a23c1 Remove Object Finder classes (replaced by FileCollection) 2017-05-09 20:18:32 +03:00
Matias Griese
93c4396bfb Add FileCollection class 2017-05-09 20:17:26 +03:00
Matias Griese
19ac7f3e3f Add AbstractLazyCollection 2017-05-09 12:32:07 +03:00
Scott Hamper
fc5c3023c6 [WIP] Web Server Config URL Rewrite Rules White List (#1458)
* Escaped literal periods in web server config files rewrite rules.

* Black listed "yml" file extension in web server configs rewrite rules.
2017-05-06 11:09:31 -06:00
Flavio Copes
04243f7dd3 Fix #1462 issue with no groups definition 2017-05-06 15:04:30 +02:00
Flavio Copes
cdc6b910cb Bump year 2017-05-05 17:21:59 +02:00
Flavio Copes
219bf9dc6c Groups selection pre-filled in user form 2017-05-05 17:19:16 +02:00
Matias Griese
ad66f0b637 Fix saving stored collections 2017-05-05 15:59:44 +03:00
Matias Griese
bd7469d8e0 Fix StoredObjectInterface::save() to have parameter to include children 2017-05-05 15:21:16 +03:00
Matias Griese
bfda4df2f2 Add storage interface also to object collection 2017-05-05 14:26:12 +03:00
Matias Griese
718608cd55 Improve object classes 2017-05-05 13:38:29 +03:00
Matias Griese
7217635c6f Merge branches 'develop' and 'feature/objects' of https://github.com/getgrav/grav into feature/objects
# Conflicts:
#	CHANGELOG.md
2017-05-05 09:30:59 +03:00
Andy Miller
3eeabdbf89 Merge branch 'develop' of https://github.com/getgrav/grav into develop
# Conflicts:
#	system/src/Grav/Common/Page/Page.php
2017-05-04 06:49:06 -06:00
Andy Miller
958557d2fe Removed logging statement for invalid slug #1459 2017-05-04 06:47:57 -06:00
Flavio Copes
c8345c6613 Edit check for valid slug. Fix #1459 2017-05-04 09:50:46 +02:00
Flavio Copes
83ed2aac00 Changelog 2017-04-25 12:43:44 +02:00
pfcloutier
849130621a Add more controls over HTML5 video attributes (autoplay, poster, loop controls) (#1442) 2017-04-25 12:42:27 +02:00
Andy Miller
bb6175397c Vendor updates 2017-04-24 18:02:04 -06:00
Andy Miller
2074c4933a Force redirect/route matching from start of route #1446 2017-04-24 17:57:47 -06:00
Andy Miller
e8aa9f0381 Merge tag '1.2.4' into develop
Release v1.2.4
2017-04-24 15:32:08 -06:00
Andy Miller
c8590b9523 Merge branch 'release/1.2.4' 2017-04-24 15:32:07 -06:00
Andy Miller
e4ffc8d3de Prepare for release 2017-04-24 15:31:57 -06:00
Andy Miller
e5a522a2fe Added ignores to install options for Installer::sophisticatedInstall() #1447 2017-04-24 15:00:31 -06:00
Andy Miller
34281a14a4 Updated changelog 2017-04-21 22:20:16 -06:00
Andy Miller
f6d910f226 Added support for showModular option in Pages::getList() 2017-04-21 22:18:36 -06:00
Matias Griese
7371a11891 Deprecated GravTrait 2017-04-21 21:34:41 +03:00
Matias Griese
48d5183e07 Added Debugger::getCaller() to figure out where the method was called from 2017-04-21 21:33:35 +03:00
Matias Griese
bf42db3af1 Update changelog 2017-04-21 13:42:38 +03:00
Matias Griese
28d3866eb0 Minor code improvements on processors 2017-04-21 13:26:39 +03:00
Matias Griese
f5517035ba Merge branches 'develop' and 'feature/objects' of https://github.com/getgrav/grav into feature/objects 2017-04-21 12:23:53 +03:00
Matias Griese
bc9dfe736d Move output handling into the render processor 2017-04-21 12:23:19 +03:00
Matias Griese
aee07203a2 Add support for custom output providers like Slim Framework 2017-04-21 11:22:08 +03:00
Andy Miller
13b3b9875e Should address uery strings at the root of multilang sites #1436 2017-04-20 11:02:54 -06:00
Matias Griese
7fc92dcaa2 Merge branch 'develop' of https://github.com/getgrav/grav into feature/objects 2017-04-20 15:48:32 +03:00
Matias Griese
6539931387 Add support for extra context vars in Twig::processSite() 2017-04-20 15:46:59 +03:00
Andy Miller
85a25d0adc Fix for Gantry5 init'ing theme as well as Admin plugin 2017-04-19 17:08:56 -06:00
Andy Miller
8f9e401fc9 Merge tag '1.2.3' into develop
Release v1.2.3
2017-04-19 15:59:57 -06:00
Andy Miller
fc7c6484a7 Merge branch 'release/1.2.3' 2017-04-19 15:59:56 -06:00
Andy Miller
7bbcefbb4d Prepare for release 2017-04-19 15:59:48 -06:00
Matias Griese
bd2f06e72f Merge branch 'develop' of https://github.com/getgrav/grav into feature/objects 2017-04-19 14:41:29 +03:00
Matias Griese
bc6bf737b9 Add Pages::baseUrl(), Pages::homeUrl() and Pages::url() functions and use them 2017-04-19 14:30:34 +03:00
MucaP
749d0e3f2d Those simple things everyone miss (#1428) 2017-04-14 13:26:15 -06:00
Andy Miller
7ba69dd5a1 Fixed Pages test 2017-04-14 12:38:59 -06:00
Andy Miller
00206d5957 Merge branch 'develop' of https://github.com/getgrav/grav into develop 2017-04-14 11:39:29 -06:00
Andy Miller
d214bb5b94 Improved getList() method to do more stuff 2017-04-14 11:39:24 -06:00
Ole Vik
1203b0d900 Fix typo in GPM.php (#1427) 2017-04-14 13:29:05 +02:00
Andy Miller
869b1c4c3b Updated changelog 2017-04-13 15:07:47 -06:00
Andy Miller
c06b2573a1 Added new pwd_regex and username_regex system configuration options 2017-04-13 15:03:20 -06:00
Benny
50dd834bc4 Allow user/account.yaml overrides + implemented more robust theme init (#1416)
* Allow `user/accounts.yaml` overrides and implemented more robust theme initialization

* Allow to override `theme://` in theme config
2017-04-13 14:38:54 -06:00
Matias Griese
7b13ceb9a3 Add new ContentBlock classes 2017-04-13 12:04:31 +03:00
Matias Griese
22effeac42 Move new Collection/Object classes into Grav\Framework 2017-04-13 12:04:14 +03:00
Matias Griese
0e77103883 Merge branches 'develop' and 'feature/objects' of https://github.com/getgrav/grav into feature/objects
# Conflicts:
#	composer.lock
2017-04-12 20:58:10 +03:00
Andy Miller
56e58f3b5e Return "" if no childType set rather than default 2017-04-12 10:28:55 -06:00
Andy Miller
619dc30aca Merge tag '1.2.2' into develop
Release v1.2.2
2017-04-11 14:21:16 -06:00
Andy Miller
5bc3ce07dc Merge branch 'release/1.2.2' 2017-04-11 14:21:15 -06:00
Andy Miller
0fe676c34b Preparing release 2017-04-11 14:21:03 -06:00
Andy Miller
60f97f27be Fix for redirects breaking #1420 2017-04-11 13:32:25 -06:00
Flavio Copes
1d7f41e4a8 Fix #1405 issue in direct-install with github-style dependencies 2017-04-11 11:30:27 +02:00
Andy Miller
3a97502219 Merge tag '1.2.1' into develop
Release v1.2.1
2017-04-10 18:36:59 -06:00
Andy Miller
ca09f789a7 Merge branch 'release/1.2.1' 2017-04-10 18:36:58 -06:00
Andy Miller
be94947d38 Prepare for release 2017-04-10 18:36:42 -06:00
Andy Miller
0a22ff0c68 Fixed changelog 2017-04-10 15:18:33 -06:00
Andy Miller
840a349ace Updated changelog 2017-04-10 15:18:10 -06:00
Andy Miller
b85e595bbb Little cleanup 2017-04-10 12:10:55 -06:00
Josh Weiss
082d4e3435 Ancestor and Inherited functions for Page & Pages (#1362)
* Ancestor and inherited functions for Page & Pages

Addes both helper methods to `Grav\Common\Page` and Grav instance utility functions to `Grav\Common\Pages`.

* Ancestor Page return considering field criteria

* Updates according to code review issue

Made changes to act on current Page object only for the Page functions

Changed variable name to better reflect the intention of the passed param for the Pages class functions

* Simplify duplicate code

* Simplify Pages logic

Simpilfied duplicate code. Also clarified  variable naming for similar functions.
2017-04-10 12:00:58 -06:00
Andy Miller
bfb6b6d68a Updated changelog 2017-04-04 13:31:32 -06:00
Andy Miller
8dc2ced94c Fix for direct-install of plugins with languages.yaml #1396 2017-04-04 13:24:10 -06:00
OliverO2
f510e136c8 Add {'loading': 'inline'} option for Js and CSS assets (#1377)
* Assets.php: Extract common functionaly of addCss() and addJs() into
  addTo(), make css() and js() honor $attributes['loading'],
  make pipelineCss() and pipelineJs() return generated content
  instead of URL depending on new option $returnURL.

* AssetsTest.php: Accept new 'loading' option for CSS, add tests for
  adding and pipelining local and remote assets with inline loading.
2017-04-04 11:25:39 -06:00
Flavio Copes
4365662304 Add query string in lighttpd default config (#1393) 2017-04-04 08:54:48 -06:00
Gilles van Eeden
4aa6dce853 add function isajaxrequest() (#1400)
* Update Taxonomy.php

* Update TwigExtension.php

* Update TwigExtension.php

Incorrect comment updated.

* Update TwigExtension.php

Add function ishuman() to detect agent disposition.

* Update TwigExtension.php

* Revert "Merge remote-tracking branch 'origin/develop' into develop"

This reverts commit 7a59a84290, reversing
changes made to 102973d22c.

* Revert "Revert "Merge remote-tracking branch 'origin/develop' into develop""

This reverts commit 50fc775c69.

* Attempt to resolve conflicts

* param comment corrected

* Update TwigExtension.php

* Update TwigExtension.php

* Update TwigExtension.php

* Update TwigExtension.php

* add isajaxrequest

Check HTTP_X_REQUESTED_WITH header. Non critical use only. Handy for
streamlining ajax presentation.

* remove ishuman

* remove Browser class
2017-04-04 08:53:27 -06:00
Flavio Copes
d338d79acb When determining language from HTTP_ACCEPT_LANGUAGE, also try base language only (#1402)
Fixes Safari sending the language code always with a locale (e.g. it-it
or fr-fr)
2017-04-04 08:51:16 -06:00
Frédéric Potvin
459b7c4a33 Fix #1389 related to bin/gpm direct-install (#1397)
Add --all-yes and --destination options

Fix a problem where temporary package files will not be
cleaned upon command error.
2017-04-02 18:45:57 -06:00
Andy Miller
06e880de57 Fixed a bad method signature causing warning when running tests on GPMTest object 2017-04-01 22:13:43 -06:00
Djamil Legato
cbf3df4bf1 Trying using Gimme to switch Golang version 2017-03-31 11:30:58 -07:00
Andy Miller
aabc8aeb31 Merge branch 'release/1.2.0' 2017-03-31 11:28:48 -06:00
Andy Miller
3d1ed7118e Merge tag '1.2.0' into develop
Release v1.2.0
2017-03-31 11:28:48 -06:00
Andy Miller
ca4f6f3c5c Prepare for release 2017-03-31 11:28:34 -06:00
Andy Miller
3a645ab4a2 updated changelog 2017-03-31 11:09:40 -06:00
Andy Miller
25ba6198e5 switched to stable composer vendor libs 2017-03-31 11:09:29 -06:00
Andy Miller
6564ea98b1 Analysis fixes 2017-03-30 14:30:20 -07:00
Andy Miller
8fe018a7dd Add file upload for user avatar in admin profile 2017-03-29 22:43:26 -07:00
Hugh Barnes
5c40337ff0 CSS pipeline rewrite URL fix for webserver root-based paths (#1383)
* Implement fix to not rewrite paths in CSS pipeline when CSS URLs use a path startng at webserver root (e.g. url('/path/to/asset')) - fixes #1382

* Amend CSS pipeline's resource location checking predicates to use Utils::startsWith, and consolidate into a single predicate

* Add back colon to data URL prefix test

Copy error in last commit would have broken any relative path beginning with the string 'data'
2017-03-26 17:50:22 -07:00
Frédéric Potvin
41e7142dfc [#1200] Clarified install and direct-install (#1384)
To help user that need to install specific version of a package.
So far it wasn't absolutely clear how to achieve and some
users ended up asking for help or opening issues asking
for the feature.
2017-03-26 10:02:50 -07:00
Frédéric Potvin
f45362b5b5 Invite users to join Slack instead of Gitter (#1385)
Since the team is now on Slack.
2017-03-26 10:00:42 -07:00
Andy Miller
f8fbc82196 Prepare for release 2017-03-22 17:30:00 -06:00
Andy Miller
c153039457 Fixed loading issues with improperly named themes #1373 2017-03-22 17:29:47 -06:00
Andy Miller
88ccc25c47 Added an admin only section for child ordering 2017-03-22 17:12:36 -06:00
Andy Miller
b8164d3fe6 changelog updated 2017-03-22 12:10:37 -06:00
Andy Miller
a1d4199e68 Merge branch 'feature/ordering-refactor' into develop 2017-03-22 12:09:47 -06:00
Andy Miller
30f8eca905 Allow Twig url() function to pass through external URLs 2017-03-22 12:04:24 -06:00
Andy Miller
ef7ff9ec4e Improved reorder logic and removed old logic 2017-03-21 20:20:08 -06:00
Andy Miller
0d471599d7 Changed logic for order handling 2017-03-21 15:35:16 -06:00
Andy Miller
13bc19f1e3 Moved debugger logic to avoid null page instances. 2017-03-20 15:25:41 -06:00
Andy Miller
da61196b7b Cleanup package files via GPM install to make them more windows-friendly #1361 2017-03-20 13:30:53 -06:00
Andy Miller
04e1710de1 Updated composer.json to pick up latest Gregwar Image library 2017-03-20 11:26:31 -06:00
Andy Miller
330a90b0ab Added language_codes to Twig init to allow for easy language name/code/native-name lookup 2017-03-20 10:36:26 -06:00
Andy Miller
5c34556246 Fix for page-level debugger override changing the option site-wide 2017-03-20 10:19:37 -06:00
Andy Miller
10a15ef33f Simplified some logic and fixed an issue with system-level process twig logic #1351 2017-03-19 21:24:46 -06:00
Andy Miller
4eebc81808 Merge branch 'develop' of https://github.com/getgrav/grav into develop 2017-03-18 13:54:29 -06:00
Andy Miller
cd37ea0689 Chaned image quality field to use new range field 2017-03-18 13:54:25 -06:00
ricardo118
7e50c340c7 Fix class for Config/System"Default ordering" (#1359)
Fix class for both "Default ordering" and "Append URL extension"
2017-03-18 11:50:37 -06:00
Ole Vik
701f18e782 Fix field class for Config/Site "Default language" (#1357) 2017-03-18 11:50:18 -06:00
Andy Miller
66a21db504 Prepare for release 2017-03-17 15:52:39 -06:00
Andy Miller
0290ffd26e Added the ability for a specific page to disable debugger 2017-03-17 15:13:12 -06:00
Matias Griese
020cc6f39b Merge remote-tracking branch 'origin/feature/objects' into feature/objects 2017-03-17 11:18:58 +02:00
Matias Griese
3897506c7f Add ObjectCollectionTrait::group() function 2017-03-17 11:18:50 +02:00
Andy Miller
b5cfb53d78 Updated vendor libraries 2017-03-15 18:16:03 -06:00
Andy Miller
252b2f71a0 Stopped invalid derivates throwing fatal error #1341 2017-03-15 18:15:34 -06:00
Andy Miller
262951ece4 Updated changelog 2017-03-15 17:28:00 -06:00
Andy Miller
874160480f Optimized theme autoloader to work with hyphenated classnames #1353 2017-03-15 17:21:49 -06:00
Andy Miller
79d6b8ab22 Set default release to testing during RC 2017-03-13 19:20:08 -06:00
Andy Miller
04228ecee9 Prepare for release 2017-03-13 18:38:06 -06:00
Andy Miller
3cf8bd5928 Improved evaluate() Twig function to use environment/context 2017-03-13 13:39:17 -06:00
Djamil Legato
9f57af80cf Merge branch 'develop' into feature/objects
# Conflicts:
#	CHANGELOG.md
2017-03-10 11:46:57 -08:00
Josh Weiss
c86d791d44 Fix for the blueprint fix. (#1334)
Discussed with @mahagr.

Saved YAML configs gave undesired extra parameter (!!float 1 for example) because floats were not being cast back to integers upon save. This was even true when the filterNumber function was giving back a correct parameter. filter_var from validateFloat was actually perserving the float variable type which the YAML engine perserved upon Yaml::dump.

This is a unconventional fix, but it is the simplest way to handle this edge case.
2017-03-09 07:54:26 -07:00
Andy Miller
ec9342ced1 Removed ID from nonce_field() twig function causing validation error
https://github.com/getgrav/grav-plugin-form/issues/115
2017-03-08 17:08:22 -07:00
Andy Miller
23ba8a1386 Fixed Page::expires(0) that was not getting picked up 2017-03-08 15:35:15 -07:00
Andy Miller
ebb8786cd9 Fixed Page::expires(0) that was not getting picked up 2017-03-08 15:34:54 -07:00
Matias Griese
703080a329 Start using StorageTrait for AbstractObject and AbstractObjectCollection 2017-03-07 15:45:15 +02:00
Matias Griese
c1ee217cef Update Object classes 2017-03-07 12:06:26 +02:00
Matias Griese
d0eed03fef Merge remote-tracking branch 'origin/feature/objects' into feature/objects 2017-03-06 18:59:04 +02:00
Matias Griese
9ba038b2b3 Implement ObjectStorageTrait 2017-03-06 18:58:55 +02:00
Matias Griese
34cff72fce Add FilesystemStorage::exists() 2017-03-06 14:27:40 +02:00
Andy Miller
4726873b57 Added new Page::folderExists() method 2017-03-05 18:38:34 -07:00
Andy Miller
90ea2fc067 Added block/line option to process markdown 2017-03-04 13:29:06 -07:00
Andy Miller
052a6df550 Merge branch 'feature/objects' of https://github.com/getgrav/grav into feature/objects 2017-03-04 13:28:50 -07:00
Andy Miller
8032830873 Added block/line option to process markdown 2017-03-04 13:28:43 -07:00
Matias Griese
4ace1d0b42 Implement nested saving support for Object\AbstractObject class 2017-02-28 19:10:42 +02:00
Matias Griese
d0f4fbdfcc Implement Object\FilesystemStorage class 2017-02-28 19:09:35 +02:00
Matias Griese
c7c3659312 Fixed Folder::move() 2017-02-27 20:28:37 +02:00
Matias Griese
f6e4091e51 Merge branches 'develop' and 'feature/objects' of https://github.com/getgrav/grav into feature/objects 2017-02-27 12:56:32 +02:00
Matias Griese
175fcb9415 Fixed exception when trying to find user account and there is no user://accounts folder 2017-02-27 12:53:24 +02:00
Andy Miller
da2a0f507b Added a fragment + query test 2017-02-26 14:10:43 -07:00
Flavio Copes
e771938672 Changelog 2017-02-26 08:55:22 +01:00
Josh Weiss
08e2bb558a Fixing a minor bug in Number validation. (#1329)
The function validateNumber only checks for numeric values.

**By PHP isNumeric**

"42",
1337,
0x539,
02471,
0b10100111001,
1337e0,
"not numeric",
array(),
9.1

**Will evaluate respectively**

'42' is numeric
'1337' is numeric
'1337' is numeric
'1337' is numeric
'1337' is numeric
'1337' is numeric
'not numeric' is NOT numeric
'Array' is NOT numeric
'9.1' is numeric

Grav though does not support all value types for a variety of reasons. One being YAML Blueprint definitions, where it makes sense to make a new type value for a more specialized format. Specifically for numbers if a more advance number format it would make sense to make a new type for that number format.

YAML spec specifically allows both Integer or Float contexts, as seen in the validate class validateInt and validateFloat. This is useful when the output formats explicitly needs to be a certain format.

However, in the case of generic numeric contexts, which numbers could be floats or ints dynamically, the values are cast back to an int currently in Grav numeric validation. Having dynamic primitive number formats is important, true in an interpreted language like JavaScript where 1 and 1.0 will both work for a number value.

The reason to cast the type of the variable still is to prevent wide selection of number formats, and to keep Grav in line with primitive YAML field formats.
2017-02-26 08:51:05 +01:00
Andy Miller
af304f14f4 Added offical_gpm_only check 2017-02-22 13:26:40 -07:00
Andy Miller
389cc296c2 Added Uri::isValidUrl() 2017-02-21 18:08:08 -07:00
Andy Miller
9f193904b5 Initial work to genericize direct-install (#1321) 2017-02-21 16:23:26 +01:00
Matias Griese
4945160bc7 Merge branches 'develop' and 'feature/objects' of https://github.com/getgrav/grav into feature/objects 2017-02-20 10:58:18 +02:00
Andy Miller
17e6e3ec11 Merge branch 'release/1.1.17' 2017-02-17 14:57:59 -07:00
Andy Miller
b969ab7deb Merge tag '1.1.17' into develop
Release v1.1.17
2017-02-17 14:57:59 -07:00
Andy Miller
50b355aaea Prepare for release 2017-02-17 14:57:48 -07:00
Matias Griese
b9424922a2 Changelog update 2017-02-17 10:38:05 +02:00
Matias Griese
14bde9f31f Fix Whoops displaying error page if there is PHP core warning or error (#980) 2017-02-17 10:35:33 +02:00
Flavio Copes
a3ccae5915 Fix GRAV_PHP_MIN for CLI 2017-02-16 10:37:35 +01:00
Flavio Copes
e2cc55a4e3 Fix syntax error in PHP 5.3. Move the version check before requiring the autoloaded deps 2017-02-16 10:16:30 +01:00
Andy Miller
724f24335a Updated changelog 2017-02-15 17:22:53 -07:00
Andy Miller
33a63de4f1 Fix for double extension during some redirects #1307 2017-02-15 17:21:16 -07:00
Pia Mancini
7ab0aee44a add space for sponsor's logo's to show inline (#1308) 2017-02-15 15:14:51 -08:00
Matias Griese
863d92cabf Collection now implements JsonSerializable 2017-02-15 12:25:36 +02:00
Matias Griese
eae222f264 Update Collection classes to be based on Doctrine Collections 2017-02-15 11:44:14 +02:00
Matias Griese
76c870ce04 Add new collection and object classes 2017-02-10 20:53:35 +02:00
Andy Miller
3e786e0ea9 Merge tag '1.1.16' into develop
Release v1.1.16
2017-02-10 11:52:33 -07:00
Andy Miller
994793acea Merge branch 'release/1.1.16' 2017-02-10 11:52:33 -07:00
Andy Miller
5b03125150 Prepare for release 2017-02-10 11:52:21 -07:00
Andy Miller
c36b26878f Updated changelog 2017-02-10 11:51:30 -07:00
Matias Griese
f8822de6fe Misc fixes to classes (type hinting, return types, missing variables...) (#1299) 2017-02-09 20:51:56 -07:00
Flavio Copes
97fe8095bd Add Languages::resetFallbackPageExtensions (#1276)
Resets the page_extensions value.
Useful to re-initialize the pages and change site language at runtime,
example:
```
$this->grav['language']->setActive('it');
$this->grav['language']->resetFallbackPageExtensions();
$this->grav['pages']->init();
```
2017-02-09 11:38:04 -08:00
Flavio Copes
212d35221a Fix blueprints slug validation (#1292)
* Fix blueprints slug validation

* 255 -> 200
2017-02-09 11:37:11 -08:00
Andy Miller
570b02a760 Added Pages::getPagesCacheId() 2017-02-08 16:38:05 -07:00
Andy Miller
c89914e63d Merge branch 'develop' of https://github.com/getgrav/grav into develop 2017-02-08 10:56:05 -07:00
Andy Miller
929fefbef4 Updated links to https:// 2017-02-08 10:55:57 -07:00
Matias Griese
030b020add Add some missing docblocks and typehints 2017-02-08 11:59:34 +02:00
Andy Miller
9100c54244 Fixes to allow not just ‘default/file’ cache in CLI (#1294)
* Fixes to allow not just ‘default/file’ cache in CLI

* vendor updates

* Better solution

* Added cli_compatibility to system blueprint

* Fall back to ‘file’ if cli_compatibility and (auto or volatile)
2017-02-07 13:48:50 -07:00
Flavio Copes
cab21f9834 Typo 2017-02-03 19:23:54 +01:00
Andy Miller
b707007e7d Added code to error output 2017-02-01 17:51:34 -07:00
Flavio Copes
a4c5d570ae Add query information to default Caddy config 2017-01-31 09:17:22 +01:00
Andy Miller
3dc0e84351 Updated readme with Gitter -> Slack 2017-01-30 18:45:14 -07:00
Andy Miller
993d93b067 Merge branch 'release/1.1.15' 2017-01-30 14:14:16 -07:00
Andy Miller
d269989c50 Merge branch 'release/1.1.15' into develop 2017-01-30 14:14:16 -07:00
Andy Miller
e17721b4bd Prepare for release 2017-01-30 14:13:32 -07:00
Andy Miller
f37bebaacd Added open collective info in readme 2017-01-30 13:29:36 -07:00
Andy Miller
f287dab16d Need to experiment more.. This is causing more issues than it fixes. 2017-01-30 13:19:21 -07:00
Andy Miller
31fe300a1e Merge branch 'develop' of https://github.com/getgrav/grav into develop 2017-01-30 13:17:25 -07:00
Andy Miller
f1faea26e5 Code insight fix 2017-01-30 13:17:20 -07:00
Pia Mancini
422b9907cf Add backers and sponsors from Open Collective (#1281)
This is for your open collective backers and sponsors to appear directly on your README. 
see how it'll look [here](https://github.com/apex/apex#backers)
[More info](https://github.com/opencollective/opencollective/wiki/Github-banner)

Also add badges on top.
2017-01-30 11:47:09 -08:00
Andy Miller
24bffcde80 Don’t set default param_sep, use system constant (#1275)
* Don’t set default param_sep, use system constant, but still allow override

* Automatically fix param_sep on windows

* Reverted back to original system.yaml syntax

* Comment fix

* PSR formating fixes

* Ensure automatic override of `param_sep` is only in cases where it’s different from system + windows + apache
2017-01-30 11:36:37 -07:00
Andy Miller
b7c76b5a53 Composer libs updated 2017-01-30 10:27:03 -07:00
Andy Miller
c7619e5b52 Updated composer libs 2017-01-27 16:45:23 -07:00
Andy Miller
3d05574d08 Merge branch 'develop' of https://github.com/getgrav/grav into develop 2017-01-27 07:21:08 -07:00
Andy Miller
6e8455fde6 Updated composer.phar 2017-01-27 07:20:58 -07:00
Matias Griese
c6c8577b6f Silence E_WARNING: Zend OPcache API is restricted by "restrict_api" configuration directive 2017-01-27 10:29:55 +02:00
A----
108312e8c0 Provided empty alt if '' is supplied (#1262)
* Provided empty alt if '' is supplied

* Fixing some tests

* Regexp tests

* Again.
2017-01-26 16:30:39 -07:00
Andy Miller
060f21f83d Skip symlinks in cache clearing if found - #1269 2017-01-24 20:36:22 -07:00
Flavio Copes
4d904e6f70 Add an additional parameter to GPM::findPackage to avoid throwing an exception, for use in Twig, re #1008 2017-01-22 15:48:26 +01:00
Andy Miller
6968e2edff Fix Response object to handle 303 redirects when open_basedir in effect [#1267] 2017-01-21 16:25:13 -07:00
Andy Miller
300f65c22e Implode an array returned by sort order #1264 2017-01-20 15:17:28 -07:00
Andy Miller
5ecf240c26 Added new Collection::merge() method #1258 2017-01-20 10:47:24 -07:00
Andy Miller
9536f2e418 Merge branch 'release/1.1.14' into develop 2017-01-18 15:13:14 -07:00
Andy Miller
645285ca5c Merge branch 'release/1.1.14' 2017-01-18 15:13:13 -07:00
Andy Miller
c7fd01a644 Prepare for release 2017-01-18 15:12:14 -07:00
Andy Miller
61c0c31992 Fix to allow you to enable content-encoding: identity. Set to ‘none’ by default. #548 2017-01-18 15:02:53 -07:00
Matias Griese
e2ee02a71d Fixed page.collection() returning array and not Collection object when header variable did not exist 2017-01-18 10:42:13 +02:00
Andy Miller
4e283322ea Merge branch 'release/1.1.13' into develop 2017-01-17 13:20:08 -07:00
Andy Miller
b5b452e585 Merge branch 'release/1.1.13' 2017-01-17 13:20:07 -07:00
Andy Miller
138abdcab1 Prepare for release 2017-01-17 13:19:19 -07:00
Andy Miller
bf661c4355 Vendor updates 2017-01-17 12:06:59 -07:00
Flavio Copes
085ca323e2 Fix #1254 issue in trying to process broken symlink 2017-01-17 14:25:42 +01:00
Matias Griese
c22b28f312 Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	CHANGELOG.md
2017-01-13 12:28:23 +02:00
Matias Griese
9b5ef4c263 Fixed all $_GET parameters missing in Nginx (please update your nginx.conf) [#1245](https://github.com/getgrav/grav/issues/1245) 2017-01-13 12:27:21 +02:00
Andy Miller
3cffe74965 Updated changelog 2017-01-12 11:55:10 -07:00
Andy Miller
759ba5143f Added ability to never cache twig. This makes it possible to cache content, but always process twig. Useful for regular but especially modular pages. (#1244) 2017-01-12 11:51:12 -07:00
Andy Miller
9ebff2287c Fixed an error in the ‘file’ type description 2017-01-12 10:59:05 -07:00
Andy Miller
e492fbde21 Hash added to blueprints 2017-01-12 06:40:51 -07:00
Andy Miller
7255556819 Fixed issue with multi-lang site caching non-lang specific pages for all langs #1211 2017-01-11 16:03:51 -07:00
Matias Griese
c718b8f32a Fixed broken hash method on page modifications detection 2017-01-09 21:23:11 +02:00
Andy Miller
07b66dd5d0 Vendor updates 2017-01-06 15:51:14 -07:00
Andy Miller
2e4686fada Updated changelog 2017-01-05 16:04:50 -07:00
ka7
e2544feeaf spelling fixes (#1236) 2017-01-05 16:02:45 -07:00
Andy Miller
970bf77492 Feature/theme dev improvements (#1232)
* Initial improvements to help theme development

* Added default language to site
2017-01-05 16:02:23 -07:00
Flavio Copes
0145f454b7 Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	CHANGELOG.md
2017-01-05 16:25:01 +01:00
Flavio Copes
e984d9b68f Lint 2017-01-05 16:08:37 +01:00
Flavio Copes
1cd6773ded Fix renaming the folder name if the page, in the default language, had a custom slug set in its header 2017-01-05 16:08:25 +01:00
Matias Griese
0445aa707b Fixed issue with Content-Encoding: none. It should really be Content-Encoding: identity instead 2017-01-05 12:03:22 +02:00
Flavio Copes
cc96d160a4 Try rename before doing copy&delete 2017-01-04 16:43:56 +01:00
Flavio Copes
4331ab374e Fix issue with pages folders validation not accepting uppercase letters 2017-01-04 16:35:38 +01:00
Flavio Copes
61005360a5 Add a better fix for #635. Overwrites https://github.com/getgrav/grav/pull/1214 2017-01-03 21:39:57 +01:00
Flavio Copes
335c44385a Fixes #635 use mv instead of rename as that does not support cross volume operations (#1214)
* Fixes #635 use mv instead of rename as that does not support cross volume operations

* Handle case exec is disabled

* Handle case is windows, where mv does not work

* Move isWindows check to Utils
2017-01-03 09:28:25 +01:00
Nicolas Lœuillet
88e9ad3df2 Updated gitignore for user/config/security.yaml (#1231) 2017-01-02 20:51:33 -07:00
Andy Miller
2b19414598 Merge branch 'release/1.1.12' 2016-12-26 09:50:32 -07:00
Andy Miller
b00cd00259 Merge branch 'release/1.1.12' into develop 2016-12-26 09:50:32 -07:00
Andy Miller
6097431021 Prepare for release 2016-12-26 09:50:18 -07:00
Andy Miller
55a9356681 Fix for #1227 issue - Admin JSON calls throwing errors with debugger on 2016-12-26 09:47:51 -07:00
Flavio Copes
8aee946682 Fix changelog 2016-12-23 16:12:21 +01:00
Andy Miller
523d3a331a Merge branch 'release/1.1.11' into develop 2016-12-22 11:43:10 -07:00
Andy Miller
397107b611 Merge branch 'release/1.1.11' 2016-12-22 11:43:09 -07:00
Andy Miller
342af3deba Prepare for release 2016-12-22 11:42:56 -07:00
Flavio Copes
dc92498cd0 Fix #900 issue with modular pages folders validation 2016-12-22 17:36:53 +01:00
Andy Miller
364209a27d Fixed type on template not found 2016-12-21 15:16:30 -07:00
Andy Miller
46d741a2ed Merge branch 'release/1.1.10' 2016-12-21 13:06:53 -07:00
Andy Miller
b5be9ee3f0 Merge branch 'release/1.1.10' into develop 2016-12-21 13:06:53 -07:00
Andy Miller
e0f17a48d5 Prepare for release 2016-12-21 13:06:42 -07:00
Andy Miller
fa27856bc0 Reworked changelog 2016-12-21 12:50:01 -07:00
Andy Miller
befaf5d387 Improved theme/plugin detect logic 2016-12-21 12:35:58 -07:00
Flavio Copes
9571e992d9 Improve changelog line 2016-12-20 18:05:04 +01:00
Flavio Copes
e40bed5be2 Explicitly expose array_unique Twig filter 2016-12-20 17:37:32 +01:00
Flavio Copes
442249c3a1 Fix issue with Inflector when translation is disabled [https://github.com/getgrav/grav-plugin-simplesearch/issues/87](https://github.com/getgrav/grav-plugin-simplesearch/issues/87) 2016-12-19 21:07:43 +01:00
Flavio Copes
8b8d8bcc5b Fix https://github.com/getgrav/grav-plugin-admin/issues/891 Add pattern for frontend validation of folder slugs 2016-12-17 18:10:19 +01:00
Flavio Copes
d2152cb48e Changelog 2016-12-17 15:09:58 +01:00
Andy Miller
81fc0d47ac Reworked PHP CLI router PR #1218 (#1219) 2016-12-17 15:07:40 +01:00
ChrisGitIt
8450f77443 fixed array handling (#1208)
if the input array looks like this: 
array('valA','valB') (not a keyed array)

The return result before my change was:
array(array('valA'),array('valB'))

The return result after my change is:
array('valA','valB')
2016-12-16 12:09:23 -07:00
Flavio Copes
0ccc34d860 Improve detection of home path. Also allow ~/.grav on Windows, drop ConsoleTrait::isWindows() method, used just for that. (#1204)
* Improve detection of home path. Also allow ~/.grav on Windows, drop ConsoleTrait::isWindows() method, used just for that.

* Extract loadLocalConfig method to ConsoleTrait

* Fix issue with using Yaml::parse direcly on a filename, now deprecated

* Changelog
2016-12-16 19:10:00 +01:00
Flavio Copes
5b6452d89e Revert "Fix #635 use mv instead of rename as that does not support cross volume operations"
This reverts commit d61d260ef1.
2016-12-14 23:17:02 +01:00
Flavio Copes
d61d260ef1 Fix #635 use mv instead of rename as that does not support cross volume operations 2016-12-14 22:40:42 +01:00
Djamil Legato
1125b51f27 Fixed case where extracting a package would cause an error during rename 2016-12-13 18:45:34 -08:00
Andy Miller
bf552e22f1 Merge branch 'release/1.1.9' into develop 2016-12-13 13:06:16 -07:00
Andy Miller
b740142668 Merge branch 'release/1.1.9' 2016-12-13 13:06:15 -07:00
Andy Miller
d23f829559 prepare for release 2016-12-13 13:05:57 -07:00
Matias Griese
85bf215dc6 Changelog update 2016-12-12 09:37:02 +02:00
Matias Griese
9db04abd1c Add support for calling Media object as function to get medium by filename 2016-12-12 09:31:33 +02:00
Andy Miller
156f645576 Set Grav to be in 'testing' while in RC state 2016-12-11 18:22:54 -07:00
Flavio Copes
d3b654bdb0 Added checks before accessing admin reference during Page::blueprints() call 2016-12-10 18:34:13 +01:00
Andy Miller
7ed078ce31 unused 'use' statements 2016-12-08 16:10:44 -07:00
Andy Miller
3c6df48b8b Insight fixes 2016-12-08 15:49:45 -07:00
Matias Griese
833cd497bb YAML syntax fixes 2016-12-08 12:57:40 +02:00
Matias Griese
625f3d3a34 Better error handling in cache clear
Added new parameter `remove` for `onBeforeCacheClear` event
2016-12-08 12:57:18 +02:00
Andy Miller
380157f9cc prepare for release 2016-12-07 16:05:12 -07:00
Andy Miller
74c005d39c Added new onBeforeCacheClear event 2016-12-07 14:48:00 -07:00
Aaron Dalton
7b2716dab1 Added warning to command when new Grav version is available (#1194) 2016-12-07 14:16:00 -07:00
Djamil Legato
906c090bd4 Fixed issue with redirect of a page getting moved to a different location 2016-12-07 12:56:00 -08:00
Andy Miller
27ad9a24eb Updated vendor libraries 2016-12-07 11:51:56 -07:00
Matias Griese
83fdecbdd1 Added stream support for images (![Sepia Image](image://image.jpg?sepia))
Added stream support for links (`[Download PDF](user://data/pdf/my.pdf)`)
2016-12-07 19:51:06 +02:00
Flavio Copes
6c1a76b901 Use permissions field in group details. Fix saving permissions 2016-12-05 19:17:46 +01:00
Flavio Copes
4a5847784a Thanks to @hughbris for taxonomy filter issue 896fb8138b 2016-12-05 10:06:47 +01:00
Flavio Copes
896fb8138b Fix #1184 Fix issue with using a multiple taxonomy filter of which one had no results
If there are 2+ taxonomies required but one has 0 items, it was just
picking the ones corresponding to the other taxonomy, thus generating a
wrong result. Adding an empty array will later make array_intersect_key
generate an empty array if the operation is `and`
2016-12-03 13:47:25 +01:00
Andy Miller
678c445799 updated changelog 2016-12-02 10:27:39 -07:00
Fredrik Ekelund
36428e4735 Added ability to pass an array of explicit widths to ImageMedium#derivatives (#1133)
* Added ability to pass an array of explicit widths to ImageMedium#derivatives

Allows for more precise control than the min-width, max-width and
step parameters.

* ImageMedium#derivatives can now be called with an array from Markdown as well

Previously it was only possible from Twig code or PHP code
2016-12-02 10:21:59 -07:00
Vivien HAAG
10da784d53 Fix Page Collections problem with @page.modular (#1178) 2016-12-02 10:16:05 -07:00
Djamil Legato
c64cdb5dad Typos in changelog 2016-12-01 12:42:59 -08:00
Djamil Legato
52b68a0a1b Add range(int min, int max, int step) twig function to generate an array of numbers between min and max, inclusive 2016-12-01 12:40:21 -08:00
Flavio Copes
ee1742af1f Sync webserver-configs/htaccess.txt with .htaccess 2016-11-29 11:33:50 +01:00
Matias Griese
6315283a3a Fix publish date ordering 2016-11-29 12:29:16 +02:00
Flavio Copes
d8b3f215a2 Use new permissions field in user account 2016-11-28 19:00:25 +01:00
Flavio Copes
3838de1d97 If an array field has ignore_empty: true, only save options with a value 2016-11-28 18:59:41 +01:00
Flavio Copes
f6ddba52d8 Added alias selfupdate to the self-upgrade bin/gpm CLI command 2016-11-28 13:27:23 +01:00
Andy Miller
f7b35c3b79 Updated version 2016-11-26 20:22:33 -07:00
Flavio Copes
8dd65b709d Fix #946 issue with the sample nginx.conf, security section moved before PHP handler, and fixed backup folder uncorrectly named as backups 2016-11-25 22:32:14 +01:00
Flavio Copes
3064fe8ad9 Fix #713 Remove mappings missing if not cloned from github 2016-11-25 18:33:52 +01:00
Matias Griese
287a329a4d Added two new sort order options for pages: publish_date and unpublish_date 2016-11-24 15:03:51 +02:00
Flavio Copes
923b2469f9 Fix https://github.com/getgrav/grav-plugin-admin/issues/874 use updated class namespace 2016-11-24 13:50:15 +01:00
Flavio Copes
55bb4cf2fa Fix #1179 issue when we have a meta file without corresponding media
Also update changelog entries
2016-11-22 17:22:27 +01:00
Flavio Copes
5105be338a Decode single taxonomy params (#1164)
Allows to use commas in taxonomy terms
2016-11-19 11:32:54 -07:00
Amélie Turgeon
20e36c8a00 Add 2 new language values for French (#1174)
set the name and native name for these two.
(fr-FR and fr-CA)
2016-11-19 11:32:05 -07:00
Flavio Copes
9dd4f690a8 Allow to override sorting flags for page header-based or default ordering. (#1173)
If the `intl` PHP extension is loaded, only these flags are available:
https://secure.php.net/manual/en/collator.asort.php. Otherwise, you can
use the PHP standard sorting flags
(https://secure.php.net/manual/en/array.constants.php)
[#1169](https://github.com/getgrav/grav/issues/1169)
2016-11-19 11:29:28 -07:00
Matias Griese
9a15b5ebdc Multisite: Create image cache folder if it doesn't exist 2016-11-15 16:10:34 +02:00
Andy Miller
5c003d38be Ready for an RC.1 release 2016-11-09 10:58:13 -07:00
Andy Miller
95ab80b8f9 Added message service into core Grav 2016-11-09 10:48:36 -07:00
Andy Miller
079468c609 Added User::find() method 2016-11-08 11:17:01 -07:00
Andy Miller
7c98ca7134 Added Base32 encode/decode class 2016-11-07 12:19:04 -07:00
Matias Griese
fbf9c345b9 Fixed URI path in multi-site when query parameters were used in front page 2016-11-07 08:45:02 +02:00
Andy Miller
491e73eade Fixed CompiledJsonFile as it was not caching properly 2016-11-04 06:47:27 -06:00
Djamil Legato
e73773672b Removed internal docs reference for Folder::create and Folder::mkdir 2016-11-01 17:07:06 -07:00
Andy Miller
98d022ee49 Merge branch 'develop' of https://github.com/getgrav/grav into develop 2016-11-01 13:03:53 -06:00
Andy Miller
abca8ce433 CompiledJsonFile::content() should support $assoc 2016-11-01 13:03:43 -06:00
Flavio Copes
2dcd4aeaad Changelog 2016-11-01 13:54:06 +01:00
Fredrik Ekelund
58d4e3384e Use correct ratio when applying image filters to image alternatives (#1147)
Because of a previous change, the keys of the image alternatives array
is no longer the ratio, but rather the image width. We now make sure to
calculate the ratio correctly and use the appropriate one when applying
the image filters.
2016-11-01 13:52:50 +01:00
Andy Miller
76aed8a119 Added CompiledJsonFile 2016-10-28 13:49:11 -06:00
Flavio Copes
37b8ffb7d2 Fix #1135 return max available number of items when calling random() on a collection passing an int > available items 2016-10-27 21:04:25 +02:00
Flavio Copes
af53d79e5e Add Caddyfile for newer Caddy versions #1115 2016-10-25 18:58:52 +02:00
Flavio Copes
c3aa11abeb Changelog 2016-10-25 16:33:57 +02:00
Gilles van Eeden
8e1454b3ab functions added to taxonomy and twigextension (#1124)
* Update Taxonomy.php

* Update TwigExtension.php

* Update TwigExtension.php

Incorrect comment updated.
2016-10-25 16:32:18 +02:00
Flavio Copes
1c32f4eaee Changelog 2016-10-25 16:27:24 +02:00
Adam Roe
cd15b9197b Don't truncate HTML if content length is less than summary size (#1125), fixes #1114 2016-10-25 16:25:56 +02:00
Andy Miller
afc18236c2 Fixed issue with site redirects/routes not processing with extensions 2016-10-24 10:13:21 -06:00
Andy Miller
fb1c8eb80d Merge branch 'release/1.1.8' into develop 2016-10-22 22:38:47 -06:00
358 changed files with 5919 additions and 2370 deletions

1
.gitignore vendored
View File

@@ -26,6 +26,7 @@ user/plugins/*
user/themes/*
!user/themes/.*
user/localhost/config/security.yaml
user/config/security.yaml
# OS Generated
.DS_Store*

View File

@@ -54,17 +54,17 @@ RewriteRule .* index.php [L]
## Begin - Security
# Block all direct access for these folders
RewriteRule ^(.git|cache|bin|logs|backup|webserver-configs|tests)/(.*) error [F]
RewriteRule ^(\.git|cache|bin|logs|backup|webserver-configs|tests)/(.*) error [F]
# Block access to specific file types for these system folders
RewriteRule ^(system|vendor)/(.*)\.(txt|xml|md|html|yaml|php|pl|py|cgi|twig|sh|bat)$ error [F]
RewriteRule ^(system|vendor)/(.*)\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F]
# Block access to specific file types for these user folders
RewriteRule ^(user)/(.*)\.(txt|md|yaml|php|pl|py|cgi|twig|sh|bat)$ error [F]
RewriteRule ^(user)/(.*)\.(txt|md|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F]
# Block all direct access to .md files:
RewriteRule \.md$ error [F]
# Block all direct access to files and folders beginning with a dot
RewriteRule (^|/)\.(?!well-known) - [F]
# Block access to specific files in the root folder
RewriteRule ^(LICENSE.txt|composer.lock|composer.json|\.htaccess)$ error [F]
RewriteRule ^(LICENSE\.txt|composer\.lock|composer\.json|\.htaccess)$ error [F]
## End - Security
</IfModule>

View File

@@ -2,8 +2,8 @@ language: php
php:
- '5.5'
- '5.6'
- '7.0'
- hhvm
- '7.0.21'
- '7.1'
branches:
only:
- develop
@@ -38,7 +38,7 @@ env:
- GOPATH="$HOME/go"
- PATH="$GOPATH/bin:$PATH"
# GH_TOKEN [API Key]
- secure: "jS+c+g2v33vypG4VtqiSDW2qQ4dGJZlrUKBRCztoy1yrOrYRPvc5Vzi/AS3fDmZ4yizukEwmUNNzyZQcgFvLPpmCCml46Dovp8R9OXhbNe8OnULmaSn2Zkr71oblMYu6ZP+RpYvNq0BIdSB3u2TiFriHMiTIkX9UwZNaUCOX1ig="
- secure: "NR9pV7YteY9OoPmjDTQG0fDfocVu+tCeiDH1F2GFhXCu71UOIvqWXpOxp0RHkG5GIXdCFHx59yu+ZO275lbaHkbF8+4lVSVrV4RcGn+pIncvxr6iZCVW05dbAxV3H8alK+xYJRGmbyfQl5wIM49WvmuGHZjcmIloS4t/omQ3N+I="
# BB_TOKEN value => "user:pass@"
- secure: "einUtSEkUWy2IrqLXyVjwUU+mwaaoiOXRRVdLBpA3Zye6bZx8cm5h/5AplkPWhM/NmCJoW/MwNZHHkFhlr3mDRov5iOxVmTTYfnXB+I5lxYTSgduOLLErS7mU8hfADpVDU8bHNU44fNGD3UEiG1PD4qQBX4DMlqIFmR20mjs81k="
# GH_API_USER [for curl]
@@ -55,6 +55,7 @@ before_install:
fi
- if [ $TRAVIS_BRANCH != 'develop' ] && [ $TRAVIS_PHP_VERSION == "5.6" ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then
export TRAVIS_TAG=$(curl --fail --user "${GH_API_USER}" -s https://api.github.com/repos/getgrav/grav/releases/latest | grep tag_name | head -n 1 | cut -d '"' -f 4);
eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.8 bash)";
go get github.com/aktau/github-release;
git clone --quiet --depth=50 --branch=master https://${BB_TOKEN}bitbucket.org/rockettheme/grav-devtools.git $RT_DEVTOOLS &>/dev/null;
if [ ! -z "$TRAVIS_TAG" ]; then

View File

@@ -1,3 +1,401 @@
# v1.3.4
## 09/29/2017
1. [](#new)
* Added filter support for Page collections (routable/visible/type/access/etc.)
1. [](#improved)
* Implemented `Composer\CaBundle` for SSL Certs [#1241](https://github.com/getgrav/grav/issues/1241)
* Refactored the Assets sorting logic
* Improved language overrides to merge only 'extra' translations [#1514](https://github.com/getgrav/grav/issues/1514)
* Improved support for Assets with query strings [#1451](https://github.com/getgrav/grav/issues/1451)
* Twig extension cleanup
1. [](#bugfix)
* Fixed an issue where fallback was not supporting dynamic page generation
* Fixed issue with Image query string not being fully URL encoded [#1622](https://github.com/getgrav/grav/issues/1622)
* Fixed `Page::summary()` when using delimiter and multibyte UTF8 Characters [#1644](https://github.com/getgrav/grav/issues/1644)
* Fixed missing `.json` thumbnail throwing error when adding media [grav-plugin-admin#1156](https://github.com/getgrav/grav-plugin-admin/issues/1156)
* Fixed insecure session cookie initialization [#1656](https://github.com/getgrav/grav/pull/1656)
# v1.3.3
## 09/07/2017
1. [](#new)
* Added support for 2-Factor Authentication in admin profile
* Added `gaussianBlur` media method [#1623](https://github.com/getgrav/grav/pull/1623)
* Added new `|chunk_split()`, `|basename`, and `|dirname` Twig filter
* Added new `tl` Twig filter/function to support specific translations [#1618](https://github.com/getgrav/grav/issues/1618)
1. [](#improved)
* User `authorization` now requires a check for `authenticated` - REQUIRED: `Login v2.4.0`
* Added options to `Page::summary()` to support size without HTML tags [#1554](https://github.com/getgrav/grav/issues/1554)
* Forced `natsort` on plugins to ensure consistent plugin load ordering across platforms [#1614](https://github.com/getgrav/grav/issues/1614)
* Use new `multilevel` field to handle Asset Collections [#1201](https://github.com/getgrav/grav-plugin-admin/issues/1201)
* Added support for redis `password` option [#1620](https://github.com/getgrav/grav/issues/1620)
* Use 302 rather than 301 redirects by default [#1619](https://github.com/getgrav/grav/issues/1619)
* GPM Installer will try to load alphanumeric version of the class if no standard class found [#1630](https://github.com/getgrav/grav/issues/1630)
* Add current page position to `User` class [#1632](https://github.com/getgrav/grav/issues/1632)
* Added option to enable case insensitive URLs [#1638](https://github.com/getgrav/grav/issues/1638)
* Updated vendor libraries
* Updated `travis.yml` to add support for PHP 7.1 as well as 7.0.21 for test suite
1. [](#bugfix)
* Fixed UTF8 multibyte UTF8 character support in `Page::summary()` [#1554](https://github.com/getgrav/grav/issues/1554)
# v1.3.2
## 08/16/2017
1. [](#new)
* Added a new `cache_control` system and page level property [#1591](https://github.com/getgrav/grav/issues/1591)
* Added a new `clear_images_by_default` system property to stop cache clear events from removing processed images [#1481](https://github.com/getgrav/grav/pull/1481)
* Added new `onTwigLoader()` event to enable utilization of loader methods
* Added new `Twig::addPath()` and `Twig::prependPath()` methods to wrap loader methods and support namespacing [#1604](https://github.com/getgrav/grav/issues/1604)
* Added new `array_key_exists()` Twig function wrapper
* Added a new `Collection::intersect()` method [#1605](https://github.com/getgrav/grav/issues/1605)
1. [](#bugfix)
* Allow `session.timeout` field to be set to `0` via blueprints [#1598](https://github.com/getgrav/grav/issues/1598)
* Fixed `Data::exists()` and `Data::raw()` functions breaking if `Data::file()` hasn't been called with non-null value
* Fixed parent theme auto-loading in child themes of Gantry 5
# v1.3.1
## 07/19/2017
1. [](#bugfix)
* Fix ordering for Linux + International environments [#1574](https://github.com/getgrav/grav/issues/1574)
* Check if medium thumbnail exists before resetting
* Update Travis' auth token
# v1.3.0
## 07/16/2017
1. [](#bugfix)
* Fixed an undefined variable `$difference` [#1563](https://github.com/getgrav/grav/pull/1563)
* Fix broken range slider [grav-plugin-admin#1153](https://github.com/getgrav/grav-plugin-admin/issues/1153)
* Fix natural sort when > 100 pages [#1564](https://github.com/getgrav/grav/pull/1564)
# v1.3.0-rc.5
## 07/05/2017
1. [](#new)
* Setting `system.session.timeout` to 0 clears the session when the browser session ends [#1538](https://github.com/getgrav/grav/pull/1538)
* Created a `CODE_OF_CONDUCT.md` so everyone knows how to behave :)
1. [](#improved)
* Renamed new `media()` Twig function to `media_directory()` to avoid conflict with Page's `media` object
1. [](#bugfix)
* Fixed global media files disappearing after a reload [#1545](https://github.com/getgrav/grav/issues/1545)
* Fix for broken regex redirects/routes via `site.yaml`
* Sanitize the error message in the error handler page
# v1.3.0-rc.4
## 06/22/2017
1. [](#new)
* Added `lower` and `upper` Twig filters
* Added `pathinfo()` Twig function
* Added 165 new thumbnail images for use in `media.yaml`
1. [](#improved)
* Improved error message when running `bin/grav install` instead of `bin/gpm install`, and also when running on a non-skeleton site [#1027](https://github.com/getgrav/grav/issues/1027)
* Updated vendor libraries
1. [](#bugfix)
* Don't rebuild metadata every time, only when file does not exist
* Restore GravTrait in ConsoleTrait [grav-plugin-login#119](https://github.com/getgrav/grav-plugin-login/issues/119)
* Fix Windows routing with built-in server [#1502](https://github.com/getgrav/grav/issues/1502)
* Fix [#1504](https://github.com/getgrav/grav/issues/1504) `process_twig` and `frontmatter.yaml`
* Nicetime fix: 0 seconds from now -> just now [#1509](https://github.com/getgrav/grav/issues/1509)
# v1.3.0-rc.3
## 05/22/2017
1. [](#new)
* Added new unified `Utils::getPagePathFromToken()` method which is used by various plugins (Admin, Forms, Downloads, etc.)
1. [](#improved)
* Optionally remove unpublished pages from the translated languages, move into untranslated list [#1482](https://github.com/getgrav/grav/pull/1482)
* Improved reliability of `hash` file-check method
1. [](#bugfix)
* Updated to latest Toolbox library to fix issue with some blueprints rendering in admin plugin [#1117](https://github.com/getgrav/grav-plugin-admin/issues/1117)
* Fix output handling in RenderProcessor [#1483](https://github.com/getgrav/grav/pull/1483)
# v1.3.0-rc.2
## 05/17/2017
1. [](#new)
* Added new `media` and `vardump` Twig functions
1. [](#improved)
* Put in various checks to ensure Exif is available before trying to use it
* Add timestamp to configuration settings [#1445](https://github.com/getgrav/grav/pull/1445)
1. [](#bugfix)
* Fix an issue saving YAML textarea fields in expert mode [#1480](https://github.com/getgrav/grav/pull/1480)
* Moved `onOutputRendered()` back into Grav core
# v1.3.0-rc.1
## 05/16/2017
1. [](#new)
* Added support for a single array field in the forms
* Added EXIF support with automatic generation of Page Media metafiles
* Added Twig function to get EXIF data on any image file
* Added `Pages::baseUrl()`, `Pages::homeUrl()` and `Pages::url()` functions
* Added `base32_encode`, `base32_decode`, `base64_encode`, `base64_decode` Twig filters
* Added `Debugger::getCaller()` to figure out where the method was called from
* Added support for custom output providers like Slim Framework
* Added `Grav\Framework\Collection` classes for creating collections
1. [](#improved)
* Add more controls over HTML5 video attributes (autoplay, poster, loop controls) [#1442](https://github.com/getgrav/grav/pull/1442)
* Removed logging statement for invalid slug [#1459](https://github.com/getgrav/grav/issues/1459)
* Groups selection pre-filled in user form
* Improve error handling in `Folder::move()`
* Added extra parameter for `Twig::processSite()` to include custom context
* Updated RocketTheme Toolbox vendor library
1. [](#bugfix)
* Fix to force route/redirect matching from the start of the route by default [#1446](https://github.com/getgrav/grav/issues/1446)
* Edit check for valid slug [#1459](https://github.com/getgrav/grav/issues/1459)
# v1.2.4
## 04/24/2017
1. [](#improved)
* Added optional ignores for `Installer::sophisticatedInstall()` [#1447](https://github.com/getgrav/grav/issues/1447)
1. [](#bugfix)
* Allow multiple calls to `Themes::initTheme()` without throwing errors
* Fixed querystrings in root pages with multi-lang enabled [#1436](https://github.com/getgrav/grav/issues/1436)
* Allow support for `Pages::getList()` with `show_modular` option [#1080](https://github.com/getgrav/grav-plugin-admin/issues/1080)
# v1.2.3
## 04/19/2017
1. [](#improved)
* Added new `pwd_regex` and `username_regex` system configuration options to allow format modifications
* Allow `user/accounts.yaml` overrides and implemented more robust theme initialization
* improved `getList()` method to do more powerful things
* Fix Typo in GPM [#1427](https://github.com/getgrav/grav/issues/1427)
# v1.2.2
## 04/11/2017
1. [](#bugfix)
* Fix for redirects breaking [#1420](https://github.com/getgrav/grav/issues/1420)
* Fix issue in direct-install with github-style dependencies [#1405](https://github.com/getgrav/grav/issues/1405)
# v1.2.1
## 04/10/2017
1. [](#improved)
* Added various `ancestor` helper methods in Page and Pages classes [#1362](https://github.com/getgrav/grav/pull/1362)
* Added new `parents` field and switched Page blueprints to use this
* Added `isajaxrequest()` Twig function [#1400](https://github.com/getgrav/grav/issues/1400)
* Added ability to inline CSS and JS code via Asset manager [#1377](https://github.com/getgrav/grav/pull/1377)
* Add query string in lighttpd default config [#1393](https://github.com/getgrav/grav/issues/1393)
* Add `--all-yes` and `--destination` options for `bin/gpm direct-install` [#1397](https://github.com/getgrav/grav/pull/1397)
1. [](#bugfix)
* Fix for direct-install of plugins with `languages.yaml` [#1396](https://github.com/getgrav/grav/issues/1396)
* When determining language from HTTP_ACCEPT_LANGUAGE, also try base language only [#1402](https://github.com/getgrav/grav/issues/1402)
* Fixed a bad method signature causing warning when running tests on `GPMTest` object
# v1.2.0
## 03/31/2017
1. [](#new)
* Added file upload for user avatar in user/admin blueprint
1. [](#improved)
* Analysis fixes
* Switched to stable composer lib versions
# v1.2.0-rc.3
## 03/22/2017
1. [](#new)
* Refactored Page re-ordering to handle all siblings at once
* Added `language_codes` to Twig init to allow for easy language name/code/native-name lookup
1. [](#improved)
* Added an _Admin Overrides_ section with option to choose the order of children in Pages Management
1. [](#bugfix)
* Fixed loading issues with improperly named themes (use old broken method first) [#1373](https://github.com/getgrav/grav/issues/1373)
* Simplified modular/twig processing logic and fixed an issue with system process config [#1351](https://github.com/getgrav/grav/issues/1351)
* Cleanup package files via GPM install to make them more windows-friendly [#1361](https://github.com/getgrav/grav/pull/1361)
* Fix for page-level debugger override changing the option site-wide
* Allow `url()` twig function to pass-through external links
# v1.2.0-rc.2
## 03/17/2017
1. [](#improved)
* Updated vendor libraries to latest
* Added the ability to disable debugger on a per-page basis with `debugger: false` in page frontmatter
1. [](#bugfix)
* Fixed an issue with theme inheritance and hyphenated base themes [#1353](https://github.com/getgrav/grav/issues/1353)
* Fixed an issue when trying to use an `@2x` derivative on a non-image media file [#1341](https://github.com/getgrav/grav/issues/1341)
# v1.2.0-rc.1
## 03/13/2017
1. [](#new)
* Added default setting to only allow `direct-installs` from official GPM. Can be configured in `system.yaml`
* Added a new `Utils::isValidUrl()` method
* Added optional parameter to `|markdown(false)` filter to toggle block/line processing (default|true = `block`)
* Added new `Page::folderExists()` method
1. [](#improved)
* `Twig::evaluate()` now takes current environment and context into account
* Genericized `direct-install` so it can be called via Admin plugin
1. [](#bugfix)
* Fixed a minor bug in Number validation [#1329](https://github.com/getgrav/grav/issues/1329)
* Fixed exception when trying to find user account and there is no `user://accounts` folder
* Fixed issue when setting `Page::expires(0)` [Admin #1009](https://github.com/getgrav/grav-plugin-admin/issues/1009)
* Removed ID from `nonce_field()` Twig function causing validation errors [Form #115](https://github.com/getgrav/grav-plugin-form/issues/115)
# v1.1.17
## 02/17/2017
1. [](#bugfix)
* Fix for double extensions getting added during some redirects [#1307](https://github.com/getgrav/grav/issues/1307)
* Fix syntax error in PHP 5.3. Move the version check before requiring the autoloaded deps
* Fix Whoops displaying error page if there is PHP core warning or error [Admin #980](https://github.com/getgrav/grav-plugin-admin/issues/980)
# v1.1.16
## 02/10/2017
1. [](#new)
* Exposed the Pages cache ID for use by plugins (e.g. Form) via `Pages::getPagesCacheId()`
* Added `Languages::resetFallbackPageExtensions()` regarding [#1276](https://github.com/getgrav/grav/pull/1276)
1. [](#improved)
* Allowed CLI to use non-volatile cache drivers for better integration with CLI and Web caches
* Added Gantry5-compatible query information to Caddy configuration
* Added some missing docblocks and type-hints
* Various code cleanups (return types, missing variables in doclbocks, etc.)
1. [](#bugfix)
* Fix blueprints slug validation [https://github.com/getgrav/grav-plugin-admin/issues/955](https://github.com/getgrav/grav-plugin-admin/issues/955)
# v1.1.15
## 01/30/2017
1. [](#new)
* Added a new `Collection::merge()` method to allow merging of multiple collections [#1258](https://github.com/getgrav/grav/pull/1258)
* Added [OpenCollective](https://opencollective.com/grav) backer/sponsor info to `README.md`
1. [](#improved)
* Add an additional parameter to GPM::findPackage to avoid throwing an exception, for use in Twig [#1008](https://github.com/getgrav/grav/issues/1008)
* Skip symlinks if found while clearing cache [#1269](https://github.com/getgrav/grav/issues/1269)
1. [](#bugfix)
* Fixed an issue when page collection with header-based `sort.by` returns an array [#1264](https://github.com/getgrav/grav/issues/1264)
* Fix `Response` object to handle `303` redirects when `open_basedir` in effect [#1267](https://github.com/getgrav/grav/issues/1267)
* Silence `E_WARNING: Zend OPcache API is restricted by "restrict_api" configuration directive`
# v1.1.14
## 01/18/2017
1. [](#bugfix)
* Fixed `Page::collection()` returning array and not Collection object when header variable did not exist
* Revert `Content-Encoding: identity` fix, and let you set `cache: allow_webserver_gzip:` option to switch to `identity` [#548](https://github.com/getgrav/grav/issues/548)
# v1.1.13
## 01/17/2017
1. [](#new)
* Added new `never_cache_twig` page option in `system.yaml` and frontmatter. Allows dynamic Twig logic in regular and modular Twig templates [#1244](https://github.com/getgrav/grav/pull/1244)
1. [](#improved)
* Several improvements to aid theme development [#232](https://github.com/getgrav/grav/pull/1232)
* Added `hash` cache check option and made dropdown more descriptive [Admin #923](https://github.com/getgrav/grav-plugin-admin/issues/923)
1. [](#bugfix)
* Fixed cross volume file system operations [#635](https://github.com/getgrav/grav/issues/635)
* Fix issue with pages folders validation not accepting uppercase letters
* Fix renaming the folder name if the page, in the default language, had a custom slug set in its header
* Fixed issue with `Content-Encoding: none`. It should really be `Content-Encoding: identity` instead
* Fixed broken `hash` method on page modifications detection
* Fixed issue with multi-lang pages not caching independently without unique `.md` file [#1211](https://github.com/getgrav/grav/issues/1211)
* Fixed all `$_GET` parameters missing in Nginx (please update your nginx.conf) [#1245](https://github.com/getgrav/grav/issues/1245)
* Fixed issue in trying to process broken symlink [#1254](https://github.com/getgrav/grav/issues/1254)
# v1.1.12
## 12/26/2016
1. [](#bugfix)
* Fixed issue with JSON calls throwing errors due to debugger enabled [#1227](https://github.com/getgrav/grav/issues/1227)
# v1.1.11
## 12/22/2016
1. [](#improved)
* Fall back properly to HTML if template type not found
1. [](#bugfix)
* Fix issue with modular pages folders validation [#900](https://github.com/getgrav/grav-plugin-admin/issues/900)
# v1.1.10
## 12/21/2016
1. [](#improved)
* Improve detection of home path. Also allow `~/.grav` on Windows, drop `ConsoleTrait::isWindows()` method, used only for that [#1204](https://github.com/getgrav/grav/pull/1204)
* Reworked PHP CLI router [#1219](https://github.com/getgrav/grav/pull/1219)
* More robust theme/plugin logic in `bin/gpm direct-install`
1. [](#bugfix)
* Fixed case where extracting a package would cause an error during rename
* Fix issue with using `Yaml::parse` direcly on a filename, now deprecated
* Add pattern for frontend validation of folder slugs [#891](https://github.com/getgrav/grav-plugin-admin/issues/891)
* Fix issue with Inflector when translation is disabled [SimpleSearch #87](https://github.com/getgrav/grav-plugin-simplesearch/issues/87)
* Explicitly expose `array_unique` Twig filter [Admin #897](https://github.com/getgrav/grav-plugin-admin/issues/897)
# v1.1.9
## 12/13/2016
1. [](#new)
* RC released as stable
1. [](#improved)
* Better error handling in cache clear
* YAML syntax fixes for the future compatibility
* Added new parameter `remove` for `onBeforeCacheClear` event
* Add support for calling Media object as function to get medium by filename
1. [](#bugfix)
* Added checks before accessing admin reference during `Page::blueprints()` call. Allows to access `page.blueprints` from Twig in the frontend
# v1.1.9-rc.3
## 12/07/2016
1. [](#new)
* Add `ignore_empty` property to be used on array fields, if positive only save options with a value
* Use new `permissions` field in user account
* Add `range(int start, int end, int step)` twig function to generate an array of numbers between start and end, inclusive
* New retina Media image derivatives array support (`![](image.jpg?derivatives=[640,1024,1440])`) [#1147](https://github.com/getgrav/grav/pull/1147)
* Added stream support for images (`![Sepia Image](image://image.jpg?sepia)`)
* Added stream support for links (`[Download PDF](user://data/pdf/my.pdf)`)
* Added new `onBeforeCacheClear` event to add custom paths to cache clearing process
1. [](#improved)
* Added alias `selfupdate` to the `self-upgrade` `bin/gpm` CLI command
* Synced `webserver-configs/htaccess.txt` with `.htaccess`
* Use permissions field in group details.
* Updated vendor libraries
* Added a warning on GPM update to update Grav first if needed [#1194](https://github.com/getgrav/grav/pull/1194)
1. [](#bugfix)
* Fix page collections problem with `@page.modular` [#1178](https://github.com/getgrav/grav/pull/1178)
* Fix issue with using a multiple taxonomy filter of which one had no results, thanks to @hughbris [#1184](https://github.com/getgrav/grav/issues/1184)
* Fix saving permissions in group
* Fixed issue with redirect of a page getting moved to a different location
# v1.1.9-rc.2
## 11/26/2016
1. [](#new)
* Added two new sort order options for pages: `publish_date` and `unpublish_date` [#1173](https://github.com/getgrav/grav/pull/1173))
1. [](#improved)
* Multisite: Create image cache folder if it doesn't exist
* Add 2 new language values for French [#1174](https://github.com/getgrav/grav/issues/1174)
1. [](#bugfix)
* Fixed issue when we have a meta file without corresponding media [#1179](https://github.com/getgrav/grav/issues/1179)
* Update class namespace for Admin class [Admin #874](https://github.com/getgrav/grav-plugin-admin/issues/874)
# v1.1.9-rc.1
## 11/09/2016
1. [](#new)
* Added a `CompiledJsonFile` object to better handle Json files.
* Added Base32 encode/decode class
* Added a new `User::find()` method
1. [](#improved)
* Moved `messages` object into core Grav from login plugin
* Added `getTaxonomyItemKeys` to the Taxonomy object [#1124](https://github.com/getgrav/grav/issues/1124)
* Added a `redirect_me` Twig function [#1124](https://github.com/getgrav/grav/issues/1124)
* Added a Caddyfile for newer Caddy versions [#1115](https://github.com/getgrav/grav/issues/1115)
* Allow to override sorting flags for page header-based or default ordering. If the `intl` PHP extension is loaded, only these flags are available: https://secure.php.net/manual/en/collator.asort.php. Otherwise, you can use the PHP standard sorting flags (https://secure.php.net/manual/en/array.constants.php) [#1169](https://github.com/getgrav/grav/issues/1169)
1. [](#bugfix)
* Fixed an issue with site redirects/routes, not processing with extension (.html, .json, etc.)
* Don't truncate HTML if content length is less than summary size [#1125](https://github.com/getgrav/grav/issues/1125)
* Return max available number when calling random() on a collection passing an int > available items [#1135](https://github.com/getgrav/grav/issues/1135)
* Use correct ratio when applying image filters to image alternatives [#1147](https://github.com/getgrav/grav/issues/1147)
* Fixed URI path in multi-site when query parameters were used in front page
# v1.1.8
## 10/22/2016
@@ -39,7 +437,7 @@
1. [](#bugfix)
* Fixed missing `progress` method in the DirectInstall Command
* `Response` class now handles better unsuccessful requests such as 404 and 401
* Fixed saving of `external` page types [admin #789](https://github.com/getgrav/grav-plugin-admin/issues/789)
* Fixed saving of `external` page types [Admin #789](https://github.com/getgrav/grav-plugin-admin/issues/789)
* Fixed issue deleting parent folder of folder with `param_sep` in the folder name [admin #796](https://github.com/getgrav/grav-plugin-admin/issues/796)
* Fixed an issue with streams in `bin/plugin`
* Fixed `jpeg` file format support in Media
@@ -844,7 +1242,7 @@
* Added new `onImageMediumSaved()` event (useful for post-image processing)
* Added `Vary: Accept-Encoding` option
2. [](#improved)
* Multilang-safe delimeter position
* Multilang-safe delimiter position
* Refactored Twig classes and added optional umask setting
* Removed `pageinit()` timing
* `Page->routable()` now takes `published()` state into account

46
CODE_OF_CONDUCT.md Normal file
View File

@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at contact@getgrav.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/

View File

@@ -110,7 +110,7 @@ Good pull requests - patches, improvements, new features - are a fantastic
help. They should remain focused in scope and avoid containing unrelated
commits.
**Please ask first** in Gitter or in the Forum before embarking on any significant pull request (e.g.
**Please ask first** in [Slack](https://getgrav.org/slack) or in the Forum before embarking on any significant pull request (e.g.
implementing features, refactoring code..),
otherwise you risk spending a lot of time working on something that the
project's developers might not want to merge into the project.
@@ -120,5 +120,18 @@ accurate comments, etc.) and any other requirements.
See [Using Pull Request](https://help.github.com/articles/using-pull-requests/) and [Fork a Repo](https://help.github.com/articles/fork-a-repo/) if you're not familiar with Pull Requests.
Any pull request should be based on the `develop` branch. We will not consider pull requests made to master.
**IMPORTANT**: By submitting a patch, you agree to allow the project owner to
license your work under the same license as that used by the project.
<a name="translations"></a>
### Translations
Translations for Grav core and the Admin plugin are managed through Crowdin:
- Admin: https://crowdin.com/project/grav-admin
- Core: https://crowdin.com/project/grav-core
Please do not post translations PRs for core or admin translations on GitHub, with the exception of fixes for the english language.
All other plugins and themes translations are handled directly in their GitHub repository, and the string are usually found in the `languages.yaml` file at the root of each project.

View File

@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2014 Grav
Copyright (c) 2017 Grav
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

112
README.md
View File

@@ -1,6 +1,6 @@
# ![](https://avatars1.githubusercontent.com/u/8237355?v=2&s=50) Grav
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/cfd20465-d0f8-4a0a-8444-467f5b5f16ad/mini.png)](https://insight.sensiolabs.com/projects/cfd20465-d0f8-4a0a-8444-467f5b5f16ad) [![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/getgrav/grav?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/getgrav/grav.svg?branch=develop)](https://travis-ci.org/getgrav/grav)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/cfd20465-d0f8-4a0a-8444-467f5b5f16ad/mini.png)](https://insight.sensiolabs.com/projects/cfd20465-d0f8-4a0a-8444-467f5b5f16ad) [![Slack](https://grav-chat.now.sh/badge.svg)](https://chat.getgrav.org) [![Build Status](https://travis-ci.org/getgrav/grav.svg?branch=develop)](https://travis-ci.org/getgrav/grav) [![OpenCollective](https://opencollective.com/grav/backers/badge.svg)](#backers) [![OpenCollective](https://opencollective.com/grav/sponsors/badge.svg)](#sponsors)
Grav is a **Fast**, **Simple**, and **Flexible**, file-based Web-platform. There is **Zero** installation required. Just extract the ZIP archive, and you are already up and running. It follows similar principles to other flat-file CMS platforms, but has a different design philosophy than most. Grav comes with a powerful **Package Management System** to allow for simple installation and upgrading of plugins and themes, as well as simple updating of Grav itself.
@@ -18,8 +18,8 @@ The underlying architecture of Grav is designed to use well-established and _bes
# Requirements
- PHP 5.5.9 or higher. Check the [required modules list](http://learn.getgrav.org/basics/requirements#php-requirements)
- Check the [Apache](http://learn.getgrav.org/basics/requirements#apache-requirements) or [IIS](http://learn.getgrav.org/basics/requirements#iis-requirements) requirements
- PHP 5.5.9 or higher. Check the [required modules list](https://learn.getgrav.org/basics/requirements#php-requirements)
- Check the [Apache](https://learn.getgrav.org/basics/requirements#apache-requirements) or [IIS](https://learn.getgrav.org/basics/requirements#iis-requirements) requirements
# QuickStart
@@ -27,7 +27,7 @@ These are the options to get Grav:
### Downloading a Grav Package
You can download a **ready-built** package from the [Downloads page on http://getgrav.org](http://getgrav.org/downloads)
You can download a **ready-built** package from the [Downloads page on https://getgrav.org](https://getgrav.org/downloads)
### With Composer
@@ -45,17 +45,17 @@ $ composer create-project getgrav/grav ~/webroot/grav
$ git clone https://github.com/getgrav/grav.git
```
2. Install the **plugin** and **theme dependencies** by using the [Grav CLI application](http://learn.getgrav.org/advanced/grav-cli) `bin/grav`:
2. Install the **plugin** and **theme dependencies** by using the [Grav CLI application](https://learn.getgrav.org/advanced/grav-cli) `bin/grav`:
```
$ cd ~/webroot/grav
$ bin/grav install
```
Check out the [install procedures](http://learn.getgrav.org/basics/installation) for more information.
Check out the [install procedures](https://learn.getgrav.org/basics/installation) for more information.
# Adding Functionality
You can download [plugins](http://getgrav.org/downloads/plugins) or [themes](http://getgrav.org/downloads/themes) manually from the appropriate tab on the [Downloads page on http://getgrav.org](http://getgrav.org/downloads), but the preferred solution is to use the [Grav Package Manager](http://learn.getgrav.org/advanced/grav-gpm) or `GPM`:
You can download [plugins](https://getgrav.org/downloads/plugins) or [themes](https://getgrav.org/downloads/themes) manually from the appropriate tab on the [Downloads page on https://getgrav.org](https://getgrav.org/downloads), but the preferred solution is to use the [Grav Package Manager](https://learn.getgrav.org/advanced/grav-gpm) or `GPM`:
```
$ bin/gpm index
@@ -69,7 +69,7 @@ $ bin/gpm install <plugin/theme>
# Updating
To update Grav you should use the [Grav Package Manager](http://learn.getgrav.org/advanced/grav-gpm) or `GPM`:
To update Grav you should use the [Grav Package Manager](https://learn.getgrav.org/advanced/grav-gpm) or `GPM`:
```
$ bin/gpm selfupgrade
@@ -83,31 +83,93 @@ $ bin/gpm update
# Contributing
We appreciate any contribution to Grav, whether it is related to bugs, grammar, or simply a suggestion or improvement.
However, we ask that any contributions follow our simple guidelines in order to be properly received.
We appreciate any contribution to Grav, whether it is related to bugs, grammar, or simply a suggestion or improvement! Please refer to the [Contributing guide](CONTRIBUTING.md) for more guidance on this topic.
All our projects follow the [GitFlow branching model][gitflow-model], from development to release. If you are not familiar with it, there are several guides and tutorials to make you understand what it is about.
You will probably want to get started by installing [this very good collection of git extensions][gitflow-extensions].
What you mainly want to know is that:
- All the main activity happens in the `develop` branch. Any pull request should be addressed only to that branch. We will not consider pull requests made to the `master`.
- It's very well appreciated, and highly suggested, to start a new feature whenever you want to make changes or add functionalities. It will make it much easier for us to just checkout your feature branch and test it, before merging it into `develop`
## Security issues
If you discover a possible security issue related to Grav or one of its plugins, please send an email to the core team at contact@getgrav.org and we'll address it as soon as possible.
# Getting Started
* [What is Grav?](http://learn.getgrav.org/basics/what-is-grav)
* [Install](http://learn.getgrav.org/basics/installation) Grav in few seconds
* Understand the [Configuration](http://learn.getgrav.org/basics/grav-configuration)
* Take a peek at our available free [Skeletons](http://getgrav.org/downloads/skeletons)
* If you have questions, jump on our [Gitter Room](https://gitter.im/getgrav/grav)!
* [What is Grav?](https://learn.getgrav.org/basics/what-is-grav)
* [Install](https://learn.getgrav.org/basics/installation) Grav in few seconds
* Understand the [Configuration](https://learn.getgrav.org/basics/grav-configuration)
* Take a peek at our available free [Skeletons](https://getgrav.org/downloads/skeletons)
* If you have questions, jump on our [Slack Room](https://getgrav.org/slack)!
* Have fun!
# Exploring More
* Have a look at our [Basic Tutorial](http://learn.getgrav.org/basics/basic-tutorial)
* Dive into more [advanced](http://learn.getgrav.org/advanced) functions
* Have a look at our [Basic Tutorial](https://learn.getgrav.org/basics/basic-tutorial)
* Dive into more [advanced](https://learn.getgrav.org/advanced) functions
# Backers
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/grav#backer)]
<a href="https://opencollective.com/grav/backer/0/website" target="_blank"><img src="https://opencollective.com/grav/backer/0/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/1/website" target="_blank"><img src="https://opencollective.com/grav/backer/1/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/2/website" target="_blank"><img src="https://opencollective.com/grav/backer/2/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/3/website" target="_blank"><img src="https://opencollective.com/grav/backer/3/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/4/website" target="_blank"><img src="https://opencollective.com/grav/backer/4/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/5/website" target="_blank"><img src="https://opencollective.com/grav/backer/5/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/6/website" target="_blank"><img src="https://opencollective.com/grav/backer/6/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/7/website" target="_blank"><img src="https://opencollective.com/grav/backer/7/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/8/website" target="_blank"><img src="https://opencollective.com/grav/backer/8/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/9/website" target="_blank"><img src="https://opencollective.com/grav/backer/9/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/10/website" target="_blank"><img src="https://opencollective.com/grav/backer/10/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/11/website" target="_blank"><img src="https://opencollective.com/grav/backer/11/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/12/website" target="_blank"><img src="https://opencollective.com/grav/backer/12/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/13/website" target="_blank"><img src="https://opencollective.com/grav/backer/13/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/14/website" target="_blank"><img src="https://opencollective.com/grav/backer/14/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/15/website" target="_blank"><img src="https://opencollective.com/grav/backer/15/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/16/website" target="_blank"><img src="https://opencollective.com/grav/backer/16/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/17/website" target="_blank"><img src="https://opencollective.com/grav/backer/17/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/18/website" target="_blank"><img src="https://opencollective.com/grav/backer/18/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/19/website" target="_blank"><img src="https://opencollective.com/grav/backer/19/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/20/website" target="_blank"><img src="https://opencollective.com/grav/backer/20/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/21/website" target="_blank"><img src="https://opencollective.com/grav/backer/21/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/22/website" target="_blank"><img src="https://opencollective.com/grav/backer/22/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/23/website" target="_blank"><img src="https://opencollective.com/grav/backer/23/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/24/website" target="_blank"><img src="https://opencollective.com/grav/backer/24/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/25/website" target="_blank"><img src="https://opencollective.com/grav/backer/25/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/26/website" target="_blank"><img src="https://opencollective.com/grav/backer/26/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/27/website" target="_blank"><img src="https://opencollective.com/grav/backer/27/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/28/website" target="_blank"><img src="https://opencollective.com/grav/backer/28/avatar.svg"></a>
<a href="https://opencollective.com/grav/backer/29/website" target="_blank"><img src="https://opencollective.com/grav/backer/29/avatar.svg"></a>
# Sponsors
Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/grav#sponsor)]
<a href="https://opencollective.com/grav/sponsor/0/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/1/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/2/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/3/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/4/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/5/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/6/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/7/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/8/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/9/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/9/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/10/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/10/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/11/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/11/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/12/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/12/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/13/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/13/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/14/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/14/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/15/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/15/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/16/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/16/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/17/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/17/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/18/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/18/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/19/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/19/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/20/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/20/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/21/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/21/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/22/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/22/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/23/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/23/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/24/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/24/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/25/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/25/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/26/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/26/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/27/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/27/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/28/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/28/avatar.svg"></a>
<a href="https://opencollective.com/grav/sponsor/29/website" target="_blank"><img src="https://opencollective.com/grav/sponsor/29/avatar.svg"></a>
# License

Binary file not shown.

View File

@@ -8,18 +8,19 @@
"require": {
"php": ">=5.5.9",
"twig/twig": "~1.24",
"erusev/parsedown": "dev-master as 1.6.0",
"erusev/parsedown": "~1.6",
"erusev/parsedown-extra": "~0.7",
"symfony/yaml": "~2.8",
"symfony/console": "~2.8",
"symfony/event-dispatcher": "~2.8",
"symfony/var-dumper": "~2.8",
"symfony/polyfill-iconv": "~1.0",
"doctrine/cache": "~1.5",
"doctrine/cache": "1.6.*",
"doctrine/collections": "1.3",
"filp/whoops": "~2.0",
"matthiasmullie/minify": "^1.3",
"monolog/monolog": "~1.0",
"gregwar/image": "dev-master#72568cfbeb77515278f2ccb386fc344e874b7ae8",
"gregwar/image": "2.*",
"donatj/phpuseragentparser": "~0.3",
"pimple/pimple": "~3.0",
"rockettheme/toolbox": "~1.0",
@@ -29,13 +30,22 @@
"ext-curl": "*",
"ext-zip": "*",
"league/climate": "^3.2",
"antoligy/dom-string-iterators": "^1.0"
"antoligy/dom-string-iterators": "^1.0",
"miljar/php-exif": "^0.6.3",
"composer/ca-bundle": "^1.0"
},
"require-dev": {
"codeception/codeception": "^2.1",
"phpunit/php-code-coverage": "~2.0",
"fzaninotto/faker": "^1.5"
"fzaninotto/faker": "^1.5",
"victorjonsson/markdowndocs": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/trilbymedia/PHP-Markdown-Documentation-Generator"
}
],
"autoload": {
"psr-4": {
"Grav\\": "system/src/Grav"

1019
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -2,11 +2,12 @@
/**
* @package Grav.Core
*
* @copyright Copyright (C) 2014 - 2016 RocketTheme, LLC. All rights reserved.
* @copyright Copyright (C) 2014 - 2017 RocketTheme, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav;
define('GRAV_PHP_MIN', '5.5.9');
// Ensure vendor libraries exist
$autoload = __DIR__ . '/vendor/autoload.php';
@@ -14,16 +15,22 @@ if (!is_file($autoload)) {
die("Please run: <i>bin/grav install</i>");
}
if (PHP_SAPI == 'cli-server') {
if (!isset($_SERVER['PHP_CLI_ROUTER'])) {
die("PHP webserver requires a router to run Grav, please use: <pre>php -S {$_SERVER["SERVER_NAME"]}:{$_SERVER["SERVER_PORT"]} system/router.php</pre>");
}
}
use Grav\Common\Grav;
use RocketTheme\Toolbox\Event\Event;
// Register the auto-loader.
$loader = require_once $autoload;
if (version_compare($ver = PHP_VERSION, $req = GRAV_PHP_MIN, '<')) {
die(sprintf('You are running PHP %s, but Grav needs at least <strong>PHP %s</strong> to run.', $ver, $req));
}
// Register the auto-loader.
$loader = require_once $autoload;
// Set timezone to default, falls back to system if php.ini not set
date_default_timezone_set(@date_default_timezone_get());
@@ -44,6 +51,6 @@ $grav = Grav::instance(
try {
$grav->process();
} catch (\Exception $e) {
$grav->fireEvent('onFatalException', new Event(['exception' => $e]));
$grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
throw $e;
}

View File

@@ -16,6 +16,13 @@ form:
placeholder: PLUGIN_ADMIN.SITE_TITLE_PLACEHOLDER
help: PLUGIN_ADMIN.SITE_TITLE_HELP
default_lang:
type: text
label: PLUGIN_ADMIN.SITE_DEFAULT_LANG
size: x-small
placeholder: PLUGIN_ADMIN.SITE_DEFAULT_LANG_PLACEHOLDER
help: PLUGIN_ADMIN.SITE_DEFAULT_LANG_HELP
author.name:
type: text
size: large

View File

@@ -12,24 +12,25 @@ form:
fields:
home.alias:
type: pages
size: medium
size: large
classes: fancy
label: PLUGIN_ADMIN.HOME_PAGE
show_all: false
show_modular: false
show_root: false
show_slug: true
help: PLUGIN_ADMIN.HOME_PAGE_HELP
home.hide_in_urls:
type: toggle
label: PLUGIN_ADMIN.HIDE_HOME_IN_URLS
help: PLUGIN_ADMIN.HIDE_HOME_IN_URLS_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
type: toggle
label: PLUGIN_ADMIN.HIDE_HOME_IN_URLS
help: PLUGIN_ADMIN.HIDE_HOME_IN_URLS_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
pages.theme:
@@ -102,7 +103,7 @@ form:
pages.order.by:
type: select
size: long
size: large
classes: fancy
label: PLUGIN_ADMIN.DEFAULT_ORDERING
help: PLUGIN_ADMIN.DEFAULT_ORDERING_HELP
@@ -155,6 +156,7 @@ form:
pages.append_url_extension:
type: text
size: x-small
placeholder: "e.g. .html"
label: PLUGIN_ADMIN.APPEND_URL_EXT
help: PLUGIN_ADMIN.APPEND_URL_EXT_HELP
@@ -244,6 +246,17 @@ form:
validate:
type: bool
pages.never_cache_twig:
type: toggle
label: PLUGIN_ADMIN.NEVER_CACHE_TWIG
help: PLUGIN_ADMIN.NEVER_CACHE_TWIG_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
pages.frontmatter.process_twig:
type: toggle
label: PLUGIN_ADMIN.FRONTMATTER_PROCESS_TWIG
@@ -364,6 +377,12 @@ form:
validate:
type: number
min: 1
pages.cache_control:
type: text
size: medium
label: PLUGIN_ADMIN.CACHE_CONTROL
help: PLUGIN_ADMIN.CACHE_CONTROL_HELP
placeholder: 'e.g. public, max-age=31536000'
pages.last_modified:
type: toggle
label: PLUGIN_ADMIN.LAST_MODIFIED
@@ -461,14 +480,15 @@ form:
cache.check.method:
type: select
size: small
size: medium
classes: fancy
label: PLUGIN_ADMIN.CACHE_CHECK_METHOD
help: PLUGIN_ADMIN.CACHE_CHECK_METHOD_HELP
options:
file: File
folder: Folder
none: None
file: Markdown + Yaml file timestamps
folder: Folder timestamps
hash: All files timestamps
none: No timestamp checking
cache.driver:
type: select
@@ -487,6 +507,66 @@ form:
wincache: WinCache
redis: Redis
cache.prefix:
type: text
size: x-small
label: PLUGIN_ADMIN.CACHE_PREFIX
help: PLUGIN_ADMIN.CACHE_PREFIX_HELP
placeholder: PLUGIN_ADMIN.CACHE_PREFIX_PLACEHOLDER
cache.clear_images_by_default:
type: toggle
label: PLUGIN_ADMIN.CLEAR_IMAGES_BY_DEFAULT
help: PLUGIN_ADMIN.CLEAR_IMAGES_BY_DEFAULT_HELP
highlight: 1
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
cache.cli_compatibility:
type: toggle
label: PLUGIN_ADMIN.CLI_COMPATIBILITY
help: PLUGIN_ADMIN.CLI_COMPATIBILITY_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
cache.lifetime:
type: text
size: small
append: NICETIME.SECOND_PLURAL
label: PLUGIN_ADMIN.LIFETIME
help: PLUGIN_ADMIN.LIFETIME_HELP
validate:
type: number
cache.gzip:
type: toggle
label: PLUGIN_ADMIN.GZIP_COMPRESSION
help: PLUGIN_ADMIN.GZIP_COMPRESSION_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
cache.allow_webserver_gzip:
type: toggle
label: PLUGIN_ADMIN.ALLOW_WEBSERVER_GZIP
help: PLUGIN_ADMIN.ALLOW_WEBSERVER_GZIP_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
cache.memcache.server:
type: text
size: medium
@@ -536,32 +616,12 @@ form:
help: PLUGIN_ADMIN.REDIS_PORT_HELP
placeholder: "6379"
cache.prefix:
type: text
size: x-small
label: PLUGIN_ADMIN.CACHE_PREFIX
help: PLUGIN_ADMIN.CACHE_PREFIX_HELP
placeholder: PLUGIN_ADMIN.CACHE_PREFIX_PLACEHOLDER
cache.lifetime:
cache.redis.password:
type: text
size: small
append: NICETIME.SECOND_PLURAL
label: PLUGIN_ADMIN.LIFETIME
help: PLUGIN_ADMIN.LIFETIME_HELP
validate:
type: number
label: PLUGIN_ADMIN.REDIS_PASSWORD
cache.gzip:
type: toggle
label: PLUGIN_ADMIN.GZIP_COMPRESSION
help: PLUGIN_ADMIN.GZIP_COMPRESSION_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
twig:
type: section
@@ -752,10 +812,12 @@ form:
type: bool
assets.collections:
type: array
type: multilevel
label: PLUGIN_ADMIN.COLLECTIONS
placeholder_key: collection_name
placeholder_value: collection_path
validate:
type: array
errors:
type: section
@@ -821,13 +883,11 @@ form:
fields:
images.default_image_quality:
type: text
type: range
append: '%'
label: PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY
help: PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY_HELP
classes: x-small
validate:
type: number
min: 1
max: 100
@@ -894,6 +954,17 @@ form:
validate:
type: bool
media.auto_metadata_exif:
type: toggle
label: PLUGIN_ADMIN.ENABLE_AUTO_METADATA
help: PLUGIN_ADMIN.ENABLE_AUTO_METADATA_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
media.allowed_fallback_types:
@@ -940,7 +1011,7 @@ form:
help: PLUGIN_ADMIN.TIMEOUT_HELP
validate:
type: number
min: 1
min: 0
session.name:
type: text
@@ -1022,6 +1093,19 @@ form:
fopen: PLUGIN_ADMIN.FOPEN
curl: PLUGIN_ADMIN.CURL
gpm.official_gpm_only:
type: toggle
label: PLUGIN_ADMIN.GPM_OFFICIAL_ONLY
highlight: auto
help: PLUGIN_ADMIN.GPM_OFFICIAL_ONLY_HELP
highlight: 1
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
default: true
validate:
type: bool
gpm.verify_peer:
type: toggle
label: PLUGIN_ADMIN.GPM_VERIFY_PEER
@@ -1044,6 +1128,19 @@ form:
validate:
type: bool
username_regex:
type: text
size: large
label: PLUGIN_ADMIN.USERNAME_REGEX
help: PLUGIN_ADMIN.USERNAME_REGEX_HELP
pwd_regex:
type: text
size: large
label: PLUGIN_ADMIN.PWD_REGEX
help: PLUGIN_ADMIN.PWD_REGEX_HELP
wrapped_site:
type: toggle
label: PLUGIN_ADMIN.WRAPPED_SITE
@@ -1066,6 +1163,17 @@ form:
validate:
type: bool
case_insensitive_urls:
type: toggle
label: PLUGIN_ADMIN.CASE_INSENSITIVE_URLS
highlight: 0
help: PLUGIN_ADMIN.CASE_INSENSITIVE_URLS_HELP
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
param_sep:
type: select
size: medium
@@ -1091,6 +1199,6 @@ form:
custom_base_url:
type: text
size: medium
placeholder: "e.g. http://localhost:8080"
placeholder: "e.g. http://yoursite.com/yourpath"
label: PLUGIN_ADMIN.CUSTOM_BASE_URL
help: PLUGIN_ADMIN.CUSTOM_BASE_URL_HELP

View File

@@ -2,9 +2,9 @@ title: PLUGIN_ADMIN.DEFAULT
rules:
slug:
pattern: "[a-zа-я][a-zа0-9_\-]+"
min: 2
max: 80
pattern: '[a-zA-Zа-яA-Я0-9_\-]+'
min: 1
max: 200
form:
validation: loose
@@ -117,31 +117,16 @@ form:
title: PLUGIN_ADMIN.SETTINGS
underline: true
ordering:
type: toggle
label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
folder:
type: text
label: PLUGIN_ADMIN.FOLDER_NAME
validate:
type: slug
rule: slug
route:
type: select
type: parents
label: PLUGIN_ADMIN.PARENT
classes: fancy
data-options@: '\Grav\Common\Page\Pages::parentsRawRoutes'
data-default@: '\Grav\Plugin\admin::rawRoute'
options:
'/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT
name:
type: select
@@ -165,9 +150,20 @@ form:
title: PLUGIN_ADMIN.ORDERING
underline: true
ordering:
type: toggle
label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
order:
type: order
label: PLUGIN_ADMIN.PAGE_ORDER
label: PLUGIN_ADMIN.SORTABLE_PAGES
sitemap:
overrides:
@@ -224,6 +220,30 @@ form:
twig: Twig
use: keys
header.twig_first:
type: toggle
toggleable: true
label: PLUGIN_ADMIN.TWIG_FIRST
help: PLUGIN_ADMIN.TWIG_FIRST_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
header.never_cache_twig:
type: toggle
toggleable: true
label: PLUGIN_ADMIN.NEVER_CACHE_TWIG
help: PLUGIN_ADMIN.NEVER_CACHE_TWIG_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
header.child_type:
type: select
toggleable: true
@@ -267,6 +287,18 @@ form:
validate:
type: bool
header.debugger:
type: toggle
toggleable: true
label: PLUGIN_ADMIN.DEBUGGER
help: PLUGIN_ADMIN.DEBUGGER_HELP
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
header.template:
type: text
toggleable: true
@@ -278,6 +310,25 @@ form:
toggleable: true
help: PLUGIN_ADMIN.APPEND_URL_EXT_HELP
admin_only:
type: section
title: PLUGIN_ADMIN.ADMIN_SPECIFIC_OVERRIDES
underline: true
fields:
header.admin.children_display_order:
type: select
label: PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER
help: PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER_HELP
toggleable: true
classes: fancy
default: 'collection'
options:
'default': 'Ordered by Folder name (default)'
'collection': 'Ordered by Collection definition'
header.order_by:
type: hidden

View File

@@ -3,12 +3,6 @@ title: PLUGIN_ADMIN:EXTERNAL
type: default
context: blueprints://pages
rules:
slug:
pattern: "[a-zа-я][a-zа-я0-9_\-]+"
min: 2
max: 80
form:
validation: loose
fields:

View File

@@ -1,54 +0,0 @@
rules:
slug:
pattern: "[a-z][a-z0-9_\-]+"
min: 2
max: 80
form:
validation: loose
fields:
section:
type: section
title: PLUGIN_ADMIN.ADD_MODULAR_CONTENT
title:
type: text
label: PLUGIN_ADMIN.PAGE_TITLE
validate:
required: true
folder:
type: text
label: PLUGIN_ADMIN.FOLDER_NAME
validate:
type: slug
required: true
route:
type: select
label: PLUGIN_ADMIN.PAGE
classes: fancy
data-options@: '\Grav\Common\Page\Pages::parentsRawRoutes'
data-default@: '\Grav\Plugin\admin::rawRoute'
validate:
required: true
name:
type: select
classes: fancy
label: PLUGIN_ADMIN.MODULAR_TEMPLATE
help: PLUGIN_ADMIN.PAGE_FILE_HELP
default: default
data-options@: '\Grav\Common\Page\Pages::modularTypes'
validate:
required: true
modular:
type: hidden
default: 1
validate:
type: bool
blueprint:
type: blueprint

View File

@@ -1,106 +0,0 @@
rules:
slug:
pattern: "[a-z][a-z0-9_\-]+"
min: 2
max: 80
form:
validation: loose
fields:
tabs:
type: tabs
active: 1
fields:
content:
type: tab
title: PLUGIN_ADMIN.CONTENT
fields:
frontmatter:
classes: frontmatter
type: editor
label: PLUGIN_ADMIN.FRONTMATTER
autofocus: true
codemirror:
mode: 'yaml'
indentUnit: 4
autofocus: true
indentWithTabs: false
lineNumbers: true
styleActiveLine: true
gutters: ['CodeMirror-lint-markers']
lint: true
content:
type: markdown
uploads:
type: pagemedia
label: PLUGIN_ADMIN.PAGE_MEDIA
options:
type: tab
title: PLUGIN_ADMIN.OPTIONS
fields:
columns:
type: columns
fields:
column1:
type: column
fields:
ordering:
type: toggle
label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
folder:
type: text
label: PLUGIN_ADMIN.FILENAME
validate:
type: slug
required: true
route:
type: select
label: PLUGIN_ADMIN.PARENT
classes: fancy
data-options@: '\Grav\Common\Page\Pages::parentsRawRoutes'
data-default@: '\Grav\Plugin\admin::rawRoute'
options:
'': PLUGIN_ADMIN.DEFAULT_OPTION_SELECT
validate:
required: true
name:
type: select
classes: fancy
label: PLUGIN_ADMIN.MODULAR_TEMPLATE
default: default
data-options@: '\Grav\Common\Page\Pages::modularTypes'
validate:
required: true
column2:
type: column
fields:
order:
type: order
label: PLUGIN_ADMIN.ORDERING
blueprint:
type: blueprint

View File

@@ -1,17 +0,0 @@
rules:
slug:
pattern: "[a-z][a-z0-9_\-]+"
min: 2
max: 80
form:
validation: loose
fields:
route:
type: select
label: PLUGIN_ADMIN.PARENT
classes: fancy
data-options@: '\Grav\Common\Page\Pages::parentsRawRoutes'
data-default@: '\Grav\Plugin\admin::rawRoute'
options:
'/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT

View File

@@ -1,66 +0,0 @@
rules:
slug:
pattern: "[a-z][a-z0-9_\-]+"
min: 2
max: 80
form:
validation: loose
fields:
section:
type: section
title: PLUGIN_ADMIN.ADD_PAGE
title:
type: text
label: PLUGIN_ADMIN.PAGE_TITLE
help: PLUGIN_ADMIN.PAGE_TITLE_HELP
validate:
required: true
folder:
type: text
label: PLUGIN_ADMIN.FOLDER_NAME
help: PLUGIN_ADMIN.FOLDER_NAME_HELP
validate:
type: slug
required: true
route:
type: select
label: PLUGIN_ADMIN.PARENT_PAGE
classes: fancy
data-options@: '\Grav\Common\Page\Pages::parentsRawRoutes'
data-default@: '\Grav\Plugin\admin::getLastPageRoute'
options:
'/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT
validate:
required: true
name:
type: select
classes: fancy
label: PLUGIN_ADMIN.PAGE_FILE
help: PLUGIN_ADMIN.PAGE_FILE_HELP
data-options@: '\Grav\Common\Page\Pages::types'
data-default@: '\Grav\Plugin\admin::getLastPageName'
validate:
required: true
visible:
type: toggle
label: PLUGIN_ADMIN.VISIBLE
help: PLUGIN_ADMIN.VISIBLE_HELP
highlight: ''
default: ''
options:
'': Auto
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
required: true
blueprint:
type: blueprint

View File

@@ -1,35 +0,0 @@
rules:
slug:
pattern: "[a-z][a-z0-9_\-]+"
min: 2
max: 80
form:
validation: loose
fields:
section:
type: section
title: PLUGIN_ADMIN.ADD_FOLDER
folder:
type: text
label: PLUGIN_ADMIN.FOLDER_NAME
help: PLUGIN_ADMIN.FOLDER_NAME_HELP
validate:
type: slug
required: true
route:
type: select
label: PLUGIN_ADMIN.PARENT_PAGE
classes: fancy
data-options@: '\Grav\Common\Page\Pages::parentsRawRoutes'
data-default@: '\Grav\Plugin\admin::getLastPageRoute'
options:
'/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT
validate:
required: true
blueprint:
type: blueprint

View File

@@ -1,105 +0,0 @@
rules:
slug:
pattern: "[a-z][a-z0-9_\-]+"
min: 2
max: 80
form:
validation: loose
fields:
tabs:
type: tabs
active: 1
fields:
content:
type: tab
title: PLUGIN_ADMIN.CONTENT
fields:
frontmatter:
classes: frontmatter
type: editor
label: PLUGIN_ADMIN.FRONTMATTER
autofocus: true
codemirror:
mode: 'yaml'
indentUnit: 4
autofocus: true
indentWithTabs: false
lineNumbers: true
styleActiveLine: true
gutters: ['CodeMirror-lint-markers']
lint: true
content:
type: markdown
uploads:
type: pagemedia
label: PLUGIN_ADMIN.PAGE_MEDIA
options:
type: tab
title: PLUGIN_ADMIN.OPTIONS
fields:
columns:
type: columns
fields:
column1:
type: column
fields:
ordering:
type: toggle
label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
folder:
type: text
label: PLUGIN_ADMIN.FOLDER_NAME
help: PLUGIN_ADMIN.FOLDER_NAME_HELP
validate:
type: slug
required: true
route:
type: select
label: PLUGIN_ADMIN.PARENT
classes: fancy
data-options@: '\Grav\Common\Page\Pages::parentsRawRoutes'
data-default@: '\Grav\Plugin\admin::rawRoute'
options:
'/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT
name:
type: select
classes: fancy
label: PLUGIN_ADMIN.DISPLAY_TEMPLATE
help: PLUGIN_ADMIN.DISPLAY_TEMPLATE_HELP
default: default
data-options@: '\Grav\Common\Page\Pages::types'
validate:
required: true
column2:
type: column
fields:
order:
type: order
label: PLUGIN_ADMIN.ORDERING
blueprint:
type: blueprint

View File

@@ -1,4 +1,4 @@
title: Site
title: Account
form:
validation: loose
@@ -8,12 +8,18 @@ form:
type: userinfo
size: large
avatar:
type: file
size: large
destination: 'user://accounts/avatars'
multiple: false
random_name: true
content:
type: section
title: PLUGIN_ADMIN.ACCOUNT
underline: true
username:
type: text
size: large
@@ -37,7 +43,7 @@ form:
validate:
required: false
message: PLUGIN_ADMIN.PASSWORD_VALIDATION_MESSAGE
pattern: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
config-pattern@: system.pwd_regex
fullname:
type: text
@@ -56,10 +62,41 @@ form:
label: PLUGIN_ADMIN.LANGUAGE
size: medium
classes: fancy
data-options@: '\Grav\Plugin\admin::adminLanguages'
data-options@: '\Grav\Plugin\Admin\Admin::adminLanguages'
default: 'en'
help: PLUGIN_ADMIN.LANGUAGE_HELP
twofa_check:
type: conditional
condition: config.plugins.admin.twofa_enabled
fields:
twofa:
title: PLUGIN_ADMIN.2FA_TITLE
type: section
underline: true
twofa_enabled:
type: toggle
label: PLUGIN_ADMIN.2FA_ENABLED
classes: twofa-toggle
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
twofa_secret:
type: 2fa_secret
outerclasses: 'twofa-secret'
label: PLUGIN_ADMIN.2FA_SECRET
sublabel: PLUGIN_ADMIN.2FA_SECRET_HELP
security:
title: PLUGIN_ADMIN.ACCESS_LEVELS
type: section
@@ -68,25 +105,19 @@ form:
fields:
groups:
type: selectize
type: select
multiple: true
size: large
label: PLUGIN_ADMIN.GROUPS
data-options@: '\Grav\User\Groups::groups'
data-options@: '\Grav\Common\User\Group::groupNames'
classes: fancy
help: PLUGIN_ADMIN.GROUPS_HELP
validate:
type: commalist
access.admin:
type: array
label: PLUGIN_ADMIN.ADMIN_ACCESS
multiple: false
validate:
type: array
access.site:
type: array
label: PLUGIN_ADMIN.SITE_ACCESS
multiple: false
access:
type: permissions
label: PLUGIN_ADMIN.PERMISSIONS
ignore_empty: true
validate:
type: array

View File

@@ -29,16 +29,9 @@ form:
size: small
label: PLUGIN_ADMIN_PRO.ICON
access.admin:
type: array
label: PLUGIN_ADMIN.ADMIN_ACCESS
multiple: false
validate:
type: array
access.site:
type: array
label: PLUGIN_ADMIN.SITE_ACCESS
multiple: false
access:
type: permissions
label: PLUGIN_ADMIN.PERMISSIONS
ignore_empty: true
validate:
type: array

View File

@@ -18,7 +18,7 @@ types:
mime: image/jpeg
jpeg:
type: image
thumb: media/thumb-jpeg.png
thumb: media/thumb-jpg.png
mime: image/jpeg
png:
type: image
@@ -28,12 +28,10 @@ types:
type: animated
thumb: media/thumb-gif.png
mime: image/gif
svg:
type: vector
thumb: media/thumb.png
thumb: media/thumb-svg.png
mime: image/svg+xml
mp4:
type: video
thumb: media/thumb-mp4.png
@@ -55,14 +53,13 @@ types:
thumb: media/thumb-flv.png
mime: video/x-flv
webm:
type: video
thumb: media/thumb.png
type: file
thumb: media/thumb-webm.png
mime: video/webm
ogv:
type: video
thumb: media/thumb-ogg.png
mime: video/ogg
mp3:
type: audio
thumb: media/thumb-mp3.png
@@ -85,11 +82,12 @@ types:
mime: audio/wav
aiff:
type: audio
thumb: media/thumb-aif.png
mime: audio/aiff
aif:
type: audio
thumb: media/thumb-aif.png
mime: audio/aif
txt:
type: file
thumb: media/thumb-txt.png
@@ -104,66 +102,60 @@ types:
mime: application/msword
docx:
type: file
thumb: media/thumb-docx.png
mime: application/msword
xls:
type: file
thumb: media/thumb-xls.png
mime: application/vnd.ms-excel
xlt:
type: file
mime: application/vnd.ms-excel
xlm:
type: file
mime: application/vnd.ms-excel
xlsm:
type: file
mime: application/vnd.ms-excel
xld:
type: file
mime: application/vnd.ms-excel
xla:
type: file
mime: application/vnd.ms-excel
xlc:
type: file
mime: application/vnd.ms-excel
xlw:
type: file
mime: application/vnd.ms-excel
xll:
xlsx:
type: file
thumb: media/thumb-xlsx.png
mime: application/vnd.ms-excel
ppt:
type: file
thumb: media/thumb-ppt.png
mime: application/vnd.ms-powerpoint
pptx:
type: file
thumb: media/thumb-pptx.png
mime: application/vnd.ms-powerpoint
pps:
type: file
thumb: media/thumb-pps.png
mime: application/vnd.ms-powerpoint
rtf:
type: file
thumb: media/thumb-rtf.png
mime: application/rtf
bmp:
type: file
thumb: media/thumb-bmp.png
mime: image/bmp
tiff:
type: file
thumb: media/thumb-tiff.png
mime: image/tiff
mpeg:
type: file
thumb: media/thumb-mpg.png
mime: video/mpeg
mpg:
type: file
thumb: media/thumb-mpg.png
mime: video/mpeg
mpe:
type: file
thumb: media/thumb-mpe.png
mime: video/mpeg
avi:
type: file
thumb: media/thumb-avi.png
mime: video/msvideo
wmv:
type: file
thumb: media/thumb-wmv.png
mime: video/x-ms-wmv
html:
type: file
thumb: media/thumb-html.png
@@ -172,17 +164,29 @@ types:
type: file
thumb: media/thumb-html.png
mime: text/html
ics:
type: iCal
thumb: media/thumb-ics.png
mime: text/calendar
pdf:
type: file
thumb: media/thumb-pdf.png
mime: application/pdf
ai:
type: file
thumb: media/thumb-ai.png
mime: image/ai
psd:
type: file
thumb: media/thumb-psd.png
mime: image/psd
zip:
type: file
thumb: media/thumb-zip.png
mime: application/zip
7z:
type: file
thumb: media/thumb-7zip.png
thumb: media/thumb-7z.png
mime: application/x-7z-compressed
gz:
type: file
@@ -190,6 +194,7 @@ types:
mime: application/gzip
tar:
type: file
thumb: media/thumb-tar.png
mime: application/x-tar
css:
type: file
@@ -203,4 +208,3 @@ types:
type: file
thumb: media/thumb-json.png
mime: application/json

View File

@@ -1,4 +1,5 @@
title: Grav # Name of the site
default_lang: en # Default language for site (potentially used by theme)
author:
name: John Appleseed # Default author name

View File

@@ -1,137 +1,146 @@
absolute_urls: false # Absolute or relative URLs for `base_url`
timezone: '' # Valid values: http://php.net/manual/en/timezones.php
default_locale: # Default locale (defaults to system)
param_sep: ':' # Parameter separator, use ';' for Apache on windows
wrapped_site: false # For themes/plugins to know if Grav is wrapped by another platform
reverse_proxy_setup: false # Running in a reverse proxy scenario with different webserver ports than proxy
force_ssl: false # If enabled, Grav forces to be accessed via HTTPS (NOTE: Not an ideal solution)
custom_base_url: '' # Set the base_url manually
absolute_urls: false # Absolute or relative URLs for `base_url`
timezone: '' # Valid values: http://php.net/manual/en/timezones.php
default_locale: # Default locale (defaults to system)
param_sep: ':' # Parameter separator, use ';' for Apache on windows
wrapped_site: false # For themes/plugins to know if Grav is wrapped by another platform
reverse_proxy_setup: false # Running in a reverse proxy scenario with different webserver ports than proxy
force_ssl: false # If enabled, Grav forces to be accessed via HTTPS (NOTE: Not an ideal solution)
custom_base_url: '' # Set the base_url manually, e.g. http://yoursite.com/yourpath
username_regex: '^[a-z0-9_-]{3,16}$' # Only lowercase chars, digits, dashes, underscores. 3 - 16 chars
pwd_regex: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}' # At least one number, one uppercase and lowercase letter, and be at least 8+ chars
languages:
supported: [] # List of languages supported. eg: [en, fr, de]
include_default_lang: true # Include the default lang prefix in all URLs
translations: true # Enable translations by default
translations_fallback: true # Fallback through supported translations if active lang doesn't exist
session_store_active: false # Store active language in session
http_accept_language: false # Attempt to set the language based on http_accept_language header in the browser
override_locale: false # Override the default or system locale with language specific one
supported: [] # List of languages supported. eg: [en, fr, de]
include_default_lang: true # Include the default lang prefix in all URLs
translations: true # Enable translations by default
translations_fallback: true # Fallback through supported translations if active lang doesn't exist
session_store_active: false # Store active language in session
http_accept_language: false # Attempt to set the language based on http_accept_language header in the browser
override_locale: false # Override the default or system locale with language specific one
home:
alias: '/home' # Default path for home, ie /
hide_in_urls: false # Hide the home route in URLs
alias: '/home' # Default path for home, ie /
hide_in_urls: false # Hide the home route in URLs
pages:
theme: antimatter # Default theme (defaults to "antimatter" theme)
theme: antimatter # Default theme (defaults to "antimatter" theme)
order:
by: default # Order pages by "default", "alpha" or "date"
dir: asc # Default ordering direction, "asc" or "desc"
by: default # Order pages by "default", "alpha" or "date"
dir: asc # Default ordering direction, "asc" or "desc"
list:
count: 20 # Default item count per page
count: 20 # Default item count per page
dateformat:
default: # The default date format Grav expects in the `date: ` field
short: 'jS M Y' # Short date format
long: 'F jS \a\t g:ia' # Long date format
publish_dates: true # automatically publish/unpublish based on dates
default: # The default date format Grav expects in the `date: ` field
short: 'jS M Y' # Short date format
long: 'F jS \a\t g:ia' # Long date format
publish_dates: true # automatically publish/unpublish based on dates
process:
markdown: true # Process Markdown
twig: false # Process Twig
twig_first: false # Process Twig before markdown when processing both on a page
markdown: true # Process Markdown
twig: false # Process Twig
twig_first: false # Process Twig before markdown when processing both on a page
never_cache_twig: false # Only cache content, never cache twig processed in content (incompatible with `twig_first: true`)
events:
page: true # Enable page level events
twig: true # Enable Twig level events
page: true # Enable page level events
twig: true # Enable Twig level events
markdown:
extra: false # Enable support for Markdown Extra support (GFM by default)
auto_line_breaks: false # Enable automatic line breaks
auto_url_links: false # Enable automatic HTML links
escape_markup: false # Escape markup tags into entities
special_chars: # List of special characters to automatically convert to entities
extra: false # Enable support for Markdown Extra support (GFM by default)
auto_line_breaks: false # Enable automatic line breaks
auto_url_links: false # Enable automatic HTML links
escape_markup: false # Escape markup tags into entities
special_chars: # List of special characters to automatically convert to entities
'>': 'gt'
'<': 'lt'
types: [txt,xml,html,htm,json,rss,atom] # list of valid page types
append_url_extension: '' # Append page's extension in Page urls (e.g. '.html' results in /path/page.html)
expires: 604800 # Page expires time in seconds (604800 seconds = 7 days)
last_modified: false # Set the last modified date header based on file modifcation timestamp
etag: false # Set the etag header tag
vary_accept_encoding: false # Add `Vary: Accept-Encoding` header
redirect_default_route: false # Automatically redirect to a page's default route
redirect_default_code: 301 # Default code to use for redirects
redirect_trailing_slash: true # Handle automatically or 301 redirect a trailing / URL
ignore_files: [.DS_Store] # Files to ignore in Pages
ignore_folders: [.git, .idea] # Folders to ignore in Pages
ignore_hidden: true # Ignore all Hidden files and folders
url_taxonomy_filters: true # Enable auto-magic URL-based taxonomy filters for page collections
types: [txt,xml,html,htm,json,rss,atom] # list of valid page types
append_url_extension: '' # Append page's extension in Page urls (e.g. '.html' results in /path/page.html)
expires: 604800 # Page expires time in seconds (604800 seconds = 7 days)
cache_control: # Can be blank for no setting, or a valid `cache-control` text value
last_modified: false # Set the last modified date header based on file modification timestamp
etag: false # Set the etag header tag
vary_accept_encoding: false # Add `Vary: Accept-Encoding` header
redirect_default_route: false # Automatically redirect to a page's default route
redirect_default_code: 302 # Default code to use for redirects
redirect_trailing_slash: true # Handle automatically or 302 redirect a trailing / URL
ignore_files: [.DS_Store] # Files to ignore in Pages
ignore_folders: [.git, .idea] # Folders to ignore in Pages
ignore_hidden: true # Ignore all Hidden files and folders
url_taxonomy_filters: true # Enable auto-magic URL-based taxonomy filters for page collections
frontmatter:
process_twig: false # Should the frontmatter be processed to replace Twig variables?
ignore_fields: ['form','forms'] # Fields that might contain Twig variables and should not be processed
process_twig: false # Should the frontmatter be processed to replace Twig variables?
ignore_fields: ['form','forms'] # Fields that might contain Twig variables and should not be processed
cache:
enabled: true # Set to true to enable caching
enabled: true # Set to true to enable caching
check:
method: file # Method to check for updates in pages: file|folder|hash|none
driver: auto # One of: auto|file|apc|xcache|memcache|wincache
prefix: 'g' # Cache prefix string (prevents cache conflicts)
lifetime: 604800 # Lifetime of cached data in seconds (0 = infinite)
gzip: false # GZip compress the page output
method: file # Method to check for updates in pages: file|folder|hash|none
driver: auto # One of: auto|file|apc|xcache|memcache|wincache
prefix: 'g' # Cache prefix string (prevents cache conflicts)
clear_images_by_default: true # By default grav will include processed images in cache clear, this can be disabled
cli_compatibility: false # Ensures only non-volatile drivers are used (file, redis, memcache, etc.)
lifetime: 604800 # Lifetime of cached data in seconds (0 = infinite)
gzip: false # GZip compress the page output
allow_webserver_gzip: false # If true, `content-encoding: identity` but connection isn't closed before `onShutDown()` event
redis:
socket: false # Path to redis unix socket (e.g. /var/run/redis/redis.sock), false = use server and port to connect
socket: false # Path to redis unix socket (e.g. /var/run/redis/redis.sock), false = use server and port to connect
twig:
cache: true # Set to true to enable Twig caching
debug: true # Enable Twig debug
auto_reload: true # Refresh cache on changes
autoescape: false # Autoescape Twig vars
undefined_functions: true # Allow undefined functions
undefined_filters: true # Allow undefined filters
umask_fix: false # By default Twig creates cached files as 755, fix switches this to 775
cache: true # Set to true to enable Twig caching
debug: true # Enable Twig debug
auto_reload: true # Refresh cache on changes
autoescape: false # Autoescape Twig vars
undefined_functions: true # Allow undefined functions
undefined_filters: true # Allow undefined filters
umask_fix: false # By default Twig creates cached files as 755, fix switches this to 775
assets: # Configuration for Assets Manager (JS, CSS)
css_pipeline: false # The CSS pipeline is the unification of multiple CSS resources into one file
css_pipeline_include_externals: true # Include external URLs in the pipeline by default
css_pipeline_before_excludes: true # Render the pipeline before any excluded files
css_minify: true # Minify the CSS during pipelining
css_minify_windows: false # Minify Override for Windows platforms. False by default due to ThreadStackSize
css_rewrite: true # Rewrite any CSS relative URLs during pipelining
js_pipeline: false # The JS pipeline is the unification of multiple JS resources into one file
js_pipeline_include_externals: true # Include external URLs in the pipeline by default
js_pipeline_before_excludes: true # Render the pipeline before any excluded files
js_minify: true # Minify the JS during pipelining
enable_asset_timestamp: false # Enable asset timestamps
assets: # Configuration for Assets Manager (JS, CSS)
css_pipeline: false # The CSS pipeline is the unification of multiple CSS resources into one file
css_pipeline_include_externals: true # Include external URLs in the pipeline by default
css_pipeline_before_excludes: true # Render the pipeline before any excluded files
css_minify: true # Minify the CSS during pipelining
css_minify_windows: false # Minify Override for Windows platforms. False by default due to ThreadStackSize
css_rewrite: true # Rewrite any CSS relative URLs during pipelining
js_pipeline: false # The JS pipeline is the unification of multiple JS resources into one file
js_pipeline_include_externals: true # Include external URLs in the pipeline by default
js_pipeline_before_excludes: true # Render the pipeline before any excluded files
js_minify: true # Minify the JS during pipelining
enable_asset_timestamp: false # Enable asset timestamps
collections:
jquery: system://assets/jquery/jquery-2.x.min.js
errors:
display: 0 # Display either (1) Full backtrace | (0) Simple Error | (-1) System Error
log: true # Log errors to /logs folder
display: 0 # Display either (1) Full backtrace | (0) Simple Error | (-1) System Error
log: true # Log errors to /logs folder
debugger:
enabled: false # Enable Grav debugger and following settings
enabled: false # Enable Grav debugger and following settings
shutdown:
close_connection: true # Close the connection before calling onShutdown(). false for debugging
close_connection: true # Close the connection before calling onShutdown(). false for debugging
images:
default_image_quality: 85 # Default image quality to use when resampling images (85%)
cache_all: false # Cache all image by default
cache_perms: '0755' # MUST BE IN QUOTES!! Default cache folder perms. Usually '0755' or '0775'
debug: false # Show an overlay over images indicating the pixel depth of the image when working with retina for example
auto_fix_orientation: false # Automatically fix the image orientation based on the Exif data
default_image_quality: 85 # Default image quality to use when resampling images (85%)
cache_all: false # Cache all image by default
cache_perms: '0755' # MUST BE IN QUOTES!! Default cache folder perms. Usually '0755' or '0775'
debug: false # Show an overlay over images indicating the pixel depth of the image when working with retina for example
auto_fix_orientation: false # Automatically fix the image orientation based on the Exif data
media:
enable_media_timestamp: false # Enable media timetsamps
upload_limit: 0 # Set maximum upload size in bytes (0 is unlimited)
unsupported_inline_types: [] # Array of supported media types to try to display inline
allowed_fallback_types: [] # Array of allowed media types of files found if accessed via Page route
enable_media_timestamp: false # Enable media timestamps
upload_limit: 0 # Set maximum upload size in bytes (0 is unlimited)
unsupported_inline_types: [] # Array of supported media types to try to display inline
allowed_fallback_types: [] # Array of allowed media types of files found if accessed via Page route
auto_metadata_exif: false # Automatically create metadata files from Exif data where possible
session:
enabled: true # Enable Session support
timeout: 1800 # Timeout in seconds
name: grav-site # Name prefix of the session cookie. Use alphanumeric, dashes or underscores only. Do not use dots in the session name
secure: false # Set session secure. If true, indicates that communication for this cookie must be over an encrypted transmission. Enable this only on sites that run exclusively on HTTPS
httponly: true # Set session HTTP only. If true, indicates that cookies should be used only over HTTP, and JavaScript modification is not allowed.
split: true # Sessions should be independent between site and plugins (such as admin)
enabled: true # Enable Session support
timeout: 1800 # Timeout in seconds
name: grav-site # Name prefix of the session cookie. Use alphanumeric, dashes or underscores only. Do not use dots in the session name
secure: false # Set session secure. If true, indicates that communication for this cookie must be over an encrypted transmission. Enable this only on sites that run exclusively on HTTPS
httponly: true # Set session HTTP only. If true, indicates that cookies should be used only over HTTP, and JavaScript modification is not allowed.
split: true # Sessions should be independent between site and plugins (such as admin)
path:
gpm:
releases: stable # Set to either 'stable' or 'testing'
proxy_url: # Configure a manual proxy URL for GPM (eg 127.0.0.1:3128)
method: 'auto' # Either 'curl', 'fopen' or 'auto'. 'auto' will try fopen first and if not available cURL
verify_peer: true # Sometimes on some systems (Windows most commonly) GPM is unable to connect because the SSL certificate cannot be verified. Disabling this setting might help.
releases: stable # Set to either 'stable' or 'testing'
proxy_url: # Configure a manual proxy URL for GPM (eg 127.0.0.1:3128)
method: 'auto' # Either 'curl', 'fopen' or 'auto'. 'auto' will try fopen first and if not available cURL
verify_peer: true # Sometimes on some systems (Windows most commonly) GPM is unable to connect because the SSL certificate cannot be verified. Disabling this setting might help.
official_gpm_only: true # By default GPM direct-install will only allow URLs via the official GPM proxy to ensure security

View File

@@ -2,16 +2,19 @@
/**
* @package Grav.Core
*
* @copyright Copyright (C) 2014 - 2016 RocketTheme, LLC. All rights reserved.
* @copyright Copyright (C) 2014 - 2017 RocketTheme, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
// Some standard defines
define('GRAV', true);
define('GRAV_VERSION', '1.1.8');
define('GRAV_TESTING', false);
define('GRAV_VERSION', '1.3.4');
//define('GRAV_TESTING', true);
define('DS', '/');
define('GRAV_PHP_MIN', '5.5.9');
if (!defined('GRAV_PHP_MIN')) {
define('GRAV_PHP_MIN', '5.5.9');
}
// Directories and Paths
if (!defined('GRAV_ROOT')) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Some files were not shown because too many files have changed in this diff Show More