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-item.tpl.php
1 1
<?php
2

  
2 3
/**
3 4
 * @file
4 5
 * Template to display view fields as a calendar item.
5
 * 
6
 * $item 
6
 *
7
 * $item
7 8
 *   A result object for this calendar item. Note this is
8 9
 *   not a complete entity. It will contain various
9 10
 *   values as added by the row plugin, which may depend
10 11
 *   on the entity type.
11
 * 
12
 *
12 13
 * $rendered_fields
13 14
 *   An array of the rendered html for the fields in the item,
14 15
 *   as generated by Views. This does not include excluded
15 16
 *   fields and should take into account any special processing
16 17
 *   added in the field settings.
17
 * 
18
 *
18 19
 * Calendar info for this individual calendar item is in local time --
19 20
 * the user timezone where configurable timezones are allowed and set,
20 21
 * otherwise the site timezone. If this item has extends over more than
......
22 23
 * date and calendar_start will be no earlier than the start of
23 24
 * the current day and calendar_end will be no later than the end
24 25
 * of the current day.
25
 * 
26
 *
26 27
 * $calendar_start - A formatted datetime start date for this item.
27 28
 *   i.e. '2008-05-12 05:26:15'.
28 29
 * $calendar_end - A formatted datetime end date for this item,
29 30
 *   the same as the start date except for fields that have from/to
30
 *   fields defined, like Date module dates. 
31
 *   fields defined, like Date module dates.
31 32
 * $calendar_start_date - a PHP date object for the start time.
32 33
 * $calendar_end_date - a PHP date object for the end time.
33
 * 
34
 *
34 35
 * You can use PHP date functions on the date object to display date
35 36
 * information in other ways, like:
36
 * 
37
 *
37 38
 *   print date_format($calendar_start_date, 'l, j F Y - g:ia');
38
 * 
39
 *
39 40
 * @see template_preprocess_calendar_item.
40 41
 */
41 42
$index = 0;
42 43
?>
43 44
<div class="<?php print !empty($item->class) ? $item->class : 'item'; ?>">
44
  <div class="view-item view-item-<?php print $view->name ?>">
45
  <div class="view-item view-item-<?php print $view->name ?> <?php print $item->classCustom ?>">
45 46
  <div class="calendar <?php print $item->granularity; ?>view">
46 47
    <?php print theme('calendar_stripe_stripe', array('item' => $item)); ?>
47 48
    <div class="<?php print $item->date_id ?> contents">
......
51 52
        <?php endif;?>
52 53
        <?php print $field; ?>
53 54
      <?php endforeach; ?>
54
    </div>  
55
    </div>
55 56
    <?php if (isset($item->continues) && $item->continues) : ?>
56 57
    <div class="continues">&raquo;</div>
57 58
    <?php else : ?>
58 59
    <div class="cutoff">&nbsp;</div>
59 60
    <?php endif;?>
60
  </div> 
61
  </div>   
62
</div>
61
  </div>
62
  </div>
63
</div>

Formats disponibles : Unified diff