GetPluginForCurrentPage(); $Schema = new MetadataSchema($Blog->GetSchemaId()); $Field = $Schema->GetFieldByName($FieldName); $DBFieldName = $Field->DBFieldName(); $Entry = "".$DisplayName.""; $Entry .= ($SortField != $DBFieldName) ? "" : ($SortAscending ? " ↑" : " ↓"); return $Entry; } /** * Print all of the blog entries for the page. * @param array $Entries Blog entries to print. */ function Blog_PrintBlogEntries(array $Entries) { $GLOBALS["AF"]->LoadFunction("Blog_PrintBlogListItem"); foreach ($Entries as $Entry) { Blog_PrintBlogListItem($Entry); } } /** * Print an option list containing available blogs * @param $BlogId the id of the currently used blog */ function PrintBlogOptionList($BlogId) { $Blog = $GLOBALS["G_PluginManager"]->GetPlugin("Blog"); $Options = $Blog->GetAvailableBlogs(); $OptList = new HtmlOptionList("BlogId", $Options, $BlogId); $OptList->SubmitOnChange(TRUE); $OptList->PrintHtml(); } # ----- MAIN ----------------------------------------------------------------- # generate the table headers $TitleHeader = Blog_GetHeaderEntry($H_SortField, $H_SortAscending, $H_ListChecksum, "Title", "Title", 1); $CreatedHeader = Blog_GetHeaderEntry($H_SortField, $H_SortAscending, $H_ListChecksum, "Date of Creation", "Created", 0); $ModifiedHeader = Blog_GetHeaderEntry($H_SortField, $H_SortAscending, $H_ListChecksum, "Date of Modification", "Modified", 0); $PublishedHeader = Blog_GetHeaderEntry($H_SortField, $H_SortAscending, $H_ListChecksum, "Date of Publication", "Publication Date", 0); $AuthorHeader = Blog_GetHeaderEntry($H_SortField, $H_SortAscending, $H_ListChecksum, "Author", "Author", 1); $EditorHeader = Blog_GetHeaderEntry($H_SortField, $H_SortAscending, $H_ListChecksum, "Editor", "Editor", 1); $SafeSchemaId = defaulthtmlentities($H_SchemaId); ?>
Actions |
---|
There are no blog entries.