-
- public static function pointer_wp350_media() {
- $content = '<h3>' . __( 'New Media Manager' ) . '</h3>';
- $content .= '<p>' . __( 'Uploading files and creating image galleries has a whole new look. Check it out!' ) . '</p>';
-
- self::print_js( 'wp350_media', '.insert-media', array(
- 'content' => $content,
- 'position' => array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center' ),
- ) );
- }
-
- public static function pointer_wp360_revisions() {
- $content = '<h3>' . __( 'Compare Revisions' ) . '</h3>';
- $content .= '<p>' . __( 'View, compare, and restore other versions of this content on the improved revisions screen.' ) . '</p>';
-
- self::print_js( 'wp360_revisions', '.misc-pub-section.misc-pub-revisions', array(
- 'content' => $content,
- 'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center' ),
- ) );
- }
-
- public static function pointer_wp360_locks() {
- if ( ! is_multi_author() ) {
- return;
- }
-
- $content = '<h3>' . __( 'Edit Lock' ) . '</h3>';
- $content .= '<p>' . __( 'Someone else is editing this. No need to refresh; the lock will disappear when they’re done.' ) . '</p>';
-
- self::print_js( 'wp360_locks', 'tr.wp-locked .locked-indicator', array(
- 'content' => $content,
- 'position' => array( 'edge' => 'left', 'align' => 'left' ),
- ) );
- }
-
- public static function pointer_wp390_widgets() {
- if ( ! current_theme_supports( 'widgets' ) ) {
- return;
- }
-
- $content = '<h3>' . __( 'New Feature: Live Widget Previews' ) . '</h3>';
- $content .= '<p>' . __( 'Add, edit, and play around with your widgets from the theme customizer.' ) . ' ' . __( 'Preview your changes in real-time and only save them when you’re ready.' ) . '</p>';
-
- if ( 'themes' === get_current_screen()->id ) {
- $selector = '.theme.active .customize';
- $position = array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center' );
- } else {
- $selector = 'a[href="customize.php"]';
- if ( is_rtl() ) {
- $position = array( 'edge' => 'right', 'align' => 'center', 'my' => 'right-5px' );
- } else {
- $position = array( 'edge' => 'left', 'align' => 'center', 'my' => 'left-5px' );
- }
- }
-
- self::print_js( 'wp390_widgets', $selector, array(
- 'content' => $content,
- 'position' => $position,
- ) );
- }