2017 © Pedro Peláez
 

library rgba-customizer-control

Drop-in replacement for the stock WP color picker control.

image

seothemes/rgba-customizer-control

Drop-in replacement for the stock WP color picker control.

  • Thursday, July 12, 2018
  • by seothemes
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 28 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

This is a fork of https://github.com/BraadMartin/components which has been converted into a composer package., (*1)

Installation

composer require seothemes/rgba-customizer-control

Setup

RGBA Customizer Control uses PSR-4 autoloading., (*2)

To use in your theme or plugin, use the following namespace:, (*3)

use SEOThemes\RgbaCustomizerControl\RgbaCustomizerControl;

Once the namespace has been imported you can simply call the class:, (*4)

new RgbaCustomizerControl;

Example:, (*5)

$wp_customize->add_control(
    new RgbaCustomizerControl (
        $wp_customize,
        $setting,
        array(
            'section'      => 'colors',
            'label'        => $label,
            'settings'     => $setting,
            'show_opacity' => true,
            'palette'      => true,
        )
    )
);

The Versions

12/07 2018

dev-master

9999999-dev

Drop-in replacement for the stock WP color picker control.

  Sources   Download

GPL-2.0-or-later

by Avatar seothemes