', $this->genHTMLParams($divParams));
+ ]);
foreach ($this->data['content'] as $i => $content) {
$navItem = $this->data['navs'][$i];
$html .= $this->genContentItem($navItem, $content);
@@ -269,13 +265,12 @@ class BootstrapTabs extends Helper
private function genContentItem($navItem, $content)
{
- $divParams = [
+ $html = $this->genNode('div', [
'class' => array_merge(['tab-pane', 'fade'], [!empty($navItem['active']) ? 'show active' : '']),
'role' => 'tabpanel',
'id' => $navItem['id'],
'aria-labelledby' => $navItem['id'] . '-tab'
- ];
- $html = sprintf('
', $this->genHTMLParams($divParams));
+ ]);
$html .= $content;
$html .= '
';
return $html;