refactor get initials

This commit is contained in:
Leo Germani 2018-07-19 15:14:08 -03:00
parent df54cc2421
commit 0bfa9984c1
3 changed files with 3 additions and 15 deletions

View File

@ -12,11 +12,7 @@
<?php else : ?>
<div class="image-placeholder">
<h4>
<?php
$get_title = get_the_title();
$ltr_group = substr($get_title, 0, 1);
echo $ltr_group;
?>
<?php echo tainacan_get_initials(get_the_title()); ?>
</h4>
</div>
<?php endif; ?>

View File

@ -20,11 +20,7 @@
<?php else : ?>
<div class="image-placeholder">
<h4>
<?php
$get_title = get_the_title();
$ltr_group = substr($get_title, 0, 1);
echo $ltr_group;
?>
<?php echo tainacan_get_initials(get_the_title(), true); ?>
</h4>
</div>
<?php endif; ?>

View File

@ -11,11 +11,7 @@
<?php else : ?>
<div class="image-placeholder">
<h4>
<?php
$get_title = get_the_title();
$ltr_group = substr($get_title, 0, 1);
echo $ltr_group;
?>
<?php echo tainacan_get_initials(get_the_title()); ?>
</h4>
</div>
<?php endif; ?>