twentyfourteen_init_jetpack

The Jetpack by WordPress.com twentyfourteen init jetpack function.

Description

twentyfourteen_init_jetpack(); 

Usage

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

Defined (1)

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

/modules/theme-tools/compat/twentyfourteen.php  
  1. function twentyfourteen_init_jetpack() { 
  2. /** 
  3. * Add our compat CSS file for custom widget stylings and such. 
  4. * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production. 
  5. */ 
  6. $version = false; 
  7. if ( method_exists( 'Jetpack', 'is_development_version' ) ) { 
  8. $version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentyfourteen.css' ) : JETPACK__VERSION
  9. wp_enqueue_style( 'twentyfourteen-jetpack', plugins_url( 'twentyfourteen.css', __FILE__ ), array(), $version ); 
  10. wp_style_add_data( 'twentyfourteen-jetpack', 'rtl', 'replace' );