Changeset 2180213
- Timestamp:
- 10/25/2019 04:17:42 PM (6 years ago)
- Location:
- slide/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
slide/trunk/index.js
r2180208 r2180213 234 234 } 235 235 }), 236 e(ColorPicker, { 237 disableAlpha: true, 236 e(ColorPalette, { 238 237 label: __('Color', 'slide'), 239 color: meta[colorKey],240 onChange Complete: (value) => updateMeta(value.hex, colorKey)238 value: meta[colorKey], 239 onChange: (value) => updateMeta(value, colorKey) 241 240 }) 242 241 ), … … 285 284 icon: 'art' 286 285 }, 287 e(ColorPicker, { 288 disableAlpha: true, 286 e(ColorPalette, { 289 287 label: __('Background Color', 'slide'), 290 color: meta[bgColorKey],291 onChange Complete: (value) => {288 value: meta[bgColorKey], 289 onChange: (value) => { 292 290 editPost({ 293 291 meta: { 294 292 ...meta, 295 [bgColorKey]: value .hex,293 [bgColorKey]: value, 296 294 [backgroundGradientKey]: '' 297 295 } -
slide/trunk/index.php
r2180208 r2180213 5 5 * Plugin URI: https://wordpress.org/plugins/slide/ 6 6 * Description: Allows you to create presentations with the block editor. 7 * Version: 0.0.1 87 * Version: 0.0.19 8 8 * Author: Ella van Durpe 9 9 * Author URI: https://ellavandurpe.com … … 217 217 218 218 $palette = get_post_meta( $post->ID, 'presentation-color-palette', true ); 219 220 if ( ! $palette ) { 221 return; 222 } 223 219 224 $palette = explode( ',', $palette ); 225 $palette = array_map( 'trim', $palette ); 220 226 $palette = array_map( 'sanitize_hex_color', $palette ); 221 227 $palette = array_map( function( $hex ) { -
slide/trunk/readme.md
r2180208 r2180213 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.3 8 Stable tag: 0.0.1 88 Stable tag: 0.0.19 9 9 License: GPL-2.0-or-later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.