-
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.
Merge pull request #1 from wedevelopnl/feature/setup
Initial setup
- Loading branch information
Showing
4 changed files
with
81 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Contributing | ||
|
||
## Bugtracker | ||
Bugs are tracked in the issues section of this repository. Before submitting an issue please read over | ||
existing issues to ensure yours is unique. | ||
|
||
If the issue does look like a new bug: | ||
|
||
- Create a new issue | ||
- Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots | ||
and screencasts can help here. | ||
- Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, | ||
Operating System, any installed SilverStripe modules. | ||
|
||
## Security | ||
Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker. | ||
|
||
## Copyright | ||
By supplying code to this module in any form you agree to assign copyright of that code to WeDevelop, on the condition that WeDevelop releases that code under a form of open source license. |
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,39 @@ | ||
# silverstripe-highlights | ||
This module creates a `.Highlight` method on all SS DBStrings to provide the ability to highlight custom texts by placing it between shortcodes that are configurable by yourself. | ||
|
||
## Requirements | ||
* See `composer.json` requirement | ||
|
||
## Installation | ||
* `composer require wedevelopnl/silverstripe-highlights` | ||
|
||
Next, you'll need to run a `dev/build` with a `flush=all` to allow this module to work properly. | ||
|
||
## License | ||
See [License](LICENSE) | ||
|
||
## Maintainers | ||
* [WeDevelop](https://www.wedevelop.nl/) <development@wedevelop.nl> | ||
|
||
## Configuration | ||
```yml | ||
SilverStripe\ORM\FieldType\DBString: | ||
shortcode_start: '[' | ||
shortcode_end: ']' | ||
css_class_name: 'highlight' | ||
``` | ||
## Example | ||
### Input | ||
```html | ||
This is a [large] content string which outputs HTML around the word 'large'. | ||
``` | ||
|
||
### Output | ||
```html | ||
This is a <span class="highlight">large</span> content string which outputs HTML around the word 'large'. | ||
``` | ||
|
||
## Development and contribution | ||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. | ||
See read our [contributing](CONTRIBUTING.md) document for more information. |
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,6 @@ | ||
--- | ||
Name: wedevelop-highlights | ||
--- | ||
SilverStripe\ORM\FieldType\DBString: | ||
extensions: | ||
- WeDevelop\Highlights\Extension\DBStringExtension |
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