✨feature: Initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
# Logo Soup
|
||||
|
||||
Logo Soup is a block-first WordPress plugin for building balanced logo strips and grids directly inside the block editor.
|
||||
|
||||
## Features
|
||||
|
||||
- Upload logos from the editor and reorder them with simple move controls.
|
||||
- Add optional links per logo.
|
||||
- Choose between `carousel` and `grid` layouts.
|
||||
- Configure grayscale, animation speed, and hover pause behavior.
|
||||
- Set site-wide defaults under `Settings > Logo Soup`.
|
||||
|
||||
## Requirements
|
||||
|
||||
- WordPress 6.1+
|
||||
- PHP 7.4+
|
||||
|
||||
## Development
|
||||
|
||||
```bash
|
||||
composer install
|
||||
npm install
|
||||
composer phpcs
|
||||
composer phpstan
|
||||
composer test
|
||||
npm run lint:js
|
||||
```
|
||||
|
||||
## Architecture
|
||||
|
||||
- `logo-soup.php`: plugin bootstrap and autoloader.
|
||||
- `src/`: PHP application code.
|
||||
- `blocks/logo-soup/`: dynamic block metadata and built assets.
|
||||
- `tests/php/`: PHPUnit baseline coverage.
|
||||
|
||||
## Security
|
||||
|
||||
- REST mutations require `manage_options` plus a valid `wp_rest` nonce.
|
||||
- All settings are sanitized before saving.
|
||||
- Block output escapes URLs, attributes, and text on render.
|
||||
Reference in New Issue
Block a user