jetpack_infinite_scroll_more_info

The Jetpack by WordPress.com jetpack infinite scroll more info function.

Description

jetpack_infinite_scroll_more_info(); 

Usage

  1. if ( !function_exists( 'jetpack_infinite_scroll_more_info' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/module-info.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_infinite_scroll_more_info(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/module-info.php  
  1. function jetpack_infinite_scroll_more_info() { 
  2. $support_text = sprintf( __( 'If you are a theme author, you can learn about adding support for Infinite Scroll at <a href="%1$s">%1$s</a>.', jetpack ), 'http://jetpack.me/support/infinite-scroll/' ); 
  3.  
  4. ?> 
  5.  
  6. <?php if ( ! Jetpack::is_active() || ( Jetpack::is_active() && current_theme_supports( 'infinite-scroll' ) ) ) : ?> 
  7. <p><?php esc_html_e( 'When you write great content, all you really want is people to find it, right?', jetpack ); ?></p> 
  8.  
  9. <p><?php esc_html_e( "With the Infinite Scroll module and a supported theme, that's exactly what happens. Instead of the old way of navigating down a page by scrolling and then clicking a link to get to the next page, waiting for a page refresh—the document model of the web—infinite scrolling pulls the next set of posts automatically into view when the reader approaches the bottom of the page, more like an application.", jetpack ); ?></p> 
  10.  
  11. <?php else : ?> 
  12. <p><?php echo esc_html( sprintf( __( "At this time, your theme, %s, doesn't support Infinite Scroll. Unlike other Jetpack modules, Infinite Scroll needs information from your theme to function properly.", jetpack ), ( function_exists( 'wp_get_theme' ) ? wp_get_theme()->Name : get_current_theme() ) ) ); ?></p> 
  13.  
  14. <p><?php esc_html_e( "Until your theme supports Infinite Scroll, you won't be able to activate this module.", jetpack ); ?></p> 
  15.  
  16. <?php 
  17.  
  18. if ( current_user_can( 'update_themes' ) ) : 
  19. ob_start(); 
  20. theme_update_available( function_exists( 'wp_get_theme' ) ? wp_get_theme() : (object) get_theme( get_current_theme() ) ); 
  21. $theme_update_available = ob_get_clean(); 
  22.  
  23. if ( ! empty( $theme_update_available ) ) : ?> 
  24. <p><?php printf( __( 'There is an update available for your theme. You may wish to check if this update adds Infinite Scroll support by visiting the <a href="%s">WordPress Updates</a> page.', jetpack ), esc_url( admin_url( 'update-core.php' ) ) ); ?></p> 
  25. <?php else : ?> 
  26. <p><?php echo $support_text; ?></p> 
  27. <?php endif; ?> 
  28. <?php else : ?> 
  29. <p><?php echo $support_text; ?></p> 
  30. <?php endif; ?> 
  31. <?php endif;