* Good luck */ function tp_get_latest_photos($num_images, $owner_guid = 0) { $prev_context = set_context('front'); $image_html = list_entities('object', 'image', $owner_guid, $num_images, false, false, false); set_context($prev_context); return $image_html; } /** * Get image directory path * * Each album gets a subdirectory based on its container id * * @return string path to image directory */ function tp_get_img_dir() { $file = new ElggFile(); return $file->getFilenameOnFilestore() . 'image/'; } ?>