<!-- <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 } ?> </ul> --> </div> <?php printMobileNavigation($entry); printMobileHtmlFooter();
function getArchivesView($archives, $template) { $context = Model_Context::getInstance(); ob_start(); foreach ($archives as $archive) { $view = "{$template}"; dress('archive_rep_link', $context->getProperty('uri.blog') . "/archive/{$archive['period']}", $view); dress('archive_rep_date', fireEvent('ViewArchiveDate', getPeriodLabel($archive['period']), $archive['period']), $view); dress('archive_rep_count', $archive['count'], $view); print $view; } $view = ob_get_contents(); ob_end_clean(); return $view; }
if (isset($period)) { $blog['entriesOnList'] = 8; $listWithPaging = getEntryListWithPagingByPeriod($blogid, $period, $suri['page'], $blog['entriesOnList']); $list = array('title' => getPeriodLabel($period), 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total']); $paging = $listWithPaging[1]; ?> <ul class="posts" id="archive_<?php echo $suri['page']; ?> " title="<?php echo getPeriodLabel($period); ?> " selected="false"> <?php $itemsView = '<li class="group">' . CRLF; $itemsView .= ' <span class="left">' . getPeriodLabel($period) . ' (' . $list['count'] . ')</span>' . CRLF; $itemsView .= ' <span class="right">Page <span class="now_page">' . $paging['page'] . '</span> / ' . $paging['pages'] . '</span>' . CRLF; $itemsView .= '</li>' . CRLF; foreach ($list['items'] as $item) { $author = User::getName($item['userid']); if ($imageName = printIphoneAttachmentExtract(printIphoneEntryContent($blogid, $item['userid'], $item['id']))) { $imageSrc = printIphoneImageResizer($blogid, $imageName, 28); } else { $imageSrc = $service['path'] . '/resources/style/iphone/image/noPostThumb.png'; } $itemsView .= '<li class="post_item">' . CRLF; $itemsView .= ' <span class="image"><img src="' . $imageSrc . '" width="28" height="28" /></span>' . CRLF; $itemsView .= ' <a href="' . $blogURL . '/entry/' . $item['id'] . '" class="link">' . CRLF; $itemsView .= ' <div class="post">' . CRLF; $itemsView .= ' <span class="title">' . fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</span>' . CRLF; $itemsView .= ' <span class="description">' . Timestamp::format5($item['published']) . ', ' . 'Comments(' . ($item['comments'] > 0 ? $item['comments'] : 0) . ')' . '</span>' . CRLF;
<?php /// Copyright (c) 2004-2012, Needlworks / Tatter Network Foundation /// All rights reserved. Licensed under the GPL. /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) require ROOT . '/library/preprocessor.php'; if (!empty($suri['id'])) { $period = $suri['id']; } else { $period = Timestamp::getYearMonth(); } fireEvent('OBStart'); require ROOT . '/interface/common/blog/begin.php'; if ($skinSetting['showListOnArchive'] != 0) { $listWithPaging = getEntryListWithPagingByPeriod($blogid, $period, $suri['page'], $blog['entriesOnList']); $list = array('title' => getPeriodLabel($period), 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total']); $paging = $listWithPaging[1]; if ($skinSetting['showListOnArchive'] == 1) { $skinSetting['showListWithTotalEntries'] = true; } $listFeedURL = 'archive/' . $period; require ROOT . '/interface/common/blog/list.php'; } $entries = array(); if ($skinSetting['showListOnArchive'] != 2) { list($entries, $paging) = getEntriesWithPagingByPeriod($blogid, $period, $suri['page'], $skinSetting['showListOnArchive'] == 3 ? $blog['entriesOnPage'] : $blog['entriesOnList']); require ROOT . '/interface/common/blog/entries.php'; } require ROOT . '/interface/common/blog/end.php'; fireEvent('OBEnd');
<?php /// Copyright (c) 2004-2012, Needlworks / Tatter Network Foundation /// All rights reserved. Licensed under the GPL. /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) define('__TEXTCUBE_IPHONE__', true); require ROOT . '/library/preprocessor.php'; requireView('iphoneView'); $context = Model_Context::getInstance(); printMobileHTMLHeader(); printMobileHTMLMenu(); if (!empty($suri['id'])) { $period = $suri['id']; } else { $period = Timestamp::getYearMonth(); } if (isset($period)) { $blog['entriesOnList'] = 8; $listWithPaging = getEntryListWithPagingByPeriod($blogid, $period, $suri['page'], $blog['entriesOnList']); $list = array('title' => getPeriodLabel($period), 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total']); $paging = $listWithPaging[1]; print printMobileEntryListView($list['items'], 'archive_' . $suri['page'], getPeriodLabel($period), $paging, $list['count']); print printMobileListNavigation($paging, 'archive/' . $period); printMobileHTMLFooter(); }