Projet

Général

Profil

Révision 62e0cc08

Ajouté par Assos Assos il y a plus de 3 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/calendar/theme/calendar-day.tpl.php
1 1
<?php
2

  
2 3
/**
3 4
 * @file
4 5
 * Template to display a view as a calendar day, grouped by time
5 6
 * and optionally organized into columns by a field value.
6
 * 
7
 *
7 8
 * @see template_preprocess_calendar_day.
8 9
 *
9 10
 * $rows: The rendered data for this day.
......
14 15
 * $rows['items'] - an array of timed items for the day.
15 16
 * $rows['items'][$time_period]['hour'] - the formatted hour for a time period.
16 17
 * $rows['items'][$time_period]['ampm'] - the formatted ampm value, if any for a time period.
17
 * $rows['items'][$time_period][$column]['values'] - An array of formatted 
18
 * $rows['items'][$time_period][$column]['values'] - An array of formatted
18 19
 *   items for a time period and field column.
19
 * 
20
 *
20 21
 * $view: The view.
21 22
 * $columns: an array of column names.
22 23
 * $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
23 24
 * $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
24
 * 
25
 * The width of the columns is dynamically set using <col></col> 
25
 *
26
 * The width of the columns is dynamically set using <col></col>
26 27
 * based on the number of columns presented. The values passed in will
27
 * work to set the 'hour' column to 10% and split the remaining columns 
28
 * work to set the 'hour' column to 10% and split the remaining columns
28 29
 * evenly over the remaining 90% of the table.
29 30
 */
30
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);
31 31
?>
32 32
<div class="calendar-calendar"><div class="day-view">
33 33
<table class="full">
34
  <col width="<?php print $first_column_width?>%"></col>
34
  <col width="<?php print $first_column_width; ?>%"></col>
35 35
  <thead>
36 36
    <?php foreach ($columns as $column): ?>
37 37
    <col width="<?php print $column_width; ?>%"></col>
......
45 45
  </thead>
46 46
  <tbody>
47 47
    <tr>
48
      <td class="<?php print $agenda_hour_class ?>">
48
      <td class="<?php print $agenda_hour_class; ?>">
49 49
         <span class="calendar-hour"><?php print $by_hour_count > 0 ? t('All day', array(), array('context' => 'datetime')) : ''; ?></span>
50 50
       </td>
51 51
      <?php foreach ($columns as $column): ?>
52 52
       <td class="calendar-agenda-items multi-day">
53 53
         <div class="calendar">
54 54
         <div class="inner">
55
           <?php print isset($rows['all_day'][$column]) ? implode($rows['all_day'][$column]) : '&nbsp;';?>
55
           <?php print isset($rows['all_day'][$column]) ? implode($rows['all_day'][$column]) : '&nbsp;'; ?>
56 56
         </div>
57 57
         </div>
58 58
       </td>
59
      <?php endforeach; ?>   
59
      <?php endforeach; ?>
60 60
    </tr>
61 61
    <?php foreach ($rows['items'] as $hour): ?>
62 62
    <tr>
......
71 71
          </div>
72 72
          </div>
73 73
        </td>
74
      <?php endforeach; ?>   
74
      <?php endforeach; ?>
75 75
    </tr>
76
   <?php endforeach; ?>   
76
    <?php endforeach; ?>
77 77
  </tbody>
78 78
</table>
79 79
</div></div>

Formats disponibles : Unified diff