Pixelpost

Authentic Photoblog Flavour

TemplateTags /

<SITE_CALENDAR>

Tag Function:

  • Displays the calendar when using the calendar.php addon. The calendar option also must be turned on, definable within the admin options » template pane.

Main Usage:

  • Used within image_template.html to dynamically recall and load the calendar when using the calendar.php addon.

Examples:

In your image template, you can use the tag like this:

<SITE_CALENDAR>

Sample Output:

Using the code above will generate the following when the template is run:

<table class="table-calendar" cellspacing="0">
  <tr>
    <td class="td-calendar-days-imagefound">
      <a href="index.php?curr_month=6&amp;curr_year=2007&amp;showimage=101" title="An Image Was Posted This Day">01</a>
    </td>
    <td class="td-calendar-days">02</td>
    <td class="td-calendar-days">03</td>
    <td class="td-calendar-days">04</td>
    <td class="td-calendar-days">05</td>
    <td class="td-calendar-days">06</td>
    <td class="td-calendar-days">07</td>
    <td class="td-calendar-days">08</td>
    <td class="td-calendar-days">09</td>
    <td class="td-calendar-days">10</td>
    <td class="td-calendar-days">11</td>
    <td class="td-calendar-days">12</td>
    <td class="td-calendar-days">13</td>
    <td class="td-calendar-days">14</td>
    <td class="td-calendar-days">15</td>
    <td class="td-calendar-days">16</td>
    <td class="td-calendar-days">17</td>
    <td class="td-calendar-days">18</td>
    <td class="td-calendar-days">19</td>
    <td class="td-calendar-days-imagefound">
      <a href="index.php?curr_month=6&amp;curr_year=2007&amp;showimage=141" title="An Image Was Posted This Day">20</a>
    </td>
    <td class="td-calendar-days">21</td><td class="td-calendar-days">22</td>
    <td class="td-calendar-days">23</td><td class="td-calendar-days">24</td>
    <td class="td-calendar-days">25</td><td class="td-calendar-days">26</td>
    <td class="td-calendar-days">27</td><td class="td-calendar-days">28</td>
    <td class="td-calendar-days">29</td><td class="td-calendar-days">30</td>
  </tr>
  <tr>
    <td colspan="31" class="td-calendar-navi">
      <a href="index.php?curr_month=5&amp;curr_year=2007&amp;showimage=1">&laquo;</a>
      June-2007
      <a href="index.php?curr_month=7&amp;curr_year=2007&amp;showimage=1">&raquo;</a>
    </td>
  </tr>
</table>

CSS Class:

Using these classes allow you to determine the look of the calendar:

.table-calendar { /* class for calendar layout */

}
.td-calendar-days-imagefound { /* class for when image is posted */

}
.td-calendar-days{ /* class for when no image is posted */

}

OtherTags
<< <BASE_HREF> | TemplateTags | <ALTERNATIVE_LANGUAGE> >>


Page last modified on November 06, 2007, at 11:56 PM