Added a php function to intelligently shorten a clients name to 3 characters

This commit is contained in:
johnnyq 2023-09-17 19:49:09 -04:00
parent 0987f3121f
commit 1b90a005e4
2 changed files with 25 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<aside class="main-sidebar sidebar-dark-<?php echo nullable_htmlentities($config_theme); ?> d-print-none">
<a class="brand-link pb-1 mt-1" href="clients.php">
<p class="h5"><i class="nav-icon fas fa-arrow-left ml-3 mr-2"></i> Back | <strong><?php echo truncate($client_name,11); ?></strong></p>
<p class="h5"><i class="nav-icon fas fa-arrow-left ml-3 mr-2"></i> Back | <strong><?php echo shortenClient($client_name); ?></strong></p>
</a>
<!-- Sidebar -->

File diff suppressed because one or more lines are too long