generated from yardinternet/skeleton-package
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
261 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
# Yard :package_name | ||
# Yard wp-user-roles | ||
|
||
[](https://github.com/yardinternet/skeleton-package/actions/workflows/format-php.yml) | ||
[](https://github.com/yardinternet/skeleton-package/actions/workflows/phpstan.yml) | ||
[](https://github.com/yardinternet/skeleton-package/actions/workflows/run-tests.yml) | ||
[](https://github.com/yardinternet/skeleton-package/actions/workflows/badges.yml) | ||
[](https://github.com/yardinternet/skeleton-package/actions/workflows/badges.yml) | ||
[](https://github.com/yardinternet/wp-user-roles/actions/workflows/format-php.yml) | ||
[](https://github.com/yardinternet/wp-user-roles/actions/workflows/phpstan.yml) | ||
[](https://github.com/yardinternet/wp-user-roles/actions/workflows/run-tests.yml) | ||
[](https://github.com/yardinternet/wp-user-roles/actions/workflows/badges.yml) | ||
[](https://github.com/yardinternet/wp-user-roles/actions/workflows/badges.yml) | ||
|
||
<!--delete--> | ||
--- | ||
This repository provides a scaffold for creating an Acorn package. For more detailed information, please refer to the [Acorn Package Development](https://roots.io/acorn/docs/package-development/) documentation. | ||
|
||
Follow these steps to get started: | ||
|
||
1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton. | ||
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files. | ||
3. Have fun creating your package. | ||
|
||
--- | ||
<!--/delete--> | ||
|
||
## Requirements | ||
|
||
|
@@ -33,14 +22,14 @@ To install this package using Composer, follow these steps: | |
```json | ||
{ | ||
"type": "vcs", | ||
"url": "[email protected]:yardinternet/skeleton-package.git" | ||
"url": "[email protected]:yardinternet/wp-user-roles.git" | ||
} | ||
``` | ||
|
||
2. Install this package with Composer: | ||
|
||
```sh | ||
composer require yard/skeleton-package | ||
composer require yard/wp-user-roles | ||
``` | ||
|
||
3. Run the Acorn WP-CLI command to discover this package: | ||
|
@@ -52,19 +41,13 @@ To install this package using Composer, follow these steps: | |
You can publish the config file with: | ||
|
||
```shell | ||
wp acorn vendor:publish --provider="Yard\SkeletonPackage\SkeletonPackageServiceProvider" | ||
wp acorn vendor:publish --provider="Yard\UserRoles\UserRolesServiceProvider" | ||
``` | ||
|
||
## Usage | ||
|
||
From a Blade template: | ||
|
||
```blade | ||
@include('skeleton-package::example') | ||
``` | ||
|
||
From WP-CLI: | ||
|
||
```shell | ||
wp acorn example | ||
wp acorn user-roles | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
|
||
'prefix' => 'yard', | ||
'roles' => [ | ||
'superuser' => [ | ||
'display_name' => 'Superuser', | ||
'caps' => [ | ||
'read' => true, | ||
'edit_dashboard' => true, | ||
'edit_files' => true, | ||
'unfiltered_html' => true, | ||
'upload_files' => true, | ||
'manage_categories' => true, | ||
'edit_theme_options' => true, | ||
'moderate_comments' => true, | ||
], | ||
'post_type_caps' => [ | ||
'post', | ||
'page', | ||
], | ||
'cap_groups' => [ | ||
'gravityforms', | ||
'wpseo', | ||
], | ||
], | ||
], | ||
'cap_groups' => [ | ||
'plugins' => [ | ||
'activate_plugins', | ||
'delete_plugins', | ||
'edit_plugins', | ||
'install_plugins', | ||
'update_plugins', | ||
], | ||
'users' => [ | ||
'create_users', | ||
'delete_users', | ||
'edit_users', | ||
'list_users', | ||
'promote_users', | ||
'remove_users', | ||
], | ||
'themes' => [ | ||
'delete_themes', | ||
'edit_themes', | ||
'install_themes', | ||
'switch_themes', | ||
'update_themes', | ||
], | ||
'gravityforms' => [ | ||
'gravityforms_create_form', | ||
'gravityforms_delete_forms', | ||
'gravityforms_edit_forms', | ||
'gravityforms_preview_forms', | ||
'gravityforms_view_entries', | ||
'gravityforms_edit_entries', | ||
'gravityforms_delete_entries', | ||
'gravityforms_view_entry_notes', | ||
'gravityforms_edit_entry_notes', | ||
], | ||
'wpseo' => [ | ||
'wpseo_bulk_edit', | ||
'wpseo_manage_options', | ||
'wpseo_bulk_edit', | ||
'wpseo_manage_options', | ||
], | ||
], | ||
|
||
]; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ UserRoles::getQuote() }} |
Oops, something went wrong.