Fix indentation & space usage
This commit is contained in:
parent
ee459e936b
commit
b1f541fcfc
|
@ -20,14 +20,17 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
add_action( 'after_setup_theme', 'understrap_components_jetpack_setup' );
|
||||
|
||||
if ( ! function_exists ( 'understrap_components_jetpack_setup' ) ) {
|
||||
if ( ! function_exists( 'understrap_components_jetpack_setup' ) ) {
|
||||
function understrap_components_jetpack_setup() {
|
||||
// Add theme support for Infinite Scroll.
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'main',
|
||||
'render' => 'understrap_components_infinite_scroll_render',
|
||||
'footer' => 'page',
|
||||
) );
|
||||
add_theme_support(
|
||||
'infinite-scroll',
|
||||
array(
|
||||
'container' => 'main',
|
||||
'render' => 'understrap_components_infinite_scroll_render',
|
||||
'footer' => 'page',
|
||||
)
|
||||
);
|
||||
|
||||
// Add theme support for Responsive Videos.
|
||||
add_theme_support( 'jetpack-responsive-videos' );
|
||||
|
@ -43,7 +46,7 @@ if ( ! function_exists ( 'understrap_components_jetpack_setup' ) ) {
|
|||
* Custom render function for Infinite Scroll.
|
||||
*/
|
||||
|
||||
if ( ! function_exists ( 'understrap_components_infinite_scroll_render' ) ) {
|
||||
if ( ! function_exists( 'understrap_components_infinite_scroll_render' ) ) {
|
||||
function understrap_components_infinite_scroll_render() {
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
|
@ -56,7 +59,7 @@ if ( ! function_exists ( 'understrap_components_infinite_scroll_render' ) ) {
|
|||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists ( 'understrap_components_social_menu' ) ) {
|
||||
if ( ! function_exists( 'understrap_components_social_menu' ) ) {
|
||||
function understrap_components_social_menu() {
|
||||
if ( ! function_exists( 'jetpack_social_menu' ) ) {
|
||||
return;
|
||||
|
@ -64,4 +67,4 @@ if ( ! function_exists ( 'understrap_components_social_menu' ) ) {
|
|||
jetpack_social_menu();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue