Download the PHP package getolympus/olympus-code-field without Composer
On this page you can find all versions of the php package getolympus/olympus-code-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download getolympus/olympus-code-field
More information about getolympus/olympus-code-field
Files in getolympus/olympus-code-field
Download getolympus/olympus-code-field
More information about getolympus/olympus-code-field
Files in getolympus/olympus-code-field
Vendor getolympus
Package olympus-code-field
Short Description Code field, this component is a part of the Olympus Dionysos fields.
License MIT
Homepage https://github.com/GetOlympus/olympus-dionysos-field-code
Package olympus-code-field
Short Description Code field, this component is a part of the Olympus Dionysos fields.
License MIT
Homepage https://github.com/GetOlympus/olympus-dionysos-field-code
Please rate this library. Is it a good library?
Informations about the package olympus-code-field
Dionysos Code Field
This component is a part of the Olympus Dionysos fields for WordPress.
It uses the default WordPress code field made with a complete integration with codemirror JS component.
Table of contents
Contributing
Field initialization
Use the following lines to add a code field
in your WordPress admin pages or custom post type meta fields:
Variables definition
Variable | Type | Default value if not set | Accepted values |
---|---|---|---|
title |
String | 'Code' |
empty |
default |
String | empty | empty |
description |
String | empty | empty |
mode |
String | text/html |
see Accepted mode |
rows |
Integer | 4 |
> 1 |
settings |
Array | see Field initialization | see WordPress reference |
Accepted mode
text/css
orcss
text/x-diff
orx-diff
ordiff
text/html
orhtml
text/javascript
orjavascript
orjs
application/json
orjson
text/x-markdown
ormarkdown
ormd
application/x-httpd-php
orx-httpd-php
orphp
text/x-python
orx-python
orpython
text/x-ruby
orx-ruby
orruby
text/x-sh
orx-sh
orsh
text/x-mysql
orx-mysql
ormysql
text/x-mariadb
orx-mariadb
ormariadb
application/xml
orxml
text/x-yaml
orx-yaml
oryaml
Usage example
Fill the form properly (with JSON in this example):
Retrive data
Retrieve your value from Database with a simple get_option('my_code_field_id', '')
(see WordPress reference):
Release history
Version | Note |
---|---|
0.0.14 | Fix jQuery integration on domReady |
0.0.13 | Add new CodeMirror css for widget integration |
0.0.12 | New Olympus components compatibility Change repository to be a part of Dionysos fields |
Contributing
- Fork it (https://github.com/GetOlympus/olympus-dionysos-field-code/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Built with ♥ by Achraf Chouk ~ (c) since a long time.
All versions of olympus-code-field with dependencies
PHP Build Version
Package Version
No informations.
The package getolympus/olympus-code-field contains the following files
Loading the files please wait ....