Rev | Line | |
---|
[533] | 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.data_count}> // The number of contents is displayed.
|
---|
| 5 | <{$block.contents}> // Data array of contents.
|
---|
| 6 | // Examples of <{$block.contents}>
|
---|
| 7 | <{foreach from=$block.contents item=content}> // Loop
|
---|
| 8 | <{$content.blog_id}> // Displays the numeric ID of the blog.
|
---|
| 9 | <{$content.blog_name}> // Displays the blog's link, where the link text value is the blog name.
|
---|
| 10 | <{$content.post_count}> // Displays the modified date of a post. Format at date set by general setting of Wordpress.
|
---|
| 11 | <{/foreach}> // End of Loop
|
---|
| 12 | ************************* End of usage ************************ *}>
|
---|
| 13 | <{* Start Template *}>
|
---|
| 14 |
|
---|
| 15 | <div class="xpress_block">
|
---|
| 16 | <{$block.err_message}>
|
---|
| 17 | <div class="xpress_blog_list_block">
|
---|
| 18 | <ul>
|
---|
| 19 | <{foreach from=$block.contents item=content}>
|
---|
| 20 | <li>
|
---|
| 21 | <{$content.blog_name}> (<{$content.post_count}>)
|
---|
| 22 | </li>
|
---|
| 23 | <{/foreach}>
|
---|
| 24 | </ul>
|
---|
| 25 | </div>
|
---|
| 26 | </div>
|
---|
Note: See
TracBrowser
for help on using the repository browser.