src/ZKEACMS.SectionWidget/Views/SectionTemplate.LinkGroup.cshtml
(完整代码) 1KB@model SectionGroup
<p class="section-group-linkgroup btn-group">
@foreach (SectionContent content in Model.SectionContents.Where(m => m.SectionContentType == (int)SectionContentBase.Types.CallToAction).OrderBy(m => m.Order))
{
SectionContentCallToAction callToAction = content as SectionContentCallToAction;
if (callToAction != null)
{
<a class="btn btn-default" target="@Html.SmartLinkTarget(callToAction.Href)" href="@Url.PathContent(callToAction.Href)">@callToAction.InnerText</a>
}
}
</p>
@if (Model.SectionContents.Any(m => m.SectionContentType != (int)SectionContentBase.Types.CallToAction))
{
<div class="section-group-default">
@foreach (SectionContent content in Model.SectionContents.Where(m => m.SectionContentType != (int)SectionContentBase.Types.CallToAction).OrderBy(m => m.Order))
{
if (content.SectionContentType == (int)SectionContentBase.Types.CallToAction || content.SectionContentType == (int)SectionContentBase.Types.Image)
{
<p>
@{
Html.RenderContent(content);
}
</p>
}
else
{
Html.RenderContent(content);
}
}
</div>
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。