New module 'Calendar'
This commit is contained in:
parent
280a1af4fe
commit
f697b66461
99 changed files with 13284 additions and 0 deletions
46
sites/all/modules/calendar/theme/calendar-month.tpl.php
Normal file
46
sites/all/modules/calendar/theme/calendar-month.tpl.php
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
// $Id: calendar-month.tpl.php,v 1.6.2.3 2008/06/19 22:55:56 karens Exp $
|
||||
/**
|
||||
* @file
|
||||
* Template to display a view as a calendar month.
|
||||
*
|
||||
* @see template_preprocess_calendar_month.
|
||||
*
|
||||
* $day_names: An array of the day of week names for the table header.
|
||||
* $rows: An array of data for each day of the week.
|
||||
* $view: The view.
|
||||
* $calendar_links: Array of formatted links to other calendar displays - year, month, week, day.
|
||||
* $display_type: year, month, day, or week.
|
||||
* $block: Whether or not this calendar is in a block.
|
||||
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
|
||||
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
|
||||
* $date_id: a css id that is unique for this date,
|
||||
* it is in the form: calendar-nid-field_name-delta
|
||||
*
|
||||
*/
|
||||
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);
|
||||
?>
|
||||
<div class="calendar-calendar"><div class="month-view">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<?php foreach ($day_names as $cell): ?>
|
||||
<th class="<?php print $cell['class']; ?>">
|
||||
<?php print $cell['data']; ?>
|
||||
</th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ((array) $rows as $row): ?>
|
||||
<tr>
|
||||
<?php foreach ($row as $cell): ?>
|
||||
<td id="<?php print $cell['id']; ?>" class="<?php print $cell['class']; ?>">
|
||||
<?php print $cell['data']; ?>
|
||||
</td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div></div>
|
Reference in a new issue