src/View/Helper/MelisModal.php
public function setTabContent(array $tab)
    {
        if($tab && is_array($tab)) {
            
            foreach($tab as $attrib => $values)
            {
                $this->_tabs .= '<li><a href="#'.$values['id'].'" class="'.$values['class'].'" data-toggle="tab"><i></i><span class="strong">'.$values['tab-header'].'</span>'.$values['tab-text'].'</a></li>';
            }
            $this->setContent($tab);
        }
    }
public function setTabContent(array $tab)
    {
        if($tab && is_array($tab)) {
            
            foreach($tab as $attrib => $values)
            {
                $this->_tabs .= '<li><a href="#'.$values['id'].'" class="'.$values['class'].'" data-toggle="tab"><i></i><span class="strong">'.$values['tab-header'].'</span>'.$values['tab-text'].'</a></li>';
            }
            $this->setContent($tab);
        }
    }
public function setTabContent ( array $ tab ) { if ( $ tab && is_array ( $ tab ) ) { foreach ( $ tab as $ attrib => $ values ) { $ this -> _tabs .= '<li><a href="#' . $ values [ 'id' ] . '" class="' . $ values [ 'class' ] . '" data-toggle="tab"><i></i><span class="strong">' . $ values [ 'tab-header' ] . '</span>' . $ values [ 'tab-text' ] . '</a></li>' ; } $ this -> setContent ( $ tab ) ; } }
Sets a single tab in a modal without an active tab
@param array $tab
Sets a single tab in a modal without an active tab