XPressME Integration Kit

Trac

source: trunk/templates/source/archives_block.html @ 110

Last change on this file since 110 was 110, checked in by toemon, 15 years ago

アーカイブブロック、投稿者ブロックの実装。
テンプレートのusage修正

File size: 1.2 KB
Line 
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 archives is displayed.
5                <{$block.config.is_archive_doropdown}>  // When this returns the true value. The user has selected the archive to be displayed by the drop down list in the setting of the block. 
6                <{$block.archive_dropdown}>                             // Displays a dropdown list of links to date-based archives.
7                <{$block.contents}>                                             // Data array of archives.
8                // Examples of <{$block.contents}>
9                <{foreach from=$block.contents item=content}>   // Loop
10                <{$content.archive}>                                    // Displays a list of links to date-based archives.
11                <{/foreach}>                                                    // End of Loop
12************************* End of usage ************************ *}>
13<{* Start Template *}>
14<{$block.err_message}>
15<{if $block.config.is_archive_doropdown}>
16        <{$block.archive_dropdown}>
17<{else}>
18<ul class="xpress_archive_content">
19        <{foreach from=$block.contents item=content}>
20                <li>
21                <{$content.archive}>
22                </li>
23        <{/foreach}>
24</ul>
25<{/if}>
Note: See TracBrowser for help on using the repository browser.