Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion advanced-multi-block.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: Advanced Multi Block
* Description: Example block scaffolded with Create Block tool.
* Description: Adds Banner, Toggle, and Slider blocks, built with namespaced, Composer-autoloaded PHP.
* Version: 0.1.0
* Requires at least: 6.7
* Requires PHP: 7.4
Expand Down
47 changes: 18 additions & 29 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,55 +1,44 @@
=== Advanced Multi Block ===
Contributors: The WordPress Contributors
Tags: block
Tested up to: 6.7
Tags: block, banner, toggle, slider, interactivity
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Example block scaffolded with Create Block tool.
Adds Banner, Toggle, and Slider blocks, built with namespaced, Composer-autoloaded PHP.

== Description ==

This is the long description. No limit, and you can use Markdown (as well as in the following sections).
Advanced Multi Block adds a small set of custom Gutenberg blocks to the block editor:

For backwards compatibility, if this section is missing, the full length of the short description will be used, and
Markdown parsed.
* **Banner** – a simple dynamic block that renders a message on the front end.
* **Toggle** – an interactive block, built with the WordPress Interactivity API, that lets visitors expand or collapse content and switch between a light and dark theme state.
* **Slider** – a block for presenting content in a slider layout.

== Installation ==

This section describes how to install the plugin and get it working.
The plugin's PHP is organized as namespaced classes (`Advanced_Multi_Block\...`) autoloaded via Composer's PSR-4 autoloader, rather than the classic WordPress `class-*.php` file-naming convention, as a reference implementation of namespaced coding standards in a WordPress plugin.

e.g.
== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/advanced-multi-block` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress

1. Run `composer install` in the plugin directory to generate the autoloader (required — the plugin will not activate without it).
1. Activate the plugin through the 'Plugins' screen in WordPress.
1. Add the Banner, Toggle, or Slider blocks to any post or page from the block inserter.

== Frequently Asked Questions ==

= A question that someone might have =
= Why won't the plugin activate? =

An answer to that question.
The plugin requires its Composer dependencies to be installed first. Run `composer install` in the plugin's directory, then activate it.

= What about foo bar? =
= Does this plugin require a specific PHP or WordPress version? =

Answer to foo bar dilemma.

== Screenshots ==

1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from
the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets
directory take precedence. For example, `/assets/screenshot-1.png` would win over `/tags/4.3/screenshot-1.png`
(or jpg, jpeg, gif).
2. This is the second screen shot
Yes — PHP 7.4+ and WordPress 6.7+. It has been tested up to WordPress 7.1.

== Changelog ==

= 0.1.0 =
* Release

== Arbitrary section ==

You may provide arbitrary sections, in the same format as the ones above. This may be of use for extremely complicated
plugins where more information needs to be conveyed that doesn't fit into the categories of "description" or
"installation." Arbitrary sections will be shown below the built-in sections outlined above.