src/SSCMS.Core/StlParser/StlElement/StlContent.cs
(开头部分) 32KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Text;
using System.Threading.Tasks;
using SSCMS.Configuration;
using SSCMS.Core.StlParser.Attributes;
using SSCMS.Core.StlParser.Utility;
using SSCMS.Core.Utils;
using SSCMS.Enums;
using SSCMS.Models;
using SSCMS.Parse;
using SSCMS.Services;
using SSCMS.Utils;
namespace SSCMS.Core.StlParser.StlElement
{
[StlElement(Title = "获取内容值", Description = "通过 stl:content 标签在模板中显示指定内容的属性值")]
public static class StlContent
{
public const string ElementName = "stl:content";
[StlAttribute(Title = "显示的类型")]
private const string Type = nameof(Type);
[StlAttribute(Title = "显示在信息前的文字")]
private const string LeftText = nameof(LeftText);
[StlAttribute(Title = "显示在信息后的文字")]
private const string RightText = nameof(RightText);
[StlAttribute(Title = "显示的格式")]
private const string Format = nameof(Format);
[StlAttribute(Title = "显示的格式")]
private const string FormatString = nameof(FormatString);
[StlAttribute(Title = "显示第几项")]
private const string No = nameof(No);
[StlAttribute(Title = "显示多项时的分割字符串")]
private const string Separator = nameof(Separator);
[StlAttribute(Title = "字符开始位置")]
private const string StartIndex = nameof(StartIndex);
[StlAttribute(Title = "指定字符长度")]
private const string Length = nameof(Length);
[StlAttribute(Title = "显示字符的数目")]
private const string WordNum = nameof(WordNum);
[StlAttribute(Title = "文字超出部分显示的文字")]
private const string Ellipsis = nameof(Ellipsis);
[StlAttribute(Title = "需要替换的文字,可以是正则表达式")]
private const string Replace = nameof(Replace);
[StlAttribute(Title = "替换replace的文字信息")]
private const string To = nameof(To);
[StlAttribute(Title = "是否清除HTML标签")]
private const string IsClearTags = nameof(IsClearTags);
后面还有 607 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
