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 ==


== 用法 ==
== 用法 ==
第13行: 第8行:
%%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%%
%%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%%


%%% <?php 评论_类型('评论', 'trackback', 'pingback'); ?> %%%


== Example ==
== 例子 ==


  &lt;p&gt;<?php comment_type(); ?> to <?php the_title(); ?>: &lt;/p&gt;
  &lt;p&gt;<?php comment_type(); ?> to <?php the_title(); ?>: &lt;/p&gt;


== 例子 ==
&lt;p&gt;<?php 评论_类型(); ?> to <?php the_title(); ?>: &lt;/p&gt;
== Parameters ==


== 参数 ==
== 参数 ==


; comment : (''string'') Text to describe a comment type comment. Defaults to <tt>'Comment'</tt>.
; comment : (''string'')描述评论类型的文本。默认<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}}


== 相关的==
== 相关的==

2008年7月11日 (五) 15:47的最新版本

描述[ ]

描述一个评论内容所属于的评论类型(定期的评论, Trackback 或者Pingback)。必须在The Loop或者一个评论loop内使用这个标签。

用法[ ]

%%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%%


例子[ ]

<p><?php comment_type(); ?> to <?php the_title(); ?>: </p>


参数[ ]

comment
(string)描述评论类型的文本。默认'comment'
trackback
(string) 描述类型评论的文本。默认'Trackback'
pingback
(string) 描述 Pingback类型评论的文本。默认 'Pingback'

相关的[ ]

模板:标签评论标签

模板:PHP 函数 标签 页底文字