Merge pull request #132 from stef-k/container-variable-fix

fix undefined variable issue in header and footer - Thx @stef-k
This commit is contained in:
Holger 2016-11-15 15:07:36 +01:00 committed by GitHub
commit fa0d4ee1d9
2 changed files with 6 additions and 3 deletions

View File

@ -7,14 +7,15 @@
* @package understrap * @package understrap
*/ */
$the_theme = wp_get_theme(); $the_theme = wp_get_theme();
$container = get_theme_mod('understrap_container_type');
?> ?>
<?php get_sidebar('footerfull'); ?> <?php get_sidebar('footerfull'); ?>
<div class="wrapper" id="wrapper-footer"> <div class="wrapper" id="wrapper-footer">
<div class="<?php echo $container?>" id="content"> <div class="<?php echo $container; ?>" id="content">
<div class="row"> <div class="row">

View File

@ -8,6 +8,8 @@
*/ */
?> ?>
<?php $container = get_theme_mod('understrap_container_type'); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html <?php language_attributes(); ?>> <html <?php language_attributes(); ?>>
<head> <head>
@ -33,7 +35,7 @@
<nav class="navbar navbar-dark bg-inverse site-navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"> <nav class="navbar navbar-dark bg-inverse site-navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
<div class="<?php echo $container?>" id="content"> <div class="<?php echo $container; ?>" id="content">
<div class="navbar-header"> <div class="navbar-header">