/// 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(); if (empty($suri['id']) && empty($suri['value'])) { printMobileHTMLMenu('', 'list'); $blog['entriesOnList'] = 8; if (!($listWithPaging = getEntriesWithPaging($blogid, $suri['page'], $blog['entriesOnList']))) { $listWithPaging = array(array(), array('total' => 0)); } $list = array('title' => empty($suri['value']) ? getCategoryLabelById($blogid, 0) : $suri['value'], 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total']); $paging = $listWithPaging[1]; print printMobileEntryListView($list['items'], 'blog_posts_' . $suri['page'], _text('글목록'), $paging, $list['count']); print printMobileListNavigation($paging, 'entry'); } else { if (!empty($suri['id'])) { list($entries, $paging) = getEntryWithPaging($blogid, $suri['id']); } else { if (!empty($suri['value'])) { $entryPrint = true; list($entries, $paging) = getEntryWithPagingBySlogan($blogid, $suri['value']); // printMobileHTMLHeader(); } } printMobileHTMLMenu('', 'list'); $entry = $entries ? $entries[0] : null; ?> <div id="post_<?php echo $entry['id'];
<?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'); printMobileHTMLHeader(); printMobileHTMLMenu('', 'list'); $category = $suri['id']; if (isset($category)) { $blog['entriesOnList'] = 8; if (!($listWithPaging = getEntriesWithPagingByCategory($blogid, $category, $suri['page'], $blog['entriesOnList'], 1))) { $listWithPaging = array(array(), array('total' => 0)); } $list = array('title' => empty($suri['value']) ? getCategoryLabelById($blogid, 0) : $suri['value'], 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total']); $paging = $listWithPaging[1]; print printMobileEntryListView($list['items'], 'category_' . $suri['page'], $category == 0 ? _text('모든 카테고리') : ucwords(getCategoryNameById($blogid, $category)), $paging, $list['count']); print printMobileListNavigation($paging, 'category/' . $category); }
<?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(); }
if ($imageName = printMobileAttachmentExtract(printMobileEntryContent($blogid, $item['userid'], $item['id']))) { $imageSrc = printMobileImageResizer($blogid, $imageName, 80); } else { $imageSrc = $service['path'] . '/resources/style/iphone/image/noPostThumb.png'; } $itemsView .= '<li class="post_item">' . CRLF; $itemsView .= ' <a href="' . $context->getProperty('uri.blog') . '/entry/' . $item['id'] . '" class="link">' . CRLF; $itemsView .= ' <img src="' . $imageSrc . '" />' . CRLF; $itemsView .= ' <h3>' . fireEvent('ViewListTitle', htmlspecialchars($item['title'])) . '</h3>' . CRLF; $itemsView .= ' <p>' . Timestamp::format5($item['published']) . '</span><span class="ui-li-count"> ' . _textf('댓글 %1개', $item['comments'] > 0 ? $item['comments'] : 0) . '</p>' . CRLF; $itemsView .= ' </a>' . CRLF; $itemsView .= '</li>' . CRLF; } $itemsView .= '</ul>' . CRLF; print $itemsView; print printMobileListNavigation($paging, 'search/' . $search); ?> </ul> <?php printMobileHTMLFooter(); } else { ?> <div data-role="page" data-theme="a" id="search"> <form id="searchForm" method="GET" class="dialog snug editorBar" action="<?php echo $blogURL; ?> /search"> <fieldset class="ui-hide-label"> <label for="qString"><?php echo _text('글 검색'); ?>
<?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'; $context = Model_Context::getInstance(); requireView('iphoneView'); printMobileHTMLHeader(); printMobileHTMLMenu(); if (strlen($suri['value'])) { if (!isset($suri['id'])) { $tag = getTagId($blogid, $suri['value']); } else { $tag = $suri['id']; $suri['value'] = getTagById($blogid, $suri['id']); } $blog['entriesOnList'] = 8; $listWithPaging = getEntryListWithPagingByTag($blogid, $tag, $suri['page'], $blog['entriesOnList']); if (!array_key_exists('total', $listWithPaging[1])) { $listWithPaging[1]['total'] = 0; } $list = array('title' => $suri['value'], 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total']); $paging = $listWithPaging[1]; print printMobileEntryListView($list['items'], 'tag_' . $suri['page'], getTagById($blogid, $suri['id']), $paging, $list['count']); print printMobileListNavigation($paging, 'tag/' . $suri['id']); } printMobileHTMLFooter();