Changeset 2184515
- Timestamp:
- 11/01/2019 03:34:28 PM (6 years ago)
- Location:
- slide/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
slide/trunk/index.php
r2184426 r2184515 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. 297 * Version: 0.0.30 8 8 * Author: Ella van Durpe 9 9 * Author URI: https://ellavandurpe.com … … 142 142 143 143 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 // ); 148 148 149 149 wp_enqueue_style( -
slide/trunk/readme.md
r2184426 r2184515 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.3 8 Stable tag: 0.0. 298 Stable tag: 0.0.30 9 9 License: GPL-2.0-or-later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
slide/trunk/template.php
r2184340 r2184515 100 100 } 101 101 102 section.wp-block-slide-slide {102 .reveal .slides section.wp-block-slide-slide { 103 103 top: auto !important; 104 104 padding-top: <?php echo get_post_meta( get_the_ID(), 'presentation-vertical-padding', true ) ?: '0.2em'; ?> !important; … … 115 115 } 116 116 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, 117 128 .presentation-contain .slides { 118 129 overflow: hidden; 119 130 padding: 28.125px 50px; 120 131 box-sizing: border-box; 132 } 133 134 .reveal .slides .pdf-page > section { 135 position: static !important; 136 z-index: 1; 137 width: 100% !important; 121 138 } 122 139 … … 211 228 // We center in CSS. 212 229 center: false, 230 pdfMaxPagesPerSlide: 1, 213 231 // minScale: 1, 214 232 // maxScale: 1, … … 252 270 } 253 271 272 const autoplay = document.querySelectorAll('[autoplay]'); 273 274 autoplay.forEach( ( el ) => el.setAttribute( 'data-autoplay', 'true' ) ); 275 254 276 // Admin bar buttons. 255 277 ( () => {
Note: See TracChangeset
for help on using the changeset viewer.