setPageTitle($PageTitle); # blog list item button links $BaseLink = "index.php?P=P_Blog_ListBlogs&CK=" . $H_Checksum; $EditLink = "index.php?P=P_Blog_EditBlog&BI=\$ID"; $DeleteLink = "index.php?P=P_Blog_DeleteBlog&BI=\$ID"; $AddNewBlogLink = "index.php?P=P_Blog_EditBlog&BI=NEW"; # initiate and print the blog list $ListUI = new ItemListUI($H_BlogFields); $ListUI->BaseLink($BaseLink); $ListUI->AddActionButton("Edit", $EditLink, "Pencil.svg"); $ListUI->AddActionButton("Delete", $DeleteLink, "Delete.svg"); $ListUI->AddTopButton("Add New Blog", $AddNewBlogLink, "Plus.svg"); $ListUI->Heading($PageTitle); $ListUI->NoItemsMessage("There are currently no blogs."); $ListUI->ItemsPerPage($H_PageSize); $ListUI->fieldsSortableByDefault(false); $ListUI->Display($H_Blogs, $H_BlogsListSize, $H_PageOffset);