Commit Graph

36 Commits

Author SHA1 Message Date
kalenjohnson
0918597d4a First pass at Blade templating 2016-12-03 10:27:22 -08:00
kalenjohnson
3c831356f2 Merge branch 'master' of github.com:roots/sage 2016-12-03 10:22:45 -08:00
kalenjohnson
0af72b8525 Unused use keyword 2016-11-27 18:40:33 -08:00
Ben Word
56c3bb8367 Remove sidebar defaults 2016-11-27 15:04:02 -07:00
Ben Word
d3171d3caa Replace WP codex links with developer.wordpress.org links 2016-11-27 14:56:03 -07:00
Ben Word
78ea970eab Remove post formats 2016-11-27 14:54:47 -07:00
QWp6t
fb19145d42 Theme activation updates 'stylesheet' option instead of 'template' 2016-11-07 00:57:41 -08:00
Kalen Johnson
2124163de0 Namespaces on own line (#1712)
`namespace` declarations appear on their own line in PHP FIG examples as well as in common PHP frameworks. While not officially part of PSR-2, we should still follow this common practice of not putting `namespace` declaration on the same line as `<?php`.

- http://www.php-fig.org/psr/psr-2/
- https://github.com/laravel/laravel/blob/master/app/User.php#L1-L3
- https://github.com/symfony/filesystem/blob/master/Filesystem.php#L1-L12
- https://github.com/zendframework/zend-mail/blob/master/src/Address.php#L1-L10
2016-09-09 04:24:09 -07:00
Ben Word
4fa89c2b80 Fix path, fix permissions [ci skip] 2016-09-04 21:49:54 -06:00
QWp6t
f6bdc7b48c Refactor build routine and switch to airbnb style (#1703)
- Relocate webpack stuff to assets/build
- Switch all js to airbnb code style
- Update webpack to v2.0 (beta)
- Update all other dependencies
- Assets manifest uses relative path as key [1]
- Code should be compatible with Node 4.5.0
- All dependencies have been updated

[1]: Previously the assets manifest would use the basename of a file path as
its key when looking up a cachebusted file. This was to be consistent with
Sage 8. This change makes it so that the relative path is used instead.

To clarify, review the following example.

Before:
```
{
  "main.js": "scripts/main_5f4bfc9a9f82291c6dea.js",
  "main.css": "styles/main_5f4bfc9a9f82291c6dea.css",
  "customizer.js": "scripts/customizer_5f4bfc9a9f82291c6dea.js"
}
```

After:
```
{
  "scripts/main.js":"scripts/main_5f4bfc9a9f82291c6dea.js",
  "styles/main.css":"styles/main_5f4bfc9a9f82291c6dea.css",
  "scripts/customizer.js":"scripts/customizer_5f4bfc9a9f82291c6dea.js"
}
```
2016-09-04 19:13:16 -07:00
johnnyicarus
529b1085f9 Fix path to stylesheet in add_editor_style 2016-07-23 07:58:42 -06:00
QWp6t
eb3a7add85 Rework template wrapper, bring back template_part() 2016-07-15 05:31:02 -07:00
QWp6t
0a71544b83 Fix tpyo 2016-07-15 03:09:09 -07:00
QWp6t
9bfdd5a5f5 Remove unused static variable in Wrapper 2016-07-14 23:17:11 -07:00
QWp6t
96c5969925 Fix Obj->__toString() conditional logic in wrapper 2016-07-14 23:16:45 -07:00
QWp6t
8ee444d7b7 Allow Obj->__toString() in template heirarchy filter 2016-07-14 15:16:00 -07:00
QWp6t
4435d52d01 Wrap templates located outside the theme
Wrapper will now pass through $template if locate_template() turns up zero
results.
2016-07-14 15:00:07 -07:00
Ben Word
4d5bc345d4 Merge pull request #1626 from ptrckvzn/fix-sidebar-templates
is_page_template() requires the name of the subfolder
2016-04-02 22:54:51 -05:00
Patrick Vézina
7fa53e3e37 remove SAGE_ENV; uses webpack -d/-p flags; add config file; subfolders in dist/ 2016-03-15 10:47:02 -04:00
Patrick Vézina
55b9feab25 is_page_template() requires the name of the subfolder 2016-03-15 08:16:59 -04:00
Patrick Vézina
7d1baa0fe7 webpack implementation 2016-03-13 17:08:30 -04:00
QWp6t
b491f76974 All function braces need to be on new line 2016-03-11 18:06:27 -05:00
QWp6t
f598ca9a0b Only use root editorconfig, allow warnings in travis 2016-03-11 18:06:27 -05:00
QWp6t
fe659f4c58 Use 4 spaces for src/*.php 2016-03-11 18:06:27 -05:00
QWp6t
246955c59a Use phpcs.xml for all rules 2016-03-11 18:06:27 -05:00
QWp6t
c5f3724efd Resolve PHPMD warnings 2016-03-11 18:06:27 -05:00
QWp6t
6a4d3bd51a Conform to new rules 2016-03-11 18:03:15 -05:00
QWp6t
1df3fee010 Remove Template class 2016-03-11 18:03:15 -05:00
QWp6t
12d6ac3c51 Remove closure from sidebar registration 2016-03-11 18:03:15 -05:00
Ben Word
d4461fa1e4 Remove sage.pot 2016-03-11 18:03:15 -05:00
Ben Word
9eec17dc3f Fix error 2016-03-11 18:03:15 -05:00
Ben Word
abeea0f76c Remove template_part, template_sidebar, temp sidebar fix 2016-03-11 18:03:14 -05:00
Ben Word
67c190fc41 Cleanup 2016-03-11 18:03:14 -05:00
Ben Word
fa0e51faa4 Update asset handles 2016-03-11 18:03:14 -05:00
Ben Word
d217ba6f57 Remove comment-reply JS 2016-03-11 18:03:14 -05:00
QWp6t
f752470b33 Rename app to src 2016-03-11 18:00:06 -05:00