added identity tag for claim box

This commit is contained in:
Akinwale Ariwodola 2017-06-15 19:19:41 +01:00
parent 5db1855424
commit 6018338b87

View file

@ -174,6 +174,10 @@
$ctTag = 'image';
}
if (!$ctTag && $claim->ClaimType == 1) {
$ctTag = 'identity';
}
if ($claim->ClaimType == 1) { $autoThumbText = strtoupper(substr($claim->Name, 1, min( strlen($claim->Name), 3 ))); } else {
$str = (strlen(trim($claim->Title)) > 0) ? $claim->Title : $claim->Name;
$autoThumbText = strtoupper(substr($str, 0, min (strlen($str), 2 )));