forked from mirror/_s
Merge pull request #831 from Automattic/responsive-videos
Add theme support for Responsive Videos.
This commit is contained in:
commit
9ce731d9e2
|
@ -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' );
|
||||||
|
|
||||||
|
|
Reference in New Issue