1 | <{* ************************** usage ****************************
|
---|
2 | The template tag of the following list can be used.
|
---|
3 | <{$block.err_message}> // When the block cannot be displayed, this outputs the reason. Please do not delete it.
|
---|
4 | <{$block.shown_for_each_blog}> // Shown for each blog
|
---|
5 | <{$block.data_count}> // The number of contents is displayed.
|
---|
6 | <{$block.contents}> // Data array of contents.
|
---|
7 | // Examples of <{$block.contents}>
|
---|
8 | <{foreach from=$block.contents item=content}> // Loop
|
---|
9 | <{$content.post_id}> // Displays the numeric ID of the post.
|
---|
10 | <{$content.blog_id}> // Displays the numeric ID of the blog.
|
---|
11 | <{$content.post_permalink}> // Displays the post's permalink.
|
---|
12 | <{$content.title_link}> // Displays the post's permalink, where the link text value is the posts title name.
|
---|
13 | <{$content.the_content}> // Displays the contents of the post.
|
---|
14 | <{$content.the_full_content}> // Displays the contents of the post.
|
---|
15 | <{$content.post_modified_date}> // Displays the modified date of a post. Format at date set by general setting of Wordpress.
|
---|
16 | <{$content.post_modified_time}> // Displays the modified date of a post. Format at date set by general setting of Wordpress.
|
---|
17 | <{$content.post_modified_date_time}> // Displays the modified date-time of a post.
|
---|
18 | <{$content.post_unix_time}> // Displays the published unix time stanp of a post.
|
---|
19 | <{$content.post_date}> // Displays the published date of a post. Format at date set by general setting of Wordpress.
|
---|
20 | <{$content.post_time}> // Displays the published time of a post. Format at time set by general setting of Wordpress.
|
---|
21 | <{$content.post_date_time}> // Displays the published date-time of a post. Format at time set by general setting of Wordpress.
|
---|
22 | <{$content.comments_link}> // Displays a link to the comments popup window if comments_popup_script() is used, otherwise it displays a normal link to comments.
|
---|
23 | <{$content.post_author}> // Displays the author's archive link, where the link text value is the user's Display name.
|
---|
24 | <{$content.post_category}> // Displays a link to the category or categories a post belongs to.
|
---|
25 | <{$content.post_tags}> // Displays a link to the tag or tags a post belongs to.
|
---|
26 | <{$content.post_views}> // Displays the number of posts viewer.
|
---|
27 | <{$content.new_mark}> // The mark is displayed. The mark is different according to lapsed days from the release date.
|
---|
28 | <{/foreach}> // End of Loop
|
---|
29 | ************************* End of usage ************************ *}>
|
---|
30 | <{* Start Template *}>
|
---|
31 | <div class="xpress_block">
|
---|
32 | <{$block.err_message}>
|
---|
33 | <div class="xpress_global_recent_post_list_block">
|
---|
34 | <ul>
|
---|
35 | <{if $block.shown_for_each_blog}>
|
---|
36 | <{ assign var="b_id" value=0 }>
|
---|
37 | <{foreach from=$block.contents item=content}>
|
---|
38 | <{if $b_id != $content.blog_id}>
|
---|
39 | <{if $b_id != 0}>
|
---|
40 | </ul>
|
---|
41 | </li>
|
---|
42 | <{/if}>
|
---|
43 | <li><{$content.blog_link}>
|
---|
44 | <ul>
|
---|
45 | <{ assign var="b_id" value=$content.blog_id }>
|
---|
46 | <{/if}>
|
---|
47 | <li>
|
---|
48 | <{$content.new_mark}> <{$content.title_link}><br />
|
---|
49 | <{$content.post_thumbnail}><br />
|
---|
50 | <{$content.post_date_time}><br />
|
---|
51 | <{$content.author_avatar}><{$content.post_author}><br />
|
---|
52 | </li>
|
---|
53 | <{/foreach}>
|
---|
54 | </ul>
|
---|
55 | </li>
|
---|
56 | <{else}>
|
---|
57 | <{foreach from=$block.contents item=content}>
|
---|
58 | <li>
|
---|
59 | <{$content.new_mark}> <{$content.title_link}><br />
|
---|
60 | <{$content.post_date_time}><br />
|
---|
61 | <{$content.blog_link}><br />
|
---|
62 | <{$content.post_author}><br />
|
---|
63 | </li>
|
---|
64 | <{/foreach}>
|
---|
65 | <{/if}>
|
---|
66 | </ul>
|
---|
67 | </div>
|
---|
68 | </div>
|
---|