Révision 62e0cc08
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/sites/all/modules/calendar/calendar.info | ||
---|---|---|
16 | 16 |
files[] = theme/theme.inc |
17 | 17 |
files[] = theme/calendar-style.tpl.php |
18 | 18 |
|
19 |
; Information added by Drupal.org packaging script on 2014-10-14
|
|
20 |
version = "7.x-3.5"
|
|
19 |
; Information added by Drupal.org packaging script on 2020-11-08
|
|
20 |
version = "7.x-3.6"
|
|
21 | 21 |
core = "7.x" |
22 | 22 |
project = "calendar" |
23 |
datestamp = "1413299943" |
|
24 |
|
|
23 |
datestamp = "1604819923" |
drupal7/sites/all/modules/calendar/calendar.module | ||
---|---|---|
47 | 47 |
'#description' => t('To try the Colorbox settings, choose the option to add Colorbox settings to the calendar templates. Install and enable the Colorbox module, following the instructions on the Colorbox project page, then create a new calendar from a template using any date field in the Node base table. The calendar will be set up to display the calendar items in a Colorbox.'), |
48 | 48 |
); |
49 | 49 |
|
50 |
$form['calendar_provide_views_templates'] = array( |
|
51 |
'#title' => t('Provide Views templates for calendar'), |
|
52 |
'#type' => 'radios', |
|
53 |
'#options' => array(0 => t('No'), 1 => t('Yes')), |
|
54 |
'#default_value' => variable_get('calendar_provide_views_templates', 1), |
|
55 |
'#description' => t("Views calendar templates are created for every date field by default, see !url. You can disable this to improve Views UI performance.", |
|
56 |
array('!url' => l(t('Views templates'), 'admin/structure/views/add-template'))), |
|
57 |
); |
|
58 |
|
|
50 | 59 |
return system_settings_form($form); |
51 | 60 |
} |
52 | 61 |
|
... | ... | |
276 | 285 |
'attributes' => array('title' => t('View the calendar.')), |
277 | 286 |
); |
278 | 287 |
$node->content['links']['calendar'] = array( |
279 |
'#theme' => 'links__node__caledar', |
|
288 |
'#theme' => 'links__node__calendar',
|
|
280 | 289 |
'#links' => $links, |
281 | 290 |
'#attributes' => array('class' => array('links', 'inline')), |
282 | 291 |
); |
drupal7/sites/all/modules/calendar/css/calendar-overlap.css | ||
---|---|---|
684 | 684 |
height: 1152px; |
685 | 685 |
} |
686 | 686 |
|
687 |
.calendar-calendar .week-view div.single-day .i_0 .view-item .calendar {
|
|
688 |
margin-left: 0px;
|
|
687 |
.calendar-calendar .week-view div.single-day .i_0 .view-item { |
|
688 |
left: 0px; |
|
689 | 689 |
width: 50%; |
690 | 690 |
} |
691 | 691 |
|
692 |
.calendar-calendar .week-view div.single-day .i_1 .view-item .calendar {
|
|
693 |
margin-left: 10%;
|
|
692 |
.calendar-calendar .week-view div.single-day .i_1 .view-item { |
|
693 |
left: 10%; |
|
694 | 694 |
width: 85%; |
695 | 695 |
} |
696 | 696 |
|
697 |
.calendar-calendar .week-view div.single-day .i_2 .view-item .calendar {
|
|
698 |
margin-left: 16%;
|
|
697 |
.calendar-calendar .week-view div.single-day .i_2 .view-item { |
|
698 |
left: 16%; |
|
699 | 699 |
width: 79%; |
700 | 700 |
} |
701 | 701 |
|
702 |
.calendar-calendar .week-view div.single-day .i_3 .view-item .calendar {
|
|
703 |
margin-left: 21%;
|
|
702 |
.calendar-calendar .week-view div.single-day .i_3 .view-item { |
|
703 |
left: 21%; |
|
704 | 704 |
width: 74%; |
705 | 705 |
} |
706 | 706 |
|
707 |
.calendar-calendar .week-view div.single-day .i_4 .view-item .calendar {
|
|
708 |
margin-left: 30%;
|
|
707 |
.calendar-calendar .week-view div.single-day .i_4 .view-item { |
|
708 |
left: 30%; |
|
709 | 709 |
width: 65%; |
710 | 710 |
} |
711 | 711 |
|
712 |
.calendar-calendar .week-view div.single-day .i_5 .view-item .calendar {
|
|
713 |
margin-left: 34%;
|
|
712 |
.calendar-calendar .week-view div.single-day .i_5 .view-item { |
|
713 |
left: 34%; |
|
714 | 714 |
width: 61%; |
715 | 715 |
} |
716 | 716 |
|
717 |
.calendar-calendar .week-view div.single-day .i_6 .view-item .calendar {
|
|
718 |
margin-left: 42%;
|
|
717 |
.calendar-calendar .week-view div.single-day .i_6 .view-item { |
|
718 |
left: 42%; |
|
719 | 719 |
width: 53%; |
720 | 720 |
} |
721 | 721 |
|
722 |
.calendar-calendar .week-view div.single-day .i_7 .view-item .calendar {
|
|
723 |
margin-left: 49%;
|
|
722 |
.calendar-calendar .week-view div.single-day .i_7 .view-item { |
|
723 |
left: 49%; |
|
724 | 724 |
width: 46%; |
725 | 725 |
} |
726 | 726 |
|
727 |
.calendar-calendar .week-view div.single-day .i_8 .view-item .calendar {
|
|
728 |
margin-left: 55%;
|
|
727 |
.calendar-calendar .week-view div.single-day .i_8 .view-item { |
|
728 |
left: 55%; |
|
729 | 729 |
width: 40%; |
730 | 730 |
} |
731 | 731 |
|
732 |
.calendar-calendar .week-view div.single-day .i_9 .view-item .calendar {
|
|
733 |
margin-left: 65%;
|
|
732 |
.calendar-calendar .week-view div.single-day .i_9 .view-item { |
|
733 |
left: 65%; |
|
734 | 734 |
width: 30%; |
735 | 735 |
} |
736 | 736 |
|
737 |
.calendar-calendar .week-view div.single-day .i_0.md_0 .view-item .calendar {
|
|
737 |
.calendar-calendar .week-view div.single-day .i_0.md_0 .view-item { |
|
738 | 738 |
width: 95% !important; |
739 | 739 |
width: auto; |
740 | 740 |
} |
741 | 741 |
|
742 |
.calendar-calendar .week-view div.single-day .i_0.md_1 .view-item .calendar {
|
|
742 |
.calendar-calendar .week-view div.single-day .i_0.md_1 .view-item { |
|
743 | 743 |
width: 60% !important; |
744 | 744 |
width: auto; |
745 | 745 |
} |
746 | 746 |
|
747 |
.calendar-calendar .day-view div.single-day .i_0 .view-item .calendar {
|
|
748 |
margin-left: 2px;
|
|
747 |
.calendar-calendar .day-view div.single-day .i_0 .view-item { |
|
748 |
left: 2px; |
|
749 | 749 |
width: 25% !important; |
750 | 750 |
width: 97%; |
751 | 751 |
} |
752 | 752 |
|
753 |
.calendar-calendar .day-view div.single-day .i_1 .view-item .calendar {
|
|
754 |
margin-left: 10%;
|
|
753 |
.calendar-calendar .day-view div.single-day .i_1 .view-item { |
|
754 |
left: 10%; |
|
755 | 755 |
width: 89%; |
756 | 756 |
} |
757 | 757 |
|
758 |
.calendar-calendar .day-view div.single-day .i_2 .view-item .calendar {
|
|
759 |
margin-left: 20%;
|
|
758 |
.calendar-calendar .day-view div.single-day .i_2 .view-item { |
|
759 |
left: 20%; |
|
760 | 760 |
width: 79%; |
761 | 761 |
} |
762 | 762 |
|
763 |
.calendar-calendar .day-view div.single-day .i_3 .view-item .calendar {
|
|
764 |
margin-left: 30%;
|
|
763 |
.calendar-calendar .day-view div.single-day .i_3 .view-item { |
|
764 |
left: 30%; |
|
765 | 765 |
width: 69%; |
766 | 766 |
} |
767 | 767 |
|
768 |
.calendar-calendar .day-view div.single-day .i_4 .view-item .calendar {
|
|
769 |
margin-left: 40%;
|
|
768 |
.calendar-calendar .day-view div.single-day .i_4 .view-item { |
|
769 |
left: 40%; |
|
770 | 770 |
width: 59%; |
771 | 771 |
} |
772 | 772 |
|
773 |
.calendar-calendar .day-view div.single-day .i_5 .view-item .calendar {
|
|
774 |
margin-left: 50%;
|
|
773 |
.calendar-calendar .day-view div.single-day .i_5 .view-item { |
|
774 |
left: 50%; |
|
775 | 775 |
width: 49%; |
776 | 776 |
} |
777 | 777 |
|
778 |
.calendar-calendar .day-view div.single-day .i_6 .view-item .calendar {
|
|
779 |
margin-left: 60%;
|
|
778 |
.calendar-calendar .day-view div.single-day .i_6 .view-item { |
|
779 |
left: 60%; |
|
780 | 780 |
width: 39%; |
781 | 781 |
} |
782 | 782 |
|
783 |
.calendar-calendar .day-view div.single-day .i_7 .view-item .calendar {
|
|
784 |
margin-left: 70%;
|
|
783 |
.calendar-calendar .day-view div.single-day .i_7 .view-item { |
|
784 |
left: 70%; |
|
785 | 785 |
width: 29%; |
786 | 786 |
} |
787 | 787 |
|
788 |
.calendar-calendar .day-view div.single-day .i_8 .view-item .calendar {
|
|
789 |
margin-left: 75%;
|
|
788 |
.calendar-calendar .day-view div.single-day .i_8 .view-item { |
|
789 |
left: 75%; |
|
790 | 790 |
width: 24%; |
791 | 791 |
} |
792 | 792 |
|
793 |
.calendar-calendar .day-view div.single-day .i_9 .view-item .calendar {
|
|
794 |
margin-left: 80%;
|
|
793 |
.calendar-calendar .day-view div.single-day .i_9 .view-item { |
|
794 |
left: 80%; |
|
795 | 795 |
width: 19%; |
796 | 796 |
} |
797 | 797 |
|
798 |
.calendar-calendar .day-view div.single-day .i_0.md_0 .view-item .calendar {
|
|
798 |
.calendar-calendar .day-view div.single-day .i_0.md_0 .view-item { |
|
799 | 799 |
width: 98% !important; |
800 | 800 |
width: auto; |
801 | 801 |
} |
802 | 802 |
|
803 |
.calendar-calendar .day-view div.single-day .i_0.md_1 .view-item .calendar {
|
|
803 |
.calendar-calendar .day-view div.single-day .i_0.md_1 .view-item { |
|
804 | 804 |
width: 60% !important; |
805 | 805 |
width: auto; |
806 | 806 |
} |
807 | 807 |
|
808 |
.calendar-calendar .day-view div.single-day .i_0.md_2 .view-item .calendar {
|
|
808 |
.calendar-calendar .day-view div.single-day .i_0.md_2 .view-item { |
|
809 | 809 |
width: 40% !important; |
810 | 810 |
width: auto; |
811 | 811 |
} |
812 | 812 |
|
813 |
.calendar-calendar .day-view div.single-day .i_0.md_3 .view-item .calendar {
|
|
813 |
.calendar-calendar .day-view div.single-day .i_0.md_3 .view-item { |
|
814 | 814 |
width: 30% !important; |
815 | 815 |
width: auto; |
816 | 816 |
} |
drupal7/sites/all/modules/calendar/css/calendar_multiday.css | ||
---|---|---|
780 | 780 |
float: none; |
781 | 781 |
padding: 5px 0; |
782 | 782 |
position: absolute; |
783 |
right: 60px;
|
|
783 |
right: 80px;
|
|
784 | 784 |
left: auto; |
785 | 785 |
text-align: right; |
786 | 786 |
top: 0px; |
drupal7/sites/all/modules/calendar/includes/calendar.views.inc | ||
---|---|---|
41 | 41 |
'uses fields' => TRUE, |
42 | 42 |
'uses grouping' => FALSE, |
43 | 43 |
'uses row plugin' => TRUE, |
44 |
'uses row class' => TRUE, |
|
44 | 45 |
'uses options' => TRUE, |
45 | 46 |
'type' => 'normal', |
46 | 47 |
'even empty' => TRUE, |
drupal7/sites/all/modules/calendar/includes/calendar.views_template.inc | ||
---|---|---|
15 | 15 |
|
16 | 16 |
$views = array(); |
17 | 17 |
|
18 |
if (!variable_get('calendar_provide_views_templates', 1)) { |
|
19 |
return $views; |
|
20 |
} |
|
21 |
|
|
18 | 22 |
// Map the base tables to entity types. |
19 | 23 |
$entity_info = entity_get_info(); |
20 | 24 |
$base_tables = date_views_base_tables(); |
drupal7/sites/all/modules/calendar/includes/calendar_plugin_row.inc | ||
---|---|---|
398 | 398 |
$this->title = entity_label($this->entity_type, $entity); |
399 | 399 |
$uri = entity_uri($this->entity_type, $entity); |
400 | 400 |
$uri['options']['absolute'] = TRUE; |
401 |
$this->url = url($uri['path'], $uri['options']); |
|
401 |
$this->url = ''; |
|
402 |
if (isset($uri['path'])) { |
|
403 |
$this->url = url($uri['path'], $uri['options']); |
|
404 |
} |
|
402 | 405 |
|
403 | 406 |
// Retrieve the field value(s) that matched our query from the cached node. |
404 | 407 |
// Find the date and set it to the right timezone. |
... | ... | |
416 | 419 |
$date_delta = 'date_delta_' . $field_name; |
417 | 420 |
if (isset($row->$date_id)) { |
418 | 421 |
$delta = $row->$date_delta; |
419 |
$entity->date_id = array('calendar.' . $row->$date_id . '.' . $field_name. '.' . $delta);
|
|
422 |
$entity->date_id = array('calendar-' . $row->$date_id . '-' . $field_name. '-' . $delta);
|
|
420 | 423 |
$delta_field = $date_delta; |
421 | 424 |
} |
422 | 425 |
else { |
423 | 426 |
$delta = isset($row->$delta_field) ? $row->$delta_field : 0; |
424 |
$entity->date_id = array('calendar.' . $id . '.' . $field_name . '.' . $delta);
|
|
427 |
$entity->date_id = array('calendar-' . $id . '-' . $field_name . '-' . $delta);
|
|
425 | 428 |
} |
426 | 429 |
|
427 | 430 |
$items = field_get_items($this->entity_type, $entity, $field_name, $this->language); |
... | ... | |
430 | 433 |
$to_zone = date_get_timezone($tz_handling, isset($item->$tz_field) ? $item->$tz_field : $date_info->display_timezone_name); |
431 | 434 |
if (isset($item['value'])) { |
432 | 435 |
$item_start_date = new dateObject($item['value'], $db_tz); |
433 |
$item_end_date = array_key_exists('value2', $item) ? new dateObject($item['value2'], $db_tz) : $item_start_date;
|
|
436 |
$item_end_date = (array_key_exists('value2', $item) && !empty($item['value2'])) ? new dateObject($item['value2'], $db_tz) : $item_start_date;
|
|
434 | 437 |
} |
435 | 438 |
|
436 | 439 |
$cck_field = field_info_field($field_name); |
437 | 440 |
$instance = field_info_instance($this->entity_type, $field_name, $this->type); |
438 | 441 |
$granularity = date_granularity_precision($cck_field['settings']['granularity']); |
439 |
$increment = $instance['widget']['settings']['increment']; |
|
440 |
|
|
442 |
if ($instance) { |
|
443 |
$increment = $instance['widget']['settings']['increment']; |
|
444 |
} |
|
441 | 445 |
} |
442 | 446 |
elseif (!empty($entity->$field_name)) { |
443 | 447 |
$item = $entity->$field_name; |
... | ... | |
445 | 449 |
$to_zone = date_get_timezone($tz_handling, isset($item->$tz_field) ? $item->$tz_field : $date_info->display_timezone_name); |
446 | 450 |
$item_start_date = new dateObject($item, $db_tz); |
447 | 451 |
$item_end_date = $item_start_date; |
448 |
$entity->date_id = array('calendar.' . $id . '.' . $field_name . '.0');
|
|
452 |
$entity->date_id = array('calendar-' . $id . '-' . $field_name);
|
|
449 | 453 |
} |
450 | 454 |
|
451 | 455 |
// If we don't have a date value, go no further. |
... | ... | |
491 | 495 |
)); |
492 | 496 |
|
493 | 497 |
$entities = $this->explode_values($event); |
498 |
$date_info = $this->date_argument->view->date_info; |
|
499 |
$from = $date_info->date_range[0]; |
|
500 |
$to = $date_info->date_range[1]; |
|
494 | 501 |
foreach ($entities as $entity) { |
502 |
if(($entity->date_start < $from && $entity->date_end < $from) || ($entity->date_start > $to && $entity->date_end > $to)) continue; |
|
495 | 503 |
switch ($this->options['colors']['legend']) { |
496 | 504 |
case 'type': |
497 | 505 |
$this->calendar_node_type_stripe($entity); |
... | ... | |
555 | 563 |
|
556 | 564 |
// Get intersection of current day and the node value's duration (as strings in $to_zone timezone). |
557 | 565 |
$entity->calendar_start = $item_start < $start ? $start : $item_start; |
558 |
$entity->calendar_end = !empty($item_end) ? ($item_end > $end ? $end : $item_end) : $node->calendar_start;
|
|
566 |
$entity->calendar_end = !empty($item_end) ? ($item_end > $end ? $end : $item_end) : $entity->calendar_start;
|
|
559 | 567 |
|
560 | 568 |
// Make date objects |
561 | 569 |
$entity->calendar_start_date = date_create($entity->calendar_start, timezone_open($to_zone)); |
... | ... | |
626 | 634 |
return; |
627 | 635 |
} |
628 | 636 |
|
629 |
$entity = $result->entity; |
|
630 |
$term_field_name = $this->options['colors']['taxonomy_field']; |
|
631 |
if ($terms_for_entity = field_get_items($this->view->base_table, $entity, $term_field_name)) { |
|
632 |
foreach ($terms_for_entity as $delta => $item) { |
|
633 |
$term_for_entity = taxonomy_term_load($item['tid']); |
|
634 |
if (!array_key_exists($term_for_entity->tid, $colors) || $colors[$term_for_entity->tid] == CALENDAR_EMPTY_STRIPE) { |
|
635 |
continue; |
|
636 |
} |
|
637 |
$result->stripe[] = $colors[$term_for_entity->tid]; |
|
638 |
$result->stripe_label[] = $term_for_entity->name; |
|
637 |
$term_field_name = 'field_' . $this->options['colors']['taxonomy_field']; |
|
638 |
$terms = $result->row->{$term_field_name}; |
|
639 |
foreach ($terms as $term_key => $term_value) { |
|
640 |
$term = $term_value['raw']['taxonomy_term']; |
|
641 |
if (!array_key_exists($term->tid, $colors) || $colors[$term->tid] == CALENDAR_EMPTY_STRIPE) { |
|
642 |
continue; |
|
639 | 643 |
} |
644 |
$result->stripe[] = $colors[$term->tid]; |
|
645 |
$result->stripe_label[] = $term->name; |
|
640 | 646 |
} |
641 | 647 |
|
642 | 648 |
return; |
drupal7/sites/all/modules/calendar/includes/calendar_plugin_style.inc | ||
---|---|---|
309 | 309 |
$item_end = date_format($item->calendar_end_date, DATE_FORMAT_DATE); |
310 | 310 |
$time_start = date_format($item->calendar_start_date, 'H:i:s'); |
311 | 311 |
$item->rendered_fields = $this->rendered_fields[$row_index]; |
312 |
//set custom class to item |
|
313 |
$item->classCustom = $this->view->style_plugin->get_row_class($row_index); |
|
312 | 314 |
$items[$item_start][$time_start][] = $item; |
313 | 315 |
} |
314 | 316 |
} |
... | ... | |
670 | 672 |
$multiday_theme = !empty($this->date_info->style_multiday_theme) && $this->date_info->style_multiday_theme == '1'; |
671 | 673 |
$first_day = variable_get('date_first_day', 0); |
672 | 674 |
$cur_cnt = 0; |
675 |
$extra_events = FALSE; |
|
673 | 676 |
$total_cnt = 0; |
674 | 677 |
$ids = array(); |
675 | 678 |
|
... | ... | |
724 | 727 |
// If the last day of this event exceeds the end of the current month or week, |
725 | 728 |
// truncate the remaining days |
726 | 729 |
$diff = $this->curday->difference($this->date_info->max_date, 'days'); |
727 |
$remaining_days = ($this->date_info->granularity == 'month') ? min(6 - $wday, $diff) : $diff - 1;
|
|
730 |
$remaining_days = ($this->date_info->granularity == 'month') ? min(6 - $wday, $diff) : $diff; |
|
728 | 731 |
// The bucket_cnt defines the colspan. colspan = bucket_cnt + 1 |
729 | 732 |
$days = $this->curday->difference($item->date_end, 'days'); |
730 | 733 |
$bucket_cnt = max(0, min($days, $remaining_days)); |
... | ... | |
796 | 799 |
'wday' => $wday, |
797 | 800 |
); |
798 | 801 |
} |
802 |
elseif (!$extra_events) { |
|
803 |
// The event we're currently on will never be displaed. |
|
804 |
// So let's set a flag the make sure more link is set. |
|
805 |
$extra_events = TRUE; |
|
806 |
} |
|
799 | 807 |
|
800 | 808 |
} |
801 | 809 |
} |
... | ... | |
804 | 812 |
} |
805 | 813 |
|
806 | 814 |
// Add a more link if necessary |
807 |
if ($max_events != CALENDAR_SHOW_ALL && $total_cnt > 0 && $cur_cnt < $total_cnt) {
|
|
815 |
if ($max_events != CALENDAR_SHOW_ALL && $total_cnt > 0 && ($cur_cnt < $total_cnt || $extra_events)) {
|
|
808 | 816 |
$entry = theme('calendar_' . $this->date_info->calendar_type . '_multiple_entity', array( |
809 | 817 |
'curday' => $curday_date, |
810 | 818 |
'count' => $total_cnt, |
drupal7/sites/all/modules/calendar/js/calendar_colorpicker.js | ||
---|---|---|
10 | 10 |
(function ($) { |
11 | 11 |
Drupal.behaviors.field_example_colorpicker = { |
12 | 12 |
attach: function(context) { |
13 |
$(".edit-calendar-colorpicker").live("focus", function(event) { |
|
14 |
var edit_field = this; |
|
15 |
var picker = $(this).closest('div').parent().find(".calendar-colorpicker"); |
|
16 | 13 |
|
17 |
// Hide all color pickers except this one.
|
|
18 |
$(".calendar-colorpicker").hide();
|
|
19 |
$(picker).show();
|
|
20 |
$.farbtastic(picker, function(color) {
|
|
21 |
edit_field.value = color;
|
|
22 |
}).setColor(edit_field.value);
|
|
23 |
}); |
|
14 |
if ($.isFunction($.fn.on)) {
|
|
15 |
// For jQuery 1.7+
|
|
16 |
$(document).on("focus", ".edit-calendar-colorpicker", calendarFocusHandler);
|
|
17 |
} else {
|
|
18 |
$(".edit-calendar-colorpicker").live("focus", calendarFocusHandler);
|
|
19 |
}
|
|
20 |
|
|
24 | 21 |
} |
25 | 22 |
} |
23 |
|
|
24 |
function calendarFocusHandler(event) { |
|
25 |
var edit_field = this; |
|
26 |
var picker = $(this).closest('div').parent().find(".calendar-colorpicker"); |
|
27 |
|
|
28 |
// Hide all color pickers except this one. |
|
29 |
$(".calendar-colorpicker").hide(); |
|
30 |
$(picker).show(); |
|
31 |
$.farbtastic(picker, function(color) { |
|
32 |
edit_field.value = color; |
|
33 |
}).setColor(edit_field.value); |
|
34 |
} |
|
26 | 35 |
})(jQuery); |
27 | 36 |
|
drupal7/sites/all/modules/calendar/js/calendar_overlap.js | ||
---|---|---|
61 | 61 |
$(document).unbind("mousemove", performDrag).unbind("mouseup", endDrag); |
62 | 62 |
} |
63 | 63 |
}); |
64 |
|
|
65 |
// Size the window |
|
66 |
calendar_resizeViewport($); |
|
67 |
} |
|
68 |
}; |
|
64 |
} |
|
65 |
}; |
|
69 | 66 |
})(jQuery); |
70 | 67 |
|
71 | 68 |
// Scroll the viewport to the first item |
72 | 69 |
function calendar_scrollToFirst($) { |
73 | 70 |
if ($('div.first_item').size() > 0 ) { |
74 | 71 |
var y = $('div.first_item').offset().top - $('#single-day-container').offset().top ; |
75 |
$('#single-day-container').scrollTop(y); |
|
72 |
if ($('#single-day-container').length > 0) { |
|
73 |
var top = $('#single-day-container').offset().top; |
|
74 |
} |
|
76 | 75 |
} |
77 | 76 |
} |
78 | 77 |
|
79 |
// Size the single day view |
|
80 |
function calendar_resizeViewport($) { |
|
81 |
// Size of the browser window |
|
82 |
var viewportHeight = window.innerHeight ? window.innerHeight : $(window).height(); |
|
83 |
var top = $('#single-day-container').offset().top; |
|
84 |
|
|
85 |
// Give it a 20 pixel margin at the bottom |
|
86 |
//$('#single-day-container').height(viewportHeight - top - 20); |
|
87 |
} |
drupal7/sites/all/modules/calendar/theme/calendar-datebox.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 |
* @file
|
|
4 |
* @file |
|
4 | 5 |
* Template to display the date box in a calendar. |
5 | 6 |
* |
6 | 7 |
* - $view: The view. |
... | ... | |
15 | 16 |
* - $items: An array of items for this day. |
16 | 17 |
*/ |
17 | 18 |
?> |
18 |
<div class="<?php print $granularity ?> <?php print $class; ?>"> <?php print !empty($selected) ? $link : $day; ?> </div> |
|
19 |
<div class="<?php print $granularity; ?> <?php print $class; ?>"> <?php print !empty($selected) ? $link : $day; ?> </div> |
drupal7/sites/all/modules/calendar/theme/calendar-day-overlap.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 |
* Template to display a view as a calendar day, grouped by time with overlapping items |
|
5 |
*
|
|
5 |
* Template to display a view as a calendar day, grouped by time with overlapping items.
|
|
6 |
* |
|
6 | 7 |
* @see template_preprocess_calendar_day. |
7 | 8 |
* |
8 | 9 |
* $rows: The rendered data for this day. |
... | ... | |
13 | 14 |
* $rows['items'] - an array of timed items for the day. |
14 | 15 |
* $rows['items'][$time_period]['hour'] - the formatted hour for a time period. |
15 | 16 |
* $rows['items'][$time_period]['ampm'] - the formatted ampm value, if any for a time period. |
16 |
* $rows['items'][$time_period][$column]['values'] - An array of formatted
|
|
17 |
* $rows['items'][$time_period][$column]['values'] - An array of formatted |
|
17 | 18 |
* items for a time period and field column. |
18 |
*
|
|
19 |
* |
|
19 | 20 |
* $view: The view. |
20 | 21 |
* $columns: an array of column names. |
21 | 22 |
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS. |
22 | 23 |
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS. |
23 |
*
|
|
24 |
* The width of the columns is dynamically set using <col></col>
|
|
24 |
* |
|
25 |
* The width of the columns is dynamically set using <col></col> |
|
25 | 26 |
* based on the number of columns presented. The values passed in will |
26 |
* work to set the 'hour' column to 10% and split the remaining columns
|
|
27 |
* work to set the 'hour' column to 10% and split the remaining columns |
|
27 | 28 |
* evenly over the remaining 90% of the table. |
28 | 29 |
*/ |
29 |
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted); |
|
30 | 30 |
?> |
31 | 31 |
<div class="calendar-calendar"><div class="day-view"> |
32 | 32 |
<div id="multi-day-container"> |
... | ... | |
37 | 37 |
<td class="calendar-day-holder"></td> |
38 | 38 |
</tr> |
39 | 39 |
<tr> |
40 |
<td class="<?php print $agenda_hour_class ?> first"> |
|
41 |
<span class="calendar-hour"><?php print t('All day', array(), array('context' => 'datetime')) ?></span> |
|
40 |
<td class="<?php print $agenda_hour_class; ?> first">
|
|
41 |
<span class="calendar-hour"><?php print t('All day', array(), array('context' => 'datetime')); ?></span>
|
|
42 | 42 |
</td> |
43 | 43 |
<td class="calendar-agenda-items multi-day last"> |
44 | 44 |
<?php foreach ($columns as $column): ?> |
45 | 45 |
<div class="calendar"> |
46 | 46 |
<div class="inner"> |
47 |
<?php print isset($rows['all_day'][$column]) ? implode($rows['all_day'][$column]) : ' ';?>
|
|
47 |
<?php print isset($rows['all_day'][$column]) ? implode($rows['all_day'][$column]) : ' '; ?>
|
|
48 | 48 |
</div> |
49 | 49 |
</div> |
50 |
<?php endforeach; ?>
|
|
50 |
<?php endforeach; ?> |
|
51 | 51 |
</td> |
52 | 52 |
</tr> |
53 | 53 |
</tbody> |
... | ... | |
55 | 55 |
</div> |
56 | 56 |
<div class="header-body-divider"> </div> |
57 | 57 |
<div id="single-day-container"> |
58 |
<?php if (!empty($scroll_content)) : ?>
|
|
58 |
<?php if (!empty($scroll_content)): ?> |
|
59 | 59 |
<script> |
60 | 60 |
try { |
61 |
// Hide container while it renders... Degrade w/o javascript support
|
|
61 |
// Hide container while it renders... Degrade w/o javascript support
|
|
62 | 62 |
jQuery('#single-day-container').css('visibility','hidden'); |
63 |
}catch(e){
|
|
64 |
// swallow
|
|
63 |
}catch(e){ |
|
64 |
// swallow |
|
65 | 65 |
} |
66 | 66 |
</script> |
67 | 67 |
<?php endif; ?> |
... | ... | |
75 | 75 |
<td class="first"> |
76 | 76 |
<?php $is_first = TRUE; ?> |
77 | 77 |
<?php foreach ($rows['items'] as $time_cnt => $hour): ?> |
78 |
<?php
|
|
78 |
<?php |
|
79 | 79 |
if ($time_cnt == 0) { |
80 | 80 |
$class = 'first '; |
81 | 81 |
} |
... | ... | |
85 | 85 |
else { |
86 | 86 |
$class = ''; |
87 | 87 |
} ?> |
88 |
<div class="<?php print $class?>calendar-agenda-hour"> |
|
88 |
<div class="<?php print $class; ?>calendar-agenda-hour">
|
|
89 | 89 |
<span class="calendar-hour"><?php print $hour['hour']; ?></span><span class="calendar-ampm"><?php print $hour['ampm']; ?></span> |
90 | 90 |
</div> |
91 |
<?php endforeach; ?>
|
|
91 |
<?php endforeach; ?> |
|
92 | 92 |
</td> |
93 | 93 |
<td class="last"> |
94 | 94 |
<?php foreach ($rows['items'] as $time_cnt => $hour): ?> |
95 |
<?php
|
|
95 |
<?php |
|
96 | 96 |
if ($time_cnt == 0) { |
97 | 97 |
$class = 'first '; |
98 | 98 |
} |
... | ... | |
102 | 102 |
else { |
103 | 103 |
$class = ''; |
104 | 104 |
} ?> |
105 |
<div class="<?php print $class?>calendar-agenda-items single-day"> |
|
105 |
<div class="<?php print $class; ?>calendar-agenda-items single-day">
|
|
106 | 106 |
<div class="half-hour"> </div> |
107 |
<?php if ($is_first && isset($hour['values'][$column])) :?>
|
|
107 |
<?php if ($is_first && isset($hour['values'][$column])): ?>
|
|
108 | 108 |
<div class="calendar item-wrapper first_item"> |
109 | 109 |
<?php $is_first = FALSE; ?> |
110 |
<?php else : ?>
|
|
110 |
<?php else: ?> |
|
111 | 111 |
<div class="calendar item-wrapper"> |
112 | 112 |
<?php endif; ?> |
113 | 113 |
<div class="inner"> |
... | ... | |
121 | 121 |
</div> |
122 | 122 |
</div> |
123 | 123 |
</div> |
124 |
<?php endforeach; ?>
|
|
124 |
<?php endforeach; ?> |
|
125 | 125 |
</td> |
126 | 126 |
</tr> |
127 | 127 |
</tbody> |
... | ... | |
129 | 129 |
</div> |
130 | 130 |
<div class="single-day-footer"> </div> |
131 | 131 |
</div></div> |
132 |
<?php if (!empty($scroll_content)) : ?>
|
|
132 |
<?php if (!empty($scroll_content)): ?> |
|
133 | 133 |
<script> |
134 | 134 |
try { |
135 | 135 |
// Size and position the viewport inline so there are no delays |
136 | 136 |
calendar_resizeViewport(jQuery); |
137 | 137 |
calendar_scrollToFirst(jQuery); |
138 | 138 |
jQuery('#single-day-container').css('visibility','visible'); |
139 |
}catch(e){
|
|
140 |
// swallow
|
|
139 |
}catch(e){ |
|
140 |
// swallow |
|
141 | 141 |
} |
142 | 142 |
</script> |
143 | 143 |
<?php endif; ?> |
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]) : ' ';?> |
|
55 |
<?php print isset($rows['all_day'][$column]) ? implode($rows['all_day'][$column]) : ' '; ?>
|
|
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> |
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">»</div> |
57 | 58 |
<?php else : ?> |
58 | 59 |
<div class="cutoff"> </div> |
59 | 60 |
<?php endif;?> |
60 |
</div> |
|
61 |
</div> |
|
62 |
</div> |
|
61 |
</div> |
|
62 |
</div> |
|
63 |
</div> |
drupal7/sites/all/modules/calendar/theme/calendar-mini.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Template to display a view as a mini calendar month. |
5 |
*
|
|
6 |
* |
|
6 | 7 |
* @see template_preprocess_calendar_mini. |
7 | 8 |
* |
8 | 9 |
* $day_names: An array of the day of week names for the table header. |
... | ... | |
10 | 11 |
* $view: The view. |
11 | 12 |
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS. |
12 | 13 |
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS. |
13 |
*
|
|
14 |
* |
|
14 | 15 |
* $show_title: If the title should be displayed. Normally false since the title is incorporated |
15 | 16 |
* into the navigation, but sometimes needed, like in the year view of mini calendars. |
16 |
* |
|
17 | 17 |
*/ |
18 |
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);dsm($day_names); |
|
18 |
|
|
19 | 19 |
$params = array( |
20 | 20 |
'view' => $view, |
21 | 21 |
'granularity' => 'month', |
... | ... | |
27 | 27 |
<div class="date-nav-wrapper clear-block"> |
28 | 28 |
<div class="date-nav"> |
29 | 29 |
<div class="date-heading"> |
30 |
<?php print theme('date_nav_title', $params) ?> |
|
30 |
<?php print theme('date_nav_title', $params); ?>
|
|
31 | 31 |
</div> |
32 | 32 |
</div> |
33 |
</div>
|
|
34 |
<?php endif; ?>
|
|
33 |
</div> |
|
34 |
<?php endif; ?> |
|
35 | 35 |
<table class="mini"> |
36 | 36 |
<thead> |
37 | 37 |
<tr> |
... | ... | |
54 | 54 |
<?php endforeach; ?> |
55 | 55 |
</tbody> |
56 | 56 |
</table> |
57 |
</div></div> |
|
57 |
</div></div> |
drupal7/sites/all/modules/calendar/theme/calendar-month-col.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 |
* Template to display a column |
|
5 |
*
|
|
5 |
* Template to display a column.
|
|
6 |
* |
|
6 | 7 |
* - $item: The item to render within a td element. |
7 | 8 |
*/ |
8 | 9 |
$id = (isset($item['id'])) ? 'id="' . $item['id'] . '" ' : ''; |
9 | 10 |
$date = (isset($item['date'])) ? ' data-date="' . $item['date'] . '" ' : ''; |
10 | 11 |
$day = (isset($item['day_of_month'])) ? ' data-day-of-month="' . $item['day_of_month'] . '" ' : ''; |
11 |
$headers = (isset($item['header_id'])) ? ' headers="'. $item['header_id'] .'" ' : '';
|
|
12 |
$headers = (isset($item['header_id'])) ? ' headers="' . $item['header_id'] . '" ' : '';
|
|
12 | 13 |
?> |
13 |
<td <?php print $id?>class="<?php print $item['class'] ?>" colspan="<?php print $item['colspan'] ?>" rowspan="<?php print $item['rowspan'] ?>"<?php print $date . $headers . $day; ?>>
|
|
14 |
<td <?php print $id; ?>class="<?php print $item['class']; ?>" colspan="<?php print $item['colspan']; ?>" rowspan="<?php print $item['rowspan']; ?>"<?php print $date . $headers . $day; ?>>
|
|
14 | 15 |
<div class="inner"> |
15 |
<?php print $item['entry'] ?> |
|
16 |
<?php print $item['entry']; ?>
|
|
16 | 17 |
</div> |
17 | 18 |
</td> |
drupal7/sites/all/modules/calendar/theme/calendar-month-multiple-entity.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Template to display a summary of the days items as a calendar month entity. |
5 |
* |
|
6 |
* |
|
6 |
* |
|
7 | 7 |
* @see template_preprocess_calendar_month_multiple_entity. |
8 | 8 |
*/ |
9 | 9 |
?> |
10 |
<div class="view-item view-item-<?php print $view->name ?>"> |
|
11 |
<div class="calendar monthview" id="<?php print $curday ?>"> |
|
10 |
<div class="view-item view-item-<?php print $view->name; ?>">
|
|
11 |
<div class="calendar monthview" id="<?php print $curday; ?>">
|
|
12 | 12 |
<?php foreach ($ids as $id): ?> |
13 | 13 |
<?php if ($view->date_info->style_max_items_behavior != 'more'): ?> |
14 |
<?php //print theme('calendar_stripe_stripe', $id); ?> |
|
14 |
<?php // print theme('calendar_stripe_stripe', $id); ?>
|
|
15 | 15 |
<?php endif; ?> |
16 | 16 |
<?php endforeach; ?> |
17 |
<div class="view-item <?php //print views_css_safe('view-item-'. $view->name) ?>">
|
|
17 |
<div class="view-item <?php // print views_css_safe('view-item-'. $view->name); ?>">
|
|
18 | 18 |
<?php if ($view->date_info->style_max_items_behavior != 'more'): ?> |
19 |
<div class="multiple-events">
|
|
20 |
<?php print l(t('Click to see all @count events', array('@count' => $count)), $link) ?> |
|
21 |
</div>
|
|
19 |
<div class="multiple-events"> |
|
20 |
<?php print l(t('Click to see all @count events', array('@count' => $count)), $link); ?>
|
|
21 |
</div> |
|
22 | 22 |
</div> |
23 | 23 |
<?php else: ?> |
24 |
<div class="calendar-more"><?php print l(t('more'), $link) ?>»</div> |
|
24 |
<div class="calendar-more"><?php print l(t('more'), $link); ?>»</div>
|
|
25 | 25 |
<?php endif; ?> |
26 |
</div>
|
|
26 |
</div> |
|
27 | 27 |
</div> |
drupal7/sites/all/modules/calendar/theme/calendar-month-row.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 |
* Template to display a row |
|
5 |
*
|
|
5 |
* Template to display a row.
|
|
6 |
* |
|
6 | 7 |
* - $inner: The rendered string of the row's contents. |
7 | 8 |
*/ |
8 |
$attrs = ($class) ? 'class="' . $class . '"': ''; |
|
9 |
$attrs = ($class) ? 'class="' . $class . '"' : '';
|
|
9 | 10 |
$attrs .= ($iehint > 0) ? ' iehint="' . $iehint . '"' : ''; |
10 | 11 |
?> |
11 |
<?php if ($attrs != ''):?> |
|
12 |
<tr <?php print $attrs?>> |
|
13 |
<?php else:?> |
|
12 |
<?php if ($attrs != ''): ?>
|
|
13 |
<tr <?php print $attrs; ?>>
|
|
14 |
<?php else: ?>
|
|
14 | 15 |
<tr> |
15 |
<?php endif;?> |
|
16 |
<?php print $inner ?> |
|
16 |
<?php endif; ?>
|
|
17 |
<?php print $inner; ?>
|
|
17 | 18 |
</tr> |
drupal7/sites/all/modules/calendar/theme/calendar-month.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Template to display a view as a calendar month. |
5 |
*
|
|
6 |
* |
|
6 | 7 |
* @see template_preprocess_calendar_month. |
7 | 8 |
* |
8 | 9 |
* $day_names: An array of the day of week names for the table header. |
... | ... | |
13 | 14 |
* $block: Whether or not this calendar is in a block. |
14 | 15 |
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS. |
15 | 16 |
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS. |
16 |
* $date_id: a css id that is unique for this date,
|
|
17 |
* $date_id: a css id that is unique for this date, |
|
17 | 18 |
* it is in the form: calendar-nid-field_name-delta |
18 |
* |
|
19 | 19 |
*/ |
20 |
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted); |
|
21 | 20 |
?> |
22 | 21 |
<div class="calendar-calendar"><div class="month-view"> |
23 | 22 |
<table class="full"> |
24 | 23 |
<thead> |
25 | 24 |
<tr> |
26 | 25 |
<?php foreach ($day_names as $id => $cell): ?> |
27 |
<th class="<?php print $cell['class']; ?>" id="<?php print $cell['header_id'] ?>"> |
|
26 |
<th class="<?php print $cell['class']; ?>" id="<?php print $cell['header_id']; ?>">
|
|
28 | 27 |
<?php print $cell['data']; ?> |
29 | 28 |
</th> |
30 | 29 |
<?php endforeach; ?> |
31 | 30 |
</tr> |
32 | 31 |
</thead> |
33 | 32 |
<tbody> |
34 |
<?php
|
|
33 |
<?php |
|
35 | 34 |
foreach ((array) $rows as $row) { |
36 | 35 |
print $row['data']; |
37 | 36 |
} ?> |
... | ... | |
41 | 40 |
<script> |
42 | 41 |
try { |
43 | 42 |
// ie hack to make the single day row expand to available space |
44 |
if ($.browser.msie ) {
|
|
43 |
if ($.browser.msie) { |
|
45 | 44 |
var multiday_height = $('tr.multi-day')[0].clientHeight; // Height of a multi-day row |
46 | 45 |
$('tr[iehint]').each(function(index) { |
47 | 46 |
var iehint = this.getAttribute('iehint'); |
48 | 47 |
// Add height of the multi day rows to the single day row - seems that 80% height works best |
49 |
var height = this.clientHeight + (multiday_height * .8 * iehint);
|
|
48 |
var height = this.clientHeight + (multiday_height * .8 * iehint); |
|
50 | 49 |
this.style.height = height + 'px'; |
51 | 50 |
}); |
52 | 51 |
} |
53 | 52 |
}catch(e){ |
54 |
// swallow
|
|
53 |
// swallow |
|
55 | 54 |
} |
56 |
</script> |
|
55 |
</script> |
drupal7/sites/all/modules/calendar/theme/calendar-style.tpl.php | ||
---|---|---|
1 |
<?php ?> |
|
1 |
<?php |
|
2 |
|
|
3 |
/** |
|
4 |
* @file |
|
5 |
*/ |
drupal7/sites/all/modules/calendar/theme/calendar-week-overlap.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 |
* Template to display a view as a calendar week with overlapping items |
|
5 |
*
|
|
5 |
* Template to display a view as a calendar week with overlapping items.
|
|
6 |
* |
|
6 | 7 |
* @see template_preprocess_calendar_week. |
7 | 8 |
* |
8 | 9 |
* $day_names: An array of the day of week names for the table header. |
9 | 10 |
* $rows: The rendered data for this week. |
10 |
*
|
|
11 |
* |
|
11 | 12 |
* For each day of the week, you have: |
12 | 13 |
* $rows['date'] - the date for this day, formatted as YYYY-MM-DD. |
13 | 14 |
* $rows['datebox'] - the formatted datebox for this day. |
... | ... | |
17 | 18 |
* $rows['items'][$time_period]['hour'] - the formatted hour for a time period. |
18 | 19 |
* $rows['items'][$time_period]['ampm'] - the formatted ampm value, if any for a time period. |
19 | 20 |
* $rows['items'][$time_period]['values'] - An array of formatted items for a time period. |
20 |
*
|
|
21 |
* |
|
21 | 22 |
* $view: The view. |
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 | 25 |
*/ |
26 | 26 |
$header_ids = array(); |
27 | 27 |
foreach ($day_names as $key => $value) { |
28 | 28 |
$header_ids[$key] = $value['header_id']; |
29 | 29 |
} |
30 |
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted); |
|
31 | 30 |
?> |
32 |
|
|
33 | 31 |
<div class="calendar-calendar"><div class="week-view"> |
34 | 32 |
<div id="header-container"> |
35 | 33 |
<table class="full"> |
... | ... | |
52 | 50 |
<tbody> |
53 | 51 |
<tr class="holder"><td class="calendar-time-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td></tr> |
54 | 52 |
<?php for ($i = 0; $i < $multiday_rows; $i++): ?> |
55 |
<?php
|
|
56 |
$colpos = 0;
|
|
53 |
<?php |
|
54 |
$colpos = 0; |
|
57 | 55 |
$rowclass = "all-day"; |
58 | 56 |
if ($i == 0) { |
59 | 57 |
$rowclass .= " first"; |
... | ... | |
72 | 70 |
<?php $cell = (empty($all_day[$j][$i])) ? NULL : $all_day[$j][$i]; ?> |
73 | 71 |
<?php if($cell != NULL && $cell['filled'] && $cell['wday'] == $j): ?> |
74 | 72 |
<?php for($colpos; $colpos < $cell['wday']; $colpos++) : ?> |
75 |
<?php
|
|
73 |
<?php |
|
76 | 74 |
$colclass = "calendar-agenda-items multi-day"; |
77 | 75 |
if ($colpos == 0) { |
78 | 76 |
$colclass .= " first"; |
... | ... | |
83 | 81 |
?> |
84 | 82 |
<td class="<?php print $colclass?>"><div class="inner"> </div></td> |
85 | 83 |
<?php endfor;?> |
86 |
<?php
|
|
84 |
<?php |
|
87 | 85 |
$colclass = "calendar-agenda-items multi-day"; |
88 | 86 |
if ($colpos == 0) { |
89 | 87 |
$colclass .= " first"; |
... | ... | |
99 | 97 |
</td> |
100 | 98 |
<?php $colpos += $cell['colspan']; ?> |
101 | 99 |
<?php endif; ?> |
102 |
<?php endfor; ?>
|
|
100 |
<?php endfor; ?> |
|
103 | 101 |
<?php while($colpos < 7) : ?> |
104 |
<?php
|
|
102 |
<?php |
|
105 | 103 |
$colclass = "calendar-agenda-items multi-day no-entry"; |
106 | 104 |
if ($colpos == 0) { |
107 | 105 |
$colclass .= " first"; |
... | ... | |
121 | 119 |
<span class="calendar-hour"><?php print t('All day', array(), array('context' => 'datetime'))?></span> |
122 | 120 |
</td> |
123 | 121 |
<?php for($j = 0; $j < 7; $j++): ?> |
124 |
<?php
|
|
122 |
<?php |
|
125 | 123 |
$colclass = "calendar-agenda-items multi-day no-entry"; |
126 | 124 |
if ($j == 0) { |
127 | 125 |
$colclass .= " first"; |
... | ... | |
139 | 137 |
<span class="calendar-hour"> </span> |
140 | 138 |
</td> |
141 | 139 |
<?php for($j = 0; $j < 7; $j++): ?> |
142 |
<?php
|
|
140 |
<?php |
|
143 | 141 |
$colclass = "calendar-agenda-items multi-day no-entry"; |
144 | 142 |
if ($j == 0) { |
145 | 143 |
$colclass .= " first"; |
... | ... | |
148 | 146 |
$colclass .= " last"; |
149 | 147 |
} |
150 | 148 |
?> |
151 |
<td class="<?php print $colclass?>"><div class="inner"> </div></td> |
|
149 |
<td class="<?php print $colclass; ?>"><div class="inner"> </div></td>
|
|
152 | 150 |
<?php endfor; ?> |
153 | 151 |
</tr> |
154 |
</thead>
|
|
152 |
</tbody>
|
|
155 | 153 |
</table> |
156 | 154 |
</div> |
157 | 155 |
<div class="header-body-divider"> </div> |
158 | 156 |
<div id="single-day-container"> |
159 |
<?php if (!empty($scroll_content)) : ?>
|
|
157 |
<?php if (!empty($scroll_content)): ?> |
|
160 | 158 |
<script> |
161 | 159 |
try { |
162 | 160 |
// Hide container while it renders... Degrade w/o javascript support |
163 | 161 |
jQuery('#single-day-container').css('visibility','hidden'); |
164 |
}catch(e){
|
|
165 |
// swallow
|
|
162 |
}catch(e){ |
|
163 |
// swallow |
|
166 | 164 |
} |
167 | 165 |
</script> |
168 | 166 |
<?php endif; ?> |
... | ... | |
171 | 169 |
<tr class="holder"><td class="calendar-time-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td></tr> |
172 | 170 |
<tr> |
173 | 171 |
<?php for ($index = 0; $index < 8; $index++): ?> |
174 |
<?php if ($index == 0 ): ?>
|
|
172 |
<?php if ($index == 0): ?> |
|
175 | 173 |
<td class="first" headers="<?php print $header_ids[$index]; ?>"> |
176 |
<?php elseif ($index == 7 ) : ?>
|
|
177 |
<td class="last"">
|
|
174 |
<?php elseif ($index == 7) : ?> |
|
175 |
<td class="last"> |
|
178 | 176 |
<?php else : ?> |
179 | 177 |
<td headers="<?php print $header_ids[$index]; ?>"> |
180 | 178 |
<?php endif; ?> |
181 | 179 |
<?php foreach ($start_times as $time_cnt => $start_time): ?> |
182 |
<?php
|
|
180 |
<?php |
|
183 | 181 |
if ($time_cnt == 0) { |
184 | 182 |
$class = 'first '; |
185 | 183 |
} |
... | ... | |
189 | 187 |
else { |
190 | 188 |
$class = ''; |
191 | 189 |
} ?> |
192 |
<?php if( $index == 0 ): ?>
|
|
193 |
<?php $time = $items[$start_time];?> |
|
194 |
<div class="<?php print $class?>calendar-agenda-hour"> |
|
190 |
<?php if ($index == 0): ?>
|
|
191 |
<?php $time = $items[$start_time]; ?>
|
|
192 |
<div class="<?php print $class; ?>calendar-agenda-hour">
|
|
195 | 193 |
<span class="calendar-hour"><?php print $time['hour']; ?></span><span class="calendar-ampm"><?php print $time['ampm']; ?></span> |
196 | 194 |
</div> |
197 | 195 |
<?php else: ?> |
198 |
<div class="<?php print $class?>calendar-agenda-items single-day"> |
|
196 |
<div class="<?php print $class; ?>calendar-agenda-items single-day">
|
|
199 | 197 |
<div class="half-hour"> </div> |
200 | 198 |
<div class="calendar item-wrapper"> |
201 | 199 |
<div class="inner"> |
202 |
<?php if(!empty($items[$start_time]['values'][$index - 1])) :?>
|
|
203 |
<?php foreach($items[$start_time]['values'][$index - 1] as $item) :?>
|
|
204 |
<?php if (isset($item['is_first']) && $item['is_first']) :?>
|
|
205 |
<div class="item <?php print $item['class']?> first_item">
|
|
206 |
<?php else : ?>
|
|
207 |
<div class="item <?php print $item['class']?>">
|
|
200 |
<?php if (!empty($items[$start_time]['values'][$index - 1])): ?>
|
|
201 |
<?php foreach ($items[$start_time]['values'][$index - 1] as $item): ?>
|
|
202 |
<?php if (isset($item['is_first']) && $item['is_first']): ?>
|
|
203 |
<div class="item <?php print $item['class']; ?> first_item">
|
|
204 |
<?php else: ?> |
|
205 |
<div class="item <?php print $item['class']; ?>">
|
|
208 | 206 |
<?php endif; ?> |
209 |
<?php print $item['entry'] ?> |
|
207 |
<?php print $item['entry']; ?>
|
|
210 | 208 |
</div> |
211 | 209 |
<?php endforeach; ?> |
212 | 210 |
<?php endif; ?> |
... | ... | |
214 | 212 |
</div> |
215 | 213 |
</div> |
216 | 214 |
<?php endif; ?> |
217 |
<?php endforeach;?> |
|
215 |
<?php endforeach; ?>
|
|
218 | 216 |
</td> |
219 |
<?php endfor;?> |
|
217 |
<?php endfor; ?>
|
|
220 | 218 |
</tr> |
221 | 219 |
</tbody> |
222 | 220 |
</table> |
223 | 221 |
</div> |
224 | 222 |
<div class="single-day-footer"> </div> |
225 | 223 |
</div></div> |
226 |
<?php if (!empty($scroll_content)) : ?>
|
|
224 |
<?php if (!empty($scroll_content)): ?> |
|
227 | 225 |
<script> |
228 | 226 |
try { |
229 | 227 |
// Size and position the viewport inline so there are no delays |
... | ... | |
232 | 230 |
|
233 | 231 |
// Show it now that it is complete and positioned |
234 | 232 |
jQuery('#single-day-container').css('visibility','visible'); |
235 |
}catch(e){
|
|
236 |
// swallow
|
|
233 |
}catch(e){ |
|
234 |
// swallow |
|
237 | 235 |
} |
238 | 236 |
</script> |
239 |
<?php endif; ?> |
|
237 |
<?php endif; ?> |
drupal7/sites/all/modules/calendar/theme/calendar-week.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Template to display a view as a calendar week. |
5 |
*
|
|
6 |
* |
|
6 | 7 |
* @see template_preprocess_calendar_week. |
7 | 8 |
* |
8 | 9 |
* $day_names: An array of the day of week names for the table header. |
9 | 10 |
* $rows: The rendered data for this week. |
10 |
*
|
|
11 |
* |
|
11 | 12 |
* For each day of the week, you have: |
12 | 13 |
* $rows['date'] - the date for this day, formatted as YYYY-MM-DD. |
13 | 14 |
* $rows['datebox'] - the formatted datebox for this day. |
... | ... | |
17 | 18 |
* $rows['items'][$time_period]['hour'] - the formatted hour for a time period. |
18 | 19 |
* $rows['items'][$time_period]['ampm'] - the formatted ampm value, if any for a time period. |
19 | 20 |
* $rows['items'][$time_period]['values'] - An array of formatted items for a time period. |
20 |
*
|
|
21 |
* |
|
21 | 22 |
* $view: The view. |
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 | 25 |
*/ |
26 |
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted); |
|
27 |
//dsm($rows); |
|
28 |
//dsm($items); |
|
29 | 26 |
$index = 0; |
30 | 27 |
$header_ids = array(); |
31 | 28 |
foreach ($day_names as $key => $value) { |
... | ... | |
36 | 33 |
<table class="full"> |
37 | 34 |
<thead> |
38 | 35 |
<tr> |
39 |
<?php if($by_hour_count > 0 || !empty($start_times)) :?>
|
|
40 |
<th class="calendar-agenda-hour"><?php print t('Time')?></th>
|
|
41 |
<?php endif;?> |
|
36 |
<?php if ($by_hour_count > 0 || !empty($start_times)): ?>
|
|
37 |
<th class="calendar-agenda-hour"><?php print t('Time'); ?></th>
|
|
38 |
<?php endif; ?>
|
|
42 | 39 |
<?php foreach ($day_names as $cell): ?> |
43 | 40 |
<th class="<?php print $cell['class']; ?>" id="<?php print $cell['header_id']; ?>"> |
44 | 41 |
<?php print $cell['data']; ?> |
... | ... | |
48 | 45 |
</thead> |
49 | 46 |
<tbody> |
50 | 47 |
<?php for ($i = 0; $i < $multiday_rows; $i++): ?> |
51 |
<?php
|
|
52 |
$colpos = 0;
|
|
48 |
<?php |
|
49 |
$colpos = 0; |
|
53 | 50 |
$rowclass = "all-day"; |
54 |
if( $i == 0) {
|
|
51 |
if ($i == 0) {
|
|
55 | 52 |
$rowclass .= " first"; |
56 | 53 |
} |
57 |
if( $i == $multiday_rows - 1) {
|
|
54 |
if ($i == $multiday_rows - 1) {
|
|
58 | 55 |
$rowclass .= " last"; |
59 | 56 |
} |
60 | 57 |
?> |
61 |
<tr class="<?php print $rowclass?>"> |
|
62 |
<?php if($i == 0 && ($by_hour_count > 0 || !empty($start_times))) :?>
|
|
63 |
<td class="<?php print $agenda_hour_class ?>" rowspan="<?php print $multiday_rows?>">
|
|
64 |
<span class="calendar-hour"><?php print t('All day', array(), array('context' => 'datetime'))?></span> |
|
58 |
<tr class="<?php print $rowclass; ?>">
|
|
59 |
<?php if ($i == 0 && ($by_hour_count > 0 || !empty($start_times))): ?>
|
|
60 |
<td class="<?php print $agenda_hour_class; ?>" rowspan="<?php print $multiday_rows; ?>">
|
|
61 |
<span class="calendar-hour"><?php print t('All day', array(), array('context' => 'datetime')); ?></span>
|
|
65 | 62 |
</td> |
66 | 63 |
<?php endif; ?> |
67 |
<?php for($j = 0; $j < 6; $j++): ?> |
|
64 |
<?php for ($j = 0; $j < 6; $j++): ?>
|
|
68 | 65 |
<?php $cell = (empty($all_day[$j][$i])) ? NULL : $all_day[$j][$i]; ?> |
69 |
<?php if($cell != NULL && $cell['filled'] && $cell['wday'] == $j): ?> |
|
70 |
<?php for($k = $colpos; $k < $cell['wday']; $k++) : ?>
|
|
71 |
<td class="multi-day no-entry"><div class="inner"> </div></td> |
|
72 |
<?php endfor;?> |
|
73 |
<td colspan="<?php print $cell['colspan']?>" class="multi-day"> |
|
66 |
<?php if ($cell != NULL && $cell['filled'] && $cell['wday'] == $j): ?>
|
|
67 |
<?php for ($k = $colpos; $k < $cell['wday']; $k++): ?>
|
|
68 |
<td class="multi-day no-entry"><div class="inner"> </div></td>
|
|
69 |
<?php endfor; ?>
|
|
70 |
<td colspan="<?php print $cell['colspan']; ?>" class="multi-day">
|
|
74 | 71 |
<div class="inner"> |
75 |
<?php print $cell['entry']?>
|
|
72 |
<?php print $cell['entry']; ?>
|
|
76 | 73 |
</div> |
77 | 74 |
</td> |
78 | 75 |
<?php $colpos = $cell['wday'] + $cell['colspan']; ?> |
79 | 76 |
<?php endif; ?> |
80 |
<?php endfor; ?>
|
|
81 |
<?php for($j = $colpos; $j < 7; $j++) : ?>
|
|
82 |
<td class="multi-day no-entry"><div class="inner"> </div></td> |
|
83 |
<?php endfor;?> |
|
77 |
<?php endfor; ?> |
|
78 |
<?php for ($j = $colpos; $j < 7; $j++): ?>
|
|
79 |
<td class="multi-day no-entry"><div class="inner"> </div></td>
|
|
80 |
<?php endfor; ?>
|
|
84 | 81 |
</tr> |
85 |
<?php endfor; ?>
|
|
82 |
<?php endfor; ?> |
|
86 | 83 |
<?php foreach ($items as $time): ?> |
87 | 84 |
<tr class="not-all-day"> |
88 | 85 |
<td class="calendar-agenda-hour"> |
... | ... | |
94 | 91 |
<?php for ($i = $curpos; $i < $colpos; $i++): ?> |
95 | 92 |
<td class="calendar-agenda-items single-day"> |
96 | 93 |
<div class="calendar"> |
97 |
<div class="inner"> </div> |
|
94 |
<div class="inner"> </div>
|
|
98 | 95 |
</div> |
99 | 96 |
</td> |
100 |
<?php endfor; ?>
|
|
101 |
<?php $curpos = $colpos + 1;?> |
|
102 |
<td class="calendar-agenda-items single-day" headers="<?php print $header_ids[$index] ?>"> |
|
97 |
<?php endfor; ?> |
|
98 |
<?php $curpos = $colpos + 1; ?>
|
|
99 |
<td class="calendar-agenda-items single-day" headers="<?php print $header_ids[$index]; ?>">
|
|
103 | 100 |
<div class="calendar"> |
104 | 101 |
<div class="inner"> |
105 |
<?php if(!empty($time['values'][$column])) :?>
|
|
106 |
<?php foreach($time['values'][$column] as $item) :?>
|
|
107 |
<?php print $item['entry'] ?> |
|
102 |
<?php if (!empty($time['values'][$column])): ?>
|
|
103 |
<?php foreach ($time['values'][$column] as $item): ?>
|
|
104 |
<?php print $item['entry']; ?>
|
|
108 | 105 |
<?php endforeach; ?> |
109 | 106 |
<?php endif; ?> |
110 | 107 |
</div> |
111 | 108 |
</div> |
112 | 109 |
</td> |
113 |
<?php endforeach; ?>
|
|
110 |
<?php endforeach; ?> |
|
114 | 111 |
<?php for ($i = $curpos; $i < 7; $i++): ?> |
115 | 112 |
<td class="calendar-agenda-items single-day"> |
116 | 113 |
<div class="calendar"> |
117 |
<div class="inner"> </div> |
|
114 |
<div class="inner"> </div>
|
|
118 | 115 |
</div> |
119 | 116 |
</td> |
120 |
<?php endfor; ?>
|
|
117 |
<?php endfor; ?> |
|
121 | 118 |
</tr> |
122 |
<?php endforeach; ?>
|
|
119 |
<?php endforeach; ?>
|
|
123 | 120 |
</tbody> |
124 | 121 |
</table> |
125 | 122 |
</div></div> |
drupal7/sites/all/modules/calendar/theme/calendar-year.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Template to display a view as a calendar year. |
5 |
*
|
|
6 |
* |
|
6 | 7 |
* @see template_preprocess_calendar_year. |
7 | 8 |
* |
8 | 9 |
* $view: The view. |
9 | 10 |
* $months: An array with a formatted month calendar for each month of the year. |
10 | 11 |
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS. |
11 | 12 |
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS. |
12 |
* |
|
13 | 13 |
*/ |
14 |
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted); |
|
15 | 14 |
?> |
16 |
|
|
17 |
<div class="calendar-calendar"><div class="year-view"> |
|
18 |
<table <?php if ($mini): ?> class="mini"<?php endif; ?>> |
|
19 |
<tbody> |
|
20 |
<tr><td><?php print $months[1] ?></td><td><?php print $months[2] ?></td><td><?php print $months[3] ?></td></tr> |
|
21 |
<tr><td><?php print $months[4] ?></td><td><?php print $months[5] ?></td><td><?php print $months[6] ?></td></tr> |
|
22 |
<tr><td><?php print $months[7] ?></td><td><?php print $months[8] ?></td><td><?php print $months[9] ?></td></tr> |
|
23 |
<tr><td><?php print $months[10] ?></td><td><?php print $months[11] ?></td><td><?php print $months[12] ?></td></tr> |
|
24 |
</tbody> |
|
25 |
</table> |
|
26 |
</div></div> |
|
15 |
<div class="calendar-calendar"> |
|
16 |
<div class="year-view"> |
|
17 |
<table<?php if ($mini): ?> class="mini"<?php endif; ?>> |
|
18 |
<tbody> |
|
19 |
<tr><td><?php print $months[1]; ?></td><td><?php print $months[2]; ?></td><td><?php print $months[3]; ?></td></tr> |
|
20 |
<tr><td><?php print $months[4]; ?></td><td><?php print $months[5]; ?></td><td><?php print $months[6]; ?></td></tr> |
|
21 |
<tr><td><?php print $months[7]; ?></td><td><?php print $months[8]; ?></td><td><?php print $months[9]; ?></td></tr> |
|
22 |
<tr><td><?php print $months[10]; ?></td><td><?php print $months[11]; ?></td><td><?php print $months[12]; ?></td></tr> |
|
23 |
</tbody> |
|
24 |
</table> |
|
25 |
</div> |
|
26 |
</div> |
Formats disponibles : Unified diff
Weekly update of contrib modules