mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-17 13:33:32 +09:00
Change shortcode buttons
Instead of enabling individually, enable the buttons all at once, and use js to hide them behind one master button, kind of a dropdown menu style.
This commit is contained in:
@@ -340,6 +340,9 @@ class Display_Featured_Image_Genesis {
|
||||
add_filter( 'sixtenpress_shortcode_inline_css', array( $shortcode_class, 'inline_css' ) );
|
||||
add_action( 'sixtenpress_shortcode_init', array( $shortcode_class, 'shortcode_buttons' ) );
|
||||
add_action( 'sixtenpress_shortcode_modal', array( $shortcode_class, 'do_modal' ) );
|
||||
add_action( 'sixtenpress_shortcode_before_media_button', array( $shortcode_class, 'button_open' ) );
|
||||
add_action( 'sixtenpress_shortcode_after_media_button', array( $shortcode_class, 'button_close' ) );
|
||||
add_action( 'admin_enqueue_scripts', array( $shortcode_class, 'inline_script_style' ), 1000 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user