Example #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);
}
Example #2
0
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
define('__TEXTCUBE_MOBILE__', true);
require ROOT . '/library/preprocessor.php';
requireView('mobileView');
list($entries, $paging) = getEntryWithPaging($blogid, $suri['id']);
$entry = $entries ? $entries[0] : null;
printMobileHtmlHeader(htmlspecialchars($context->getProperty('blog.title')));
?>
<div id="pannels">
	<!--
	<h2><?php 
echo _t('카테고리');
?>
</h2>
	<?php 
echo getCategoriesView(getEntriesTotalCount($blogid), getCategories($blogid), true, true);
?>
	-->
	<h2><?php 
echo _text('최근에 달린 댓글');
?>
</h2>
	<?php 
$comments = getRecentComments($blogid);
if (count($comments) > 0) {
    echo '<ul>';
}
foreach ($comments as $comment) {
    ?>
			<li><a href="<?php 
    echo $context->getProperty('uri.blog');
Example #3
0
} else {
    $totalTagsView = getBlogTags($blogid);
}
dress('meta_http_equiv_keywords', $totalTagsView, $view);
$searchView = $skin->search;
dress('search_name', 'search', $searchView);
dress('search_text', isset($search) ? htmlspecialchars($search) : '', $searchView);
dress('search_onclick_submit', 'searchBlog();return false;', $searchView);
dress('search', '<form id="TTSearchForm" name="TTSearchForm" action="' . $context->getProperty('uri.blog') . '/search/" method="get" onsubmit="return searchBlog();return false;">' . $searchView . '</form>', $view);
$totalPosts = getEntriesTotalCount($blogid);
$categories = getCategories($blogid);
if (preg_match("@\\[##_category_##\\]@iU", $view)) {
    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);