@using OurUmbraco.Forum.Extensions
@inherits Umbraco.Web.Macros.PartialViewMacroPage

@if(Members.IsLoggedIn()){


    var profile = Members.GetCurrentMemberProfileModel();
    var member = Members.GetCurrentMember();

    if (member != null) { 
    <script type="text/javascript">
        var umb_member_name = '@member.Name';
        var umb_member_email = '@profile.Email';
        var umb_member_icon = '@member.Avatar()';
    </script>
    }
    
}