Esempio n. 1
0
function getBlogContentForCoverPage()
{
    global $blogid, $blog, $service, $stats, $skinSetting;
    global $pd_category, $pd_categoryXhtml, $pd_archive, $pd_calendar, $pd_tags, $pd_notices, $pd_recentEntry;
    global $pd_recentComment, $pd_recentTrackback, $pd_link, $pd_authorList;
    $categories = getCategories($blogid);
    $totalPosts = getEntriesTotalCount($blogid);
    $pd_category = getCategoriesView($totalPosts, $categories, isset($category) ? $category : true);
    $pd_categoryXhtml = getCategoriesView($totalPosts, $categories, isset($category) ? $category : true, true);
    $pd_archive = getArchives($blogid);
    $pd_calendar = getCalendarView(getCalendar($blogid, true));
    $pd_tags = getRandomTags($blogid);
    $pd_notices = getNotices($blogid);
    $pd_recentEntry = getRecentEntries($blogid);
    $pd_recentComment = getRecentComments($blogid);
    $pd_recentTrackback = getRecentTrackbacks($blogid);
    $pd_link = getLinks($blogid);
    $pd_authorList = User::getUserNamesOfBlog($blogid);
}
Esempio n. 2
0
    dress('category', getCategoriesView($totalPosts, $categories, isset($category) ? $category : true), $view, false, true);
}
if (preg_match("@\\[##_category_list_##\\]@iU", $view)) {
    dress('category_list', getCategoriesView($totalPosts, $categories, isset($category) ? $category : true, true), $view, false, true);
}
dress('count_total', $stats['total'], $view);
dress('count_today', $stats['today'], $view);
dress('count_yesterday', $stats['yesterday'], $view);
if (preg_match("@\\[##_archive_rep_##\\]@iU", $view)) {
    dress('archive_rep', getArchivesView(getArchives($blogid), $skin->archive), $view, false, true);
}
if (preg_match("@\\[##_calendar_##\\]@iU", $view)) {
    dress('calendar', getCalendarView(getCalendar($blogid, isset($period) ? $period : true)), $view, false, true);
}
if (preg_match("@\\[##_random_tags_##\\]@iU", $view)) {
    dress('random_tags', getRandomTagsView(getRandomTags($blogid), $skin->randomTags), $view, false, true);
}
if (preg_match("@\\[##_rct_notice_##\\]@iU", $view)) {
    $noticeView = getRecentNoticesView(getRecentNotices($blogid), $skin->recentNotice, $skin->recentNoticeItem);
    dress('rct_notice', $noticeView, $view, false, true);
}
if (preg_match("@\\[##_rct_page_##\\]@iU", $view)) {
    $pageView = getRecentPagesView(getPages($blogid), $skin->recentPage, $skin->recentPageItem);
    dress('rct_page', $pageView, $view, false, true);
}
if (preg_match("@\\[##_author_rep_##\\]@iU", $view)) {
    dress('author_rep', getAuthorListView(User::getUserNamesOfBlog($blogid), $skin->authorList), $view, false, true);
}
// Recent items
if (preg_match("@\\[##_rctps_##\\]@iU", $view)) {
    dress('rctps', getRecentEntriesView(getRecentEntries($blogid), $skin->recentEntry, $skin->recentEntryItem), $view, false, true);