From 4cea6e9597afdd3b13415f886cbe903ac58265f3 Mon Sep 17 00:00:00 2001 From: spider Date: Wed, 18 Jun 2014 14:04:10 -0400 Subject: bootstrap3 and responsive fixes to maketoc --- plugins/filter.maketoc.php | 8 +++++--- 1 file 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 = "

" .( !empty( $pParams['title'] ) ? $pParams['title'] : tra( 'Page Contents' ) ).'

'.$list.$toplink.'
'; + $list = "'; return $list; } -- cgit v1.3