diff --git a/src/View/Helper/BootstrapHelper.php b/src/View/Helper/BootstrapHelper.php index 075d350..f8e482e 100644 --- a/src/View/Helper/BootstrapHelper.php +++ b/src/View/Helper/BootstrapHelper.php @@ -198,11 +198,11 @@ class BootstrapTabs extends Helper private function genVerticalTabs() { - $html = sprintf('
', $this->genHTMLParams(['class' => 'row'])); - $html .= sprintf('
', $this->genHTMLParams(['class' => 'col-' . $this->options['vertical-size']])); + $html = $this->genNode('div', ['class' => ['row']]);; + $html .= $this->genNode('div', ['class' => 'col-' . $this->options['vertical-size']]); $html .= $this->genNav(); $html .= '
'; - $html .= sprintf('
', $this->genHTMLParams(['class' => 'col-' . (12 - $this->options['vertical-size'])])); + $html .= $this->genNode('div', ['class' => 'col-' . (12 - $this->options['vertical-size'])]); $html .= $this->genContent(); $html .= '
'; $html .= '
'; @@ -211,11 +211,10 @@ class BootstrapTabs extends Helper private function genNav() { - $ulParams = [ + $html = $this->genNode('ul', [ 'class' => array_merge(['nav'], $this->bsClasses['nav'], $this->options['nav-class']), 'role' => 'tablist', - ]; - $html = sprintf('