47 lines
1.7 KiB
XML
47 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<root>
|
|
<LabelType>博客类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>static</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<Version officialVersion="" modifiedVersions="2904" compatibleVersion="" />
|
|
<attributes>
|
|
<name>userName</name>
|
|
<datatype>string</datatype>
|
|
<default>
|
|
</default>
|
|
<intro>博客主用户名</intro>
|
|
</attributes>
|
|
<LabelTemplate>
|
|
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
|
<xsl:param name="userName"/>
|
|
<xsl:param name="blogId"/>
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/">
|
|
<xsl:if test="$userName=pe:GetLoginedUserInfo('UserName')">
|
|
<a>
|
|
<xsl:attribute name="href"><xsl:value-of select="pe:InstallDir()"/>Blog/Log.aspx?id=<xsl:value-of select="$blogId"/></xsl:attribute>
|
|
<xsl:attribute name="id">publishLog</xsl:attribute>
|
|
<xsl:attribute name="title">发博文</xsl:attribute>发博文</a>
|
|
[<a><xsl:attribute name="href"><xsl:value-of select="pe:InstallDir()"/>Blog/CommentList.aspx?id=<xsl:value-of select="$blogId"/>
|
|
</xsl:attribute><xsl:attribute name="title">评论管理</xsl:attribute>评论管理</a>]
|
|
[<span>
|
|
<xsl:attribute name="onclick">ShowPageSet('maskPage','pageSet_box')</xsl:attribute>
|
|
<xsl:attribute name="style">cursor: pointer</xsl:attribute>
|
|
<a>
|
|
<xsl:attribute name="href">javascript:;</xsl:attribute>
|
|
<xsl:attribute name="title">页面设置</xsl:attribute>页面设置</a>
|
|
</span>]
|
|
</xsl:if>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>blogId</name>
|
|
<datatype>int</datatype>
|
|
<default>0</default>
|
|
<intro>博客ID</intro>
|
|
</attributes>
|
|
</root> |