示例#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);
}
示例#2
0
文件: index.php 项目: ragi79/Textcube
    ?>
)</li>
		<?php 
}
if (count($trackbacks) > 0) {
    echo '</ul>';
}
?>
	<!--
	<h2><?php 
echo _text('글 보관함');
?>
</h2>
	<ul>
	<?php 
foreach (getArchives($blogid) as $archive) {
    ?>
	<li><a href="<?php 
    echo $context->getProperty('uri.blog');
    ?>
/archive/<?php 
    echo $archive['period'];
    ?>
"><?php 
    echo getPeriodLabel($archive['period']);
    ?>
</a> (<?php 
    echo $archive['count'];
    ?>
)</li>
	<?php 
示例#3
0
    $subnav = renderNav($page->title, $yearsNav, $page->url . "{$year}/") . renderNav($year, $monthsNav, $page->url . "{$year}/{$month}/");
} else {
    if ($input->urlSegment1) {
        // year
        $year = (int) $input->urlSegment1;
        $headline = $page->title;
        $archives = getArchives();
        $yearsNav = '';
        foreach ($archives as $key => $y) {
            $yearsNav[$y['url']] = $y['name'];
            if ($key != $year) {
                unset($archives[$key]);
            }
        }
        $subnav = renderNav($page->title, $yearsNav, $page->url . "{$year}/");
        $content = '<section class="recipes-list">
	            <div class="container">';
        $content .= renderArchives($archives);
        $content .= '</div>
        </section>';
    } else {
        // root, no date specified
        $headline = $page->title;
        $content = '<section class="recipes-list">
	            <div class="container">';
        $content .= $page->body . renderArchives(getArchives());
        $content .= '</div>
	        </section>';
    }
}
include "./main.inc";
示例#4
0
文件: index.php 项目: ragi79/Textcube
    ?>
	<ul data-role="listview" title="Categories" selected="false">
	<?php 
    $totalPosts = getEntriesTotalCount($blogid);
    $categories = getCategories($blogid);
    print printMobileCategoriesView($totalPosts, $categories, true);
    ?>
	</ul>
	</div>
	<div data-role="page" id="archives">
<?php 
    printMobileHTMLMenu();
    ?>
	<ul data-role="listview" title="Archives" selected="false">
	<?php 
    $archives = getArchives($blogid);
    print printMobileArchivesView($archives);
    ?>
	</ul>
	</div>
	
	<div data-role="page" id="tags">
<?php 
    printMobileHTMLMenu();
    ?>
	<ul data-role="listview" title="Tags" selected="false">
		<li class="group"><span class="left">Random Tags (100)</span><span class="right">&nbsp;</span></li>
		<li class="panel">
		<div class="content padding5">
			<ul class="tag_list">
				<?php 
示例#5
0
<?php

require '../../../wp-load.php';
$posts = getArchives($_GET['offset'], $_GET['catnum'], $_GET['tag']);
foreach ($posts as $p) {
    echo str_replace("'", "'", $p);
}
示例#6
0
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);
    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);
}