Skip to content

Commit

Permalink
Added an id to NullSidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
awmartin committed Jun 27, 2014
1 parent 9bb060e commit 09e664a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions null.sidebar.php
Expand Up @@ -3,6 +3,7 @@
// Returns an <aside> tag containing the main navigation.
function NullSidebar($attr=array()){
$klass = '';
$id = 'main-sidebar';
$prepend = '';
$append = '';
$widgetArea = 'Navigation';
Expand All @@ -19,9 +20,13 @@ function NullSidebar($attr=array()){
if (array_key_exists('widgetArea', $attr)) {
$widgetArea = $attr['widgetArea'];
}
if (array_key_exists('id', $attr)) {
$id = $attr['id'];
}

$sidebarContent = NullWidgetArea($widgetArea);
$sidebarAttr = array(
'id' => $id,
'class' => 'sidebar widget-area '.$klass,
'role' => 'complementary'
);
Expand Down

0 comments on commit 09e664a

Please sign in to comment.