MIGHTYminnow / mm-components

[WordPress] Custom components and functionality for WordPress.
3 stars 2 forks source link

Improve button functionality and add base button styles. #47

Closed carrieforde closed 9 years ago

carrieforde commented 9 years ago

The button component now has five core styles, three corner styles, two border weights, and a set of default colors to choose from.

Color options are easily customized within a theme's functions.php files using the mm_get_available_colors_for_vc filter:

add_filter( 'mm_get_available_colors_for_vc', 'xxx_set_theme_colors' );
/*
 * Set theme color options for Mm components.
 *
 * @return  array  The array of theme colors.
 */
function xxx_set_theme_colors() {

    $colors = array(
        __( 'Default', 'xxx-theme' ) => 'default',
        __( 'Blue', 'xxx-theme' )    => 'blue',
        __( 'Green', 'xxx-theme' )  => 'green',
    );

    return $colors;
}

Next up is adding functionality to add an icon, and I'd also like to add a button widget.

BraadMartin commented 9 years ago

Now that's a pull request. :+1: