编辑“WordPress:Template Tags/comment type”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第1行: | 第1行: | ||
== Description == | |||
== 描述 == | == 描述 == | ||
Displays the type of comment (regular comment, [[WordPress:Glossary#Trackback|Trackback]] or [[WordPress:Glossary#PingBack|Pingback]]) a comment entry is. This tag must be within [[WordPress:The Loop]], or a comment loop. | |||
描述一个评论内容所属于的评论类型(定期的评论, [[WordPress:Glossary#Trackback|Trackback]] 或者[[WordPress:Glossary#PingBack|Pingback]])。必须在[[WordPress:The Loop|The Loop]]或者一个评论loop内使用这个标签。 | 描述一个评论内容所属于的评论类型(定期的评论, [[WordPress:Glossary#Trackback|Trackback]] 或者[[WordPress:Glossary#PingBack|Pingback]])。必须在[[WordPress:The Loop|The Loop]]或者一个评论loop内使用这个标签。 | ||
== Usage == | |||
== 用法 == | == 用法 == | ||
第8行: | 第13行: | ||
%%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%% | %%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%% | ||
%%% <?php 评论_类型('评论', 'trackback', 'pingback'); ?> %%% | |||
== Example == | |||
<p><?php comment_type(); ?> to <?php the_title(); ?>: </p> | |||
== 例子 == | == 例子 == | ||
<p><?php | <p><?php 评论_类型(); ?> to <?php the_title(); ?>: </p> | ||
== Parameters == | |||
== 参数 == | == 参数 == | ||
; comment : (''string'')描述评论类型的文本。默认<tt>' | ; comment : (''string'') Text to describe a comment type comment. Defaults to <tt>'Comment'</tt>. | ||
; trackback : (''string'') Text to describe a Trackback type comment. Defaults to <tt>'Trackback'</tt>. | |||
; pingback : (''string'') Text to describe a Pingback type comment. Defaults to <tt>'Pingback'</tt>. | |||
; 评论: (''string'') 描述评论类型的文本。默认<tt>'评论'</tt>。 | |||
; trackback : (''string'') 描述类型评论的文本。默认<tt>'Trackback'</tt>。 | ; trackback : (''string'') 描述类型评论的文本。默认<tt>'Trackback'</tt>。 | ||
; pingback : (''string'') 描述 Pingback类型评论的文本。默认 <tt>'Pingback'</tt>。 | ; pingback : (''string'')描述 Pingback类型评论的文本。默认 <tt>'Pingback'</tt>。 | ||
== Related == | |||
{{Tag Comments Tags}} | |||
{{PHP Function Tag Footer}} | |||
== 相关的== | == 相关的== |