<?php

defined('_JEXEC') or die('Restricted access');
/**
 * passed $arrOptions to this file
 */
$output = new UGTilesNestedOutput();
$uniteGalleryOutput = $output->putGallery(GlobalsUGGallery::$galleryID, $arrOptions);
<?php

defined('_JEXEC') or die('Restricted access');
$output = new UGTilesNestedOutput();
echo $output->putGallery(GlobalsUGGallery::$galleryID);