function getYears($row) { global $dates; $years = getGenderIcon($row['sex'], -1); if ($row['allow_living'] && $row['allow_private']) { if ($row['deathdate']) { $deathdate = $row['deathdate']; $truedeath = $row['deathdatetr']; } else { $deathdate = $row['burialdate']; $truedeath = $row['burialdatetr']; } $deathyearonly = $row['death'] && $row['death'] . "-00-00" == $truedeath ? true : false; $deathstr = displayDate($deathdate); $displaydeath = !$row['death'] || $deathyearonly ? $deathstr : getDatePrefix($deathstr) . $row['death']; $displaydeath = $displaydeath != "Y" ? $displaydeath : $dates['Y']; if ($row['birthdate']) { $birthdate = $row['birthdate']; $truebirth = $row['birthdatetr']; } else { $birthdate = $row['altbirthdate']; $truebirth = $row['altbirthdatetr']; } $birthyearonly = $row['birth'] && $row['birth'] . "-00-00" == $truebirth ? true : false; $birthstr = displayDate($birthdate); $displaybirth = !$row['birth'] || $birthyearonly ? $birthstr : getDatePrefix($birthstr) . $row['birth']; if ($displaybirth || $displaydeath) { $years .= " {$displaybirth} - {$displaydeath}"; $age = age($row); if ($age) { $years .= " ({$age})"; } } } return $years; }
<i class="fa fa-magic"></i> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <b><span style="color: red;"><?php echo gettext("Red text"); ?> </span></b> <?php echo gettext("indicates items inherited from the associated family record."); ?> </div> <div class="row"> <div class="col-lg-3 col-md-4 col-sm-4"> <div class="box box-solid box-info"> <div class="box-header"> <h3 class='box-title'> <?php echo getGenderIcon($per_Gender) . " " . FormatFullName($per_Title, $per_FirstName, $per_MiddleName, $per_LastName, $per_Suffix, 0) . " "; if ($bOkToEdit) { ?> <a href="PersonEditor.php?PersonID=<?php echo $per_ID; ?> "> <span class="fa-stack"> <i class="fa fa-square fa-stack-2x"></i> <i class="fa fa-pencil fa-stack-1x fa-inverse"></i> </span> </a> <?php } ?> </h3>