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:
Shaun Walker
2019-06-14 17:24:52 -04:00
parent d04f3083a8
commit 600872d0b0
10 changed files with 105 additions and 18 deletions

View File

@ -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>";
}
}
}