/// <inheritdoc/> protected override void OnInit(EventArgs e) { base.OnInit(e); var extensionPointManager = new ExtensionPointManager(); StringBuilder str = new StringBuilder(); foreach (var extension in extensionPointManager.GetContextMenuItemExtensionPoints(this.Module, this.Group)) { var icon = extension.Icon; if (icon.StartsWith("~/")) { icon = Globals.ResolveUrl(icon); } str.Append(@"<li id=""" + extension.CtxMenuItemId + @""" class=""" + extension.CssClass + @"""> <a id=""" + extension.CtxMenuItemId + @"_link"" href=""#"" onclick=""" + extension.Action + @""" > <img id=""" + extension.CtxMenuItemId + @"_icon"" alt=""" + extension.AltText + @""" src=""" + icon + @""" title=""" + extension.AltText + @"""> <span id=""" + extension.CtxMenuItemId + @"_text"">" + extension.Text + @"</span> </a> </li>"); } this.content = str.ToString(); }
protected override void OnInit(EventArgs e) { base.OnInit(e); var extensionPointManager = new ExtensionPointManager(); StringBuilder str = new StringBuilder(); foreach (var extension in extensionPointManager.GetContextMenuItemExtensionPoints(Module, Group)) { var icon = extension.Icon; if (icon.StartsWith("~/")) { icon = Globals.ResolveUrl(icon); } str.Append(@"<li id=""" + extension.CtxMenuItemId + @""" class=""" + extension.CssClass + @"""> <a id=""" + extension.CtxMenuItemId + @"_link"" href=""#"" onclick=""" + extension.Action + @""" > <img id=""" + extension.CtxMenuItemId + @"_icon"" alt=""" + extension.AltText + @""" src=""" + icon + @""" title=""" + extension.AltText + @"""> <span id=""" + extension.CtxMenuItemId + @"_text"">"+extension.Text+@"</span> </a> </li>"); } content = str.ToString(); }
protected override void OnInit(EventArgs e) { base.OnInit(e); var extensionPointManager = new ExtensionPointManager(); StringBuilder str = new StringBuilder(); foreach (var extension in extensionPointManager.GetContextMenuItemExtensionPoints(Module, Group)) { str.Append(@"<li id=""" + extension.CtxMenuItemId + @""" class=""" + extension.CssClass + @"""> <a id=""" + extension.CtxMenuItemId + @"_link"" href=""#"" onclick=""" + extension.Action + @""" > <img id=""" + extension.CtxMenuItemId + @"_icon"" alt=""" + extension.AltText + @""" src=""" + extension.Icon + @""" title=""" + extension.AltText + @"""> <span id=""" + extension.CtxMenuItemId + @"_text"">" + extension.Text + @"</span> </a> </li>"); } content = str.ToString(); }