get("Name"); $CollectionDescription = $H_Collection->get("Description"); # get HTML for transport controls (if any) $TransportControlsHtml = isset($H_TransportUI) ? $H_TransportUI->getHtml() : ""; $EditCollectionButton = new HtmlButton("Edit"); $EditCollectionButton->setIcon("Pencil.svg"); $EditCollectionButton->setSize(HtmlButton::SIZE_SMALL); $EditCollectionButton->addClass("float-end"); $EditCollectionButton->setLink($H_Collection->getEditPageUrl()); $EditResourceButton = new HtmlButton("Edit"); $EditResourceButton->setIcon("Pencil.svg"); $EditResourceButton->setSize(HtmlButton::SIZE_SMALL); # ----- DISPLAY -------------------------------------------------------------- $AF->setPageTitle("Display Collection: ".$CollectionName); ?> userCanEdit($User)) { ?> getHtml(); ?>

#

$Item) { # ----- SETUP (WITHIN LOOP) -------------------------------------- # retrieve basic item info $Title = htmlspecialchars($Item->getMapped("Title")); $Screenshots = $Item->getMapped("Screenshot", true); # build item-related links $EditLink = $Item->getEditPageUrl(); $FullRecordLink = $Item->getViewPageUrl(); $FullRecordOpenTag = ""; # retrieve categories to display $Categories = array_slice( $H_LinkedCategories[$ItemId], 0, $MaxCategoriesToDisplay, true ); # ----- DISPLAY (WITHIN LOOP) ------------------------------------ # begin tile structure ?>
userCanEdit($User)) { $EditResourceButton->setLink($EditLink); print $EditResourceButton->getHtml(); } # continue tile structure print "
\n"; # display screenshot if available, otherwise display larger title if (($Screenshots !== null) && (count($Screenshots) > 0)) { $Screenshot = array_pop($Screenshots); ?>
">

###

##

$LinkedCategory) { ?>

####