/**
     * Returns the upper part of the tab, with any errors
     *
     * @param Ai1ec_Facebook_Current_User $user The user currently logged in to Facebook
     *
     * @return string the HTML
     */
    private function render_user_html(Ai1ec_Facebook_Current_User $user)
    {
        // Create the variables and then create the HTML.
        $submit_logout_value = esc_attr__('Sign out of Facebook', AI1EC_PLUGIN_NAME);
        $submit_subscribe_your_events = esc_attr__('Subscribe to your events', AI1EC_PLUGIN_NAME);
        $alerts = $this->generate_html_for_alerts();
        $submit_your_events = $user->get_subscribed() ? '' : '<button type="submit" id="ai1ec_facebook_subscribe_yours" class="btn btn-primary" name="ai1ec_facebook_subscribe_yours"><i class="icon-plus"></i> ' . $submit_subscribe_your_events . '</button>';
        $user = $this->render_user_pic_and_icons($user);
        $question_mark = $this->render_question_mark_for_facebook();
        $html = <<<HTML
<div class="row-fluid">
\t<div class="span12">
\t\t<div id="alerts">{$alerts}</div>
\t\t<div id="ai1ec-facebook">
\t\t{$user}
\t\t</div>
\t\t<div class="ai1ec_submit_wrapper btn-toolbar">
\t\t\t<div class="btn-group">
\t\t\t\t{$submit_your_events}
\t\t\t\t<button type="submit" id="ai1ec_logout_facebook" class="btn"
\t\t\t\t\tname="ai1ec_logout_facebook">
\t\t\t\t\t<i class="icon-signout"></i> {$submit_logout_value}
\t\t\t\t</button>
\t\t\t</div>
\t\t\t<div class="btn-group">
\t\t\t\t{$question_mark}
\t\t\t</div>
\t\t</div>
\t</div>
</div>
HTML;
        return $html;
    }
    /**
     * Returns the upper part of the tab, with any errors
     *
     * @param Ai1ec_Facebook_Current_User $user The user currently logged in to Facebook
     *
     * @return string the HTML
     */
    private function render_user_html(Ai1ec_Facebook_Current_User $user)
    {
        // Create the variables and then create the HTML.
        $submit_logout_value = esc_attr__('Log out from Facebook', AI1EC_PLUGIN_NAME);
        $submit_subscribe_your_events = esc_attr__('Subscribe to your events', AI1EC_PLUGIN_NAME);
        $alerts = $this->generate_html_for_alerts();
        $submit_your_events = $user->get_subscribed() ? "<input type='submit' id='ai1ec_facebook_subscribe_yours' name='ai1ec_facebook_subscribe_yours' class='button-primary hide' value='{$submit_subscribe_your_events}'>" : "<input type='submit' id='ai1ec_facebook_subscribe_yours' name='ai1ec_facebook_subscribe_yours' class='button-primary' value='{$submit_subscribe_your_events}'>";
        $user = $this->render_user_pic_and_icons($user);
        $question_mark = $this->render_question_mark_for_facebook();
        $html = <<<HTML
<div class="row-fluid">
\t<div class="span12">
\t\t<div id="alerts">{$alerts}</div>
\t\t<div id="ai1ec-facebook">
\t\t{$user}
\t\t</div>
\t\t<div class="ai1ec_submit_wrapper">
\t\t\t{$submit_your_events}
\t\t\t<input type="submit" id="ai1ec_logout_facebook" name="ai1ec_logout_facebook" class="button-secondary" value="{$submit_logout_value}">
\t\t\t{$question_mark}
\t\t</div>
\t</div>
</div>
HTML;
        return $html;
    }