Compare commits

...

199 Commits

Author SHA1 Message Date
Andy Miller
acea401a3d Merge branch 'release/1.3.8' 2017-10-26 18:37:27 -06:00
Andy Miller
0ec7158102 Prepare for release 2017-10-26 18:37:17 -06:00
Andy Miller
d3695b2faa Fixed missing image file not throwing 404 p#1713 2017-10-23 16:19:08 -06:00
Andy Miller
0668a47758 Fixed GPM update issue with filtered slugs #1711 2017-10-23 16:13:22 -06:00
Andy Miller
ca645ef476 updated changelog 2017-10-19 22:13:36 -04:00
Andy Miller
3ff5f79561 Added manual order capability to Page media 2017-10-19 22:10:12 -04:00
Djamil Legato
b5c8b70163 More media order changes 2017-10-19 18:01:37 -04:00
Djamil Legato
173a70c017 Updated default yaml with media order 2017-10-19 17:39:10 -04:00
Benoît Rouleau
eb52f670b9 fix nonsense logic (#1709) 2017-10-19 16:53:31 -04:00
Sam
dd166ce25c Update CONTRIBUTING.md copywriting (#1706) 2017-10-19 09:19:03 -04:00
Andy Miller
ea6423226a Merge branch 'release/1.3.7' 2017-10-18 16:35:41 -04:00
Andy Miller
85bf4406ed Merge tag '1.3.7' into develop
Release v1.3.7
2017-10-18 16:35:41 -04:00
Andy Miller
0cb8e0664e Prepare for release 2017-10-18 16:35:27 -04:00
Matias Griese
2842b8fa39 Fixed routing paths with urlencoded spaces and non-latin letters (#1688) 2017-10-17 14:40:30 +03:00
Matias Griese
317615854a Uri: Prefer using REQUEST_SCHEME instead of HTTPS (#1698) 2017-10-17 13:34:25 +03:00
Matias Griese
a9c82710a6 Regression: base_url_absolute always has the port number (#1690) 2017-10-16 12:36:06 +03:00
Matias Griese
3856a2a719 Add unit test for #1688 2017-10-16 11:13:25 +03:00
Viktor
880128c339 Update Grav Console Cli InstallCommand.php (#1692)
why do I have to clone the entire history of the plugin?
2017-10-13 08:34:39 -06:00
Andy Miller
444b48f788 Merge branch 'release/1.3.6' 2017-10-12 12:26:29 -06:00
Andy Miller
cc69591799 Merge tag '1.3.6' into develop
Release v1.3.6
2017-10-12 12:26:29 -06:00
Andy Miller
0d6f774386 Prepare for release 2017-10-12 12:26:12 -06:00
Andy Miller
474ca513ae Fix for nginx and _url issue
[admin#1244](https://github.com/getgrav/grav-plugin-admin/issues/1244)
2017-10-12 12:23:49 -06:00
Matias Griese
f37c08f341 Regression: Ajax error in ngnix (#1244) 2017-10-12 21:18:34 +03:00
Matias Griese
92afba0e28 Add test case for #1244 2017-10-12 18:36:10 +03:00
Andy Miller
974fc552c5 Added another complex test 2017-10-11 19:24:16 -06:00
Andy Miller
d39ff74dd7 Merge branch 'release/1.3.5' 2017-10-11 14:49:28 -06:00
Andy Miller
9e1170bd50 Merge tag '1.3.5' into develop
Release v1.3.5
2017-10-11 14:49:28 -06:00
Andy Miller
081489dc6e Prepare for release 2017-10-11 14:49:16 -06:00
Andy Miller
710cd23bf9 updated changelog 2017-10-11 14:46:24 -06:00
Andy Miller
296a1fbc7d Override system.media.upload_limit with PHP's post_max_size or upload_max_filesize 2017-10-11 14:23:28 -06:00
Andy Miller
68503e117e Fix for logout nonce 2017-10-11 14:13:51 -06:00
Andy Miller
4d32b1dbbe updated changelog 2017-10-11 11:19:35 -06:00
Andy Miller
156588a75c Fix for bugs arising from last PR merge 2017-10-11 11:15:37 -06:00
Paul Massendari
df63a85f3e Specify type in inlineJS (#1683)
This commit allows users to specify type to inlineJS via a 4th parameter . 

This might be useful for those who would like to output encoded json microdata which require to use 
<script type="application/ld+json"> to be valid. 

Exemple usage: $assets->addInlineJs($outputjson, 100,'', "application/ld+json");
which will output: <script type="application/ld+json">
2017-10-11 11:05:01 -06:00
Fabien Villepinte
7ccba91792 Method Grav\Console\Gpm\InstallCommand::processPackage() invoked with 3 parameters, 1-2 required. (#1682) 2017-10-11 11:03:09 -06:00
Andy Miller
e23d245091 URI class improvements (#1681)
* Clean up and simplify Uri code

* Rewrite and clean up Uri class (fixes broken test cases)

* Fix some more Uri bugs based on new unit tests

* Removed double encoding

* Added html_entity_decode on params to handle UTF8 chars

* Uri: Fix protocol/host omitting URLs and default ports

* Added support for `$uri->toArray()` and `(string)$uri`

* Fixed bug in `Uri::buildParams()` causing parameters to be repeated

* Fixed double // in `Uri::addNonce()` when URL ends to slash, added tests for nonce

* Fixed nonce generation for URLs which contain query params or anchor

* Added a test for UTF-8 params

* Removed troublesome test!
2017-10-11 10:29:51 -06:00
Matias Griese
4dde506216 Add Uri tests for some more attacks 2017-10-05 20:31:06 +03:00
Matias Griese
c532cb7d45 Update Uri tests (including 11 failing tests) 2017-10-05 19:25:18 +03:00
Andy Miller
15ec8fe303 Slight optimization to clean path 2017-10-03 21:05:32 -06:00
Andy Miller
2fb77bb4ad Also clean path with extra slashes and backslashes 2017-10-03 21:00:22 -06:00
Andy Miller
b8a0903b88 Deter XSS attacks via URI 2017-10-03 17:44:10 -06:00
Andy Miller
680a6c8983 Added a new http_status_code Twig function 2017-10-02 17:33:43 -06:00
Andy Miller
28b8628438 Updated clean command to remove extraneous files 2017-09-30 11:07:08 -06:00
Andy Miller
a7c2505f36 Merge branch 'release/1.3.4' 2017-09-29 16:55:54 -06:00
Andy Miller
017e4373fb Merge tag '1.3.4' into develop
Release v1.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
228 changed files with 3123 additions and 1176 deletions

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]

View File

@@ -1,5 +1,169 @@
# v1.3.8
## 10/26/2017
1. [](#new)
* Added Page `media_order` capability to manually order page media via a page header
1. [](#bugfix)
* Fixed GPM update issue with filtered slugs [#1711](https://github.com/getgrav/grav/issues/1711)
* Fixed issue with missing image file not throwing 404 properly [#1713](https://github.com/getgrav/grav/issues/1713)
# v1.3.7
## 10/18/2017
1. [](#bugfix)
* Regression Uri: `base_url_absolute` always has the port number [#1690](https://github.com/getgrav/grav-plugin-admin/issues/1690)
* Uri: Prefer using REQUEST_SCHEME instead of HTTPS [#1698](https://github.com/getgrav/grav-plugin-admin/issues/1698)
* Fixed routing paths with urlencoded spaces and non-latin letters [#1688](https://github.com/getgrav/grav-plugin-admin/issues/1688)
# v1.3.6
## 10/12/2017
1. [](#bugfix)
* Regression: Ajax error in Nginx [admin#1244](https://github.com/getgrav/grav-plugin-admin/issues/1244)
* Remove the `_url=$uri` portion of the the Nginx `try_files` command [admin#1244](https://github.com/getgrav/grav-plugin-admin/issues/1244)
# v1.3.5
## 10/11/2017
1. [](#improved)
* Refactored `URI` class with numerous bug fixes, and optimizations
* Override `system.media.upload_limit` with PHP's `post_max_size` or `upload_max_filesize`
* Updated `bin/grav clean` command to remove unnecessary vendor files (save some bytes)
* Added a `http_status_code` Twig function to allow setting HTTP status codes from Twig directly.
* Deter XSS attacks via URI path/uri methods (credit:newbthenewbd)
* Added support for `$uri->toArray()` and `(string)$uri`
* Added support for `type` on `Asstes::addInlineJs()` [#1683](https://github.com/getgrav/grav/pull/1683)
1. [](#bugfix)
* Fixed method signature error with `GPM\InstallCommand::processPackage()` [#1682](https://github.com/getgrav/grav/pull/1682)
# 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
## 15/16/2017
## 05/16/2017
1. [](#new)
* Added support for a single array field in the forms
@@ -25,7 +189,7 @@
## 04/24/2017
1. [](#improved)
* Added optional ignores for `Installer::sophisticatedInstall()` [#1447](https://github.com/getgrav/grav/issues/1447)
* 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)

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

@@ -12,7 +12,7 @@ patches and features.
## Grav, Plugins, Themes and Skeletons
Grav is a large open source projectit's made up of over 100 repositories. When you initially consider contributing to Grav, you might be unsure about which of those 200 repositories implements the functionality you want to change or report a bug for.
Grav is a large open source projectit's made up of over 100 repositories. When you initially consider contributing to Grav, you might be unsure about which of those 200 repositories implements the functionality you want to change or report a bug for.
[https://github.com/getgrav/grav](https://github.com/getgrav/grav) is the main Grav repository. The core of Grav is provided by this repo.
@@ -60,20 +60,20 @@ Guidelines for bug reports:
A good bug report shouldn't leave others needing to chase you up for more
information. Please try to be as detailed as possible in your report.
What is your environment? Is it localhost, OSX, Linux, on a remote server? Same happening locally and or the server, or just locally or just on Linux?
- What is your environment? Is it localhost, OSX, Linux, on a remote server? Same happening locally and or the server, or just locally or just on Linux?
What steps will reproduce the issue? What browser(s) and OS experience the problem?
- What steps will reproduce the issue? What browser(s) and OS experience the problem?
What would you expect to be the outcome?
- What would you expect to be the outcome?
Did the problem start happening recently (e.g. after updating to a new version of Grav) or was this always a problem?
- Did the problem start happening recently (e.g. after updating to a new version of Grav) or was this always a problem?
If the problem started happening recently, can you reproduce the problem in an older version of Grav? What's the most recent version in which the problem doesn't happen? You can download older versions of Grav from the releases page on Github.
- If the problem started happening recently, can you reproduce the problem in an older version of Grav? What's the most recent version in which the problem doesn't happen? You can download older versions of Grav from the releases page on Github.
Can you reliably reproduce the issue? If not, provide details about how often the problem happens and under which conditions it normally happens.
- Can you reliably reproduce the issue? If not, provide details about how often the problem happens and under which conditions it normally happens.
All these details will help people to fix any potential bugs.
All these details will help contributors to fix any potential bugs.
Important: [include Code Samples in triple backticks](https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks) so that Github will provide a proper indentation. [Add the language name after the backticks](https://help.github.com/articles/github-flavored-markdown/#syntax-highlighting) to add syntax highlighting to the code snippets.
@@ -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

View File

@@ -83,17 +83,10 @@ $ 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

View File

@@ -15,12 +15,12 @@
"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": "~2.0",
"gregwar/image": "2.*",
"donatj/phpuseragentparser": "~0.3",
"pimple/pimple": "~3.0",
"rockettheme/toolbox": "~1.0",
@@ -31,13 +31,21 @@
"ext-zip": "*",
"league/climate": "^3.2",
"antoligy/dom-string-iterators": "^1.0",
"miljar/php-exif": "^0.6.3"
"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"

534
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -22,15 +22,15 @@ form:
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:
@@ -377,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
@@ -508,6 +514,17 @@ form:
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
@@ -599,6 +616,12 @@ form:
help: PLUGIN_ADMIN.REDIS_PORT_HELP
placeholder: "6379"
cache.redis.password:
type: text
size: small
label: PLUGIN_ADMIN.REDIS_PASSWORD
twig:
type: section
@@ -789,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
@@ -862,7 +887,6 @@ form:
append: '%'
label: PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY
help: PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY_HELP
classes: x-small
validate:
min: 1
max: 100
@@ -910,15 +934,6 @@ form:
validate:
type: bool
media.upload_limit:
type: text
append: bytes
label: PLUGIN_ADMIN.UPLOAD_LIMIT
help: PLUGIN_ADMIN.UPLOAD_LIMIT_HELP
classes: small
validate:
type: number
media.enable_media_timestamp:
type: toggle
label: PLUGIN_ADMIN.ENABLE_MEDIA_TIMESTAMP
@@ -987,7 +1002,7 @@ form:
help: PLUGIN_ADMIN.TIMEOUT_HELP
validate:
type: number
min: 1
min: 0
session.name:
type: text
@@ -1139,6 +1154,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

View File

@@ -32,7 +32,7 @@ form:
validate:
type: textarea
uploads:
header.media_order:
type: pagemedia
label: PLUGIN_ADMIN.PAGE_MEDIA

View File

@@ -25,7 +25,7 @@ form:
content:
unset@: true
uploads:
header.media_order:
unset@: true
header.external_url:

View File

@@ -42,6 +42,6 @@ form:
type: ignore
content:
type: ignore
uploads:
header.media_orider:
type: ignore

View File

@@ -66,6 +66,37 @@ form:
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

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

@@ -53,12 +53,13 @@ pages:
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: 301 # Default code to use for redirects
redirect_trailing_slash: true # Handle automatically or 301 redirect a trailing / URL
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
@@ -73,6 +74,7 @@ cache:
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
@@ -122,7 +124,6 @@ images:
media:
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

View File

@@ -8,8 +8,8 @@
// Some standard defines
define('GRAV', true);
define('GRAV_VERSION', '1.3.0-rc.1');
define('GRAV_TESTING', true);
define('GRAV_VERSION', '1.3.8');
//define('GRAV_TESTING', true);
define('DS', '/');
if (!defined('GRAV_PHP_MIN')) {

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 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: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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