Plugin Directory

Changeset 2191525


Ignore:
Timestamp:
11/13/2019 10:37:34 AM (6 years ago)
Author:
iseulde
Message:

v0.0.39

Location:
slide/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • slide/trunk/index.php

    r2191391 r2191525  
    55 * Plugin URI:  https://wordpress.org/plugins/slide/
    66 * Description: Allows you to create presentations with the block editor.
    7  * Version:     0.0.38
     7 * Version:     0.0.39
    88 * Author:      Ella van Durpe
    99 * Author URI:  https://ellavandurpe.com
     
    5454        filemtime( dirname( __FILE__ ) . '/common.css' )
    5555    );
     56
     57    global $wp_styles;
     58
     59    $template_directory_uri = get_template_directory_uri();
     60
     61    foreach ( $wp_styles->queue as $handle ) {
     62        $info = $wp_styles->registered[ $handle ];
     63
     64        if ( substr( $info->src, 0, strlen( $template_directory_uri ) ) === $template_directory_uri ) {
     65            wp_dequeue_style( $handle );
     66        }
     67    }
    5668}, 99999 );
    5769
     
    102114    global $wp_styles;
    103115
     116    $template_directory_uri = get_template_directory_uri();
     117
    104118    foreach ( $wp_styles->queue as $handle ) {
    105119        $info = $wp_styles->registered[ $handle ];
    106120
    107         if ( $info->src === get_stylesheet_uri() ) {
     121        if ( substr( $info->src, 0, strlen( $template_directory_uri ) ) === $template_directory_uri ) {
    108122            wp_dequeue_style( $handle );
    109123        }
     
    148162        'slide-template',
    149163        plugins_url( 'template.js', __FILE__ ),
    150         array( 'slide-reveal', 'slide-reveal-notes' ),
     164        array( 'slide-reveal', 'slide-reveal-notes', 'wp-i18n' ),
    151165        filemtime( dirname( __FILE__ ) . '/template.js' ),
    152166        true
  • slide/trunk/readme.md

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

    r2184321 r2191525  
    3232    'show_ui' => true,
    3333    'show_in_menu' => true,
     34    'menu_icon' => 'dashicons-media-interactive',
    3435    'query_var' => true,
    3536    'rewrite' => array( 'slug' => 'presentation' ),
  • slide/trunk/speaker.js

    r2186947 r2191525  
    2222  document.querySelector('#next').addEventListener('click', () => {
    2323    callRevealApi('next');
    24   });
    25 
    26   const editorButton = document.querySelector('#editor');
    27 
    28   editorButton.addEventListener('click', () => {
    29     const href = editorButton.getAttribute('data-href');
    30     if (href) {
    31       window.opener.location.href = href;
    32       window.close();
    33     }
    3424  });
    3525
  • slide/trunk/template.js

    r2186947 r2191525  
    6666window.addEventListener('DOMContentLoaded', () => {
    6767  const bar = document.querySelector('ul#wp-admin-bar-root-default');
     68  const { __ } = window.wp.i18n;
    6869
    6970  if (!bar) {
     
    7576  const fullscreenButton = document.createElement('button');
    7677  const speakerButton = document.createElement('button');
    77   const fullscreenText = document.createTextNode('Fullscreen');
    78   const speakerText = document.createTextNode('Speaker View');
     78  const fullscreenText = document.createTextNode(__('Fullscreen', 'slide'));
     79  const speakerText = document.createTextNode(__('Speaker View', 'slide'));
    7980
    8081  fullscreenButton.appendChild(fullscreenText);
  • slide/trunk/template.php

    r2186947 r2191525  
    196196    </style>
    197197    <style>
    198         <?php echo esc_html( get_post_meta( get_the_ID(), 'presentation-css', true ) ); ?>
     198        <?php
     199            // Allow quotes.
     200            echo str_replace( '<', '', get_post_meta( get_the_ID(), 'presentation-css', true ) );
     201        ?>
    199202    </style>
    200203</head>
Note: See TracChangeset for help on using the changeset viewer.