| | 339 | } |
|---|
| | 340 | |
|---|
| | 341 | // Backwards compatibility |
|---|
| | 342 | if ($this->_config->get('always_show_group')) |
|---|
| | 343 | { |
|---|
| | 344 | // Add this group to display as well |
|---|
| | 345 | $additional_group = & $_MIDCOM->auth->get_group($this->_config->get('always_show_group')); |
|---|
| | 346 | if ($additional_group) |
|---|
| | 347 | { |
|---|
| | 348 | $members = $additional_group->list_members(); |
|---|
| | 349 | foreach ($members as $person) |
|---|
| | 350 | { |
|---|
| | 351 | if (array_key_exists($person->id, $shown_persons)) |
|---|
| | 352 | { |
|---|
| | 353 | continue; |
|---|
| | 354 | } |
|---|
| | 355 | $person_object = $person->get_storage(); |
|---|
| | 356 | $this->_request_data['calendar']->_resources[$person_object->guid] = $this->_populate_calendar_resource($person_object, $from, $to); |
|---|
| | 357 | $shown_persons[$person->id] = true; |
|---|
| | 358 | } |
|---|
| | 359 | } |
|---|
| 393 | | } |
|---|
| 394 | | } |
|---|
| 395 | | |
|---|
| 396 | | if ($this->_config->get('always_show_group')) |
|---|
| 397 | | { |
|---|
| 398 | | // Add this group to display as well |
|---|
| 399 | | $additional_group = & $_MIDCOM->auth->get_group($this->_config->get('always_show_group')); |
|---|
| 400 | | if ($additional_group) |
|---|
| 401 | | { |
|---|
| 402 | | $members = $additional_group->list_members(); |
|---|
| 403 | | foreach ($members as $person) |
|---|
| 404 | | { |
|---|
| 405 | | if (array_key_exists($person->id, $shown_persons)) |
|---|
| 406 | | { |
|---|
| 407 | | continue; |
|---|
| 408 | | } |
|---|
| 409 | | $person_object = $person->get_storage(); |
|---|
| 410 | | $this->_request_data['calendar']->_resources[$person_object->guid] = $this->_populate_calendar_resource($person_object, $from, $to); |
|---|
| 411 | | $shown_persons[$person->id] = true; |
|---|
| 412 | | } |
|---|
| | 545 | // Set the breadcrumb |
|---|
| | 546 | $tmp = array(); |
|---|
| | 547 | |
|---|
| | 548 | $tmp[] = array |
|---|
| | 549 | ( |
|---|
| | 550 | MIDCOM_NAV_URL => 'year/' . date('Y-01-01', $this->_request_data['calendar']->get_week_start()) . '/', |
|---|
| | 551 | MIDCOM_NAV_NAME => strftime('%Y'), |
|---|
| | 552 | ); |
|---|
| | 553 | $tmp[] = array |
|---|
| | 554 | ( |
|---|
| | 555 | MIDCOM_NAV_URL => 'month/' . date('Y-m-01', $this->_request_data['calendar']->get_week_start()) . '/', |
|---|
| | 556 | MIDCOM_NAV_NAME => strftime('%B'), |
|---|
| | 557 | ); |
|---|
| | 558 | |
|---|
| | 559 | $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp); |
|---|
| | 560 | |
|---|
| 647 | | |
|---|
| | 679 | |
|---|
| | 680 | // Set the breadcrumb |
|---|
| | 681 | $tmp = array(); |
|---|
| | 682 | |
|---|
| | 683 | $tmp[] = array |
|---|
| | 684 | ( |
|---|
| | 685 | MIDCOM_NAV_URL => 'year/' . date('Y-01-01', $this->_request_data['calendar']->get_week_start()) . '/', |
|---|
| | 686 | MIDCOM_NAV_NAME => strftime('%Y'), |
|---|
| | 687 | ); |
|---|
| | 688 | $tmp[] = array |
|---|
| | 689 | ( |
|---|
| | 690 | MIDCOM_NAV_URL => 'month/' . date('Y-m-01', $this->_request_data['calendar']->get_week_start()) . '/', |
|---|
| | 691 | MIDCOM_NAV_NAME => strftime('%B'), |
|---|
| | 692 | ); |
|---|
| | 693 | $tmp[] = array |
|---|
| | 694 | ( |
|---|
| | 695 | MIDCOM_NAV_URL => "week/{$args[0]}/", |
|---|
| | 696 | MIDCOM_NAV_NAME => sprintf($this->_l10n->get('week %s'), strftime('%V', $this->_request_data['calendar']->get_week_start())), |
|---|
| | 697 | ); |
|---|
| | 698 | |
|---|
| | 699 | $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp); |
|---|
| | 700 | |
|---|
| | 825 | // Set the breadcrumb |
|---|
| | 826 | $tmp = array(); |
|---|
| | 827 | |
|---|
| | 828 | $tmp[] = array |
|---|
| | 829 | ( |
|---|
| | 830 | MIDCOM_NAV_URL => 'year/' . date('Y-01-01', $this->_request_data['calendar']->get_week_start()) . '/', |
|---|
| | 831 | MIDCOM_NAV_NAME => strftime('%Y'), |
|---|
| | 832 | ); |
|---|
| | 833 | $tmp[] = array |
|---|
| | 834 | ( |
|---|
| | 835 | MIDCOM_NAV_URL => 'month/' . date('Y-m-01', $this->_request_data['calendar']->get_week_start()) . '/', |
|---|
| | 836 | MIDCOM_NAV_NAME => strftime('%B'), |
|---|
| | 837 | ); |
|---|
| | 838 | $tmp[] = array |
|---|
| | 839 | ( |
|---|
| | 840 | MIDCOM_NAV_URL => "day/{$args[0]}/", |
|---|
| | 841 | MIDCOM_NAV_NAME => strftime('%d'), |
|---|
| | 842 | ); |
|---|
| | 843 | $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp); |
|---|
| | 844 | |
|---|