mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
17 lines
1004 B
PHP
17 lines
1004 B
PHP
<?php
|
|
echo __("LoTW User") . ': ';
|
|
if (isset($lotw_lastupload) && $lotw_lastupload != '') {
|
|
$lotw_hint = '';
|
|
if ($lotw_lastupload > 365) {
|
|
$lotw_hint = ' lotw_info_red';
|
|
} elseif ($lotw_lastupload > 30) {
|
|
$lotw_hint = ' lotw_info_orange';
|
|
} elseif ($lotw_lastupload > 7) {
|
|
$lotw_hint = ' lotw_info_yellow';
|
|
}
|
|
echo '<a id="lotw_badge" href="https://lotw.arrl.org/lotwuser/act?act='.$callsign.'" target="_blank"><small id="lotw_info" class="badge text-bg-success'.$lotw_hint.'" data-bs-toggle="tooltip" title="' . __("LoTW User") . '">' . __("Yes") . '</small></a> <a id="lotw_badge" href="https://lotw.arrl.org/lotwuser/act?act='.$callsign.'" target="_blank"> ' . __("last upload") . '</a> '.sprintf(_ngettext("%d day ago", "%d days ago",intval($lotw_lastupload)), intval($lotw_lastupload));
|
|
} else {
|
|
echo "<span data-bs-toggle=\"tooltip\" title=\"" . __("No LoTW User") . "\" class=\"badge text-bg-danger\" style=\"padding-left: 0.2em; padding-right: 0.2em;\">" . __("No") . "</span>";
|
|
}
|
|
?>
|