public static void RenderContact(HtmlWriter writer, ContactModule module, bool showHeader) { writer.RenderBeginTag(HtmlTextWriterTag.Div, "thumbnail contact"); if (showHeader) writer.RenderFullTag(HtmlTextWriterTag.H3, "Kontakt"); writer.AddAttribute(HtmlTextWriterAttribute.Src, module.Image.Url); writer.AddAttribute(HtmlTextWriterAttribute.Alt, module.FullName); writer.RenderImageTag(module.Image.Url, module.FullName, null); writer.RenderBeginTag(HtmlTextWriterTag.Div, "caption"); writer.RenderBeginTag(HtmlTextWriterTag.H5); writer.Write(module.FullName); writer.RenderEndTag(); // h5 writer.RenderBeginTag(HtmlTextWriterTag.P); WriteContactInfo(writer, module.Title); WriteContactInfo(writer, module.Area); if (!string.IsNullOrEmpty(module.Email)) { writer.AddAttribute(HtmlTextWriterAttribute.Title, "Email : " + module.Email); writer.RenderLinkTag("mailto:" + module.Email, "Email : " + module.Email); writer.WriteBreak(); } WriteContactInfo(writer, module.Phone, "Tlf."); WriteContactInfo(writer, module.Mobile, "Mobil"); writer.RenderEndTag(); // p writer.RenderEndTag(); // div.caption writer.RenderEndTag(); // div.thumbnail.contact }