Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/texnixe/kirby3-codepen
https://github.com/texnixe/kirby3-codepen
kirby3 kirby3-cms kirby3-plugin
Last synced: about 10 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/texnixe/kirby3-codepen
- Owner: texnixe
- Created: 2019-03-04T04:57:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T15:22:20.000Z (almost 6 years ago)
- Last Synced: 2024-11-19T03:20:18.643Z (2 months ago)
- Topics: kirby3, kirby3-cms, kirby3-plugin
- Language: PHP
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![GitHub release](https://img.shields.io/github/release/texnixe/kirby3-codepen.svg?maxAge=1800) ![License](https://img.shields.io/github/license/mashape/apistatus.svg) ![Kirby 3 Pluginkit](https://img.shields.io/badge/Pluginkit-YES-cca000.svg)
# Kirby 3 CodePen embed
This plugin provides a shortcode (KirbyTag) for embedding CodePens in your text.
## Commercial Usage
This plugin is free but if you use it in a commercial project please consider
- [making a donation](https://www.paypal.me/texnixe/10) or
- [buying a Kirby license using this affiliate link](https://a.paddle.com/v2/click/1129/38380?link=1170)## Installation
### Download
[Download the files](https://github.com/texnixe/kirby3-codepen/archive/master.zip) and place them inside `site/plugins/kirby-codepen`.
### Git Submodule
You can add the plugin as a Git submodule.$ cd your/project/root
$ git submodule add https://github.com/texnixe/kirby3-codepen.git site/plugins/kirby-codepen
$ git submodule update --init --recursive
$ git commit -am "Add Kirby CodePen plugin"Run these commands to update the plugin:
$ cd your/project/root
$ git submodule foreach git checkout master
$ git submodule foreach git pull
$ git commit -am "Update submodules"
$ git submodule update --init --recursive### Composer
```
composer require texnixe/kirby3-codepen
```## Usage
The CodePen Id is required.
```
(codepen: jwGBh)
```## Options
### Config options
You can set the following default options in your `config.php`:
```
'texnixe.codepen.preview' => true;
'texnixe.codepen.height' => 300;
'texnixe.codepen.themeId' => 1
'texnixe.codepen.defaultTab' => 'js,result'
```### Tag options
You can overwrite the config options in the KirbyTag, e.g.
```
(codepen: jwGBh height: 250)
```In addition to the above settings, the following options are available:
- `user` : default ''
- `title`: default ''## Disclaimer
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you encounter any problem, please [create an issue](https://github.com/texnixe/kirby3-codepen/issues/new).
License
[MIT](https://opensource.org/licenses/MIT)
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.