public function output()
    {
        if (!$this->shouldOutput()) {
            return false;
        }

        echo '<h2 class="modularity-nav-tab-wrapper" id="modularity-tabs">';

        $requestUri = str_replace('&message=1', '', $_SERVER['REQUEST_URI']);

        foreach ($this->tabs as $tab => $url) {
            if (strpos($url, $requestUri) !== false || (strpos($url, 'post.php') !== false && strpos($requestUri, 'post-new.php') !== false)) {
                echo '<a href="' . $url . '" class="nav-tab nav-tab-active">' . $tab . '</a>';
            } else {
                echo '<a href="' . $url . '" class="nav-tab">' . $tab . '</a>';
            }
        }

        echo '<div class="modularity-clearfix"></div></h2>';
    }