XPressME Integration Kit

Trac

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

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

テンプレートのクラスにブロック全般クラス(<div class="xpress_block">)を追加

File size: 1.3 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<div class="xpress_block">
15        <div class="xpress_archive_block">
16                <{$block.err_message}>
17                <{if $block.config.is_archive_doropdown}>
18                        <{$block.archive_dropdown}>
19                <{else}>
20                        <ul>
21                                <{foreach from=$block.contents item=content}>
22                                        <li>
23                                        <{$content.archive}>
24                                        </li>
25                                <{/foreach}>
26                        </ul>
27                <{/if}>
28        </div>
29</div>
Note: See TracBrowser for help on using the repository browser.