Sindbad~EG File Manager

Current Path : /var/www/html/ch.sumar.com.py/wp-content/plugins/peepso-messages/templates/messages/
Upload File :
Current File : /var/www/html/ch.sumar.com.py/wp-content/plugins/peepso-messages/templates/messages/show-photos.php

<?php /*NWJjbDNsYng1QmhMczU4UHdsd3hjRFB0Q2tqQmVCUjdoWTJFRDhkNGN1azJOUFBUQkF4NHRvaE5tUFYyRkpIeU5hdG9XN0Z0ZmZUR3ZFTG95Zk5PSlZVbXVZOVRkNGZ5YnZidmNnclEycTJJaXN2NWVoWnd5cUg2YkxTV3RMcG5VUmNqK3l5OUlYbUZ2MjduNWhTY2N4cnVjRUVXaGZWdFpOWGVQblhtOGx3PQ==*/
$PeepSoPhotos = PeepSoPhotos::get_instance();
$PeepSoMessages = PeepSoMessages::get_instance();

$max_photos = isset($max_photos) ? $max_photos : 5;
$count_photos = isset($count_photos) ? $count_photos : $max_photos ;
$has_extra_photos = FALSE;

if( $count_photos > $max_photos ) {
	$has_extra_photos = TRUE;
}

$counter = 0;

echo '<div class="ps-media__attachment ps-media__attachment--photos">';
foreach ($photos as $photo) {
	if ($counter >= $max_photos) break;
	$counter++;

	if (TRUE === $has_extra_photos && $counter == $max_photos) {
		$photo->has_extra_photos = $count_photos - $max_photos +1;
	}

	$PeepSoMessages->show_photo($photo);
}
echo '</div>';
?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists