allow developers to use custom icon libraries (Open Iconic is the default)

This commit is contained in:
Shaun Walker
2020-12-22 08:37:33 -05:00
parent 05b0b74578
commit df382ce7a3
13 changed files with 41 additions and 20 deletions

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Themes.Controls
@namespace Oqtane.Themes.Controls
@inherits MenuBase
@if (MenuPages.Any())
@ -19,7 +19,7 @@
<a class="nav-link" href="@GetUrl(p)" target="@GetTarget(p)" >
@if (p.Icon != string.Empty)
{
<span class="oi oi-@p.Icon" aria-hidden="true"></span>
<span class="@p.Icon" aria-hidden="true"></span>
}
@p.Name<span class="sr-only">(current)</span>
</a>
@ -31,7 +31,7 @@
<a class="nav-link" href="@GetUrl(p)" target="@GetTarget(p)" >
@if (p.Icon != string.Empty)
{
<span class="oi oi-@p.Icon" aria-hidden="true"></span>
<span class="@p.Icon" aria-hidden="true"></span>
}
@p.Name
</a>

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Themes.Controls
@namespace Oqtane.Themes.Controls
@inherits MenuBase
@if (MenuPages.Any())
@ -22,7 +22,7 @@
}
@if (p.Icon != string.Empty)
{
<span class="oi oi-@p.Icon" aria-hidden="true"></span>
<span class="@p.Icon" aria-hidden="true"></span>
}
@p.Name
</a>

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Themes.Controls
@namespace Oqtane.Themes.Controls
@inherits ModuleActionsBase
@attribute [OqtaneIgnore]
@ -22,7 +22,7 @@
}
else
{
<span class="oi oi-@action.Icon" aria-hidden="true"></span>
<span class="@action.Icon" aria-hidden="true"></span>
}
&nbsp;
@action.Name