Table of Contents

Box calendar

Example

<vte:box module="box_calendar">
    <vte:template>
        <table width="100%" cellpadding="0" cellspacing="1">
            <caption>
                <vte:if test="{month_url}">
                    <a href="{month_url}"><vte:value select="{month}" />, <vte:value select="{year}" /></a>
                    <vte:else>
                        <vte:value select="{month}" />, <vte:value select="{year}" />
                    </vte:else>
                </vte:if>
            </caption>
            <tr>
                <td><strong><vte:value select="{LNG_SU}" /></strong></td>
                <td><strong><vte:value select="{LNG_MO}" /></strong></td>
                <td><strong><vte:value select="{LNG_TU}" /></strong></td>
                <td><strong><vte:value select="{LNG_WE}" /></strong></td>
                <td><strong><vte:value select="{LNG_TH}" /></strong></td>
                <td><strong><vte:value select="{LNG_FR}" /></strong></td>
                <td><strong><vte:value select="{LNG_SA}" /></strong></td>
            </tr>
            <vte:for from="{count_list}" step="7" key="week_index">
                <tr>
                    <vte:foreach from="{count_list}" item="counter" start="{week_index}" loop="7">
                        <td>
                            <vte:if test="{counter[url]}">
                                <a href="{counter[url]}" style="color:#F00;"><vte:value select="{counter[label]}" /></a>
                                <vte:else>
                                    <vte:value select="{counter[label]}" />
                                </vte:else>
                            </vte:if>
                        </td>
                    </vte:foreach>
                </tr>
            </vte:for>
        </table>
    </vte:template>
</vte:box>

Search parameters

Parameter name Value Description
search_by_year integer Year filter
search_by_month integer Month filter

Assignments

Parameter name Value Description
month_url string Archive url to specific month
count_list array array of days (each day is array with label, count and url keys)
year integer current year
month string current month name
prev_year integer prev year
prev_month_year integer year for prev month
prev_month integer prev month
next_year integer next year
next_month_year integer year for next month
next_month integer year for next month