userCanAuthor($User)) { $AddCollectionLink = str_replace('$ID', "NEW", $CSchema->getEditPage()); $AddCollectionLink .= "&SC=".$CollectionSchemaId; } $AF = ApplicationFramework::getInstance(); $EditButton = new HtmlButton("Edit"); $EditButton->setIcon("Pencil.svg"); $EditButton->setSize(HtmlButton::SIZE_SMALL); # ----- DISPLAY -------------------------------------------------------------- $AF->setPageTitle("List Collections"); if (isset($AddCollectionLink)) { ?> "> New

# Collections

$Collection) { # ----- SETUP (LOOP) --------------------------------------------- # retrieve basic collection info $Name = htmlspecialchars($Collection->get("Name")); $Description = htmlspecialchars($Collection->get("Description")); $Size = $Collection->getSize(); $Icons = $Collection->get("Icon", true); $Icon = (count($Icons) > 0) ? array_pop($Icons) : null; # build collection-related links $EditLink = str_replace('$ID', $CollectionId, $CSchema->getEditPage()); $LinkOpenTag = ""; # ----- DISPLAY (LOOP) ------------------------------------------- # begin tile ?>
">

###

##

userCanEdit($User)) { $EditButton->setLink($EditLink); ?>
getHtml(); ?>