Fix actor title and actor letters

pull/9/head
Chewbaka69 6 years ago
parent 7dd3ed8d1a
commit 2cc475d86e

@ -291,7 +291,7 @@
<div style="font-size: 30px; line-height: 118px;" class="Anagram-anagram-2KZ_Z">
<?php
$actor = explode(' ',$role['@attributes']['tag']);
echo substr($actor[0],0,1).substr($actor[1],0,1);
echo substr($actor[0],0,1).(isset($actor[1]) ? substr($actor[1],0,1) : '');
?>
</div>
<?php endif; ?>

@ -254,7 +254,7 @@
<a data-qa-id="castTitle" title="<?php echo $role['@attributes']['tag']; ?>" href="#" role="link" class=" MetadataPosterTitle-singleLineTitle-24_DN MetadataPosterTitle-title-3tU5F Link-link-2XYrU Link-default-32xSO">
<?php echo $role['@attributes']['tag']; ?>
</a>
<span class=" MetadataPosterTitle-singleLineTitle-24_DN MetadataPosterTitle-title-3tU5F MetadataPosterTitle-isSecondary-2VUxY " title="Johnny English">
<span class=" MetadataPosterTitle-singleLineTitle-24_DN MetadataPosterTitle-title-3tU5F MetadataPosterTitle-isSecondary-2VUxY " title="<?php echo $role['@attributes']['role']; ?>">
<?php echo $role['@attributes']['role']; ?>
</span>
</div>

Loading…
Cancel
Save