コード例 #1
0
ファイル: index.php プロジェクト: ragi79/Textcube
" class="panel"<?php 
    echo !empty($entryPrint) ? 'selected="true"' : '';
    ?>
>
		<div class="entry_info">
			<h2><?php 
    echo htmlspecialchars($entry['title']);
    ?>
</h2>
			<h3 class="noBorderLine"><?php 
    echo Timestamp::format5($entry['published']);
    ?>
</h3>
		</div>
		<div class="content"><?php 
    printMobileEntryContentView($blogid, $entry, null);
    ?>
</div>
<?php 
    $entryTags = getTags($entry['blogid'], $entry['id']);
    if (sizeof($entryTags) > 0) {
        ?>
		<div class="entry_tags" data-role="content" data-theme="c">
		<h3 class="tags_title">Tags</h3>
<?php 
        $tags = array();
        $relTag = Setting::getBlogSettingGlobal('useMicroformat', 3) > 1 && (count($entries) == 1 || !empty($skin->hentryExisted));
        foreach ($entryTags as $entryTag) {
            $tags[$entryTag['name']] = '<a href="' . $context->getProperty('uri.blog') . '/tag/' . $entryTag['id'] . '">' . htmlspecialchars($entryTag['name']) . '</a>';
        }
        echo implode(",\r\n", array_values($tags));
コード例 #2
0
ファイル: index.php プロジェクト: hinablue/TextCube
requireView('mobileView');
if (empty($suri['id'])) {
    list($entry, $paging) = getEntriesWithPaging($blogid, 1, 1);
    if (empty($entry)) {
        printMobileErrorPage(_text('페이지 오류'), _text('글이 하나도 없습니다.'), $blogURL);
    } else {
        header("Location: {$blogURL}/{$entry[0]['id']}");
    }
} else {
    list($entries, $paging) = getEntryWithPaging($blogid, $suri['id']);
    $entry = $entries ? $entries[0] : null;
    printMobileHtmlHeader();
    ?>
	<div id="content">
		<h2><?php 
    echo htmlspecialchars($entry['title']);
    ?>
</h2>	
		<hr />
		<?php 
    printMobileEntryContentView($blogid, $entry, getKeywordNames($blogid));
    ?>
	</div>
<?php 
    if (doesHaveOwnership() || $entry['visibility'] >= 2 || isset($_COOKIE['GUEST_PASSWORD']) && trim($_COOKIE['GUEST_PASSWORD']) == trim($entry['password'])) {
        printMobileNavigation($entry, true, true, $paging);
    } else {
        printMobileNavigation($entry, false, false, $paging);
    }
    printMobileHtmlFooter();
}