summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspider <spider@bitweaver.org>2014-06-18 14:04:10 -0400
committerspider <spider@bitweaver.org>2014-06-18 14:04:10 -0400
commit4cea6e9597afdd3b13415f886cbe903ac58265f3 (patch)
treefa23a0c85c651b27f83bfab0e91de89b7e217d20
parentd757d223592fa46691ad5f468e26e976aa2507ac (diff)
downloadliberty-4cea6e9597afdd3b13415f886cbe903ac58265f3.tar.gz
liberty-4cea6e9597afdd3b13415f886cbe903ac58265f3.tar.bz2
liberty-4cea6e9597afdd3b13415f886cbe903ac58265f3.zip
bootstrap3 and responsive fixes to maketoc
-rw-r--r--plugins/filter.maketoc.php8
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;
}