everbox_jetpack_setup

Add theme support for Infinite Scroll.

Description

everbox_jetpack_setup(); 

See: http://jetpack.me/support/infinite-scroll/


Usage

  1. if ( !function_exists( 'everbox_jetpack_setup' ) ) { 
  2. require_once '/inc/jetpack.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = everbox_jetpack_setup(); 
  7.  

Defined (1)

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

/inc/jetpack.php  
  1. function everbox_jetpack_setup() { 
  2. $infinite = get_theme_mod('everbox_infinite', 0 ); 
  3. if( !$infinite ) { 
  4. return; 
  5. add_theme_support( 'infinite-scroll', array( 
  6. 'container' => 'main',  
  7. 'footer' => 'page',  
  8. 'type' => 'click' 
  9. ) );