예제 #1
0
파일: index.php 프로젝트: hinablue/TextCube
	<ul class="posts" id="category_<?php 
    echo $suri['page'];
    ?>
" title="<?php 
    echo $category == 0 ? _text('모든 카테고리') : ucwords(getCategoryNameById($blogid, $category));
    ?>
" selected="false">
	<?php 
    $itemsView = '<li class="group">' . CRLF;
    $itemsView .= '	<span class="left">' . ($category == 0 ? _text('모든 카테고리') : ucwords(getCategoryNameById($blogid, $category))) . ' (' . $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;
        $itemsView .= '		</div>' . CRLF;
        $itemsView .= '	</a>' . CRLF;
        $itemsView .= '</li>' . CRLF;
    }
    $itemsView .= '<li class="pagination">' . CRLF;
    if (isset($paging['prev'])) {
예제 #2
0
파일: index.php 프로젝트: hinablue/TextCube
/// 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');
if (empty($suri['id'])) {
    printIphoneHtmlHeader();
    ?>
	
	<ul id="home" title="<?php 
    echo htmlspecialchars(UTF8::lessenAsEm($blog['title'], 30));
    ?>
" selected="true">
	<?php 
    $blogAuthor = User::getBlogOwnerName($blogid);
    $blogLogo = !empty($blog['logo']) ? printIphoneImageResizer($blogid, $blog['logo'], 80) : "{$service['path']}/resources/style/iphone/image/textcube_logo.png";
    $itemsView = '<li class="blog_info">' . CRLF;
    $itemsView .= '	<div class="logo"><img src="' . $blogLogo . '" /></div>' . CRLF;
    $itemsView .= '	<div class="blog_container">' . CRLF;
    $itemsView .= '		<span class="title">' . htmlspecialchars($blog['title']) . '</span>' . CRLF;
    $itemsView .= '		<span class="author">by ' . $blogAuthor . '</span>' . CRLF;
    $itemsView .= '		<span class="description">' . htmlspecialchars($blog['description']) . '</span>' . CRLF;
    $itemsView .= '	</div>' . CRLF;
    $itemsView .= '</li>' . CRLF;
    print $itemsView;
    ?>
		<li><a href="<?php 
    echo $blogURL;
    ?>
/entry" class="link"><?php 
    echo _text('글목록');