src/ZKEACMS.WebHost/Views/Theme/Index.cshtml

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@using Microsoft.AspNetCore.Hosting
@using Microsoft.Extensions.Hosting
@model IEnumerable<ThemeEntity>
<div class="panel panel-default">
    <div class="panel-heading">
        @L("Theme")
    </div>
    <div class="panel-body">
        <div class="row">
            @foreach (ThemeEntity item in Model)
            {
                <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
                    <div class="thumbnail @(item.IsActived ? "active" : "")">
                        <a href="@Url.Action("PreView", "Theme", new {id = item.ID})">
                            <img src="@Url.Content(item.Thumbnail ?? ThemeEntity.DefaultThumbnail)" alt="@item.Title" />
                        </a>
                        @if (Authorizer.Authorize(PermissionKeys.ManageTheme))
                        {
                            <div class="radio clearfix">
                                <label>
                                    <input type="radio" name="theme" @(item.IsActived ? "checked" : "") value="@item.ID"> @item.Title
                                </label>
                                @if (ApplicationContext.HostingEnvironment.IsDevelopment())
                                {
                                    <div class="pull-right">
                                        <a class="download pack-theme" href="@Url.Action("ThemePackage", new {id = item.ID})" title="@L("Pack")">
                                            <i class="glyphicon glyphicon-download-alt"></i>
                                        </a>
                                    </div>
                                }
                            </div>
                        }
                    </div>
                </div>
            }
        </div>
        <hr />
        <ul class="text-muted">
            <li>
                @L("Click on the \"Thumbnails\" to preview. Click on \"Exit Theme Preview\" in the preview page to return to the page.")
            </li>
            <li>
                @L("Click the radio button to switch the theme")
            </li>
            <li>
                @L("Reinstall to update the theme")
            </li>
        </ul>
    </div>
    @if (Authorizer.Authorize(PermissionKeys.ManageTheme))
    {
        <div class="panel-footer clearfix">
            <input type="button" value="@L("Install Theme")" class="btn btn-primary select-theme" />
            <a target="_blank" class="btn btn-danger" href="http://www.zkea.net/zkeacms/theme">@L("Download Theme")</a>
            <div class="hide">
                <input id="file" type="file" name="file" />
            </div>
        </div>
    }
</div>
后面还有 35 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。