Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.
Please keep in mind:
<h4>Proudly hosting <?php echo $stats['images'] > 999999 ? $stats['images'] : number_format($stats['images']); ?> images</h4>
Use this code where you want to show total image hosted on your website publicly.
Code:<h4>Proudly hosting <?php echo $stats['images'] > 999999 ? $stats['images'] : number_format($stats['images']); ?> images</h4>
If you just want to check the statistics, it is in dashboard.
$stats= CHV\Stat::getTotals();
I'm afraid that such information is inaccurate as that code asumes the set/use of $stats variable.
Code:$stats= CHV\Stat::getTotals();
<?php
$stats = CHV\Stat::getTotals();
echo $stats['images'] > 999999 ? $stats['images'] : number_format($stats['images']); // Will output the total n° images
?>