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"> <div style="font-size: 30px; line-height: 118px;" class="Anagram-anagram-2KZ_Z">
<?php <?php
$actor = explode(' ',$role['@attributes']['tag']); $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> </div>
<?php endif; ?> <?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"> <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']; ?> <?php echo $role['@attributes']['tag']; ?>
</a> </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']; ?> <?php echo $role['@attributes']['role']; ?>
</span> </span>
</div> </div>

Loading…
Cancel
Save