added ability to add site through admin UI, fixed Logo control to not render of site does not have a logo, updated launchsettings so that port number is consistent for both IIS Express and .NET Core web server
This commit is contained in:
		| @ -1,5 +1,16 @@ | ||||
| @using Oqtane.Themes | ||||
| @inherits ThemeObjectBase | ||||
|  | ||||
| <a href="@PageState.Alias.Url"><img src="/Sites/@PageState.Site.SiteId/@PageState.Site.Logo" /></a> | ||||
| @((MarkupString)logo) | ||||
|  | ||||
| @functions { | ||||
|     string logo = ""; | ||||
|  | ||||
|     protected override void OnInit() | ||||
|     { | ||||
|         if (PageState.Site.Logo != "") | ||||
|         { | ||||
|             logo = "<a href=\"" + PageState.Alias.Url + "\"><img src=\"/Sites/" + PageState.Site.SiteId.ToString() + "/" + PageState.Site.Logo + "\" alt=\"" + PageState.Site.Name + "\"/></a>"; | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker