Plugin Directory

Changeset 2179945


Ignore:
Timestamp:
10/25/2019 09:19:04 AM (6 years ago)
Author:
iseulde
Message:

v0.0.17

Location:
slide/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • slide/trunk/index.js

    r2177669 r2179945  
    3737  const fontWeightHeadingKey = 'presentation-font-weight-heading';
    3838  const transitionKey = 'presentation-transition';
     39  const backgroundTransitionKey = 'presentation-background-transition';
    3940  const transitionSpeedKey = 'presentation-transition-speed';
    4041  const controlsKey = 'presentation-controls';
     
    363364                meta: {
    364365                  ...meta,
    365                   [backgroundUrlKey]: undefined,
    366                   [backgroundIdKey]: undefined,
    367                   [backgroundPositionKey]: undefined,
    368                   [backgroundOpacityKey]: undefined
     366                  [backgroundUrlKey]: '',
     367                  [backgroundIdKey]: '',
     368                  [backgroundPositionKey]: '',
     369                  [backgroundOpacityKey]: ''
    369370                }
    370371              });
     
    444445            value: meta[transitionKey],
    445446            onChange: (value) => updateMeta(value, transitionKey)
     447          }),
     448          e(SelectControl, {
     449            label: __('Background Transition Style', 'slide'),
     450            options: [
     451              { value: 'none', label: __('None', 'slide') },
     452              { value: 'fade', label: __('Fade', 'slide') },
     453              { value: 'slide', label: __('Slide', 'slide') },
     454              { value: 'convex', label: __('Convex', 'slide') },
     455              { value: 'concave', label: __('Concave', 'slide') },
     456              { value: 'zoom', label: __('Zoom', 'slide') }
     457            ],
     458            value: meta[backgroundTransitionKey],
     459            onChange: (value) => updateMeta(value, backgroundTransitionKey)
    446460          }),
    447461          e(SelectControl, {
  • slide/trunk/index.php

    r2178439 r2179945  
    55 * Plugin URI:  https://wordpress.org/plugins/slide/
    66 * Description: Allows you to create presentations with the block editor.
    7  * Version:     0.0.16
     7 * Version:     0.0.17
    88 * Author:      Ella van Durpe
    99 * Author URI:  https://ellavandurpe.com
  • slide/trunk/readme.md

    r2178439 r2179945  
    66    Requires PHP:      5.6
    77    Tested up to:      5.3
    8     Stable tag:        0.0.16
     8    Stable tag:        0.0.17
    99    License:           GPL-2.0-or-later
    1010    License URI:       http://www.gnu.org/licenses/gpl-2.0.html
  • slide/trunk/register.php

    r2177110 r2179945  
    6666    'font-weight-heading',
    6767    'transition',
     68    'background-transition',
    6869    'transition-speed',
    6970    'controls',
  • slide/trunk/template.php

    r2178439 r2179945  
    151151        Reveal.initialize( {
    152152            transition: '<?php echo get_post_meta( get_the_ID(), 'presentation-transition', true ) ?: 'none'; ?>',
     153            backgroundTransition: '<?php echo get_post_meta( get_the_ID(), 'presentation-background-transition', true ) ?: 'none'; ?>',
    153154            transitionSpeed: '<?php echo get_post_meta( get_the_ID(), 'presentation-transition-speed', true ) ?: 'default'; ?>',
    154155            controls: <?php echo get_post_meta( get_the_ID(), 'presentation-controls', true ) ?: 'false'; ?>,
Note: See TracChangeset for help on using the changeset viewer.