mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-27 01:24:16 +00:00
Merge pull request #410 from HB9HIL/hide_time
[PUBLIC VIEW] Hide QSO Time in Public Map
This commit is contained in:
@@ -4871,7 +4871,32 @@ function lotw_last_qsl_date($user_id) {
|
||||
if ($row->COL_NAME != null) {
|
||||
$plot['html'] .= "Name: ".$row->COL_NAME."<br />";
|
||||
}
|
||||
$plot['html'] .= "Date/Time: ".$row->COL_TIME_ON."<br />";
|
||||
$date_cat = "Date";
|
||||
|
||||
// Get Date format
|
||||
if($this->session->userdata('user_date_format')) {
|
||||
// If Logged in and session exists
|
||||
$user_date_format = $this->session->userdata('user_date_format');
|
||||
} else {
|
||||
// Get Default date format from /config/wavelog.php
|
||||
$user_date_format = $this->config->item('qso_date_format');
|
||||
}
|
||||
|
||||
$qso_time_on = new DateTime($row->COL_TIME_ON);
|
||||
|
||||
if ($this->uri->segment(1) == 'visitor') {
|
||||
$visitor_date_format = $this->config->item('qso_date_format');
|
||||
if ($this->config->item('show_time')) {
|
||||
$visitor_date_format .= ' H:i';
|
||||
$date_cat .= "/Time";
|
||||
}
|
||||
$qso_time_on = $qso_time_on->format($visitor_date_format);
|
||||
} else {
|
||||
$qso_time_on = $qso_time_on->format($user_date_format.' H:i');
|
||||
$date_cat .= "/Time";
|
||||
}
|
||||
|
||||
$plot['html'] .= $date_cat.": ".$qso_time_on."<br />";
|
||||
$plot['html'] .= ($row->COL_SAT_NAME != null) ? ("SAT: ".$row->COL_SAT_NAME."<br />") : ("Band: ".$row->COL_BAND."<br />");
|
||||
$plot['html'] .= "Mode: ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)."<br />";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user