} ?> <pubDate><?php echo date('D, d M Y H:i:s O'); ?> </pubDate> <link><?php echo $rssLink; ?> </link> <atom:link href="<?php echo $rssLink; ?> " rel="self" type="application/rss+xml" /> <?php while ($comment = $commentList->next()) { ?> <?php $post = $postList->find($comment->getPostId()); ?> <item> <title><?php echo htmlspecialchars($comment->getAuthorName() . ' [' . $post->getTitle() . '] '); ?> </title> <pubDate><?php echo $comment->getDatetime('D, d M Y H:i:s O'); ?> </pubDate> <link><?php echo $post->getLink() . '#comment-' . $comment->getId();
?> " /> <?php include 'manage-filter-nav.php'; include 'manage-bulk-action.php'; ?> <nav class="manage-page-navigation"> <?php echo ae_SiteBuilder::pagination($numPages, $pageOffset, $linkBase); ?> </nav> <?php while ($entry = $list->next()) { ?> <?php $status = $entry->getStatus(); ?> <?php if ($area == 'category') { ?> <?php $linkEdit = 'admin.php?area=edit&category=' . $entry->getId(); $linkStatus = 'scripts/manage.php?category=' . $entry->getId(); $linkAvailable = $linkStatus . '&status=' . ae_CategoryModel::STATUS_AVAILABLE; $linkTrash = $linkStatus . '&status=' . ae_CategoryModel::STATUS_TRASH;
// Recent comments $filter = array('LIMIT' => '0, 5', 'ORDER BY' => 'co_datetime DESC', 'WHERE' => ' co_status = :coStatus AND ( ( SELECT po_status FROM `' . ae_PostModel::TABLE . '` WHERE po_id = co_post AND po_datetime <= :date ) = :poStatus ) '); $params = array(':coStatus' => ae_CommentModel::STATUS_APPROVED, ':poStatus' => ae_PostModel::STATUS_PUBLISHED, ':date' => date('Y-m-d H:i:s')); $coList = new ae_CommentList($filter, $params, FALSE); // Posts of the recent comments $filter = array('LIMIT' => FALSE, 'WHERE' => '( '); $params = array(); $i = 0; while ($co = $coList->next()) { $filter['WHERE'] .= 'po_id = :id' . $i . ' OR '; $params[':id' . $i] = $co->getPostId(); $i++; } $filter['WHERE'] = mb_substr($filter['WHERE'], 0, -4) . ' )'; $poList = new ae_PostList($filter, $params, FALSE); $coList->reset(); ?> <aside class="recent-comments icon-add-before icon-before-comment"> <h6>Neue Kommentare</h6> <?php while ($co = $coList->next()) { ?>