| #390 | $has_pc = $postcodes_html !== ''; |
| #391 | $this->_cfg['titles'] = $has_pc |
| #392 | ? ($tname . '邮编 - ' . $tname . '当地时间·日出日落查询') |
| #393 | : ($tname . ' - ' . $sname . '当地时间·日出日落·坐标查询'); |
| #394 | $this->_cfg['seo_description'] = $tname . '(' . $t['name'] . ')位于' . $cname . $sname . ',人口 ' . GeodbHelper::fmt_pop($t['population']) . ',时区 ' . ($t['timezone'] ?: '—') . '。' . ($has_pc ? '查看' . $tname . '邮政编码、' : '') . '当前当地时间、今日日出日落与经纬度坐标。'; |
| #395 | |
| #396 | $native_extra = ($t['native'] !== null && $t['native'] !== '' && $t['native'] !== $t['name'] && $t['native'] !== $t['zh']) ? ' · 原名 ' . $t['native'] : ''; |
| #397 | $type_name = self::city_type_cn($t['type']); |
| #398 | $latlng = ($t['latitude'] !== null && $t['longitude'] !== null) ? GeodbHelper::fmt_lat($t['latitude']) . ', ' . GeodbHelper::fmt_lat($t['longitude']) : ''; |
| #399 | $population_fmt = GeodbHelper::fmt_pop($t['population']); |