Merge pull request #831 from Automattic/responsive-videos

Add theme support for Responsive Videos.
This commit is contained in:
Tammie Lister 2015-10-27 18:23:13 +00:00
commit 9ce731d9e2
1 changed files with 7 additions and 1 deletions

View File

@ -8,15 +8,21 @@
*/ */
/** /**
* Add theme support for Infinite Scroll. * Jetpack setup function.
*
* See: https://jetpack.me/support/infinite-scroll/ * See: https://jetpack.me/support/infinite-scroll/
* See: https://jetpack.me/support/responsive-videos/
*/ */
function _s_jetpack_setup() { function _s_jetpack_setup() {
// Add theme support for Infinite Scroll.
add_theme_support( 'infinite-scroll', array( add_theme_support( 'infinite-scroll', array(
'container' => 'main', 'container' => 'main',
'render' => '_s_infinite_scroll_render', 'render' => '_s_infinite_scroll_render',
'footer' => 'page', 'footer' => 'page',
) ); ) );
// Add theme support for Responsive Videos.
add_theme_support( 'jetpack-responsive-videos' );
} // end function _s_jetpack_setup } // end function _s_jetpack_setup
add_action( 'after_setup_theme', '_s_jetpack_setup' ); add_action( 'after_setup_theme', '_s_jetpack_setup' );