|
241 | 241 | if($plg_kal_cat_show == 1)
|
242 | 242 | {
|
243 | 243 | if(substr($row['cat_name'], 3, 1)=='_')
|
244 |
| - {$calendar_name = $gL10n->get($row['cat_name']);} |
| 244 | + { |
| 245 | + $calendar_name = $gL10n->get($row['cat_name']); |
| 246 | + } |
245 | 247 | else
|
246 |
| - {$calendar_name = $row['cat_name'];} |
| 248 | + { |
| 249 | + $calendar_name = $row['cat_name']; |
| 250 | + } |
247 | 251 | $termin_titel[$ter]= $calendar_name. ': '. $termin_titel[$ter];
|
248 | 252 | }
|
249 | 253 |
|
|
323 | 327 | data: 'ajax_change&date_id=".date('mY', mktime(0, 0, 0, $monat-1, 1, $jahr))."',
|
324 | 328 | success: function(html){
|
325 | 329 | $('#plgCalendarContent').replaceWith(html);
|
| 330 | + $('.admidio-calendar-link').popover(); |
326 | 331 | }
|
327 | 332 | }); return false;\">«</a></th>";
|
328 | 333 | echo '<th colspan="5" style="text-align: center;" class="plgCalendarHeader">'.$monate[$monat-1].' '.$jahr.'</th>';
|
|
333 | 338 | data: 'ajax_change&date_id=".date('mY', mktime(0, 0, 0, $monat+1, 1, $jahr))."',
|
334 | 339 | success: function(html){
|
335 | 340 | $('#plgCalendarContent').replaceWith(html);
|
| 341 | + $('.admidio-calendar-link').popover(); |
336 | 342 | }
|
337 | 343 | }); return false;\">»</a></th>";
|
338 | 344 | }
|
|
471 | 477 | }
|
472 | 478 | }
|
473 | 479 |
|
474 |
| - $htmlContent .= $geb_name[$k]. ' ('.$alter[$k].')'; |
| 480 | + if($plg_geb_icon == 1) |
| 481 | + { |
| 482 | + $icon = '<img src=\''.$g_root_path.'/adm_plugins/'.$plugin_folder.'/cake.png\' alt=\'Birthday\' /> '; |
| 483 | + } |
| 484 | + else |
| 485 | + { |
| 486 | + $icon = ''; |
| 487 | + } |
| 488 | + |
| 489 | + $htmlContent .= $icon.$geb_name[$k]. ' ('.$alter[$k].')'; |
475 | 490 | $geb_aktuell = $geb_day[$k];
|
476 | 491 | $geb_anzahl++;
|
477 | 492 | }
|
|
562 | 577 | }
|
563 | 578 |
|
564 | 579 | // plg_link_class bestimmt das Erscheinungsbild des jeweiligen Links
|
565 |
| - echo '<a class="'.$plg_link_class.'" href="'.$plg_link.'" data-toggle="popover" data-html="true" data-trigger="hover" data-placement="auto" |
| 580 | + echo '<a class="admidio-calendar-link '.$plg_link_class.'" href="'.$plg_link.'" data-toggle="popover" data-html="true" data-trigger="hover" data-placement="auto" |
566 | 581 | title="'.$dateObj->format($gPreferences['system_date']).'" data-content="'.$htmlContent.'" target="'.$plg_link_target.'">'.$i.'</a>';
|
567 | 582 | }
|
568 | 583 | else
|
|
615 | 630 | data: \'ajax_change&date_id='.date('mY').'\',
|
616 | 631 | success: function(html){
|
617 | 632 | $(\'#plgCalendarContent\').replaceWith(html);
|
| 633 | + $(\'.admidio-calendar-link\').popover(); |
618 | 634 | }
|
619 | 635 | }); return false;">'.$gL10n->get('PLG_CALENDAR_CURRENT_MONTH').'</a></div>';
|
620 | 636 | }
|
|
0 commit comments