%s', __( 'Video Player & Gallery', 'all-in-one-video-gallery' ) ); } /** * Prints the footer code needed for the "AIO Video Gallery" TinyMCE button. * * @since 1.0.0 */ public function admin_footer() { global $pagenow, $typenow; // Only run in post/page creation and edit screens if ( ! in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) { return; } // check if this is our custom post type page if ( in_array( $typenow, array( 'aiovg_videos', 'aiovg_automations' ) ) ) { return; } // check if the post/page uses Gutenberg editor if ( aiovg_is_gutenberg_page() ) { return; } // Shortcodes $shortcodes = array( 'categories' => __( 'Video Categories', 'all-in-one-video-gallery' ) . ' - [aiovg_categories]', 'videos' => __( 'Video Gallery', 'all-in-one-video-gallery' ) . ' - [aiovg_videos]', 'video' => __( 'Single Video', 'all-in-one-video-gallery' ) . ' - [aiovg_video]', 'search_form' => __( 'Search Form', 'all-in-one-video-gallery' ) . ' - [aiovg_search_form]' ); // Fields $fields = aiovg_get_block_fields(); // ... require_once AIOVG_PLUGIN_DIR . 'admin/partials/shortcode-builder.php'; } }