WordPress: Template Tags/comment author url link:修订间差异
(新页面: == Description == Displays the comment author's URL (usually their web site), linked, if one was provided. This tag must be within [[WordPress:The Loop...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述 == | |||
Displays the comment author's [[WordPress:Glossary#URI and URL|URL]] (usually their web site), linked, if one was provided. This tag must be within [[WordPress:The Loop]], or a comment loop. | Displays the comment author's [[WordPress:Glossary#URI and URL|URL]] (usually their web site), linked, if one was provided. This tag must be within [[WordPress:The Loop]], or a comment loop. | ||
显示评论作者的[[WordPress:Glossary#URI and URL|URL]](通常是他们的网站),如果提供了URL,是链接的。必须在[[WordPress:The Loop|The Loop]]或者一个评论loop内部使用这个标签。 | |||
== Usage == | == Usage == | ||
第8行: | 第12行: | ||
== Examples == | == Examples == | ||
== 用法 == | |||
%%% <?php 评论_作者_url_链接('链接文本', '之前', '之后'); ?> %%% | |||
== 例子 == | |||
===Default Usage=== | ===Default Usage=== | ||
web site: <?php comment_author_url_link(); ?><br /> | web site: <?php comment_author_url_link(); ?><br /> | ||
===默认用法=== | |||
网站: <?php 评论_作者_url_链接(); ?><br /> | |||
===Link Text and Styling=== | ===Link Text and Styling=== | ||
===链接文本和样式=== | |||
Displays comment author's URL as text string '''Visit Site of Comment Author''' and adds bullets before and after the link to style it. | Displays comment author's URL as text string '''Visit Site of Comment Author''' and adds bullets before and after the link to style it. | ||
显示评论作者的URL作为文本字符串'''访问发表评论的作者的站点'''并且在链接的前后分别加上bullet,规定链接的样式。 | |||
<pre><?php comment_author_url_link('Visit Site of Comment Author', ' &bull; ', ' &bull; '); ?></pre> | <pre><?php comment_author_url_link('Visit Site of Comment Author', ' &bull; ', ' &bull; '); ?></pre> | ||
<pre><?php 评论_作者_url_链接('访问评论作者的站点', ' &bull; ', ' &bull; '); ?></pre> | |||
<div style="border:1px solid blue; width:50%; padding:10px"> • [[WordPress:#Link_Text_and_Styling|Visit Site of Comment Author]] • </div> | <div style="border:1px solid blue; width:50%; padding:10px"> • [[WordPress:#Link_Text_and_Styling|Visit Site of Comment Author]] • </div> | ||
<div style="border:1px solid blue; width:50%; padding:10px"> • [[WordPress:#Link_Text_and_Styling|访问评论作者的站点]] • </div> | |||
== Parameters == | == Parameters == | ||
== 参数 == | |||
; linktext : (''string'') Link text for the link. Default is the comment author's URL. | ; linktext : (''string'') Link text for the link. Default is the comment author's URL. | ||
第27行: | 第51行: | ||
; after : (''string'') Text to display after the link. There is no default. | ; after : (''string'') Text to display after the link. There is no default. | ||
; 链接文本 : (''string'') 链接的链接文本。默认是评论作者的URL。 | |||
; 之前 : (''string'') 链接前显示的文本。没有默认值。 | |||
; 之后 : (''string'') 链接后显示的文本。没有默认值。 | |||
== Related == | == Related == | ||
第32行: | 第60行: | ||
{{PHP Function Tag Footer}} | {{PHP Function Tag Footer}} | ||
== 相关的 == | |||
{{标签 评论 标签}} | |||
{{PHP 函数 标签 页底文字}} |
2008年7月1日 (二) 16:36的版本
Description
描述
Displays the comment author's URL (usually their web site), linked, if one was provided. This tag must be within WordPress:The Loop, or a comment loop.
显示评论作者的URL(通常是他们的网站),如果提供了URL,是链接的。必须在The Loop或者一个评论loop内部使用这个标签。
Usage
%%% <?php comment_author_url_link('linktext', 'before', 'after'); ?> %%%
Examples
用法
%%% <?php 评论_作者_url_链接('链接文本', '之前', '之后'); ?> %%%
例子
Default Usage
web site: <?php comment_author_url_link(); ?><br />
默认用法
网站: <?php 评论_作者_url_链接(); ?><br />
Link Text and Styling
链接文本和样式
Displays comment author's URL as text string Visit Site of Comment Author and adds bullets before and after the link to style it.
显示评论作者的URL作为文本字符串访问发表评论的作者的站点并且在链接的前后分别加上bullet,规定链接的样式。
<?php comment_author_url_link('Visit Site of Comment Author', ' • ', ' • '); ?>
<?php 评论_作者_url_链接('访问评论作者的站点', ' • ', ' • '); ?>
Parameters
参数
- linktext
- (string) Link text for the link. Default is the comment author's URL.
- before
- (string) Text to display before the link. There is no default.
- after
- (string) Text to display after the link. There is no default.
- 链接文本
- (string) 链接的链接文本。默认是评论作者的URL。
- 之前
- (string) 链接前显示的文本。没有默认值。
- 之后
- (string) 链接后显示的文本。没有默认值。
Related
相关的
comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comments_rss_link, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss