| 开发者 | alexandrebuffet |
|---|---|
| 更新时间 | 2026年10月27日 22:12 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
theme.json or the Styles of the Site Editor.build folder of the plugin are compiled. Their human-readable sources (the src folder) and the configuration of the build tools are public on GitHub, where the plugin is developed: https://github.com/alexandrebuffet/elio-blocks
To build the plugin from its sources, with Node.js 22 and Composer:
git clone https://github.com/alexandrebuffet/elio-blocks.gitcd elio-blockscomposer installnpm installnpm run build@wordpress/scripts (webpack), the build tool of WordPress itself. See the README of the repository for every command.
elio-blocks folder to the /wp-content/plugins/ directory.Yes, this plugin is totally free to use. Let the sunshine in. ☀️
No, this plugin uses the Open-Meteo API, an open-source weather API that needs no account and no API key. Its free access is for non-commercial use only: see the External services section below. For commercial use, enter the API key of an Open-Meteo subscription in the Providers section of the plugin settings. 😎
The plugin adds its own REST API endpoints: one serves the weather forecast, another finds locations by name. In the Block Editor, a data store fetches the forecast and passes it to the Weather block and all its inner blocks through block context. On the front end, the blocks are rendered on the server, then the Interactivity API keeps the data up to date in the browser. ⚡️
On GitHub: see the Source code section of the description.
Open-Meteo is the only one included for now. The plugin was built so that others can join: a developer can register a new weather data provider in PHP, exactly the way Open-Meteo is registered: the handbook shows how. ⛅️
Yes. Pick the icon collection for the whole site in the plugin settings, or for a single Weather block or icon in its sidebar. Developers can also register a collection of their own. 🌙
Yes. Like core blocks, the Weather blocks come with the standard design tools, such as colors, spacing and typography, straight from the Block Editor. Beyond that, you can style them with theme.json, block style variations or plain CSS. Clear skies ahead. 🌤️
No, this plugin only provides blocks. It's your time to shine: move from widgets and shortcodes to the Block Editor! ⛈️
No, this plugin is only compatible with the Block Editor. Don’t let your website get clouded: make the switch to the Block Editor today! 🌧️
No, this plugin only works with the Block Editor. Don’t wait for the weather to change: move on to the native Block Editor! 🌈