Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit 1d543a8

Browse files
committed
Merge remote-tracking branch 'roots/10.0.0-dev' into 10.0.0-dev
* roots/10.0.0-dev: Update sponsors [ci skip] Bump stylelint from 13.2.1 to 13.3.0 (roots#2439) Bump roots/acorn from 1.0.3 to 1.0.4 (roots#2440) Bump roots/acorn from 1.0.2 to 1.0.3 (roots#2433) Sage 10 Chores (roots#2431) enhance(deps): Add `Requires PHP` and `Requires at least` to theme style headers. Bump WordPress requirement to v5.4 (roots#2409) Laravel 7.x (roots#2429) Sage 10 fixes/cleanup (roots#2413) Update sponsors [ci skip] update laravel-mix-wp-blocks (roots#2381) chore(deps): Bump dependencies (roots#2376) fix(stylelint): Fix broken tests (roots#2375) Keep hierarchical assets directory structure (roots#2372)
2 parents bf0db71 + 3c64c3a commit 1d543a8

31 files changed

+229
-221
lines changed

.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ indent_size = 2
1919

2020
[resources/views/**.php]
2121
indent_size = 2
22+
23+
[index.php]
24+
indent_size = 2

.stylelintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"value-list-comma-newline-after": null,
66
"no-empty-source": null,
77
"no-descending-specificity": null,
8+
"at-rule-empty-line-before": null,
89
"at-rule-no-unknown": [
910
true,
1011
{

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ See a working example at [roots-example-project.com](https://roots-example-proje
2424

2525
Make sure all dependencies have been installed before moving on:
2626

27-
* [WordPress](https://wordpress.org/) >= 5.2
28-
* [PHP](https://secure.php.net/manual/en/install.php) >= 7.1.3 (with [`php-mbstring`](https://secure.php.net/manual/en/book.mbstring.php) enabled)
27+
* [WordPress](https://wordpress.org/) >= 5.4
28+
* [PHP](https://secure.php.net/manual/en/install.php) >= 7.2.0 (with [`php-mbstring`](https://secure.php.net/manual/en/book.mbstring.php) enabled)
2929
* [Composer](https://getcomposer.org/download/)
3030
* [Node.js](http://nodejs.org/) >= 8.0.0
3131
* [Yarn](https://yarnpkg.com/en/docs/install)
@@ -114,7 +114,7 @@ Contributions are welcome from everyone. We have [contributing guidelines](https
114114

115115
Help support our open-source development efforts by [becoming a patron](https://www.patreon.com/rootsdev).
116116

117-
<a href="https://kinsta.com/?kaid=OFDHAJIXUDIV"><img src="https://cdn.roots.io/app/uploads/kinsta.svg" alt="Kinsta" width="200" height="150"></a> <a href="https://k-m.com/"><img src="https://cdn.roots.io/app/uploads/km-digital.svg" alt="KM Digital" width="200" height="150"></a> <a href="https://scaledynamix.com/"><img src="https://cdn.roots.io/app/uploads/scale-dynamix.svg" alt="Scale Dynamix" width="200" height="150"></a> <a href="https://wisdomplugin.com/?sage"><img src="https://cdn.roots.io/app/uploads/wisdom.svg" alt="Wisdom" width="200" height="150"></a>
117+
<a href="https://kinsta.com/?kaid=OFDHAJIXUDIV"><img src="https://cdn.roots.io/app/uploads/kinsta.svg" alt="Kinsta" width="200" height="150"></a> <a href="https://k-m.com/"><img src="https://cdn.roots.io/app/uploads/km-digital.svg" alt="KM Digital" width="200" height="150"></a> <a href="https://nestify.io/?utm_source=roots&utm_medium=banner&utm_campaign=footer"><img src="https://cdn.roots.io/app/uploads/nestify.svg" alt="Nestify" width="200" height="150"></a>
118118

119119
## Community
120120

app/View/Components/Alert.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
3+
namespace App\View\Components;
4+
5+
use Roots\Acorn\View\Component;
6+
7+
class Alert extends Component
8+
{
9+
/**
10+
* The alert type.
11+
*
12+
* @var string
13+
*/
14+
public $type;
15+
16+
/**
17+
* The alert message.
18+
*
19+
* @var string
20+
*/
21+
public $message;
22+
23+
/**
24+
* Create the component instance.
25+
*
26+
* @param string $type
27+
* @param string $message
28+
* @return void
29+
*/
30+
public function __construct($type = 'primary', $message = null)
31+
{
32+
$this->type = $type;
33+
$this->message = $message;
34+
}
35+
36+
/**
37+
* Get the view / contents that represent the component.
38+
*
39+
* @return \Illuminate\View\View|string
40+
*/
41+
public function render()
42+
{
43+
return $this->view('components.alert');
44+
}
45+
}

app/Composers/App.php renamed to app/View/Composers/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Composers;
3+
namespace App\View\Composers;
44

55
use Roots\Acorn\View\Composer;
66

app/Composers/Post.php renamed to app/View/Composers/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Composers;
3+
namespace App\View\Composers;
44

55
use Roots\Acorn\View\Composer;
66

app/admin.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
/**
44
* Theme admin.
5-
*
6-
* @copyright https://roots.io/ Roots
7-
* @license https://opensource.org/licenses/MIT MIT
85
*/
96

107
namespace App;

app/filters.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
/**
44
* Theme filters.
5-
*
6-
* @copyright https://roots.io/ Roots
7-
* @license https://opensource.org/licenses/MIT MIT
85
*/
96

107
namespace App;

app/helpers.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
/**
44
* Theme helpers.
5-
*
6-
* @copyright https://roots.io/ Roots
7-
* @license https://opensource.org/licenses/MIT MIT
85
*/
96

107
namespace App;

0 commit comments

Comments
 (0)