Skip to content

Commit

Permalink
Updated layout to be more HTML5-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
awmartin committed Apr 2, 2017
1 parent 381fe9f commit 14b83f0
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions null.layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,34 @@ function NullFullWidth($content) {
}

function NullContentSidebar($content, $sidebar) {
$layout = '<div class="row">';

$layout .= NullTag('main', $content, array('class' => 'eight columns'));
$layout .= NullTag('aside', $sidebar, array('class' => 'four columns'));

$layout .= '</div>';

return NullSection($layout);
return NullRow(
NullTag('div', $content, array('class' => 'eight columns'))
. NullTag('aside', $sidebar, array('class' => 'four columns'))
);
}

function NullSidebarContent($content, $sidebar) {
$layout = '<div class="row">';
return NullRow(
NullTag('aside', $sidebar, array('class' => 'four columns'))
. NullTag('div', $content, array('class' => 'eight columns'))
);
}

$layout .= NullTag('aside', $sidebar, array('class' => 'four columns'));
$layout .= NullTag('main', $content, array('class' => 'eight columns'));

$layout .= '</div>';
function NullArticle($content, $options=array()) {
return NullTag('article', $content, $options);
}

return NullSection($layout);
function NullArticleHeader($content, $options=array()) {
return NullTag('header', $content, $options);
}

function NullArticleFooter($content, $options=array()) {
return NullTag('footer', $content, $options);
}

function NullSection($content, $options=array()) {
return NullTag('section', NullContainer($content), $options);
return NullTag('section', $content, $options);
}

function NullContainer($content) {
Expand Down

0 comments on commit 14b83f0

Please sign in to comment.