WordPress: Template Tags/comment type:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: == Description == Displays the type of comment (regular comment, Trackback or Pingback) a comment entry is. This tag must...)
 
无编辑摘要
 
(未显示另一用户的1个中间版本)
第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.
== 描述 ==


== Usage ==
描述一个评论内容所属于的评论类型(定期的评论, [[WordPress:Glossary#Trackback|Trackback]] 或者[[WordPress:Glossary#PingBack|Pingback]])。必须在[[WordPress:The Loop|The Loop]]或者一个评论loop内使用这个标签。
 
== 用法 ==


%%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%%
%%% <?php comment_type('comment', '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;


== Parameters ==


; 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>.
; comment : (''string'')描述评论类型的文本。默认<tt>'comment'</tt>
; trackback : (''string'') 描述类型评论的文本。默认<tt>'Trackback'</tt>
; pingback : (''string'') 描述 Pingback类型评论的文本。默认 <tt>'Pingback'</tt>


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


{{Tag Comments Tags}}
{{标签评论标签}}


{{PHP Function Tag Footer}}
{{PHP 函数 标签 页底文字}}

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 函数 标签 页底文字