mirror of https://github.com/MISP/MISP
new: [elements:indexCountry] Added country element to display flags and nationalities
parent
77e68c5a07
commit
cb00fc0222
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
$data = Hash::extract($row, $field['data_path']);
|
||||
$html = '';
|
||||
if (isset($data['country_code'])) {
|
||||
$html .= $this->Icon->countryFlag($data['country_code']) . ' ';
|
||||
}
|
||||
if ($data['nationality'] !== 'Not specified') {
|
||||
$html .= h($data['nationality']);
|
||||
}
|
||||
echo $html;
|
Loading…
Reference in New Issue