diff --git a/interface/i/index.php b/interface/i/index.php index 484ff74fa..d2e7e27f4 100644 --- a/interface/i/index.php +++ b/interface/i/index.php @@ -27,23 +27,9 @@ print $itemsView; // Recent posts if($listWithPaging = getEntriesWithPaging($blogid, $suri['page'], 3)) { - $itemsView = '
  • '._text('최근 글').'
  • '.CRLF; - foreach($listWithPaging[0] as $item) { - if($imageName = printMobileAttachmentExtract($item['content'])){ - $imageSrc = printMobileImageResizer($blogid, $imageName, 80); - }else{ - $imageSrc = $service['path'] . '/resources/style/iphone/image/noPostThumb.png'; - } - $itemsView .= '
  • '.CRLF; - $itemsView .= ' '.CRLF; - $itemsView .= ' '.CRLF; - $itemsView .= '

    '.fireEvent('ViewListTitleMobile', htmlspecialchars($item['title'])) . '

    '.CRLF; - $itemsView .= '

    ' . Timestamp::format5($item['published']) . ' ' . _textf('댓글 %1개',($item['comments'] > 0 ? $item['comments'] : 0)) . '

    '.CRLF; - $itemsView .= '

    '.htmlspecialchars(UTF8::lessenAsEm(removeAllTags(stripHTML($item['content'])), 150)).'

    '.CRLF; - $itemsView .= '
    '.CRLF; - $itemsView .= '
  • '.CRLF; - } - print $itemsView; + $list = $listWithPaging[0]; + $paging = $listWithPaging[1]; + print printMobileEntryListView($list['items'],'recent_posts_'.$suri['page'],_text('글목록'),$paging, $list['count']); } ?>