Пример #1
0
 /**
  * Print 'New Feature: Choose Image from Library' for 3.4.0.
  *
  * @since 3.4.0
  */
 public static function pointer_wp340_choose_image_from_library()
 {
     $content = '<h3>' . __('New Feature: Choose Image from Library') . '</h3>';
     $content .= '<p>' . __('Want to use an image you uploaded earlier? Select it from your media library instead of uploading it again.') . '</p>';
     WP_Internal_Pointers::print_js('wp340_choose_image_from_library', '#choose-from-library-link', array('content' => $content, 'position' => array('edge' => 'top', 'align' => is_rtl() ? 'right' : 'left', 'defer_loading' => true)));
 }
Пример #2
0
 /**
  * Print 'New Feature: Saving Widgets' for 3.3.0.
  *
  * @since 3.3.0
  */
 public static function pointer_wp330_saving_widgets()
 {
     $content = '<h3>' . __('New Feature: Saving Widgets') . '</h3>';
     $content .= '<p>' . __('If you change your mind and revert to your previous theme, we&#8217;ll put the widgets back the way you had them.') . '</p>';
     WP_Internal_Pointers::print_js('wp330_saving_widgets', '#message2', array('content' => $content, 'position' => array('edge' => 'top', 'align' => is_rtl() ? 'right' : 'left')));
 }
Пример #3
0
 /**
  * Print 'New Feature: Current Theme Customize Link' for 3.4.0.
  *
  * @since 3.4.0
  */
 public static function pointer_wp340_customize_current_theme_link()
 {
     $content = '<h3>' . __('New Feature: Customizer') . '</h3>';
     $content .= '<p>' . __('Click Customize to change the header, background, title and menus of the current theme, all in one place.') . '</p>';
     $content .= '<p>' . __('Click the Customize links in the Available Themes list below to customize, preview, and optionally activate the selected theme.') . '</p>';
     WP_Internal_Pointers::print_js('wp340_customize_current_theme_link', '#customize-current-theme-link', array('content' => $content, 'position' => array('edge' => 'top', 'align' => is_rtl() ? 'right' : 'left')));
 }