Plugin Directory

Changeset 2180213


Ignore:
Timestamp:
10/25/2019 04:17:42 PM (6 years ago)
Author:
iseulde
Message:

v0.0.19

Location:
slide/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • slide/trunk/index.js

    r2180208 r2180213  
    234234            }
    235235          }),
    236           e(ColorPicker, {
    237             disableAlpha: true,
     236          e(ColorPalette, {
    238237            label: __('Color', 'slide'),
    239             color: meta[colorKey],
    240             onChangeComplete: (value) => updateMeta(value.hex, colorKey)
     238            value: meta[colorKey],
     239            onChange: (value) => updateMeta(value, colorKey)
    241240          })
    242241        ),
     
    285284            icon: 'art'
    286285          },
    287           e(ColorPicker, {
    288             disableAlpha: true,
     286          e(ColorPalette, {
    289287            label: __('Background Color', 'slide'),
    290             color: meta[bgColorKey],
    291             onChangeComplete: (value) => {
     288            value: meta[bgColorKey],
     289            onChange: (value) => {
    292290              editPost({
    293291                meta: {
    294292                  ...meta,
    295                   [bgColorKey]: value.hex,
     293                  [bgColorKey]: value,
    296294                  [backgroundGradientKey]: ''
    297295                }
  • slide/trunk/index.php

    r2180208 r2180213  
    55 * Plugin URI:  https://wordpress.org/plugins/slide/
    66 * Description: Allows you to create presentations with the block editor.
    7  * Version:     0.0.18
     7 * Version:     0.0.19
    88 * Author:      Ella van Durpe
    99 * Author URI:  https://ellavandurpe.com
     
    217217
    218218        $palette = get_post_meta( $post->ID, 'presentation-color-palette', true );
     219
     220        if ( ! $palette ) {
     221            return;
     222        }
     223
    219224        $palette = explode( ',', $palette );
     225        $palette = array_map( 'trim', $palette );
    220226        $palette = array_map( 'sanitize_hex_color', $palette );
    221227        $palette = array_map( function( $hex ) {
  • slide/trunk/readme.md

    r2180208 r2180213  
    66    Requires PHP:      5.6
    77    Tested up to:      5.3
    8     Stable tag:        0.0.18
     8    Stable tag:        0.0.19
    99    License:           GPL-2.0-or-later
    1010    License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.