Back to PhocaDownloadRenderTabs class

Method startTab

public
startTab
(mixed $name)

Method startTab - Source code

public function startTab($name)
{
    $activeO = '';
    if ($this->activeTab == '' && $this->countTab == 0) {
        $activeO = ' active';
    } else {
        if ($this->activeTab == $name) {
            $activeO = ' active';
        }
    }
    $this->countTab++;
    return '<div class="phTabsContainer' . $activeO . '" id="phTabId' . $this->id . 'Item' . $name . 'Container">';
}