https://github.com/threadi/audio-on-every-block
Provides an option for Gutenberg-Blocks to add an audio-file on them.
https://github.com/threadi/audio-on-every-block
accessibility wordpress wordpress-plugin
Last synced: 5 months ago
JSON representation
Provides an option for Gutenberg-Blocks to add an audio-file on them.
- Host: GitHub
- URL: https://github.com/threadi/audio-on-every-block
- Owner: threadi
- Created: 2022-03-06T14:02:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-05-15T12:09:51.000Z (about 1 year ago)
- Last Synced: 2025-05-15T13:25:13.529Z (about 1 year ago)
- Topics: accessibility, wordpress, wordpress-plugin
- Language: PHP
- Homepage: https://wordpress.org/plugins/audio-on-every-block/
- Size: 1.2 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
Awesome Lists containing this project
README
# Audio on every block
This repository is the base for the plugin _Audio on every block_. This provides an addition for many Gutenberg-Blocks to add an audio file per Block.
## Usage
After checkout go through the following steps:
1. copy _build/build.properties.dist_ to _build/build.properties_.
2. modify the build/build.properties file - note the comments in the file.
3. execute the command in _build/_: `ant init`
4. after that the plugin can be activated in WordPress
## Release
1. increase the version number in _build/build.properties_.
2. execute the following command in _build/_: `ant build`
3. after that you will finde in the release directory a zip file which could be used in WordPress to install it.
## Translations
I recommend to use [PoEdit](https://poedit.net/) to translate texts for this plugin.
### generate pot-file
Run in main directory:
`wp i18n make-pot . languages/audio-on-every-block.pot --exclude=src,svn`
### update translation-file
1. Open .po-file of the language in PoEdit.
2. Go to "Translate" > "Update from POT-file".
3. After this the new entries are added to the language-file.
### export translation-file
1. Open .po-file of the language in PoEdit.
2. Go to File > Save.
3. Upload the generated .mo-file and the .po-file to the plugin-folder languages/
### generate json-translation-files
Run in main directory:
`wp i18n make-json languages --no-purge`
OR use ant in build/-directory: `ant json-translations`
## Build blocks
### Requirements
`npm install`
### Run for development
`npm start`
### Run for release
`npm run build`
Hint: will be called by ant-command mentioned above.
## Check for WordPress Coding Standards
### Initialize
`composer install`
### Run
`vendor/bin/phpcs --standard=ruleset.xml .`
### Repair
`vendor/bin/phpcbf --standard=ruleset.xml file`