Flavio Copes
8a3636d10f
🐛 Fix Assets::addDir() (add addCssDir/addJsDir) to work as expected
...
Was looking up assets in the /assets folder, which is reserved for
Grav-compiled assets.
Now
- Looks up paths from the Grav ROOT_DIR or from a stream location
- Internally uses Assets::addJs() and Assets::addJs() instead of
directly accessing the assets arrays
- Removed the file extension determination effort already done in
Assets::add(), use Assets::add() instead
2016-01-27 12:08:41 +01:00
Flavio Copes
8a41b2e08d
🎨 Move similar methods near each other.
2016-01-27 11:23:48 +01:00
Flavio Copes
15043e1a11
🐛 In Assets::reset() also reset the inline CSS and inline JS arrays
2016-01-27 10:27:24 +01:00
Andy Miller
24a5c2c03c
Fix for #610 when you have an array of just empty string ['']
2016-01-26 21:34:36 -07:00
Andy Miller
9113c86196
Add other method signature items to internal lookup hash
2016-01-26 17:35:16 -07:00
Andy Miller
06b993181c
typo in buildRootPath() after refactor
2016-01-26 17:34:38 -07:00
Matias Griese
2742f333aa
Merge branches 'develop' and 'feature/blueprints-update' of https://github.com/getgrav/grav into feature/blueprints-update
...
# Conflicts:
# composer.lock
2016-01-26 20:39:08 +02:00
Matias Griese
b6329b1964
Blueprint refactor: Code style
2016-01-26 20:38:13 +02:00
Andy Miller
1df6173041
Merge pull request #588 from getgrav/feature/introduce-testing
...
Introduce testing
2016-01-26 10:54:15 -07:00
Andy Miller
fb50c4a4f0
Merge pull request #623 from getgrav/feature/fix-loading-js-and-css-from-collections
...
Fix loading js and css from collections
2016-01-26 10:53:49 -07:00
Flavio Copes
bce084841e
Ⓜ️ Merge branch 'develop' into feature/introduce-testing
2016-01-26 17:36:12 +01:00
Flavio Copes
172236e58d
🚧 Rename jquery-2.2.0.min.js to jquery-2.x.min.js
...
When stored in the user config, configuration for collections might
still reference old shipped releases. We move to jquery-2.x.min.js for
all future 2.x releases, and we'll have a jquery-3.x.min.js when it's
shipped.
2016-01-26 13:24:29 +01:00
Djamil Legato
a69e7ee7cf
🔙 Restored jQuery 2.1.4 for Backward Compatibility
2016-01-25 10:52:32 -08:00
Flavio Copes
e5493573d5
🐛 Also accept a single group as a string instead of requiring an array
...
In addition to
```yaml
groups:
- a-group
```
also accept
```yaml
groups: a-group
```
syntax.
2016-01-25 17:11:09 +01:00
Flavio Copes
bdbc14b9c1
🐛 If a user belongs to more than one group, if one group gives us a permission we end the loop and take that permission for granted
2016-01-25 16:40:05 +01:00
Flavio Copes
f82b40ef49
Merge branch 'develop' into feature/fix-loading-js-and-css-from-collections
2016-01-25 09:34:01 +01:00
Flavio Copes
7958db6a17
Merge branch 'develop' into feature/introduce-testing
2016-01-25 09:07:00 +01:00
Andy Miller
4e0db8e540
Merge pull request #622 from getgrav/feature/fix-Append-URL-extension-home-link
...
Remove any URL extension for the home link
2016-01-24 18:36:03 -07:00
Andy Miller
85ff412768
Merge pull request #624 from getgrav/feature/update-jquery
...
Update jQuery to 2.2.0
2016-01-24 18:35:37 -07:00
Flavio Copes
a1a75954ae
💫 Drop useless hash fallback, as we always have a system.security.default_hash set
2016-01-24 21:15:07 +01:00
Flavio Copes
c8a5e846c1
Fix permissions when the user has no access level set at all
2016-01-24 20:50:47 +01:00
Flavio Copes
515f257ee3
Update jQuery to 2.2.0
2016-01-22 18:25:24 +01:00
Matias Griese
a69116738f
Blueprint refactor: Fix Blueprint validation
2016-01-22 14:47:05 +02:00
Matias Griese
f87887920a
Blueprint refactor: Fix Blueprint::checkRequired()
2016-01-22 14:39:32 +02:00
Flavio Copes
8cda9a08da
Improve Assets class code style
2016-01-22 13:10:33 +01:00
Flavio Copes
684503245c
Call addCss & addJs instead of add(), as otherwise it will lose group and loading information
2016-01-22 12:59:22 +01:00
Matias Griese
7760f541fb
Blueprint refactor: Fix page blueprints
2016-01-22 13:04:32 +02:00
Matias Griese
4f73fd62c9
Blueprint refactor: Fix missing dynamic properties
2016-01-22 12:49:19 +02:00
Flavio Copes
77c8458fbf
🐛 Fix addJs and addCSS problem
...
Changes supported by tests in
https://github.com/getgrav/grav/commit/27af9432e0fa9a7abb2b6a2e3f3a6f6d1
55a37e9
2016-01-22 10:43:41 +01:00
Matias Griese
80d0c2a405
Blueprint refactor: fix theme thumbnails
2016-01-22 10:07:40 +02:00
Flavio Copes
774cf2d6d0
Recreated an issue in calling with an array of values {% do assets.addJs('jquery', {'loading':'async'}) %} introduced in d5bd99b363
2016-01-22 00:09:14 +01:00
Flavio Copes
8270edbc78
Fix loading js and css from collections
...
Calling add() lose information on
- CSS: $group
- JS: $loading, $group
2016-01-21 21:24:26 +01:00
Matias Griese
b791e8efda
Blueprint refactor: fix site blueprint
2016-01-21 15:38:12 +02:00
Matias Griese
130d039101
Merge branch 'feature/plugin-early' of https://github.com/getgrav/grav into feature/blueprints-update
2016-01-21 14:11:09 +02:00
Matias Griese
ebee88dd39
Update blueprints object version
2016-01-21 14:00:54 +02:00
Matias Griese
ad25462bd5
Merge branches 'develop' and 'feature/plugin-early' of https://github.com/getgrav/grav into feature/plugin-early
...
# Conflicts:
# composer.lock
2016-01-21 13:58:48 +02:00
Flavio Copes
563a990f0d
Also continue to handle Whoops 2.0.0-alpha if installed
2016-01-21 12:51:26 +01:00
Flavio Copes
a9ec2af342
Remove any URL extension for the home link
2016-01-21 12:31:20 +01:00
Flavio Copes
1fdc34b43c
PHPdoc
2016-01-21 12:07:28 +01:00
Flavio Copes
11dc04262b
Fix Whoops APIs after updating Whoops to 2.0
2016-01-21 11:01:44 +01:00
Matias Griese
e686472eeb
Merge branches 'develop' and 'feature/plugin-early' of https://github.com/getgrav/grav into feature/plugin-early
2016-01-21 11:15:22 +02:00
Matias Griese
152a3c4943
Merge branch 'develop' of https://github.com/getgrav/grav into feature/blueprints-update
2016-01-21 10:53:45 +02:00
Matias Griese
9a4830808d
Refactor Blueprints class
2016-01-21 10:11:57 +02:00
Flavio Copes
1616fadfe9
Started testing assets
2016-01-20 10:55:31 +01:00
Andy Miller
e801c8f44e
Added support for absolute_urls: true and page level ssl
2016-01-19 15:48:18 -07:00
Andy Miller
4fa04f6eec
added scheme to URI
2016-01-19 15:46:09 -07:00
Andy Miller
f308587624
add SSL page variable and also force include_host if absolute_urls: true
2016-01-19 15:45:51 -07:00
Flavio Copes
235b7e5ff3
Document Browser
2016-01-19 13:49:39 +01:00
Flavio Copes
68c582a02a
Use unused $locator var
2016-01-19 13:38:03 +01:00
Flavio Copes
d0ef86c9a8
Remove unused variables
2016-01-19 13:37:56 +01:00