Skip to content

Commit 79015a4

Browse files
committed
show birthday with Bootstrap popover
1 parent d31c8b7 commit 79015a4

File tree

1 file changed

+19
-25
lines changed

1 file changed

+19
-25
lines changed

adm_plugins/calendar/calendar.php

+19-25
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@
440440
if($plg_geb_aktiv == 1)
441441
{
442442
$geb_valid = 0;
443+
443444
if($plg_geb_login == 0)
444445
{
445446
$geb_valid = 1;
@@ -451,37 +452,30 @@
451452
$geb_valid = 1;
452453
}
453454
}
455+
454456
if($geb_valid == 1)
455457
{
456458
for($k=1;$k<=$geb-1;$k++)
457459
{
458460
if($i==$geb_day[$k])
459461
{
460-
$geb_aktuell = $geb_day[$k];
461-
if($plg_ajaxbox == 1)
462+
if($htmlContent !== '' && $plg_ajaxbox == 1)
462463
{
463-
if($geb_anzahl >> 0)
464+
if($plg_ajaxbox == 1)
464465
{
465-
$geb_link = $geb_link. '&';
466+
$htmlContent .= '<br />';
466467
}
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
473469
{
474-
$geb_title = $geb_title. ', ';
470+
$htmlContent .= ', ';
475471
}
476-
$geb_anzahl++;
477-
$geb_title = $geb_title. $geb_name[$k]. ' ('.$alter[$k].')';
478472
}
473+
474+
$htmlContent .= $geb_name[$k]. ' ('.$alter[$k].')';
475+
$geb_aktuell = $geb_day[$k];
476+
$geb_anzahl++;
479477
}
480478
}
481-
if($plg_ajaxbox == 1)
482-
{
483-
$geb_link = 'gebanzahl='.$geb_anzahl.'&'.$geb_link;
484-
}
485479
}
486480
}
487481

@@ -491,33 +485,33 @@
491485

492486
// Zuerst Vorbelegung der Wochentagsklassen
493487
$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';
496490

497491
if($i != $ter_aktuell && $i == $geb_aktuell) // Geburstag aber kein Termin
498492
{
499493
$plg_link_class = 'geb';
500494
$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';
503497

504498
}
505499

506500
if($i == $ter_aktuell && $i!= $geb_aktuell) // Termin aber kein Geburtstag
507501
{
508502
$plg_link_class = 'date';
509503
$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';
512506

513507
}
514508

515509
if($i == $ter_aktuell && $i == $geb_aktuell) // Termin und Geburtstag
516510
{
517511
$plg_link_class = 'merge';
518512
$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';
521515

522516
}
523517
// Ende der Linklassenbestimmung

0 commit comments

Comments
 (0)