转载信息,既当文章为转载文章时,所包含的一些转载信息。
语句块
| 开始标签 |
结束标签 |
说明 |
| {?post.reblog} |
{/post.reblog} |
是转载文章 |
变量
使用时,需要在转载文章中使用,依赖标签:{?post.reblog}
| 变量 |
说明 |
| {$post.reblog.url} |
转载文章地址 |
| {$post.reblog.blog_name} |
转载自的博客名 |
| {$post.reblog.blog_url} |
转载自的博客地址 |
| {$post.reblog.author_name} |
转载自的用户名 |
| {$post.reblog.avatar_24} |
头像,宽度24px |
| {$post.reblog.avatar_64} |
头像,宽度64px |
| {$post.reblog.avatar_200} |
头像,宽度200px |
示例
1
2
3
4
5
6
7
8
9
10
11
12
13
| <html>
<body>
<!--循环输出文章-->
{?loop:posts}
<!--判断为转载文章-->
{?post.reblog}
<div>
转载自:<a href="{$post.reblog.blog_url}" target="_blank">{$post.reblog.blog_name}</a>
</div>
{/post.reblog}
{/loop:posts}
</body>
</html>
|