diff options
| -rw-r--r-- | plugins/filter.maketoc.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/filter.maketoc.php b/plugins/filter.maketoc.php index ae9b7b4..0817143 100644 --- a/plugins/filter.maketoc.php +++ b/plugins/filter.maketoc.php @@ -238,12 +238,14 @@ function maketoc_create_list( $pTocHash, $pParams ) { } } - $class = 'class="maketoc"'; + $class = 'maketoc'; if( !empty( $pParams['class'] ) ) { - $class = 'class="'.$pParams['class'].'"'; + $class .= ' '.$pParams['class']; + } else { + $class .= ' well width33p pull-right'; } - $list = "<div $class $width><h3>" .( !empty( $pParams['title'] ) ? $pParams['title'] : tra( 'Page Contents' ) ).'</h3>'.$list.$toplink.'</div>'; + $list = "<nav class='$class' $width><h3>" .( !empty( $pParams['title'] ) ? $pParams['title'] : tra( 'Page Contents' ) ).'</h3>'.$list.$toplink.'</nav>'; return $list; } |
