using System; using System.Data; namespace yaf.controls { /// /// Summary description for ForumUsers. /// public class ProfileMenu : BaseControl { protected override void Render( System.Web.UI.HtmlTextWriter writer ) { System.Text.StringBuilder html = new System.Text.StringBuilder( 2000 ); html.Append( "" ); if ( ForumPage.BoardSettings.AllowPrivateMessages ) { html.AppendFormat( "", ForumPage.GetText( "MESSENGER" ) ); html.AppendFormat( "" ); html.AppendFormat( "" ); } html.AppendFormat( "", ForumPage.GetText( "PERSONAL_PROFILE" ) ); html.AppendFormat( "" ); html.Append( "
{0}
" ); html.AppendFormat( "
  • {1}
  • ", Forum.GetLink( Pages.cp_inbox ), ForumPage.GetText( "INBOX" ) ); html.AppendFormat( "
  • {1}
  • ", Forum.GetLink( Pages.cp_inbox, "sent=1" ), ForumPage.GetText( "SENTITEMS" ) ); html.AppendFormat( "
  • {1}
  • ", Forum.GetLink( Pages.pmessage ), ForumPage.GetText( "NEW_MESSAGE" ) ); html.AppendFormat( "
     
    {0}
    " ); html.AppendFormat( "
  • {1}
  • ", Forum.GetLink( Pages.cp_editprofile ), ForumPage.GetText( "EDIT_PROFILE" ) ); html.AppendFormat( "
  • {1}
  • ", Forum.GetLink( Pages.cp_editavatar ), ForumPage.GetText( "EDIT_AVATAR" ) ); if ( ForumPage.BoardSettings.AllowSignatures ) html.AppendFormat( "
  • {1}
  • ", Forum.GetLink( Pages.cp_signature ), ForumPage.GetText( "SIGNATURE" ) ); html.AppendFormat( "
  • {1}
  • ", Forum.GetLink( Pages.cp_subscriptions ), ForumPage.GetText( "SUBSCRIPTIONS" ) ); html.AppendFormat( "
    " ); writer.Write( html.ToString() ); } } }