Plugin Directory

Changeset 2384420


Ignore:
Timestamp:
09/18/2020 12:19:39 PM (6 years ago)
Author:
raiserweb
Message:

gutenberg editor support

Location:
wp-admin-help-videos/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-admin-help-videos/trunk/includes/screen-help-class.php

    r2384354 r2384420  
    44
    55    public function __construct(){
     6
     7        add_action( 'enqueue_block_editor_assets', function(){
     8            wp_enqueue_script('wpahv-help-toolbar', WPAHV_Plugin_URL.'assets/js/gutenberg-help.js', array(), '1.0', true );
     9        });
     10
    611        add_action('in_admin_header', array($this, 'help_tabs'));
    712
     
    1520
    1621    public static function get_current_screen_array(){
     22        global $current_screen;
    1723        $screen = get_current_screen();
    1824        return self::make_screen_array($screen);
     
    7783                }
    7884            }
     85
     86            // this is for gutenberg videos, poped up via js
     87            echo "<div id='rw-gberg-help-content' style='display:none;'>".$content."</div>";
     88
    7989        }   
    8090
  • wp-admin-help-videos/trunk/readme.txt

    r2384354 r2384420  
    5555== Changelog ==
    5656
     57= 1.0.2 =
     58* Show help tab on gutenberg editor
     59
    5760= 1.0.1 =
    5861* Show help tab when hidden
  • wp-admin-help-videos/trunk/wp-admin-help-videos.php

    r2384354 r2384420  
    77 * Author URI:   raiserweb.com
    88 *
    9  * Version:      1.0.1
     9 * Version:      1.0.2
    1010 *
    1111 * Text Domain:  help-videos, admin-video, training-video
     
    3939
    4040    public function __construct() {
     41
     42        define('WPAHV_Plugin_URL', plugin_dir_url(__FILE__));
    4143
    4244        include_once(trailingslashit( dirname( __FILE__ ) ).'/includes/video-upload-class.php');
Note: See TracChangeset for help on using the changeset viewer.