considbrs-webdev / modularity-link-cards
Modularity LinkCards Module
Package info
github.com/Considbrs-Webdev/modularity-link-cards
Type:wordpress-plugin
pkg:composer/considbrs-webdev/modularity-link-cards
dev-main
2026-01-27 14:36 UTC
Suggests
- helsingborg-stad/municipio: ^6.0.0
README
A link-cards for creating Modularity modules.
Getting Started
- Clone this repository
- Run
composer installto install PHP dependencies - Run
npm installto install Node dependencies - Run
npm run buildto build assets
Development
npm run dev- Start development servernpm run watch- Watch for changes and rebuildnpm run build- Build for productioncomposer test- Run PHP testscomposer lint- Lint PHP codecomposer format- Format PHP code
Structure
├── modularity-link-cards.php # Main plugin file
├── source/
│ ├── php/
│ │ ├── App.php # Application bootstrap
│ │ ├── AcfFields/ # ACF field definitions
│ │ └── Module/ # Module classes
│ │ ├── LinkCards.php # Main module class
│ │ ├── assets/ # Module assets (icons)
│ │ └── views/ # Blade templates
│ └── sass/ # SCSS files
├── assets/ # Compiled assets (generated)
└── languages/ # Translation files
Creating Your Module
- Rename
modularity-link-cards.phpand update the plugin header - Update the namespace in
composer.jsonand all PHP files - Rename
source/php/Module/LinkCards.phpto your module name - Update ACF fields in
source/php/AcfFields/json/ - Customize views in
source/php/Module/views/ - Add styles in
source/sass/
License
MIT