seothemes / rgba-customizer-control
Drop-in replacement for the stock WP color picker control.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 36
Language:JavaScript
This package is auto-updated.
Last update: 2024-10-26 15:34:22 UTC
README
This is a fork of https://github.com/BraadMartin/components which has been converted into a composer package.
Installation
composer require seothemes/rgba-customizer-control
Setup
RGBA Customizer Control uses PSR-4 autoloading.
To use in your theme or plugin, use the following namespace:
use SEOThemes\RgbaCustomizerControl\RgbaCustomizerControl;
Once the namespace has been imported you can simply call the class:
new RgbaCustomizerControl;
Example:
$wp_customize->add_control( new RgbaCustomizerControl ( $wp_customize, $setting, array( 'section' => 'colors', 'label' => $label, 'settings' => $setting, 'show_opacity' => true, 'palette' => true, ) ) );