function customization_nav($active_tab)
{
    use_helper('Forum');
    $context = sfContext::getInstance();
    $id = $context->getUser()->getId();
    if ($context->getUser()->isConnected() && $context->getRequest()->isXmlHttpRequest()) {
        return '<ul class="tabs">' . '  <li ' . setActiveIf('customize', $active_tab) . '>' . customize_link_to() . '</li>' . '  <li ' . setActiveIf('personal', $active_tab) . '>' . personal_preferences_link_to() . '</li>' . '  <li ' . setActiveIf('langpref', $active_tab) . '>' . language_preferences_link_to() . '</li>' . '  <li>' . f_link_to(__('User profile'), "profile.php?section=personality&id={$id}") . '</li>' . '</ul>';
    }
}
                    <li><?php 
    echo picto_tag('picto_outings') . link_to(__('My statistics'), 'outings/mystats');
    ?>
</li>
                    <?php 
}
?>
                    <li><?php 
echo picto_tag('picto_tools') . customize_link_to();
?>
</li>
                    <?php 
if ($is_connected) {
    ?>
                    <li><?php 
    echo picto_tag('picto_tools') . personal_preferences_link_to();
    ?>
</li>
                    <li><?php 
    echo picto_tag('picto_tools') . language_preferences_link_to();
    ?>
</li>
                    <li><?php 
    echo picto_tag('action_edit') . f_link_to(__('User profile'), 'profile.php?section=personality');
    ?>
</li>
                    <li><?php 
    echo picto_tag('action_contact') . link_to(__('Mailing lists link'), 'users/mailinglists');
    ?>
</li>
                <?php