|
440 | 440 | if($plg_geb_aktiv == 1)
|
441 | 441 | {
|
442 | 442 | $geb_valid = 0;
|
| 443 | + |
443 | 444 | if($plg_geb_login == 0)
|
444 | 445 | {
|
445 | 446 | $geb_valid = 1;
|
|
451 | 452 | $geb_valid = 1;
|
452 | 453 | }
|
453 | 454 | }
|
| 455 | + |
454 | 456 | if($geb_valid == 1)
|
455 | 457 | {
|
456 | 458 | for($k=1;$k<=$geb-1;$k++)
|
457 | 459 | {
|
458 | 460 | if($i==$geb_day[$k])
|
459 | 461 | {
|
460 |
| - $geb_aktuell = $geb_day[$k]; |
461 |
| - if($plg_ajaxbox == 1) |
| 462 | + if($htmlContent !== '' && $plg_ajaxbox == 1) |
462 | 463 | {
|
463 |
| - if($geb_anzahl >> 0) |
| 464 | + if($plg_ajaxbox == 1) |
464 | 465 | {
|
465 |
| - $geb_link = $geb_link. '&'; |
| 466 | + $htmlContent .= '<br />'; |
466 | 467 | }
|
467 |
| - $geb_anzahl++; |
468 |
| - $geb_link = $geb_link. 'gebname'.$geb_anzahl.'='.$geb_name[$k].'&gebalter'.$geb_anzahl.'='.$alter[$k]; |
469 |
| - } |
470 |
| - else |
471 |
| - { |
472 |
| - if($geb_anzahl >> 0) |
| 468 | + else |
473 | 469 | {
|
474 |
| - $geb_title = $geb_title. ', '; |
| 470 | + $htmlContent .= ', '; |
475 | 471 | }
|
476 |
| - $geb_anzahl++; |
477 |
| - $geb_title = $geb_title. $geb_name[$k]. ' ('.$alter[$k].')'; |
478 | 472 | }
|
| 473 | + |
| 474 | + $htmlContent .= $geb_name[$k]. ' ('.$alter[$k].')'; |
| 475 | + $geb_aktuell = $geb_day[$k]; |
| 476 | + $geb_anzahl++; |
479 | 477 | }
|
480 | 478 | }
|
481 |
| - if($plg_ajaxbox == 1) |
482 |
| - { |
483 |
| - $geb_link = 'gebanzahl='.$geb_anzahl.'&'.$geb_link; |
484 |
| - } |
485 | 479 | }
|
486 | 480 | }
|
487 | 481 |
|
|
491 | 485 |
|
492 | 486 | // Zuerst Vorbelegung der Wochentagsklassen
|
493 | 487 | $plg_link_class_saturday = 'plgCalendarSaturday';
|
494 |
| - $plg_link_class_sunday = 'plgCalendarSunday'; |
495 |
| - $plg_link_class_weekday = 'plgCalendarDay'; |
| 488 | + $plg_link_class_sunday = 'plgCalendarSunday'; |
| 489 | + $plg_link_class_weekday = 'plgCalendarDay'; |
496 | 490 |
|
497 | 491 | if($i != $ter_aktuell && $i == $geb_aktuell) // Geburstag aber kein Termin
|
498 | 492 | {
|
499 | 493 | $plg_link_class = 'geb';
|
500 | 494 | $plg_link_class_saturday = 'plgCalendarBirthSaturday';
|
501 |
| - $plg_link_class_sunday = 'plgCalendarBirthSunday'; |
502 |
| - $plg_link_class_weekday = 'plgCalendarBirthDay'; |
| 495 | + $plg_link_class_sunday = 'plgCalendarBirthSunday'; |
| 496 | + $plg_link_class_weekday = 'plgCalendarBirthDay'; |
503 | 497 |
|
504 | 498 | }
|
505 | 499 |
|
506 | 500 | if($i == $ter_aktuell && $i!= $geb_aktuell) // Termin aber kein Geburtstag
|
507 | 501 | {
|
508 | 502 | $plg_link_class = 'date';
|
509 | 503 | $plg_link_class_saturday = 'plgCalendarDateSaturday';
|
510 |
| - $plg_link_class_sunday = 'plgCalendarDateSunday'; |
511 |
| - $plg_link_class_weekday = 'plgCalendarDateDay'; |
| 504 | + $plg_link_class_sunday = 'plgCalendarDateSunday'; |
| 505 | + $plg_link_class_weekday = 'plgCalendarDateDay'; |
512 | 506 |
|
513 | 507 | }
|
514 | 508 |
|
515 | 509 | if($i == $ter_aktuell && $i == $geb_aktuell) // Termin und Geburtstag
|
516 | 510 | {
|
517 | 511 | $plg_link_class = 'merge';
|
518 | 512 | $plg_link_class_saturday = 'plgCalendarMergeSaturday';
|
519 |
| - $plg_link_class_sunday = 'plgCalendarMergeSunday'; |
520 |
| - $plg_link_class_weekday = 'plgCalendarMergeDay'; |
| 513 | + $plg_link_class_sunday = 'plgCalendarMergeSunday'; |
| 514 | + $plg_link_class_weekday = 'plgCalendarMergeDay'; |
521 | 515 |
|
522 | 516 | }
|
523 | 517 | // Ende der Linklassenbestimmung
|
|
0 commit comments