HTML; } /** * Add one more tab/pill in the navigation section of the tabbed area * * @param string $id The HTML ID of the tab content area opened by this tab/pill * @param string $title The title of the tab/pill * * @return string The HTML */ public static function addNav($id, $title) { return <<< HTML
  • $title
  • HTML; } /** * Closes the navigation area of the tabs and starts the content area * * @return string The HTML */ public static function startContent() { return <<< HTML
    HTML; } /** * Starts the content section of a tab * * @param string $id The HTML ID of this tab content. Must match what you previously used in addNav * @param boolean $active Is this tab active by default? * @param boolean $fade Should we use a fade transition effect? * * @return string The HTML */ public static function tab($id, $active = false, $fade = false) { $activeString = $active ? 'active' . ($fade ? ' in' : '') : ''; $fadeString = $fade ? 'fade' : ''; return <<< HTML
    HTML; } /** * Ends the tabbed area * * @return string The HTML */ public static function end() { return <<< HTML
    HTML; } }