generoi/wp-gutenberg-button-popup
wp-gutenberg-button-popup
A Gutenberg block for creating buttons that open popups

Installation
composer require generoi/wp-gutenberg-button-popup
Requirements
- WordPress 5.6 or newer
Usage
You can customize the default template for popups with a filter.
import { addFilter } from '@wordpress/hooks'
addFilter('wp-gutenberg-button-popup.popupTemplate', 'theme/popup-template', () => {
return [
['core/columns', {align: 'full'}, [
['core/column', {}, [
['core/image'],
['core/group']
]],
['core/column', {}, [
['core/heading'],
['core/paragraph'],
['core/list'],
['core/buttons'],
]],
]],
];
})
Development
Install dependencies
composer install
npm install
Run the tests
npm run test
Build assets
# Minified assets which are to be committed to git
npm run build:production
# Watch for changes and re-compile while developing the plugin
npm run start
Related Packages
mwdelaney/sage-acf-gutenberg-blocks
Create Gutenberg blocks from Sage blade templates and ACF fields.
393,507
353
morningtrain/wp-blocks
A package for loading WordPress blocks with support for Blade templates
1,312
2
jakehenshall/pest-plugin-wordpress
The most comprehensive WordPress testing framework built on Pest PHP v4. Include...
6
1
webwizo/laravel-shortcodes
Wordpress like shortcodes for Laravel 5, 6, 7, 8, 9, 10, 11 and 12
739,945
218
composer/installers
A multi-framework Composer library installer
150,850,750
1,440
agl
annotatecms
attogram
bitrix
cakephp
chef
cockpit
codeigniter
concrete5
concretecms
croogo
dokuwiki
dolibarr
drupal
elgg
eliasis
expressionengine
ez platform
fuelphp
grav
hurad
imagecms
installer
itop
kanboard
known
kohana
lan management system
laravel
lavalite
lithium
magento
majima
mako
mantisbt
matomo
mautic
maya
mediawiki
miaoxing
modulework
modx
modx evo
moodle
osclass
oxid
pantheon
phpbb
piwik
plentymarkets
porto
ppi
processwire
puppet
pxcms
radphp
reindex
roundcube
shopware
silverstripe
smf
starbug
sydes
sylius
tastyigniter
thelia
whmcs
wolfcms
wordpress
yawik
zend
zikula