fixing some more PHPCBF issues

This commit is contained in:
koenemann 2017-01-27 13:22:02 +01:00
parent c8743002be
commit 6bd57dd4ca
3 changed files with 20 additions and 5 deletions

View File

@ -7,7 +7,7 @@
?>
<?php if ( is_active_sidebar('hero') or is_active_sidebar('statichero')) : ?>
<?php if ( is_active_sidebar( 'hero' ) or is_active_sidebar( 'statichero' ) ) : ?>
<div class="wrapper" id="wrapper-hero">
@ -17,4 +17,4 @@
</div>
<?php endif; ?>
<?php endif; ?>

View File

@ -1,3 +1,12 @@
<?php
/**
* Left sidebar check.
*
* @package understrap
*/
?>
<?php
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
// On WooCommerce pages there is no need for sidebars as they leave

View File

@ -1,4 +1,10 @@
<?php
<?php
/**
* Custom header setup.
*
* @package understrap
*/
function understrap_custom_header_setup() {
/**
@ -22,7 +28,7 @@ function understrap_custom_header_setup() {
'default-image' => get_parent_theme_file_uri( '/img/header.jpg' ),
'width' => 2000,
'height' => 1200,
'flex-height' => true
'flex-height' => true,
) ) );
register_default_headers( array(
@ -33,4 +39,4 @@ function understrap_custom_header_setup() {
),
) );
}
add_action( 'after_setup_theme', 'understrap_custom_header_setup' );
add_action( 'after_setup_theme', 'understrap_custom_header_setup' );