💦 FULL SET: Changeset/ - High Quality

Changeset 2184515


Ignore:
Timestamp:
11/01/2019 03:34:28 PM (6 years ago)
Author:
iseulde
Message:

v0.0.30

Location:
slide/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • slide/trunk/index.php

    r2184426 r2184515  
    55 * Plugin URI:  https://wordpress.org/plugins/slide/
    66 * Description: Allows you to create presentations with the block editor.
    7  * Version:     0.0.29
     7 * Version:     0.0.30
    88 * Author:      Ella van Durpe
    99 * Author URI:  https://ellavandurpe.com
     
    142142
    143143    if ( isset( $_GET[ 'print-pdf' ] ) ) {
    144         wp_add_inline_script(
    145             'slide-reveal',
    146             'window.print()'
    147         );
     144        // wp_add_inline_script(
     145        // 'slide-reveal',
     146        // 'window.print()'
     147        // );
    148148
    149149        wp_enqueue_style(
  • slide/trunk/readme.md

    r2184426 r2184515  
    66    Requires PHP:      5.6
    77    Tested up to:      5.3
    8     Stable tag:        0.0.29
     8    Stable tag:        0.0.30
    99    License:           GPL-2.0-or-later
    1010    License URI:       http://www.gnu.org/licenses/gpl-2.0.html
  • slide/trunk/template.php

    r2184340 r2184515  
    100100        }
    101101
    102         section.wp-block-slide-slide {
     102        .reveal .slides section.wp-block-slide-slide {
    103103            top: auto !important;
    104104            padding-top: <?php echo get_post_meta( get_the_ID(), 'presentation-vertical-padding', true ) ?: '0.2em'; ?> !important;
     
    115115        }
    116116
     117        .print-pdf .slides {
     118            display: block;
     119        }
     120
     121        .print-pdf .pdf-page {
     122            justify-content: center;
     123            display: flex;
     124            flex-direction: column;
     125        }
     126
     127        .pdf-page,
    117128        .presentation-contain .slides {
    118129            overflow: hidden;
    119130            padding: 28.125px 50px;
    120131            box-sizing: border-box;
     132        }
     133
     134        .reveal .slides .pdf-page > section {
     135            position: static !important;
     136            z-index: 1;
     137            width: 100% !important;
    121138        }
    122139
     
    211228            // We center in CSS.
    212229            center: false,
     230            pdfMaxPagesPerSlide: 1,
    213231            // minScale: 1,
    214232            // maxScale: 1,
     
    252270        }
    253271
     272        const autoplay = document.querySelectorAll('[autoplay]');
     273
     274        autoplay.forEach( ( el ) => el.setAttribute( 'data-autoplay', 'true' ) );
     275
    254276        // Admin bar buttons.
    255277        ( () => {
Note: See TracChangeset for help on using the changeset viewer.