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' );
|
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() {
|
function understrap_components_jetpack_setup() {
|
||||||
// Add theme support for Infinite Scroll.
|
// Add theme support for Infinite Scroll.
|
||||||
add_theme_support( 'infinite-scroll', array(
|
add_theme_support(
|
||||||
'container' => 'main',
|
'infinite-scroll',
|
||||||
'render' => 'understrap_components_infinite_scroll_render',
|
array(
|
||||||
'footer' => 'page',
|
'container' => 'main',
|
||||||
) );
|
'render' => 'understrap_components_infinite_scroll_render',
|
||||||
|
'footer' => 'page',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
// Add theme support for Responsive Videos.
|
// Add theme support for Responsive Videos.
|
||||||
add_theme_support( 'jetpack-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.
|
* 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() {
|
function understrap_components_infinite_scroll_render() {
|
||||||
while ( have_posts() ) {
|
while ( have_posts() ) {
|
||||||
the_post();
|
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() {
|
function understrap_components_social_menu() {
|
||||||
if ( ! function_exists( 'jetpack_social_menu' ) ) {
|
if ( ! function_exists( 'jetpack_social_menu' ) ) {
|
||||||
return;
|
return;
|
||||||
|
|
Reference in New Issue