print "<br/>";
    }
}
$va_occurrences = $t_item->get("ca_occurrences", array("returnAsArray" => true, "checkAccess" => $va_access_values));
if (sizeof($va_occurrences)) {
    print "<H6>Related event" . (sizeof($va_occurrences) > 1 ? "s" : "") . "</H6>";
    $t_rel_occurrence = new ca_occurrences();
    foreach ($va_occurrences as $va_occurrence) {
        $t_rel_occurrence->load($va_occurrence["occurrence_id"]);
        $t_object_thumb->load($t_rel_occurrence->get("ca_objects.object_id", array("restrictToRelationshipTypes" => array("cover"), "checkAccess" => $va_access_values)));
        $vs_thumb = $t_object_thumb->get("ca_object_representations.media.icon", array("checkAccess" => $va_access_values));
        if ($vs_thumb) {
            print "<div class='row'><div class='col-sm-3 col-md-3 col-lg-3'>" . $vs_thumb . "</div>\n";
            print "<div class='col-sm-9 col-md-9 col-lg-9'>\n";
        }
        print $t_rel_occurrence->getWithTemplate("<b><l>^ca_occurrences.preferred_labels.name</l></b>");
        if ($vs_brief_description = $t_rel_occurrence->get("ca_occurrences.brief_description")) {
            print "<br/>" . $vs_brief_description;
        }
        if ($vs_thumb) {
            print "</div></div><!-- end row -->";
        } else {
            print "<br/>";
        }
        print "<br/>";
    }
}
?>
				</div><!-- end col -->
			</div><!-- end row -->
		</div><!-- end container -->